Yes, my SONOS system is on the 192.168.1.x subnet.
I tried restarting my computer, restarting my router, unplugging and replugging my SONOS bridge, and powering everything down, waiting a few minutes, and powering everything back up. I've tried running EG as administrator, and not. I unchecked the "autostart eventghost on system startup" option. Same result exactly as in my previous note.
I'm running windows 8.1 by the way.
If you have any other ideas, including tweaks to the python code that I might make, let me know.
Thanks for you help. When I had this running briefly, it was brilliant.
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
SONOS Plugin
Re: SONOS Plugin
Hi egbaud,
you can try changing line 1256:
1.5 is the time the plugin waits for SONOS ZP responses when looking for a ZPs on the network. You can change this to something larger like 3 seconds. NOTE that during this time, EG will be held in a loop until the timeout time has passed.
1.5 seconds should be plenty of time though, so if this doesn't help, my next guess is that windows or another firewall is blocking the broadcast that the plugin sends out to the network. So I would double check to make sure the firewall is allowing EG to send broadcasts. Try disabling all firewalls temporarily and try again.
The plugin sends a broadcast message (standard discover message):
Send to: 239.255.255.250:1900
data:
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 3
ST: urn:schemas-upnp-org:device:ZonePlayer:1
I'm currently running the plugin on 2-3 Windows 8 machines and 1 windows 7 machine, and on a Mac running a virtual machine for windows so I i would expect it to work on your setup. Hopefully the things mentioned above will work.
Also, if you're not aware, you can simply disable the plugin within EG wait a few seconds and re-enable it to see if the search for Zone Players is successful or not (EG will have to be restarted if you change the python code though). To do that you can select the plugin in the EG window, then select the red X in the menu bar. Wait around 5 seconds and then press the red X again to re-enable the plugin. The plugin will restart and search for the ZPs again.
you can try changing line 1256:
Code: Select all
s.settimeout(1.5)#very important if useing while loop to receive all responses,if this is removed, loop occurs1.5 seconds should be plenty of time though, so if this doesn't help, my next guess is that windows or another firewall is blocking the broadcast that the plugin sends out to the network. So I would double check to make sure the firewall is allowing EG to send broadcasts. Try disabling all firewalls temporarily and try again.
The plugin sends a broadcast message (standard discover message):
Send to: 239.255.255.250:1900
data:
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 3
ST: urn:schemas-upnp-org:device:ZonePlayer:1
I'm currently running the plugin on 2-3 Windows 8 machines and 1 windows 7 machine, and on a Mac running a virtual machine for windows so I i would expect it to work on your setup. Hopefully the things mentioned above will work.
Also, if you're not aware, you can simply disable the plugin within EG wait a few seconds and re-enable it to see if the search for Zone Players is successful or not (EG will have to be restarted if you change the python code though). To do that you can select the plugin in the EG window, then select the red X in the menu bar. Wait around 5 seconds and then press the red X again to re-enable the plugin. The plugin will restart and search for the ZPs again.
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Re: SONOS Plugin
Success!
I added a firewall rule to allow EG outbound messages, rebooted, and that seems to have fixed it. Fingers crossed it keeps working.
Strange that the firewall didn't ask me the first time EG tried to do it.
Thanks very much for all your help. Having looked through your plugin code for a while last night, I'm very impressed by the amount of effort you've obviously put into this. The UPNP stuff alone is daunting.
I added a firewall rule to allow EG outbound messages, rebooted, and that seems to have fixed it. Fingers crossed it keeps working.
Strange that the firewall didn't ask me the first time EG tried to do it.
Thanks very much for all your help. Having looked through your plugin code for a while last night, I'm very impressed by the amount of effort you've obviously put into this. The UPNP stuff alone is daunting.
Re: SONOS Plugin
Code: Select all
Having looked through your plugin code for a while last night, I'm very impressed by the amount of effort you've obviously put into this. The UPNP stuff alone is daunting.I'm kind of new to python and this so it's been a task that allows me to learn and challenge myself. The code is quite ugly right now but it seems to work pretty well. Hopefully it was readable enough
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Re: SONOS Plugin
I posted version 0.8.
This version is mostly bug fixes.
I have also moved it to a new topic so the latest version will always at the top:
http://eventghost.org/forum/viewtopic.p ... 05f#p30309
This version is mostly bug fixes.
I have also moved it to a new topic so the latest version will always at the top:
http://eventghost.org/forum/viewtopic.p ... 05f#p30309
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!