I came across interesting behavior when setting up a ShartTools dashboard to play Sonos playlists. The bug is with how SmartThings is integrated with Sonos.
The primary bug being that if you click a favorite for Sonos to start playing, it does not clear the Sonos queue first.
If I start with a clear Sonos queue the playlist is added. If I then click another playlist it seems to add the playlist and shuffle the queue. So now the queue is made up of any songs already in the queue and the newly added playlist.
James from SharpTools did some additional testing (I confirmed the same) and found that if the Sonos queue is not set to shuffle, the new playlist is added to the end of the queue and starts playing from the first song of the newly added playlist. So from a user song playback perspective, this is only an issue if you have your Sonos queue set to Shuffle.
I confirmed via the Sonos app directly, if you add a playlist it does clear the queue before adding it.
In the scheme of things this is a small bug, but I thought others may benefit from knowing it exists. I created a SmartThings support case for it, so maybe it will get addressed in the future.
I found on the Hubitat forum a similar discussion with potentially a solution over there, but unsure how these commands can be integrated into Smartthings.
Thanks for sharing! Seems like it should be an easy adjustment. Correct, I haven’t received an update, but the Smartthings support team dig confirm it is a bug with the integration.
Having the same problem with no access to clear the queue when switching to a different, shuffled playlist. Found something that might be useful to Smartthings dev team?
The queueAction preference is found in the device presentation for each of your Sonos devices. In the SmartThings app, choose devices, then the speaker, then click on the three dots in the upper right-hand corner. Finally, choose settings, and select the one you want. You will need to make this change on any Sonos device that may be used individually or as a group coordinator. Note that as this is a preference setting, there is no way to change it within a routine. Most people set it to replace and then forget it.
Adding playMode selection was discussed at one time, but as development on this driver has by all appearances been abandoned, I wouldn’t hold my breath.