fauxmo
fauxmo copied to clipboard
Can the emulated switches be detected using the ouimeaux wemo api?
I am interested in using the emulated switches in conjunction with ouimeaux wemo api. But when I use 'wemo -d list'(ouimeaux wemo api) command in one terminal and i run fauxmo script in another command, I am getting following output:
wemo -d list window:
DEBUG:ouimeaux.discovery:Binding datagram server to 'IP : Port' INFO:ouimeaux.environment:Discovering devices DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900 DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900 DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900 DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900 DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
fauxmo script window: Listening for UPnP broadcasts got local address of 'IP' UPnP broadcast listener: new device registered FauxMo device 'office lights' ready on IP:53729 UPnP broadcast listener: new device registered FauxMo device 'kitchen lights' ready on IP:53730 Entering main loop
Ouimeaux API wasn't able to detect the emulated switches. Is there a way to make it work?
ouimeaux's broadcast differs from what fauxmo's expects to respond to.
If you comment out
and data.find('urn:Belkin:device:**') != -1
from https://github.com/makermusings/fauxmo/blob/master/fauxmo.py#L325, ouimeaux will be able to find your fauxmo virtual device.