I have a three radio presets on my dashboard that play/stop a specific stream upon being pressed. Question - I was hoping when I put the music player tile above the virtual switches (see below) that I would have the option to control the volume, but it doesn’t give me any option to bring up that value. The player tile turns on and off with the streams but is it possible to have volume control?
The volume is available if you tap the ‘Details’ in the bottom-left corner. If I remember correctly, you were asking for the ability to adjust the dimensions of the music player to 3x1… which would probably fit well here!.. but I was thinking that a 1x1 volume adjustment tile could also slot in well in the blank space once it’s built!
I’d be interested to know how to create a tile to play a particular radio station. We’ve got a Sonos speaker in the kitchen - one of the lamp ones that Ikea have just released - and it works with Alexa on a routine or by voice but it would be handy to have a tile as well.
I’m using SmartThings for all my automation. The lamp works fine but that’s just an IKEA smart bulb. But I can’t work out how to add the speaker. I’ve tried running the auto detect on the classic app but it didn’t find the Sonos speaker. I’ve got the TuneIn skill on Alexa. So I just say “Alexa. Play Radio 2 in the kitchen” and it plays on the Sonos.
Once you get the speaker setup in SmartThings as a Sonos speaker, you can setup a rule in the SharpTools.io Rule Engine and then use that as a tile on your dashboard.
All of the commands that a device exposes are made available in the Rule Engine, so you should be able to use the playTrack() command to start playing a desired song/station.
Fair warning: the rest of this is from memory and I’m doing it remotely on my Sonos at the office, so I won’t be able to verify until I’m back in the office.
While you’re playing music on your Sonos speaker, you should be able to grab the trackUri out of the trackData attribute when you view the device’s details in the SmartThings IDE. Unfortunately, there’s not a nice pretty interface exposed to do this… but the extra hoops are worth the final result!
Edit: If I remember correctly, when you play a station in the Sonos app the reported trackUri changes from the ‘station’ to the individual song pretty quickly. Depending on what source you want to use, there may be other ways to ‘build’ the URI.
Then in the SharpTools.io Rule Engine, you can create a rule with just a single action to play the track on your Sonos compatible speaker using the playTrack() command with the content of the trackUri that we found in the previous step:
Just wanted to post an update that I was able to verify that the above process does work for existing Sonos connections.
There’s one big catch though… it looks SmartThings has a new Sonos integration. The one in my original screenshot above is using the device handler LAN Sonos Player. I was having some issues with the SmartThings not showing the updated status of my test Sonos device, so I deleted it and when I re-added it, it was added as a LAN Sonos Player Websocket which doesn’t expose the trackUri anymore and doesn’t show up as a Music Player to be authorized in SharpTools.
I’m looking into it and will let you know what I find. In the meantime, if you have an existing Sonos connection, don’t delete and re-add it!
I have just started using sharptools and really enjoying it. However sharptools isnt picking up my sonos which i have added to ST using ST classic app. I can control Sonos via my ST app but sharptools is only picking up my HUE buls from ST (i only have HUE bulbs and Sonos added to ST yet). Any suggestions?
Also i cannot find the Music tile or volume adjustment tile anywhere in add menu. (im using PC/Chrome to edit).
We have submitted an update to SmartThings to add a new authorization option for the new Sonos integration. We don’t have an ETA on how long it will be until they are able to review/publish.
We have also updated the SharpTools.io dashboards with support for the new Sonos device handler (it’s already released in production), so once the new SmartApp gets released, you should be able to reauthorize your Sonos devices.
In the meantime, some people have reported that they were able to manually change their Sonos device Type in the SmartThings IDE to the old ‘LAN Sonos Player’ device handler.
This enabled them to authorize the Sonos device in SharpTools… after which point they could change the device handler back to the new ‘LAN Sonos Player Websocket’. I tried this and noticed that it did get control and track description information working again, but certain controls like volume didn’t work and certain attributes like playback status did not update.
Just an update that the SharpTools SmartApp in SmartThings was deployed today and adds support for the ‘new’ Sonos integration.
The dashboards already have support for the new SmartThings Sonos device handler and we’ve got a neat new Album Art Tile in beta that has support for the new and old Sonos devices in both SmartThings and Hubitat (about the beta program).