Thank you for this great idea. I was also looking for a solution like this and didn’t know spotcast is able to search for media.
This is my custom sentence:
language: "en"
intents:
Spotify:
data:
- sentences:
- "Play {media_search} on Bedroom speaker"
lists:
media_search:
wildcard: true
This is my config file:
Spotify:
speech:
text: "No problem, playing {{media_search}} on bedroom speaker."
action:
service: spotcast.start
data:
entity_id: mediaplayer.bedroom_speaker
search: "{{media_search}}"
It’s also possible to use a simple automation with a sentence trigger using a wildcard
Play {media_search} on bedroom speaker
And the following action:
service: spotcast.start
data:
entity_id: mediaplayer.bedroom_speaker
search: "{{trigger.slots.media_search}}"
Final Result (in german):
