Probably a stupid question, but why does every button card I choose to use open another window when I press it? I just want to have a button press perform the act rather than another window opening up where I have to select activate.
+1 Same issue. How do I just make this service button toggle without it opening the entity window?
type: custom:button-card
entity: media_player.stereo_denon_zone2
size: 25px
name: power
show_name: false
show_state: false
color_type: card
color: rgb(45, 79, 140)
state:
- value: 'off'
icon: mdi:power
color: rgb(109, 117, 138)
styles:
icon:
- color: rgb(230, 235, 148)
tap_action:
action: call-service
service: denonavr.get_command
service_data:
entity_id: media_player.stereo_denon_zone2
command: /goform/formiPhoneAppDirect.xml?Z2OFF
- operator: default
icon: mdi:power-settings
styles:
icon:
- color: yellow
tap_action:
action: call-service
service: denonavr.get_command
service_data:
entity_id: media_player.stereo_denon_zone2
command: /goform/formiPhoneAppDirect.xml?Z2ON