Invert Icon States #14768
Unanswered
ChristophCaina
asked this question in
Other feature requests
Invert Icon States
#14768
Replies: 0 comments
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.
-
I've already created an FR in the Forum for such a feature, but with the new color schemas, I think, this could get more important for some people / some entities.
It would be great, if you could somehow invert the state of an entity (binary_sensor).
For example:
I do have an sensor from my EV Charging station which should indicate, if the cable is locked or not.
Of course, it can only be locked, when the cable is connected - unfortunately, the binary_sensor with device type "lock" is active / on when the device is unlocked.
So, at the moment - the card configuration looks like this:

The "unlocked" cable state is active, while charging and cable connected are off.
As soon as the cable will be attached and locked, cable connected would become green (active) and when the charging starts, the button state will also be active.
Unfortunately, then - only the "locked" cable would be OFF.
And this is one example I have.
I think there are other areas as well where this could be used...
Since this would be an option per entity, I don't think that it would make sense to apply something globally to the domain or device class... ?
We could keep the current coloring logic and it would only be applied inverted where this has been set.
Beta Was this translation helpful? Give feedback.
All reactions