Hello,
I am really frustrated learning how to use HA and creating a button card I have a card on my dashboard. I would like to turn on/off my speakers in my office, but everything I try based on forums and other topic boards to get the icon to change colors, which does not work. Can someone PLEASE, help me? I apologize to the forum and community, if I am not asking my question properly with acceptable/property information or format. This is what I have:
type: button
tap_action:
action: call-service
service: switch.toggle
service_data: {}
target:
entity_id:
- switch.office_guest_bed_rm_speakers_switch_4
- switch.office_guest_bed_rm_speakers_switch_3
entity: ''
show_state: true
icon: mdi:volume-high
name: Office Speakers
hold_action:
action: toggle
show_state: true
state_color:
state:
- value: 'on'
color: lawngreen
- value: 'off'
color: grey