Open agneevX opened 3 years ago
@kalkih Hi. I have another case with a script where I pass the media URL as a variable:
shortcuts:
attribute: media_content_id
buttons:
- name: Radio Relax
icon: 'mdi:panda'
type: script
id: play_radio
data:
entity_id: media_player.bathroom
radio_url: 'http://ic7.101.ru:8000/v13_1'
So I need to compare media_content_id attribute not with id of the button, but with a variable of script. Could you suggest a solution, please?
I'm trying to set the state of a shortcut button on Spotify which plays playlists.
Spotify exposes the current playing playlist as
media_playlist
as the name of the playlist, not the ID, so currently there is no way for the state of theWhat I'm proposing is to designate
id
as the state of the shortcut, where it must match the attribute, but should not be used for playlist. Currently, whenattribute:
cannot be used alongsidetype: service
.If a shortcut button calls a service, instead of...
My proposal:
*_name
for other types such asplaylist
orscript
.