The automation I want to build will:
Turn on a Sonos playlist on a Sonos speaker at a specific time. As a result, I wrote the following based on the Sonos doc:
- id: playSonosatTime
alias: "Play Sonos playlist on Sonos speaker at specific time"
trigger:
- at: "20:08:00"
platform: time
action:
service: media_player.play_media
target:
entity_id: media_player.kitchen
data:
media_content_type: music
media_title: Hot Country
media_channel: Hot Country
shuffle: false
I haven’t been successful in making it play. Any ideas where I went wrong?
In addition, I tried writing the same automation except play a Spotify playlist, but unsuccessful as well.
- id: playSonosatTime
alias: "Play Spotify playlist via Sonos at specific time"
trigger:
- at: "16:47:00"
platform: time
action:
service: media_player.play_media
target:
entity_id: media_player.kitchen
data:
media_content_type: "music"
media_content_id: "https://open.spotify.com/playlist/1OAntQbzMWVsFny9Jatc6t?si=0df642a52d8d4554"