Bear with me, I’m a coding rookie. I have created a dashboard and have a button card with 6 buttons that allow the turning on and off of groups of lights. The groups are helper groups created of all the lights in the specified room. The buttons have icons, the colour of the icons change depending on wether the lights in the group are on or off. When they are off all my buttons show grey. I want the icons to show a white colour when they are turned on, but only one button does this by default, the others are various colours.
I have done a bit of reading but all the things I have tried have not worked or been recognised as valid code.
What is the simplest way of achieving what I want?
square: false
type: grid
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: light.kitchen
theme: LCARS Modern
name: Kitchen
icon: mdi:lightbulb
show_state: true
card_mod:
class: button-lozenge
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: light.all_lights
name: All Lights
theme: LCARS Modern
icon: mdi:lightbulb
show_state: true
card_mod:
class: button-lozenge
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: light.livingroom_lights
theme: LCARS Modern
name: Livingroom
icon: mdi:lightbulb
show_state: true
card_mod:
class: button-lozenge
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: light.middle_room_lights
name: Middle Room
theme: LCARS Modern
icon: mdi:lightbulb
show_state: true
card_mod:
class: button-lozenge
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
theme: LCARS Modern
name: Bedroom
icon: mdi:lightbulb
show_state: true
entity: light.bedroom_lights
card_mod:
class: button-lozenge
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: light.ryan_s_room_lights
name: Ryans Room
theme: LCARS Modern
icon: mdi:lightbulb
show_state: true
card_mod:
class: button-lozenge
columns: 2