I want to play a Spotify playlist on a Sonos speaker. Spotify Premium is a service in MA, Sonos speakers are there too. I can script an artist or album to play on the Sonos Play 5 (media_player.playroom_2), but not a playlist. The below shows the URI as copied from my desktop Spotify app. What am I doing wrong?
The following will start the specified playlist on the Sonos 01 device name. See the Player Media Play Context service wiki docs for how to play other types (Audiobooks, Podcasts, Albums, Artists, etc), as well as the Player media Play Tracks service for how to play tracks and episodes.
For Sonos devices, all content is played on the device using the local queue when the play context / tracks services are called. The local queue content that is currently playing will be different than what the Spotify Web API is currently reporting as playing. Unfortunately, Spotify developers disabled the ability to play context / tracks under Spotify control for Sonos devices (it’s considered a “restricted” device)! Note that the official Spotify Apps (Desktop / Web / Mobile) utilize the Spotify Embedded Client to control the device, which does not have these limitations like the Spotify Web API does.
Thanks both, it turns out the issue is if I reference the MA media player entity, I get nothing, but switching it for the Sonos media player entity for the same speaker, it works.