Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the emulated switches be detected using the ouimeaux wemo api? #11

Open
pradeepambati opened this issue Feb 12, 2016 · 1 comment
Open

Comments

@pradeepambati
Copy link

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?

@vikrambodicherla
Copy link

vikrambodicherla commented Jun 12, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants