So I would like to change the background of my button when a certain HVAC fan mode is active/selected (auto / always on). Right now I have two buttons, one for auto and one for on. The perform like they should, switching the HVAC fan mode.
I want them to mimic the buttons above. So when “HVAC Auto” is selected the back ground is turned blue and when its switched to “Fan On” the background goes to default and “HVAC Fan On” is turned blue.
Any help or ideas would be much appreciated.
type: button
show_name: true
show_icon: false
entity: climate.238_home
name: HVAC Auto
tap_action:
action: perform-action
perform_action: climate.set_fan_mode
target:
device_id: b8987254ba0a0215bf710eb0a4d134c4
data:
fan_mode: auto
card_mod:
style: |
ha-card
{background: transparent;
border-style: none;
}