New to HA and have made a couple dashboard that have been super helpful to be able to change inputs on my AVR. I’d like to polish them up a bit by having the buttons turn yellow depending on the input source that the AVR is currently on. I just can’t seem to figure out how to do this.
Thanks for you help. Sincerely appreciated!
cards:
- type: horizontal-stack
cards:
- type: button
state_color: false
tap_action:
action: call-service
service: media_player.select_source
service_data:
source: Xbox One
target:
device_id: bb64b7dcf8
entity: media_player.living_room_reciever
show_state: false
icon: mdi:microsoft-xbox
name: Xbox One
icon_height: 50px
- type: button
state_color: false
tap_action:
action: call-service
service: media_player.select_source
service_data:
source: AppleTV
target:
device_id: bb64b7dcf8fe
entity: media_player.living_room_reciever
show_state: false
icon: mdi:apple
name: AppleTV
icon_height: 50px
- type: button
state_color: false
tap_action:
action: call-service
service: media_player.select_source
service_data:
source: Nintendo
target:
device_id: bb64b7dcf
entity: media_player.living_room_reciever
show_state: false
icon: mdi:nintendo-switch
name: Nintendo Switch
icon_height: 50px