Agree and adding on to this:
Additionally to the state colour, one step deeper, to be considered is the ON/OFF state as well. A lock that is ‘ON’, does it really make sense that this always means the lock is unlocked? In my opinion not.
Another use case to add. I have screens on my patio, which I have as “covers” in HA. Covers are highlighted when they are “up”. I’d like to have the icon highlighted when the screens are “down”.
I have a command line binary sensor (connectivity class) checking the availability of some local service.
The icon is colored in “connected” state which is the “normal” state in my case.
I would like the icon color to catch my attention when the state is “disconnected”, meaning something is wrong with the service availability.
A related colour-related use case: I have voltage issues so I want to track when the voltage is outside the regulation limits. I’ve created a binary sensor to track this based on my voltage data that is “On” when the voltage is violating, and “Off” when the voltage is OK. This is fine…but, my weird on is that when I look at the history I want to invert the colours - at present green is used when then sensor is on, and red when it is off…but instinctively green = good and red = bad…but in my case it is the opposite… A feature to invert colours for icon and history would be great!
I think, with the already implemented - and upcomming coloring features, this might actually increase it’s importance.
By default, there are defined settings for the colors of specific entities (security related, when is a door safe / unsafe?)
But - as we are all individuals, that means, that the new states might not be the same for all devices that we have.
Sometimes, a “locked” door can be ‘safe’ - in other cases, a “locked” state for some device should require our attention.
Therefore, it would be REALLY good to get that invert-option on top, or to allow to define what the OK or NOK state of an entity would be.
[update]
while inverting the color state of an entity / card is possible with card-mod, this does not apply for the “more info” page of the entity.
Therefore, a ‘real’ invert option would be really benefitial.
To add more value to the FR, I’ve randomly collected the topics about “invert xyz” here from the forum: