[Release] Sonos Advanced Controller

I have a question or perhaps a request.
I LOVE that play text drops the volume of any playing music, plays the text and resumes. YAY, have been wanting that for years.

The only caveat I have is in my heavy use of HSM. In particular for water leaks I'd love for the music to not continue playing as that alert if someone is in the house is critical and music playing could easily be ignored by my family - kids in particular.

Would there be a way to set that up here, or recommendations? Perhaps I can just increase the HSM audio playback to be very loud and put on repeat... but curious on people's thoughts here.

1 Like

I can change the PlayText() to interrupt the music, and leave "Play Text And Restore/Resume" as the non-interrupting ones.

3 Likes

I have installed Sonos advanced controller using HPM and I can see the drivers listed but I can not see and Sonos advanced controller in App list. I have also tried uninstalling and reinstalling but still no app

Did you follow Step 2 from the post by @DGBQ above? Sounds like you're seeing what's described in Step 1 and won't be able to continue until you do this (install an instance of the app, not just add the code to make this possible in the first place--the main function of HPM).

You could. I'm not suggesting you do. just brainstorming as that change would prevent continuing music for other people with systems like HSM. More wanting conversation, brainstorming on recommendations, other ways around that.

Hi @ThunderboltsRock,

Fantastic to hear you're exploring the Sonos Advanced Controller! :notes: I've been actively involved in testing the app with @daniel.winks and must say, it's quite impressive. Let's troubleshoot this together.

Did you installed the Sonos Advanced Controller via user app install? As per

Do you see this in your Apps section?

Ensure you've cleared the search bar in the Apps section – sometimes, it's the small things that can cause hiccups. Refer to my previous screenshot for clarity.

If the Sonos Advanced Controller is still elusive, let's investigate in HPM. Navigate to HPM and open the View Apps and Drivers sections.

Is the Sonos Advanced Controller listed there? Take a glance at the app version in the screenshot provided.

Feel free to share a screenshot if needed. We'll work together to get this sorted!

Cheers,
David

2 Likes

One vote for the change.

1 Like

No objection here.

Hi David,
As you can see from the screenshots below the app is installed in HPM and drivers are listed but no app is listed. Originally I did manually add the repo from the first post to HPM but soon realised it wasn’t needed. Could of this pulled an older version?



Still seems like you're missing the steps inside Step 2 above that we both mentioned. Specifically, what happens when you click "+ Add User App"? That's the tl;dr version. :slight_smile:

Hi @ThunderboltsRock,

It seems like @bertabcd1234 is on the right track,.. Let's make sure we've got everything in place.

  1. Firstly, ensure that the Sonos Advanced Controller is installed, and you have the latest version. Confirm this by following the steps detailed here.
  1. Assuming the app is installed and up to date, let's move on to the next steps:
  • Navigate to the App section of Hubitat.
  • Click on the "+Add User app" button at the top right of the screen.

  • Choose "Sonos Advanced Controller" from the available options.

  • Follow the prompts to install the app.

Once you've completed these steps, head back to my post and follow steps 3 to 7.

Afterward, focus on the additional steps I've introduced in my Edit:

Let me know how it goes.

Cheers,
David

1 Like

Thanks for the advice,
I indeed have to remember that in Hubitat you have to install the package and then install the app or device. I now have the app but when I perform discover and add my sono virtual device, no device in created in devices and I also have not option in virtual groups to select any device’s:
Edit:
I see the issue, after selecting the virtual sonos device you have to go back to the app main screen and click “done” before it will create the virtual device

Hey ThunderboltsRock!

Great to hear that you're making progress with your Hubitat setup! Teamwork makes the dream work, right? :rocket: I'm thrilled we could figure this out together, and shoutout to @bertabcd1234 for the assistance too. Kudos to you for your persistence!

You've absolutely nailed it with the tip about going back to the app main screen and clicking "done" – those little details make all the difference. Your Sonos virtual device should be all good now.

Don't forget to review all the steps in my post to ensure you have a seamless experience

Keep up the fantastic work, and bask in the sweet sounds of success through your Sonos system. If you have any more questions or need assistance with the Advance Sonos Controller, feel free to post them in the forum.

Cheers,
David

1 Like

My Sonos app only seems to ever create 1 x virtual sonos device,
I have 3
Living room
Entrance
Sonos roam
Only the first device selected is created as a virtual device and subsequent virtual device are not created.
The discovery also only ever lists 1x device even though it does seem to find all 3 it will only display one at a time during discover and will just change names.
I also went to perform an uninstall using HPM and it stated fatal error rolling back during the uninstall process


I have observed that once the first virtual sonos device is created and I go back to discovery to add second virtual device, the device selection screen doesn’t state that “a virtual device named xyz will be created “

In order to know what's happening, I'll need for you to turn on debug logging on the APP main page, here:

Then redo whatever ever steps you took that encountered the error and send me a PM with the error message and any messages in the log at that same time, so like 20 messages or so before and after the error. A screenshot of an error doesn't give me anything to go on.

Also, make sure you're staying on the discovery page until all 3 of your players are discovered, and don't use the forward/back buttons on your browser, or refresh the page. Just use the "Next" button to move through the pages.

Daniel,

In the no doubt neverending list of future enhancements, would you consider adding the option to feed load favorite with a variable?

I'd like to set a chanel selection in a switch and let my play rule read that and use it. Now that i think of it, a volume level variable would be useful as well.

Thanks!

You can already do this in Rule Machine.

Just set the parameter to %myVar% (replace myVar with the name of your variable).

In this image I've set myVar to 10, so it shows (10) next to %myVar%.

Everything is a string type, even if it's number. Keeps things simple, plus I don't have to convert them before sending it to the API, which also expects string types.

1 Like

Thanks! I never even remotely considered that!

Thank you!

S

1 Like

@daniel.winks

any ideas?