Hi, I find many topics about icon colors, but none of these give me the correct answer. I want to change the icon color of a sensor depending on the status value. The color must be the variable state-icon-active-color: "#5F9BEA" I want this color when state is “Open”
I have not added anything special to my theme config. I only want the same color icon as all standard entities when they have a ON state. I have added state_color: true but the icon still has no color at “Open” or “Close” status. This is my card.
That’s because you have defined a template sensor. Try a template binary sensor with device class: lock. That way you don’t need to define an icon template.
Thanks, it is working now. I have a state Lock/Unlocked with a color when it is Unlocked. But still not exactly what i want, is it possible to change the state string Lock -> Dicht and Unlocked -> Open?