Add more granularity to device_class: battery colors #15791
Unanswered
Mariusthvdb
asked this question in
Dashboard
Replies: 1 comment
-
please have a look, seems reasonable enough for a small adaptation |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for having the
device_class: battery
use colors in current Frontend.It would be even better if we could have some more granularity. Currently the icon remains Green for a very large range. Given the fact many batteries dont gradually die on us, but tend to do so more abruptly, we can be confronted with a still 'green' battery, while it in fact has deteriorated rather significantly.
Before, I was using something like this scale in my setup:
I've moved to the now core coloring, but really miss these levels of accuracy. It just was way more functional, and indicative of the true battery level state of our devices.
Now used in https://github.com/home-assistant/frontend/blob/dev/src/common/entity/color/battery_color.ts are only 70 and 30, so adding to levels for
medium-high
andvery-low
would suffice?Please consider adding?
thanks.
Beta Was this translation helpful? Give feedback.
All reactions