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't discover some devices #4

Closed
GINNOV opened this issue Feb 20, 2018 · 7 comments
Closed

can't discover some devices #4

GINNOV opened this issue Feb 20, 2018 · 7 comments

Comments

@GINNOV
Copy link

GINNOV commented Feb 20, 2018

thank you for sharing this project - very helpful and well structured.
I can discover my Sonos in no time just like in your readme is documented, however with WEMO switches I don't even receive a callback after the M-SEARCH. Any clue on what could be the issue or where to look to resolve?

I know that you don't have time, I am just looking for clues and resolve on my own.
thz

@paulbatessonos
Copy link

Have you used other libraries to discover WEMO devices? Some device need UPnP to be enabled for SSDP. Also, ensure you are searching for devices/services as appropriate. You can try searching for all devices/services and see what comes back

@GINNOV
Copy link
Author

GINNOV commented Feb 25, 2018

I whipped up a node and python script to test if I was using the correct urn and way of finding the devices and yes indeed the switches are found. There's no swift library for wemo so I was hoping of using this one.

ssdp:all just returns everything that I got on the network but wemo devices

@happycodelucky
Copy link
Owner

I'm wondering if they get discarded due to missing information. You don't happen to have a capture of the SSDP headers for Wemo devices? Did you connect a logger to SwiftSSDP? You might see more information about discovery there?

I have node projects myself, but only one Wemo device for a timer. I can check if via SSDP + node I can see if and inspect myself.

@GINNOV
Copy link
Author

GINNOV commented Mar 4, 2018

oh I had not noticed the notification of your reply. Sorry.
Yes, I have attacehd the key three wemo definitions.

wemo.zip

@happycodelucky
Copy link
Owner

happycodelucky commented Mar 12, 2018

@GINNOV how are you constructing your search target? Looks like you should be using Belkin as the value for the schema.

For light switches the device type is urn:Belkin:device:lightswitch:1, which would require the search type to be constructed as:

SSDPSearchTarget.deviceType(schema: 'Belkin', deviceType: "lightswitch", version: 1)

@GINNOV
Copy link
Author

GINNOV commented Mar 16, 2018

Yes, I do.
My code matches yours.
I also enabled the logger to see everything that is trapped before it get parsed and I still don't see any Belkin device at all.

@ghost
Copy link

ghost commented Jun 29, 2018

Try to avoid this guy

https://github.com/rob-nash/Rotary/issues/1

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

3 participants