sonos errors 9.1 action group

Posted on
Tue Feb 16, 2016 6:29 am
Seeker offline
Posts: 440
Joined: Aug 05, 2013

sonos errors 9.1 action group

I just noticed a scheduled action group to play a sonos channel gives me this error:

Traceback (most recent call last):
File "plugin.py", line 184, in actionZP_RT_FavStation
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1422, in actionDirect
<type 'exceptions.UnboundLocalError'>: local variable 'CoordinatorIP' referenced before assignment

everything else with the plugin seems to work fine, it's just this one action group that does not play.

any ideas?

Posted on
Tue Feb 16, 2016 7:26 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: sonos errors 9.1 action group

Is the ZonePlayer in this action part of a group?

Posted on
Tue Feb 16, 2016 9:49 am
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: sonos errors 9.1 action group

You mean a stereo pair? No, this particular unit is a standalone zone.

Posted on
Tue Feb 16, 2016 4:38 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: sonos errors 9.1 action group

i think i misunderstood you. yes, the particular unit starts out as grouped with another unit. i think this is where the problem is.

Posted on
Thu Feb 18, 2016 6:21 am
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: sonos errors 9.1 action group

Still not fully working, but most of the plugin functions work great. On one of my four zones, i get the error below when i use sonos action 'play radiotime favorite'. The first run below is on the problem zone. the next three are where i switch the action group to other zones. they work fine.

all zones are set to standalone.

Any ideas?

Code: Select all
Feb 18, 2016, 6:16:28 AM
  Action Group                    sonos test
  Sonos Error                     Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 184, in actionZP_RT_FavStation
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1422, in actionDirect
<type 'exceptions.UnboundLocalError'>: local variable 'CoordinatorIP' referenced before assignment


Feb 18, 2016, 6:17:34 AM
  Action Group                    sonos test

Feb 18, 2016, 6:18:22 AM
  Action Group                    sonos test

Feb 18, 2016, 6:18:50 AM
  Action Group                    sonos test

Feb 18, 2016, 6:19:16 AM
  Action Group                    sonos test

Posted on
Thu Feb 18, 2016 6:48 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: sonos errors 9.1 action group

I may have a logic bug, but suspect that events are not coming in when they should to update the required states. I'd like you to restart the plugin and try again -- but before you do that, can you tell me the values of these states for the problem ZonePlayer: ZP_LocalUID, GROUP_Name, ZoneGroupID

Seeker wrote:
Still not fully working, but most of the plugin functions work great. On one of my four zones, i get the error below when i use sonos action 'play radiotime favorite'. The first run below is on the problem zone. the next three are where i switch the action group to other zones. they work fine.

all zones are set to standalone.

Any ideas?

Code: Select all
Feb 18, 2016, 6:16:28 AM
  Action Group                    sonos test
  Sonos Error                     Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 184, in actionZP_RT_FavStation
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1422, in actionDirect
<type 'exceptions.UnboundLocalError'>: local variable 'CoordinatorIP' referenced before assignment


Feb 18, 2016, 6:17:34 AM
  Action Group                    sonos test

Feb 18, 2016, 6:18:22 AM
  Action Group                    sonos test

Feb 18, 2016, 6:18:50 AM
  Action Group                    sonos test

Feb 18, 2016, 6:19:16 AM
  Action Group                    sonos test

Posted on
Thu Feb 18, 2016 7:02 am
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: sonos errors 9.1 action group

The plugin restart fixed it temporarily.

here are the values from the problem zone (sonos bedroom play 1 new)

before restart
ZP_LocalUID=RINCON_B8E93780254001400
GROUP_Name=RINCON_B8E93780254001400:530
ZoneGroupID=RINCON_B8E93780254001400:530

after restart
ZP_LocalUID=RINCON_B8E93780254001400
GROUP_Name=RINCON_B8E93780254001400:531
ZoneGroupID=RINCON_B8E93780254001400:531

after plugin restart, the simple action group to play radio time on the bedroom unit works without error.

however, then i grouped the bedroom to the living room (living room master), rand an action to set bedroom to standalone. that worked, then when i try to play the bedroom unit i get the error.

sonos test action is play radio time fav on bedroom
sonos test copy is set bedroom unit to standalone

Code: Select all
Sonos                           ZonePlayer: S2GR left, Save Queue: Indigo_RINCON_000E588D1EC601400
  Sonos                           LineIn: RINCON_000E588D1EC601400, Audio Component:GR (L)
  Sonos                           ZonePlayer: S3BA, Nothing in Queue to Save
  Sonos                           ZonePlayer: S4GAR, Save Queue: Indigo_RINCON_B8E93780254E01400
  Sonos                           ZonePlayer: sonos bedroom play1 new, Remove Playlist: Indigo_RINCON_B8E93780254001400
  Sonos                           ZonePlayer: sonos bedroom play1 new, Nothing in Queue to Save
  Sonos                           Loaded Playlists... [6]
  Sonos                           Loaded Playlists... [6]

Feb 18, 2016, 6:56:34 AM
  Action Group                    sonos test

Feb 18, 2016, 6:57:52 AM
  Action Group                    sonos test

Feb 18, 2016, 6:58:09 AM
  Sonos                           ZonePlayer: sonos bedroom play1 new, Cannot Save Queue for Slave
  Action Group                    sonos test copy
  Sonos                           remove zone from group: sonos bedroom play1 new

