Page 1 of 1

error after playing announcement

PostPosted: Mon Nov 27, 2017 4:17 pm
by dduff617
i'm testing the group announcement feature. Trying to read a simple message. The command succeeds - text gets read, but it is followed by an error in the logs, as shown:
Code: Select all

   Action Group                    Dinner Time.
   Sonos                           Announcement: It's dinner time.   Please come to the table now., Volume: 50
   Sonos                           remove zone from group: Sonos BSMT
   Sonos                           remove zone from group: Sonos FR
   Sonos                           remove zone from group: Sonos KIT
   Sonos                           remove zone from group: Sonos TOY
   Sonos                           ZonePlayer: Sonos BSMT, Current Volume: 35, New Volume: 50
   Sonos                           ZonePlayer: Sonos FR, Current Volume: 60, New Volume: 50
   Sonos                           ZonePlayer: Sonos KIT, Current Volume: 60, New Volume: 50
   Sonos                           ZonePlayer: Sonos TOY, Current Volume: 48, New Volume: 50
   Sonos                           Announcement Length: 3.4041723356
   Sonos                           ZonePlayer: Sonos BSMT, Play
   Sonos                           remove zone from group: Sonos BSMT
   Sonos                           remove zone from group: Sonos FR
   Sonos                           remove zone from group: Sonos KIT
   Sonos                           remove zone from group: Sonos TOY
   Sonos                           ZonePlayer: Sonos BSMT, Clear Queue
   Sonos                           ZonePlayer: Sonos FR, Clear Queue
   Sonos Error                     Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 198, in actionZP_announcementMP3
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 2045, in actionAnnouncement
UnboundLocalError: local variable 'l2p' referenced before assignment



looks like there is some problem with the code that is supposed to restore the previous state of each player.

thanks.

Re: error after playing announcement

PostPosted: Mon Nov 27, 2017 4:19 pm
by dduff617
by the way, i'm running indigo 7.1.1
running sonos plugin 1.0.8
using apple voice to synthesize speech.