Hi, I have Home Assistant with music assistant integration. Spotify is linked to Music Assistant and 2 Google cast speakers configured. I want to configure a automation to play a Spotify playlist every morning on both speakers, but getting stuck. The automation is triggered, but no music. I can’t find anything in the logs to guide me to a potential problem. Pls find my automation config below and pls comment if there is something obvious youu can spot or suggestions how to fix.
Automation Config:
- id: '1691334082410'
alias: Play Spotify Playlist
description: Play a specific Spotify playlist on weekdays and weekends
triggers:
- platform: time
at:
- '07:00:00' # Weekdays start time
- '08:00:00' # Weekends start time
conditions:
- condition: or
conditions:
- condition: time
after: '07:00:00'
before: '18:00:00'
- condition: time
after: '08:00:00'
before: '18:00:00'
actions:
- service: media_player.volume_set
target:
entity_id:
- media_player.downstairs_speaker
- media_player.upstairs_speaker
data:
volume_level: 0.38
- service: media_player.play_media
target:
entity_id:
- media_player.downstairs_speaker
- media_player.upstairs_speaker
data:
media_content_type: music
media_content_id: "spotify:user:<UserID>:playlist:6F5rNnft7VZvUuABBTZDop"
mode: single