Hi!
I’ve spent a few hours trying to make Home Assistant and Sonos play nice. Sonos pops up magically and shows me in the HA GUI whatever I am playing from my Sonos app. I haven’t found any information that shows me how I can play spotify or sonos playlists so I have resorted to making radio work. I have used the following script
script:
sonos_play_radio:
sequence:
- alias: "Radio play"
service: media_player.play_media
data:
media_content_id: x-rincon-mp3radio://fm03-icecast.mtg-r.net/fm03_mp3
media_content_type: music
Now this works and it plays on all my devices, although not as a group (working on that). But if I change the media content_id to something else like “x-rincon-mp3radio://lyd.nrk.no/nrk_radio_klassisk_mp3_h” it stops working althoug both are valid streams.
Any clue? Thanks!