-
Notifications
You must be signed in to change notification settings - Fork 115
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
Windows 10 - No Devices Found #60
Comments
I wish I could figure out what is up with these addresses and why sometimes one works and not the other! MacBook Pro (third generation): Local and global addresses both work. I have not been able to figure out what the determining factor is! |
Well I highly appreciate your work on this! Do you think an RGB to HSBK converter function would be useful to have in this package? I had to write one so I could share it if you like. |
That sounds great! Where were you thinking of putting it? Maybe lifxlan.py outside of the LifxLAN class? Or in a new file? |
I pushed a new 'accessory_functions.py' file. It didn't really fit with any of the existing scripts as far as I could see. Feel free to move it to wherever though. I'm not very familiar with GitHub - does it give you the option to merge it in? |
If you forked or branched the repo, you can create a pull request! You could also post a Gist or something and I can check the file in, but it would be nice to have you listed as a contributor since you're contributing :) |
I am probably wrong here but with the broadcast the new code selects the first network that isn't a localhost one. This is based upon the priority set by the OS. |
Thanks for the heads up.. Had this issue on both a Win 10 and Win 7 machine. |
Was this ever solved? Seems like I'm running into the exact same issue. No lights are detected, broadcast all doesn't work, but I can control my lights from the LIFX windows 10 app. Their updater also discovers devices on my computer so it can definitely see it. |
AFAIK you just have to experiment with different addresses until you find one that works for you. Have you tried the change that worked for me right at the beginning of the thread? |
I couldn't get it to work with that change. I've since switched to using my Pi as a bridge because that worked with no problems. |
I'm back into trying to figure out why this isn't working for me on my desktop. Running the verbose example, I see that the mac addresses are all 00:00:00:00:00:00 and they are timing out. The IP wasn't in the list so I printed that out as well and it's coming back with 192.168.56.1. My router is 192.168.2.1 and my devices are 192.168.2.15 and 192.168.2.16. I tried the fix posted in this thread and set back to 255.255.255.255 but either way, it comes up with that same .56 subnet. If I manually set it to 192.168.2.255 it gives me multiple GetService responses, but only with 1 IP address and that IP address isn't a device connected to my router. Any ideas? Edit Realized I had an adapter for Virtual Box which is where the .56 subnet is coming from. Still doesn't explain why I can't find any devices when set to the proper subnet. |
Can you post the modified code from device.py? That would be really helpful. Also yes, I think a great general solution for the library would be to do what @ceboxsell suggested and send broadcast messages to ALL interfaces. That should fix a lot of these problems. |
I pushed some changes, now broadcast should send broadcast messages to all subnets. The 255.255.255.255 address is totally gone now. Can you pull the code, rebuild, and see if it works? |
Works well for me, have not tried with a 2nd nic in operation yet but going by the code I can't see a problem any more. |
I downloaded the lifxlan repository and installed it on Win 10. https://github.com/mclarkk/lifxlan
However, when I run the hello_world it says found 0 lights.
When I use the 'sniffer' though it picks up packets from my light?
I can see the light in both the Win10 and Android apps.
Cheers.
Addendum: I also checked the IP addresses and confirmed they are on the same subnet.
The text was updated successfully, but these errors were encountered: