github homeassistant-extras/device-card 0.16.0
0.16.0 - Configure inverse percent entities + device names removed from entities once again! 🥼 🏷️

6 days ago

🎉 Happy New Year! 🎉
"The best way to get a project done faster is to start sooner." - Jim Highsmith

Bug Fix: Entity Name Display

What's Fixed

Entity names now correctly display using their friendly name without the device name prefix. This ensures cleaner, more readable entity labels in the card display, matching the expected behavior where entity names should be distinct from device names.

New Feature: Inverse Percent Colors

What's New

Added support for inverting percent bar colors for specific entities. This is particularly useful for metrics where low values are good and high values are bad, such as disk usage or memory usage.

How It Works

When you configure inverse_percent with a list of entity IDs, those entities will display:

  • Green for low percentages (≤30%)
  • Yellow for medium percentages (31-60%)
  • Red for high percentages (>60%)

This is the opposite of the default behavior, where green indicates high values and red indicates low values.

Configuration

Add inverse_percent to your card configuration in the Features section of the editor, or via YAML:

type: custom:device-card
device_id: your_device_id
inverse_percent:
  - sensor.disk_usage_home
  - sensor.disk_usage_root
  - sensor.memory_usage_percent

Example Use Cases

  • Disk usage: Low disk usage is good (green), high usage is bad (red)
  • Memory usage: Low memory usage is good (green), high usage is bad (red)
  • Error rates: Low error rates are good (green), high rates are bad (red)

What's Changed

  • Added Russian translation by @Virenbar in #32
  • More percent entities show graph bar 🎭 🪫 by @warmfire540 in #36
  • Configure inverse percent entities + device names removed from entities once again! 🥼 🏷️ by @warmfire540 in #37

New Contributors

Full Changelog: 0.15.0...0.16.0

Don't miss a new device-card release

NewReleases is sending notifications on new releases.