techoguy wrote:Hi Telorast,
Thanks for testing this.
Sorry i'm just getting back to you, I didn't receive the typical notification and just happened to look at the thread again.
I still have one problem, there is no event generated when a new speaker is discovered:
When you are testing this, i'm assuming you have all 3 ZPs powered up and connected then you disconnect (power down) one of the ZPs (Kitchen) then power it back up?
When you test this, do you see a Zone Group topology and event that shows that the ZP has been removed from EG?
The reason i ask is that the SONOS network can take a long time (as long as 30 minutes) to realize that a ZP has been removed. The EG plugin is the same way. So if the plugin doesn't realize it's been removed then it's powered back on, it will see it come up but not realize it's new which is what triggers the event in EG. This was primarily programmed to capture new ZPs added, not necessarily capture ZPs that are powered down and back on.
Can you explain a little about how/why you are wanting this event trigger and maybe i can try to tweak the code to do what you're wanting better or add a new event.
The reason I'm interested in the event is because I bought a Play:1 that is designed to work in damp places. So I put it in my bathroom and the only power source in my bathroom is tied to the lights, so it only gets power when I turn the lights on in the bathroom. Meaning it will go on and off fairly often. This makes it lose track of what it was playing last so I was thinking I could see when it comes online and load a stream and pause it so I could start playing using the play button on the speaker. Or I could give a command to start playing as soon as it comes online if I plan to take a shower for example. Right now I have to wait for it to register on the network and everything before I can tell it to start. Solving it by retrying a few times and hope that at least one will work has the drawback of stopping playback every time it tries, at least the way I have it set up right now. Since I can't trust EventGhost to do it I ask my phone to start the stream through Macronos.
It usually only takes a minute or so before the speaker dissapears from the Sonos app. I'd have to test some more with longer in between reactivation attempts but I don't think it is ever removed in EventGhost even if receiving a topolygy message.
Example from last time with Living Room being turned on:
08:10:03   --- EVENT Received --- ZoneGroupTopology from BRIDGE
08:10:03   RINCON_B8E93751634201400   192.168.0.130    Bathroom :coordinator -uuid:RINCON_B8E93751634201400_sub0000000028-
08:10:03   RINCON_B8E9371800D601400   192.168.0.129    BRIDGE (Invisible) :coordinator --
08:10:16   Main.EventGhost.Speakers.On
08:10:16      Speakers On
08:10:16   TellStickDuo.Speakers.ON u"selflearning-switch:gao.6"
08:10:48   --- EVENT Received --- ZoneGroupTopology from BRIDGE
08:10:48   RINCON_000E58B9705D01400   192.168.0.150    Living Room :coordinator -uuid:RINCON_000E58B9705D01400_sub0000000015-
08:10:48   RINCON_B8E93751634201400   192.168.0.130    Bathroom :coordinator -uuid:RINCON_B8E93751634201400_sub0000000028-
08:10:48   RINCON_B8E9371800D601400   192.168.0.129    BRIDGE (Invisible) :coordinator --