I have created a seven-day scene with a mushroom-chips-card. I would like to have the background to change only when it is selected. I’ve been attempting to do that with Card_mod. I’m new to HA and have looked around the board for something comparable, but I haven’t seen anything yet. This is my page’s screenshot:
type: custom:mushroom-chips-card
chips:
- type: entity
entity: scene.eve_flarecolor_ab_mon
card_mod:
style: |
ha-card {
#--chip-background: white;
--chip-background:
{{ 'green' if is_state('scene.eve_flarecolor_ab_mon', 'on') else 'red' }}
}
tap_action:
action: toggle
icon: mdi:alpha-m-box
content_info: none
icon_color: accent
use_entity_picture: false
hold_action:
action: none
double_tap_action:
action: none
- type: entity
entity: scene.eve_flarecolor_ab_tue
tap_action:
action: toggle
icon: mdi:alpha-t-box
content_info: none
icon_color: green
- type: entity
entity: scene.eve_flarecolor_ab_wed
tap_action:
action: toggle
icon: mdi:alpha-w-box
content_info: none
icon_color: blue
hold_action:
action: none
double_tap_action:
action: none