Feb 18, 2016, 6:58:40 AM
  Action Group                    sonos test
  Sonos Error                     Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 184, in actionZP_RT_FavStation
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1422, in actionDirect
<type 'exceptions.UnboundLocalError'>: local variable 'CoordinatorIP' referenced before assignment


Posted on
Thu Feb 18, 2016 7:05 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: sonos errors 9.1 action group

So I understand. The zone was not grouped before the restart. You then grouped it with the Sonos app and ungrouped it with Indigo. This is when failure occurred?

Seeker wrote:
The plugin restart fixed it temporarily.

here are the values from the problem zone (sonos bedroom play 1 new)

before restart
ZP_LocalUID=RINCON_B8E93780254001400
GROUP_Name=RINCON_B8E93780254001400:530
ZoneGroupID=RINCON_B8E93780254001400:530

after restart
ZP_LocalUID=RINCON_B8E93780254001400
GROUP_Name=RINCON_B8E93780254001400:531
ZoneGroupID=RINCON_B8E93780254001400:531

after plugin restart, the simple action group to play radio time on the bedroom unit works without error.

however, then i grouped the bedroom to the living room (living room master), rand an action to set bedroom to standalone. that worked, then when i try to play the bedroom unit i get the error.

sonos test action is play radio time fav on bedroom
sonos test copy is set bedroom unit to standalone

Code: Select all
Sonos                           ZonePlayer: S2GR left, Save Queue: Indigo_RINCON_000E588D1EC601400
  Sonos                           LineIn: RINCON_000E588D1EC601400, Audio Component:GR (L)
  Sonos                           ZonePlayer: S3BA, Nothing in Queue to Save
  Sonos                           ZonePlayer: S4GAR, Save Queue: Indigo_RINCON_B8E93780254E01400
  Sonos                           ZonePlayer: sonos bedroom play1 new, Remove Playlist: Indigo_RINCON_B8E93780254001400
  Sonos                           ZonePlayer: sonos bedroom play1 new, Nothing in Queue to Save
  Sonos                           Loaded Playlists... [6]
  Sonos                           Loaded Playlists... [6]

Feb 18, 2016, 6:56:34 AM
  Action Group                    sonos test

Feb 18, 2016, 6:57:52 AM
  Action Group                    sonos test

Feb 18, 2016, 6:58:09 AM
  Sonos                           ZonePlayer: sonos bedroom play1 new, Cannot Save Queue for Slave
  Action Group                    sonos test copy
  Sonos                           remove zone from group: sonos bedroom play1 new

Feb 18, 2016, 6:58:40 AM
  Action Group                    sonos test
  Sonos Error                     Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 184, in actionZP_RT_FavStation
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1422, in actionDirect
<type 'exceptions.UnboundLocalError'>: local variable 'CoordinatorIP' referenced before assignment


Posted on
Thu Feb 18, 2016 7:28 am
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: sonos errors 9.1 action group

Yes

Posted on
Thu Feb 18, 2016 7:32 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: sonos errors 9.1 action group

And I consistently replicate the issue on my end. I will investigate. In the meanwhile, if you are desperate to get back to a working state, you can switch the event processor back to Coherence in the main plugin configuration.

Posted on
Thu Feb 18, 2016 7:53 am
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: sonos errors 9.1 action group

Awesome! Thanks

Posted on
Thu Feb 18, 2016 6:43 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: sonos errors 9.1 action group

nlagaros wrote:
And I consistently replicate the issue on my end. I will investigate. In the meanwhile, if you are desperate to get back to a working state, you can switch the event processor back to Coherence in the main plugin configuration.


Nick, I just checked this when I got home and mine was set to use coherence. That was how it defaulted when I upgraded, I guess. I switched it to the soco and get the same results. So I get the same behavior with either processor selected.

Posted on
Sat Feb 20, 2016 6:25 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: sonos errors 9.1 action group

Would you try downloading the new version of the plugin (v0.9.2) that I just posted. I think it will correct most of what is going on. Thanks.

Seeker wrote:
nlagaros wrote:
And I consistently replicate the issue on my end. I will investigate. In the meanwhile, if you are desperate to get back to a working state, you can switch the event processor back to Coherence in the main plugin configuration.


Nick, I just checked this when I got home and mine was set to use coherence. That was how it defaulted when I upgraded, I guess. I switched it to the soco and get the same results. So I get the same behavior with either processor selected.

Posted on
Sat Feb 20, 2016 6:40 am
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: sonos errors 9.1 action group

Thanks.

Installed 9.2, a quick test of the problem actions (ungroup, play radio time) work fine now. also did a quick test of other functions and all seems normal. using soco processor. I'll play around some more today, but it looks like this issue is fixed! Thanks again!!

Posted on
Sat Feb 20, 2016 6:45 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: sonos errors 9.1 action group

Awesome!

Seeker wrote:
Thanks.

Installed 9.2, a quick test of the problem actions (ungroup, play radio time) work fine now. also did a quick test of other functions and all seems normal. using soco processor. I'll play around some more today, but it looks like this issue is fixed! Thanks again!!

Who is online

Users browsing this forum: No registered users and 14 guests