simple-thermostat
simple-thermostat copied to clipboard
Option to set the background color of the card
I would like to be able to se the background color of the card using some template code. I just want to set the background color to orange when the thermostat is heating.
Thanks
I managed to set the background color of the card like this:
style: |
ha-card {
{% if is_state_attr(config.entity,'hvac_action', 'heating') -%}
--card-background-color: var(--state-climate-heat-color);
{%- endif %}
}
doen`t work, i paste this code, and nothing happent
Woeking on me:
I can install addon card mod from HACKS: ...
card_mod: style: | .mode-item.active.fan_only { --fan_only-color: #00bcd4 } .mode-item.active.heat_cool { --heat_cool-color: #007eff } entity: climate.air_conditioner_none ...