DBuit / light-popup-card

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

Feature Request: allow data template as service call #63

Open ASNNetworks opened 3 years ago

ASNNetworks commented 3 years ago

It would be great if you could use a data_template as an entity_id. This would be great with cards like decluttering-card and auto-entities. For instance:

        - 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

Currently this doesn't work because templates is not supported, like{{states.media_player.lms_speakers.attributes.active_child}}

I hope this can be also added to the other popup cards (media_player and cover).