Page 1 of 1

Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Sun Mar 12, 2023 7:38 am
by Seeker
plugin "Sonos 1.1.17c" may not be compatible with next Indigo release without an update

is there an update for this?

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Thu Mar 16, 2023 8:05 am
by Londonmark
Sadly we've not seen Nick for a long time - although others may have more info. The last I heard was that the upgrade was more complex than he anticipated but he was working on it. But that's several months ago.

In the meantime, I've been playing around with the new Shortcuts functionality in Indigo and have found a way to control my Sonos devices from Indigo using Shortcuts. The key is an app called Soro that adds Sonos commans to the Shortcuts app (both on iOS and MacOS. That way you can write shortcuts that will do whatever you want to your Sonos system and run them from Indigo using run shell script (eg. /usr/bin/shortcuts run "Play Favorite").

It only took me a few minutes to get working which means it must be really easy. Obviously a bit clunky for more complex applications but as a means of adding a bunch of playlists to a control page it's good. Or - next plan - having a light switch that's current programmed to run a good night sequence instead run a time appropriate playlist / radio station earlier in the day.

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Thu Mar 16, 2023 11:17 am
by gt3mike
This is pretty cool. Thanks for sharing! I don't do anything terribly complex with the Sonos plugin, and this might meet my needs.

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Fri Mar 17, 2023 6:29 am
by shapa
Brilliant. I will try it now.

Unfortunately, the plugin is mostly dead today. Anyway, massive respect for Nick for the many years of support and development.

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Fri Mar 17, 2023 7:52 am
by gt3mike
Yep, this will work for me. Goodbye Sonos Plugin. Thanks for everything, Nick!

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Fri Mar 17, 2023 8:11 am
by norcoscia
Is their a step by step guide for this (for dummies) - I don’t plan to keep upgrading if I loose the ability to use Sonos - any help would be appreciated!

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Fri Mar 17, 2023 9:44 am
by shapa
Unfortunately, you have no choice. Soon the plugin will stop working as the Python v2 will be deprecated. The only way is to re-write the plugin, which is hard, and the author is busy with something else.

It's a massive problem for Indigo now, as Sonos integration is essential for me. I'm building a new house and plan to have Sonos virtually in every room.

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Fri Mar 17, 2023 9:48 am
by shapa
BTW, Announcements will not work with the Soro / Shortcuts.

Contacting the author to enable announcements functionality could be a good idea.

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Fri Mar 17, 2023 9:57 am
by ryanbuckner
Without the Sonos plugin and the Nest plugin for python3 I might be stuck on this version of Indigo too .

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Fri Mar 17, 2023 10:00 am
by siclark
You could always look to use node red which also has sonos functionality. Not sure how much but that might help you

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Fri Mar 17, 2023 3:07 pm
by shapa
So the announcements are coming to Soro.

"Hi There, thanks for the feedback about the Soro app!

That’s actually something I am working on. However, very early stages so far, hope to have something usable ready in the coming months.

Laszlo

> Could you please add some kind of "announcement" functionality? To use Apple TTS to generate speech file to announce via a Sonos speaker? It will help a lot for many SmartHome automation.
>"

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Fri Mar 17, 2023 3:10 pm
by shapa
ryanbuckner wrote:
Without the Sonos plugin and the Nest plugin for python3 I might be stuck on this version of Indigo too .


The new Nest plugin (via Starling bridge) Is available. Much better than the old one. But you will need to buy some small hub.

viewtopic.php?f=369&t=26172

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Fri Mar 17, 2023 5:39 pm
by Londonmark
Happy to see the shortcuts option is potentially helpful. I reckon with a bit of effort and a few shortcuts it’s possible to replicate most if not all of the plug-in functionality. One thing I am looking at is using indigo variables to define which player I want to send a command to and which playlist or favourite I want to access. That would massively reduce the number of shortcuts.

So idea would be to have an action group that set a variable for player X and another for playlist Y. That would get communicated via a Soro shortcut to say set player x to playlist y and then hit play.

Feels as if there are loads of options.

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Mon Apr 03, 2023 7:59 am
by hamw
Any update on this? I am interested in getting a Sonos unit for my whole house audio system and it would be great if there was an easy way to write a shortcut.

Re: Sonos plugin error with 2022.2, Sonos 1.1.17c

PostPosted: Mon Apr 03, 2023 8:52 am
by Londonmark
Can confirm that it’s extremely easy to write a shortcut and to call the shortcut from indigo. You might need to create quite a lot of shortcuts though to control everything the way you might want.

I’ve not tried getting the state of players back into Indigo. Would imagine that’s quite doable though so in the end there could be a way to use Sonos without an updated plugin.