Hi everyone
sorry for my english
I want to change the color of an entity according to its state and I don’t know if it is possible. I can change the icon but not its color in the entities card
thanks and greetings
What type of entity?
Adding state_color: true
to the Lovelace card will change the colour of binary entities (binary sensors, input_booleans, switches).
I can’t choose the icon color in lights or switches for example. Thank you
You can change the colour in themes.
--state-icon-active-color:
is the key you want.
thank you very much tom It is of great help to me. But then I can’t put different colors on the same entity card. All the icons would have the same color depending on their status. I get it. thank you very much
Yes, there is no way to do that natively in home assistant. However you can do it with card-mod:
Thank you very much again
Hi,
Spend already many hours, but remain struggling with this.
How can you change icon color by using of lovelace-card-mod?
I only see examples to change let’s say to a static color, not based on a specific state of an entity.
Thanks for your answer anyway,