UnboundLocalError: local variable 'l2p' referenced before ..

Posted on
Mon Jan 04, 2021 12:28 am
Bleasel offline
Posts: 48
Joined: Mar 05, 2014
Location: Sydney, AUSTRALIA

UnboundLocalError: local variable 'l2p' referenced before ..

After updating to Indigo 7.5, I am getting an error when the Schedule Event tries to turn Sonos on in the morning.

Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 171, in actionZP_SonosFavorites
File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1773, in actionDirect
UnboundLocalError: local variable 'l2p' referenced before assignment



Any suggestions for correction. Thanks

Posted on
Mon Jan 04, 2021 7:58 am
gt3mike offline
Posts: 177
Joined: Dec 31, 2017
Location: Colorado

Re: UnboundLocalError: local variable 'l2p' referenced befor

I'm seeing something very similar when I attempt to stop a player. Unbound local error in line 1173 of actionDirect.

Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 81, in actionStop
File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1173, in actionDirect
UnboundLocalError: local variable 'CoordinatorIP' referenced before assignment

Posted on
Mon Jan 04, 2021 3:31 pm
Bleasel offline
Posts: 48
Joined: Mar 05, 2014
Location: Sydney, AUSTRALIA

Re: UnboundLocalError: local variable 'l2p' referenced befor

And a further error


Sonos ZonePlayer: Sonos - Library, Remove Playlist: Indigo_RINCON_949F3E8171F601400
Sonos Loaded Playlists... [14]
Trigger Sonos turn on AV
Sonos ZonePlayer: Sonos - Living Room, Current Volume: 25, New Volume: 25
Trigger Sonos Scene
Sonos ZonePlayer: Sonos - Living Room, Play
Sonos Error UPNP Error: Unable to Play the Selected Item
Sonos Error Offending Command -> zoneIP: 192.168.1.51, soapRoot: /MediaRenderer, soapBranch: /Queue, soapAction: SaveAsSonosPlaylist
Sonos Error UPNP Error: Unable to Play the Selected Item
Sonos Error Offending Command -> zoneIP: 192.168.1.56, soapRoot: /MediaRenderer, soapBranch: /Queue, soapAction: SaveAsSonosPlaylist

Posted on
Sun Jan 24, 2021 8:32 pm
Bleasel offline
Posts: 48
Joined: Mar 05, 2014
Location: Sydney, AUSTRALIA

Re: UnboundLocalError: local variable 'l2p' referenced befor

Update: I deleted the offending Schedules and Actions,, and then rewrote them (no change) and the problem has gone.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest