Closed Korte68 closed 2 years ago
You can do this with Card-Mod.
card_mod: style: | :host { color: {% set calc = states('variable.bedroom_balcony_temphum_battery') %} {% if calc <= "10" %} red {% else %} lime {% endif %}
I made a battery sensor which changes the color by the value of the state... You can do this with the value from the time sensor, by adding different backgrounds to the card. Even more nicer, you can make the font bleding as exclusion, then you can see the text no matter what colors you have in the background...
I will not implent this, because it is already possible by using card mod (see upper answer)
Thank you for your work:) May I suggest something?