I would like to change the color of a sensor depending on the value. Something like “red if less than 20”
I tried with
type: 'custom:banner-card'
heading: "\U0001F321 Temp"
background: '#808080'
color: black
entities:
- entity: sensor.home_cucina_temperature
name: Salotto
map_state:
["<",20]:
color: red
With no effect. Is something like that possible?
Did you ever get anywhere with this - I’d like to do exactly the same?
What I am trying to do is to show the entity when temperature is between 20C and 23C, and the color yellow:
Cant figure this out but this hides the entity when temperature is lower than 19C:
- entity: sensor.aqara_multisensor_temperature
name: TEST
when:
state:
- '>'
- 19
This does not work:
- entity: sensor.aqara_multisensor_temperature
map_state:
- '>'
- 18
color: yellow
when:
state:
- '>'
- 18