I would like to change the color of my icons, or even the entire icon based on the state of a sensor.
I know it must be possible, as the standard ‘sun.sun’ sensor shows a yellow sun when the sun is above the horizon, but a dark sun when it is below the horizon.
How would I implement such things for other sensors?
Example: I have my estimated traffic time frpm my work to home in minutes on my home assistant dashboard. I would like the icon to turn orange, or red depending on the amount of mintutes it takes to get home.
Love this idea as well. As others have mentioned, would love to have the ability to change the outline color of a sensor based on traffic delays, temperature, cup utilization, etc.
The light icon color changes based on the RGB color of the light.
So value based icon color is possible.
It looks like it is pulling the value directly from the selected color set in the attributes.
I actually found this thread looking to do something similar. I have Hue lights and the light icon turns yellow when the light is on. I want my input_slider to turn yellow when the light does. http://i.imgur.com/tXboHZV.png I want Molly’s slider icon in that pic to be yellow because her light is on. Purely cosmetic but I’d really like it.
+1 for this. I have a bunch of remote temperature displays that report via MQTT and I’d like to change the sensor label text to another color if the battery level drops (which is part of the MQTT message).
+1. i have some lamps with color shades, so, when the light is on, i think it’d be fun to have the icon to represent the color of the shade instead of just being yellow.
I’d also like this, especially if the color can depend on a different entity. I’d like the icon of my room temperature sensor to turn red when the flame of the heater is on.