DBuit / light-popup-card

Lovelace card to use as custom pop-up for light in homekit style
168 stars 38 forks source link

FR: Any Action on Button Press #61

Closed eiiot closed 3 years ago

eiiot commented 3 years ago

I love that we are able to call services in the popup, but I would also love to be able to use other actions, such as "fire-dom-event" on a button. This way, I can create multiple popups spanning out of one popup!

Thanks for the great card :)

ASNNetworks commented 3 years ago

While were at it: please allow data templates for service calls as well. I posted this in the media_player popup-card, but should also be included in light popup card (and other popup cards like cover and switch). So we can use:

        - icon: 'mdi:link-plus'
          color: var(--background-color)
          service:  squeezebox.sync
          service_data:
            entity_id: "{{states.media_player.lms_speakers.attributes.active_child}}"      
            other_player: media_player.lms

https://github.com/DBuit/media_player-popup-card/issues/11

DBuit commented 3 years ago

fire-dom-event added in V0.5