Replies: 6 comments 6 replies
-
You could just set shuffle to on, then start the playlist. Here's a script you could use: (just change the
|
Beta Was this translation helpful? Give feedback.
-
As this is the second request I have had for a shuffle-enabled playlist for SpotifyPlus, I thought I would create a BluePrint for the above script if you want to use it. Check out the SpotifyPlus Play Playlist with Shuffle blueprint documentation for more information. Hope it helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks thlucas1 for responding! I actually already tried something similar, but I can't get it working. If I try to call Error: Player command failed: No active device found One thing I neglected to mention earlier: I'm starting the playback on a Spotify Connect device which is typically idle before calling my script. So I always have to call Am I doing something wrong, perhaps? |
Beta Was this translation helpful? Give feedback.
-
@milnivlek [ 1.0.43 ] - 2024/07/23
[ 1.0.42 ] - 2024/07/23
This should fix you up - just be sure to upgrade to the 1.0.43 version first. If you are into blueprints, use the new SpotifyPlus Play Context With Shuffle blueprint if you want support for device ID's (without calling Otherwise, use the following script (just change the
|
Beta Was this translation helpful? Give feedback.
-
What kind of Spotify Connect device are you referencing? e.g. Sonos Symfonisk? Bose SoundTouch? Just wondering what the device is you are controlling with the integration. If it's a Sonos device, then there might still be issues. I had to tweak some logic in the shuffle, repeat, and volume set methods. Give the new v1.0.44 release a try and let me know. Thanks - Todd FYI - just released a new version of the SpotifyPlus integration. [ 1.0.44 ] - 2024/07/24
|
Beta Was this translation helpful? Give feedback.
-
@milnivlek [ 1.0.45 ] - 2024/07/30
The The Spotify Web API also does not reset the shuffle or repeat state for the Start / Resume Playback endpoint. We may need to turn on a SmartInspect trace in order to figure this one out. But let's give the new release a try first, and let me know how it goes. |
Beta Was this translation helpful? Give feedback.
-
What's the best way to start playing a playlist at a random song, and continue in shuffle mode?
I think I managed to get it working by writing a script that does these steps:
spotifyplus.get_playlists
to get the playlist length intracks.total
spotifyplus.player_media_play_context
withoffset_position
set to a random value between 0 and (tracks.total
- 1)media_player.shuffle_set
to enable shuffle on the player entityAm I missing something? Is there a simpler and/or more robust way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions