Page 1 of 4

Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Thu Apr 04, 2019 11:07 am
by chobo
A fair warning to those who might be tempted (or just prompted repeatedly) to update to Sonos 10.1. I've completed the update and it looks like this is the end of the road for Nick's long-lived and very functional v1.0.12. :cry:

Receiving the first error on startup and the second every 10 seconds. Zone status no longer being reported and no amount of restarting the plugin (or computer) has resolved it. Anyone having a different experience??

Code: Select all
   Sonos                           Your plugin version, v1.0.12, is current.
   Sonos Error                     Error in plugin execution startup:

Traceback (most recent call last):
  File "plugin.py", line 36, in startup
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 276, in startup
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 2263, in closedPrefsConfigUi
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 2661, in getSonosFavorites
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 2551, in restoreString
AttributeError: 'NoneType' object has no attribute 'replace'

Code: Select all
 Sonos Error                     Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
  File "plugin.py", line 47, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 369, in runConcurrentThread
TypeError: int() argument must be a string or a number, not 'NoneType'

   Sonos Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Thu Apr 04, 2019 2:25 pm
by neilk
This new release has broken a number of HA integrations. I see the SoCo controller GitHub page shows a number of reports of this issue as well, but not a fix.

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Thu Apr 04, 2019 3:00 pm
by mundmc
Noooooooooooo!

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Thu Apr 04, 2019 3:52 pm
by DaveL17
Hopefully, Nick will be able to address. Although, it doesn't look like he's visited the forums for about 6 months or so. If I see the errors and have the spare time, I'll see if it's an easy fix. Sometimes though, with things like this, plugging two holes can cause four more to pop up.

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Thu Apr 04, 2019 4:49 pm
by nlagaros
Well since it broke me too I will fix it and post over the weekend. I know exactly the issue so should not be a big deal. Sorry I have not been around... life takes you in many directions....

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Thu Apr 04, 2019 4:54 pm
by chobo
Thanks, Nick (and Dave)! Let me know how I can be helpful. More than happy to test potential solutions.

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Thu Apr 04, 2019 6:37 pm
by DaveL17
nlagaros wrote:
Sorry I have not been around... life takes you in many directions....

Know what that's like. Glad that it won't be a heavy lift for you.

Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Thu Apr 04, 2019 7:01 pm
by mundmc
nlagaros wrote:
Well since it broke me too I will fix it and post over the weekend. I know exactly the issue so should not be a big deal. Sorry I have not been around... life takes you in many directions....


Yessssssssss!

Nick your plugin is central to my family not turning into a murder-suicide scene, many thanks.

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Fri Apr 05, 2019 11:54 am
by neilk
For the impatient applying the patch described here
https://github.com/SoCo/SoCo/issues/660 to the file in the plugin bundle seems to do the trick, although possibly not if you use a Boost. No warranty from me as I am out of my depth, and I would recommend waiting for Nick. It did get me going again though so my doorbell works !

Thanks Nick for a great plugin and for sorting this properly.

Neil

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Sat Apr 06, 2019 3:58 am
by shapa
The fix works for me

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Sat Apr 06, 2019 3:49 pm
by roussell
The line change didn't work here. I don't have a boost, but I do have the older version of the possibly same thing - the "bridge"; not sure if that poses the same problem. Interestingly Sonos still functions on my Home Assistant play install. Not sure what those guys did differently, but it never missed a beat there. I don't actually use Home Assistant though, so it really doesn't help me, just an interesting data-point.

Terry

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Sat Apr 06, 2019 7:05 pm
by nlagaros
There are more functions they took away. I about half way done. This sucks.

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Sat Apr 06, 2019 11:43 pm
by GlennNZ
nlagaros wrote:
There are more functions they took away. I about half way done. This sucks.


Go Nick Go!

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Sun Apr 07, 2019 9:26 am
by nlagaros
v1.0.13 is in the Plugin Store. I do not believe it is backward compatible if you are running less than Sonos 10.1 firmware.

Re: Sonos 10.1 Update & Sonos Plugin v1.0.12

PostPosted: Sun Apr 07, 2019 10:11 am
by roussell
Nick,

Just tried 1.0.13 and get the following errors:

Terry

Code: Select all
Apr 7, 2019, 11:08:15 AM
   Upgrading plugin Sonos to newer version 1.0.13 (previous version moved to trash)
   Loading plugin "Sonos 1.0.13"
   Starting plugin "Sonos 1.0.13" (pid 13554)
   Started plugin "Sonos 1.0.13"
   Sonos                           Your plugin version, v1.0.13, is current.
   Sonos Error                     Error in plugin execution startup:

Traceback (most recent call last):
  File "plugin.py", line 36, in startup
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-3.indigoPlugin/Contents/Server Plugin/Sonos.py", line 278, in startup
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-3.indigoPlugin/Contents/Server Plugin/Sonos.py", line 2283, in closedPrefsConfigUi
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-3.indigoPlugin/Contents/Server Plugin/Sonos.py", line 2681, in getSonosFavorites
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-3.indigoPlugin/Contents/Server Plugin/Sonos.py", line 2571, in restoreString
AttributeError: 'NoneType' object has no attribute 'replace'

   Sonos                           Adding ZonePlayer: 10.0.1.69, RINCON_949F3E0DFAF201400, Sonos - Garage
   Sonos                           Adding ZonePlayer: 10.0.1.62, RINCON_000E587BD98601400, Sonos - Kitchen
   Sonos                           Adding ZonePlayer: 10.0.1.64, RINCON_000E5829E14401400, Sonos - Living Room
   Sonos                           Adding ZonePlayer: 10.0.1.67, RINCON_5CAAFD21E88E01400, Sonos - Madison's Bedroom
   Sonos                           Adding ZonePlayer: 10.0.1.63, RINCON_000E58C47FC401400, Sonos - Master Bathroom
   Sonos                           Adding ZonePlayer: 10.0.1.66, RINCON_5CAAFD21EA7601400, Sonos - Master Bedroom
   Sonos                           Adding ZonePlayer: 10.0.1.65, RINCON_000E58DEE0B001400, Sonos - Pool
   Sonos                           Adding ZonePlayer: 10.0.1.61, RINCON_000E58FE066601400, Sonos - Upstairs Den
   Sonos Error                     Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 47, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-3.indigoPlugin/Contents/Server Plugin/Sonos.py", line 371, in runConcurrentThread
TypeError: int() argument must be a string or a number, not 'NoneType'

   Sonos Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Sonos Error                     Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 47, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-3.indigoPlugin/Contents/Server Plugin/Sonos.py", line 371, in runConcurrentThread
TypeError: int() argument must be a string or a number, not 'NoneType'

   Sonos Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Domotics Pad Mobile Client      Process command: updateMobileDeviceStates
   Domotics Pad Mobile Client ErrorReceived status update for unknown device with Pairing ID: ugX7WLArD9oZVDxl6l0y
   Sonos Error                     Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 47, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-3.indigoPlugin/Contents/Server Plugin/Sonos.py", line 371, in runConcurrentThread
TypeError: int() argument must be a string or a number, not 'NoneType'

   Sonos Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Sonos Error                     Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 47, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-3.indigoPlugin/Contents/Server Plugin/Sonos.py", line 371, in runConcurrentThread
TypeError: int() argument must be a string or a number, not 'NoneType'

   Sonos Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Sonos Error                     Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 47, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-3.indigoPlugin/Contents/Server Plugin/Sonos.py", line 371, in runConcurrentThread
TypeError: int() argument must be a string or a number, not 'NoneType'

   Sonos Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   GreenSky MQTT Bridge            Boat_Temp set to 85.9
   Sonos Error                     Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 47, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-3.indigoPlugin/Contents/Server Plugin/Sonos.py", line 371, in runConcurrentThread
TypeError: int() argument must be a string or a number, not 'NoneType'

   Sonos Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Sonos Error                     Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 47, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-3.indigoPlugin/Contents/Server Plugin/Sonos.py", line 371, in runConcurrentThread
TypeError: int() argument must be a string or a number, not 'NoneType'

   Sonos Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)