Temperature between values #1220
Closed
Answered
by
Menelao147
dvoijen
asked this question in
Questions about config, custom styles and templates
-
GoalGoal is when the temperature is below 15 degrees i would like the sub-icon turn blue when it is above 22 degrees it needs to turn red. Source Yaml.bubble-sub-button-1 > ha-icon {
color:
${hass.states['sensor.thuis_outdoor_temperature'].state < '15' ? 'blue' : ''} !important;
${hass.states['sensor.thuis_outdoor_temperature'].state > '22' ? 'red' : ''} !important;
}Which step did you already try?See the source YamlProblemNo response Read the documentation
|
Beta Was this translation helpful? Give feedback.
Answered by
Menelao147
Feb 10, 2025
Replies: 2 comments
-
|
You can add conditions like this: If this solves your problem, mark this as solved and close the discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dvoijen
-
|
Menelau147 you got me on the right track, this solved it: Almost the same just the temp without the ' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add conditions like this:
If this solves your problem, mark this as solved and close the discussion.