how to have multiple state colors? #1074
Replies: 3 comments
-
This works for me: color: ${hass.states['sensor.radiator_stue_battery'].state < 10 ? 'red' : (hass.states['sensor.radiator_stue_battery'].state <= 20 ? 'yellow' : 'green')} !important; |
Beta Was this translation helpful? Give feedback.
-
are you shure that this can work? |
Beta Was this translation helpful? Give feedback.
-
.bubble-sub-button-1 > ha-icon {
color: ${hass.states['sensor.nuki_porta_bocchio_battery'].state > '50' ? 'green' : 'red'} !important;
}
I want to have a state color for 50 to 100, one for 20 to 50 and one for 0 to 20
how to have them on this mod?
thanks for help
Beta Was this translation helpful? Give feedback.
All reactions