I'm probably asking a question that I know the answer to: "doable but very complicated".
I'm trying to have a voice command like "play release radar on device x" so that it would play Spotify's Release Radar on a device of my choosing. I have the following YAMLs:
intents.yaml:
SoitaReleaseRadar:
action:
- service: media_player.play_media
target:
entity_id: media_player.spotify
data:
media_content_id: "https://open.spotify.com/playlist/abcd1234"
media_content_type: playlist
- service: "media_player.select_source"
target:
entity_id: "media_player.spotify"
data:
source: "{{ spotify_kohteet }}"
Spotify needs the name for the source it "knows" when changing source, but in this case I have no way to give that source name back to it. I know I'm not calling {{ spotify_kohteet }} anywhere in the sentence, but I'm wondering if it could resolve to two different lists?