Controling Sonos is unreliable and limited
Hi, I have been trying to get reliable control of sonos from bos for a while. Volume and play / pause / stop / skip etc. seem to consistently work well. However - selecting playlists sometimes works sometimes does not - and I cant figure out any pattern. Often I call PlayPlaylist(playlistName) and it just clears whats in the current queue - I call exactly the same command again and it loads the playlist and plays. Also finding that I can put a radio station in favourites - I can call it via the pre-built bOS control .. but not via PlayFavourite(favouriteName). .. I have not successfully called any radio stations via URI either.. The fact that the simple controls like volume and play work so reliably suggests no connectivity issues etc. short of installing wireshark on the grinder is there any way to see a log from bOS server to see whats happening between it and sonos and which side is messing up? Finally.. in the inbuilt bOS sonos control you can list the playlists & favourites .. how can I access these from a value to work with them programatically?


Thanks both for excellent replies! I have been testing more and I have found that I get materially better reliability when I use the sonos stop command before loading a new playlist. And radio stations for sure work better when saved in sonos as a favorite and then call the favourite. When a playlist fails to play, on closer inspection of sonos you can see the old one has gone, but the new one is not loaded, trying exactly the same command again can often work. I have also found that if you take a bit more time between attempts its more likely to work.. I also noted that one of the playlists I had been trying was actually a spotify playlist - I guess we need to call these a different way?