Icon color based on state

I already did :wink: on many occasions , here’s one:

what the sensor you want to colorize ? post it and we’ll see how to help