Create "Jukebox" Dashboard with Album Art for Echo or Sonos Devices

The normal stuff like lights, locks, thermostat, etc., but I’m interested in the Jukebox and integrating controls of my pool equipment. I’m also having a hard time getting my cameras to display.

If they are zigbee or Z-Wave, you’ll probably have decent compatibility with SmartThings or Hubitat. For Wi-Fi devices, it depends on the specific model.

I followed these steps and it is working…sort of. I added two separate playlists and unless I pause the music before switching playlists, the same playlist will continue to play when I click the other. Anyway to fix this?

Hi @Charlie_Barham, welcome to the community. Do you use SmartThings or Hubitat, and what smart speaker(s) do you have?

I use smartthings and have a beam and 2 play:1 speakers. It now rotates between the two playlists every time I hit next song.

@Charlie_Barham, thanks for the details. I believe this is the same bug raised by @Mike_O that the Sonos queue is not cleared when another playlist is selected, and this new playlist will just be added to the end of of the existing queue.

@Mike_O has reported this behavior to SmartThing support and SmartThings support team did confirm it as a integration bug. See below for Mike’s post in the SmartThings community, and I’d suggest you to post your comment in the thread, and open a SmartThings support ticket as well to help SmartThings prioritize the tasks.

I’d guess the shuffle is enabled so it kind of rotates between two playlists every time you hit next.

Thanks for the help! seems like there is no fix for it right now.

@Charlie_Barham, can you try to add a stop command before the playPreset command in the rule? See below that you can reorder the commands by holding the image icon. So it should quickly stop and then play the new playlist.

I tried that but it still mixes the queue with both playlists.

It’s definitely a smartthings issue because when I use ST app to change playlists it does the same thing

2 Likes

So I’ve done some playing around and what I found is interesting. I have a single Sonos One in my bedroom and I set up the jukebox dashboard for that speaker separately and the playlists work perfect. What gets really interesting is if I start playing music through the dashboard on my single bedroom speaker and then group the living room (beam+2 Play Ones), I can then un-group the bedroom speaker and the playlist selection begins to work as expected on the living room dashboard without mixing playlists together. Seems like the issue only happens when you have multiple speakers paired together for some reason. Still hoping to find a long-term solution so I don’t have to open the Sonos app.

EDIT: Just tested in the smartthings app with the single speaker setup and the play favorite feature works normally without mixing playlists together.

1 Like

I solved this issue! I deleted all my speakers from Smartthings, I then went into Sonos and removed the surrounds from my beam. I then added Sonos back to Smartthings so all my speakers were added individually. Then I authorized all the speakers in Sharptools. Once that was done I added the surrounds back to my beam in the Sonos app. I had to fix all the rules for my playlists but everything is working now, no more playlist mixing!! Hopefully this will help someone in the future.

2 Likes

Just had the exact same issue, when I took off shuffle it seemed to fix it but also have issues now where smartthings can see status of my Sonos Move but the controls don’t work. Conversely if I control the group through my Sonos One it works fine. I’ll try removing and re-adding them back to ST like you tried. Thanks

1 Like

No problem, let me know if you need help/clarification.

1 Like

Nice discovery! I’ll have to check this out. I have two speakers set to stereo, so connected to Smartthings as a single device. Sounds similar to what you’re describing with surround speakers. I have a separate speaker that I’ll test to see if it has the same problem.

James,

I am trying to add media tile as described above with my own artwork.

Can you confirm where you get the rule ID from?

I have tried to create a tile and when I click on it I get an error page dashboard not found, can you help, please?

Thank you,

Paul.

Hi @Paul_Starkey, you can get the rule id from the rule editor page when editing the specific rule. See the screenshot below. And you can follow the instructions as shown in the screenshot below and replace rule id in the Hyperlink field with your rule id.

image

That works great thank you, James. Is there a way to do the same for a normal tile on a dashboard, say for a light switch with a custom image? Cheers.

1 Like

You can surely use a media tile with custom image, and have it run a rule when tapped, and add the logic in the rule to determine if it should turn the switch on or off based on the switch’s current condition (using IF condition). But the down side is you cannot display different images based on the switch status at this point. (The regular Switch Tile may glow or show different style when on.)

Got it thanks! You and the team are a big help.

1 Like

Hi All, lots of great content in this thread, much appreciated!!

I found a few references to Sonos Shuffle, but either missed the solution or maybe there is not one yet?

In the event there is not one yet, has anyone played with the Sonos API, you can shuffle using playback mode → https://developer.sonos.com/reference/control-api/playback/set-play-modes/

I was wondering if an HTML tile might work to do this…

Thanks everyone for the help and time!

Walt