Sonos functionality right now is great, but it is missing one significant feature that is present in the soco module leveraged by the sonos media_player: toggling shuffle mode.
Sonos supports the following play modes: (‘NORMAL’, ‘SHUFFLE_NOREPEAT’, ‘SHUFFLE’, ‘REPEAT_ALL’, ‘SHUFFLE_REPEAT_ONE’, ‘REPEAT_ONE’)
Would it be possible add this capability via the sonos media_player component?
Others have implemented this using shell commands and the sonos http api, but that requires yet another service on your homeassistant box, would be great to offer this as native functionality.
This script is an example where I would love to also set the playmode:
Turns out it was an easy addition when diggin into it, got it to work locally this evening and will probably issue a PR tomorrow to get it in next release
Great, will this also allow to play a Spotify playlist from the favorites in shuffle mode? This is a feature im desperately waiting for, since my playlists will start at the same song over and over again .
ERROR (Thread-18) [homeassistant.components.media_player.sonos] Error on set_shuffle with UPnP Error 712 received: Play mode not supported from 192.168.188.83
“CelticRadio” is a Spotify playlist.
Of course, from the Android app I can shuffle the playlist.