I am trying to add the state (off or on) of the receiver when I toggle it. Or change the color of the receiver button.
I know I can get the state like this:
{{ states('media_player.denon_avr_s700w') }}
But I have no idea how put that in the label or change the icon color.
Here is my current script:
entity: media_player.living_room
volume_stateless: true
artwork: material
shortcuts:
columns: 1
buttons:
- icon: mdi:audio-video
type: service
id: media_player.toggle
data:
entity_id: media_player.denon_avr_s700w