Great plug-in! I have setup Sonos to play a pre-announcement chime before ever announcement message. It is working but the unlink function gets messed up. I am not using any beta of the plug-in. Sonos V3.3
For example, if the radio (or anything else) is playing and an announcement is needed... Sonos plays the wave file and the announcement is made. But the radio does not continue to play after the announcement. It will usually go back to the radio station but not play it. I think I know what is happening. Right after the chime is played it appears that the Sonos is about to play the radio again but then of course the announcement is made next. Before I added the chime the radio would return playing after announcements. These are my commands/scripst/logs:
Device Command: Sonos SONOSCONTROLLER Music UPNP Master Value Set set to All Zones Mute Off Run script: &hs.speakex 60,"D:\shares\Music\Pre_announcementchimes\timbre1.wav" Run script: &hs.speakex 60, "please lock front door"
05/11/2010 10:16:13 AM Event Event Trigger "Front door unlocked" 05/11/2010 10:16:13 AM Device Control Device: Sonos SONOSCONTROLLER Music UPNP Master ([1) Value set to 3 05/11/2010 10:16:13 AM Event Running script statement immediately: &hs.speakex 60,"D:\shares\Music\Pre_announcement chimes\timbre1.wav" 05/11/2010 10:16:13 AM SONOSCONTROLLER SetIOEx called for SONOSCONTROLLER Sonos Music UPNP Master, Cmd=19 05/11/2010 10:16:13 AM SONOSCONTROLLER SpeakIn announcement chimes\timbre1.wav, Wait=False, called for Device = 60, Text = D:\shares\Music\Pre_Host = 05/11/2010 10:16:13 AM SONOSCONTROLLER SpeakerProxy activated with Device = 0 Text = D:\shares\Music\Pre_announcement chimes\timbre1.wav and LinkgroupName = TTS 05/11/2010 10:16:13 AM SONOSCONTROLLER HandleLinking called with LinkgroupName = TTS and OnEvent = True 05/11/2010 10:16:14 AM SONOSCONTROLLER HandleLinking done with LinkgroupName = TTS and OnEvent = True 05/11/2010 10:16:18 AM SONOSCONTROLLER HandleLinking called with LinkgroupName = TTS and OnEvent = False 05/11/2010 10:16:19 AM SONOSCONTROLLER HandleLinking done with LinkgroupName = TTS and OnEvent = False 05/11/2010 10:16:19 AM Event Running script statement immediately: &hs.speakex 60, "please lock front door" 05/11/2010 10:16:19 AM SONOSCONTROLLER SpeakIn called for Device = 60, Text = please lock front door, Wait=False, Host = 05/11/2010 10:16:19 AM SONOSCONTROLLER SpeakerProxy activated with Device = 0 Text = please lock front door and LinkgroupName = TTS 05/11/2010 10:16:19 AM SONOSCONTROLLER HandleLinking called with LinkgroupName = TTS and OnEvent = True 05/11/2010 10:16:22 AM Device Update Device: Z-Wave Z-Wave Interface Dinning Rm Luminance value set to 58 (5800/%) 05/11/2010 10:16:22 AM SONOSCONTROLLER HandleLinking done with LinkgroupName = TTS and OnEvent = True 05/11/2010 10:16:22 AM TTS Speak: ()lease lock front door 05/11/2010 10:16:24 AM SONOSCONTROLLER HandleLinking called with LinkgroupName = TTS and OnEvent = False 05/11/2010 10:16:24 AM SONOSCONTROLLER HandleLinking done with LinkgroupName = TTS and OnEvent = False
To fix this, is there a way to create the script so that the Sonos is linked and wait until both the chime and announcement are done and then unlink the Sonos?
Note. I noticed if the zone player is muted the announcement would be muted also. That is why I use the command for All zones mute off. Is there a command to just turn off the mute on the zone player that is doing the announcement?
Deon
For example, if the radio (or anything else) is playing and an announcement is needed... Sonos plays the wave file and the announcement is made. But the radio does not continue to play after the announcement. It will usually go back to the radio station but not play it. I think I know what is happening. Right after the chime is played it appears that the Sonos is about to play the radio again but then of course the announcement is made next. Before I added the chime the radio would return playing after announcements. These are my commands/scripst/logs:
Device Command: Sonos SONOSCONTROLLER Music UPNP Master Value Set set to All Zones Mute Off Run script: &hs.speakex 60,"D:\shares\Music\Pre_announcementchimes\timbre1.wav" Run script: &hs.speakex 60, "please lock front door"
05/11/2010 10:16:13 AM Event Event Trigger "Front door unlocked" 05/11/2010 10:16:13 AM Device Control Device: Sonos SONOSCONTROLLER Music UPNP Master ([1) Value set to 3 05/11/2010 10:16:13 AM Event Running script statement immediately: &hs.speakex 60,"D:\shares\Music\Pre_announcement chimes\timbre1.wav" 05/11/2010 10:16:13 AM SONOSCONTROLLER SetIOEx called for SONOSCONTROLLER Sonos Music UPNP Master, Cmd=19 05/11/2010 10:16:13 AM SONOSCONTROLLER SpeakIn announcement chimes\timbre1.wav, Wait=False, called for Device = 60, Text = D:\shares\Music\Pre_Host = 05/11/2010 10:16:13 AM SONOSCONTROLLER SpeakerProxy activated with Device = 0 Text = D:\shares\Music\Pre_announcement chimes\timbre1.wav and LinkgroupName = TTS 05/11/2010 10:16:13 AM SONOSCONTROLLER HandleLinking called with LinkgroupName = TTS and OnEvent = True 05/11/2010 10:16:14 AM SONOSCONTROLLER HandleLinking done with LinkgroupName = TTS and OnEvent = True 05/11/2010 10:16:18 AM SONOSCONTROLLER HandleLinking called with LinkgroupName = TTS and OnEvent = False 05/11/2010 10:16:19 AM SONOSCONTROLLER HandleLinking done with LinkgroupName = TTS and OnEvent = False 05/11/2010 10:16:19 AM Event Running script statement immediately: &hs.speakex 60, "please lock front door" 05/11/2010 10:16:19 AM SONOSCONTROLLER SpeakIn called for Device = 60, Text = please lock front door, Wait=False, Host = 05/11/2010 10:16:19 AM SONOSCONTROLLER SpeakerProxy activated with Device = 0 Text = please lock front door and LinkgroupName = TTS 05/11/2010 10:16:19 AM SONOSCONTROLLER HandleLinking called with LinkgroupName = TTS and OnEvent = True 05/11/2010 10:16:22 AM Device Update Device: Z-Wave Z-Wave Interface Dinning Rm Luminance value set to 58 (5800/%) 05/11/2010 10:16:22 AM SONOSCONTROLLER HandleLinking done with LinkgroupName = TTS and OnEvent = True 05/11/2010 10:16:22 AM TTS Speak: ()lease lock front door 05/11/2010 10:16:24 AM SONOSCONTROLLER HandleLinking called with LinkgroupName = TTS and OnEvent = False 05/11/2010 10:16:24 AM SONOSCONTROLLER HandleLinking done with LinkgroupName = TTS and OnEvent = False
To fix this, is there a way to create the script so that the Sonos is linked and wait until both the chime and announcement are done and then unlink the Sonos?
Note. I noticed if the zone player is muted the announcement would be muted also. That is why I use the command for All zones mute off. Is there a command to just turn off the mute on the zone player that is doing the announcement?
Deon
Comment