-
Notifications
You must be signed in to change notification settings - Fork 116
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
Getting no bulbs, trying to use with ambience #160
Comments
What OS are you on? Are you also on Fedora like the original poster of that issue? Is your network setup pretty normal? What is the prefix of your network's local address? (e.g., 192.168.1.x, 10.0.0.x) There was a recent pull request that changed the way that the library gets the local network address for broadcasting the discovery message. Historically that functionality has had a lot of problems working consistently on every operating system. The code finally got to a place where it was working fine, but it required a third-party library called netifaces that was annoying for people to install, so I recently accepted a pull request to change the code (#129). It's hard to know right now what is causing your issue given the lack of output, but I have my suspicions and I would definitely start by seeing what the output of Sorry I can't be of better help right now -- finishing up my dissertation over the next week. I can only provide high-level guidance about where the problem might be until the dissertation is filed. Let me know what you find and I'll try to follow up. |
I am on Pop!_Os which is an ubuntu fork. My bulbs are on 192.168.1.x. Not sure how to get the output of get_broadcast_addrs(), would I have to put it in an IDE? |
Run this code however you'd prefer:
What does it print out? |
it prints out ['192.168.1.255'] |
Great! So that's not the issue. What does this print out?
|
print(lan.get_devices()) I put quotes around --- to prevent github from putting a line |
Is it recognizing my lights as devices? |
Ah ha! That's great, so the network-based discovery is working, whew! In (You can see the product ID when you print out the device, e.g. with That |
No its 1.2.6, I also dont know why it wouldn't show its just A19 bulbs. When I use this print(lan.get_devices()[0]) it says Product: 93 (Unknown product) and Version: 67305733 |
Your list on products.py is missing 93? I have A19 lifx color bulbs. |
I put lifx white bulbs in that I had that I was going to return and that shows up in ambience although only with the on off function, no dimming or anything, so the program is working just not with my a19 bulbs |
As a suggestion I find it best to download the code from GitHub and install locally. It ensures the latest is installed. I then use the Hello world script to test. |
Wow yeah, product 93 is missing somehow. That shouldn't happen, especially since we switched to generating |
All right, I updated both the source on Github and also the version on |
I cant seem to upgrade it, I installed by source. I cant really find a way to uninstall the old one either. |
To upgrade from source, navigate into the root |
Idk what you mean by root lifxlan folder, I tried just downloading the file off of here and doing python setup.py install in it. Its still the same issue but, pip show lifxlan shows 1.2.6 and not 1.2.7 so not sure if it updated. |
Did you ever install lifxlan via pip, perhaps when following the instructions for Ambience? Ambience may also have installed lifxlan through pip automatically. If lifxlan was ever installed by pip, then Python will still be using the pip version. You should upgrade the pip version by running |
This is working at least in that its showing up as lights with, from lifxlan import * however ambience is still not showing them, perhaps the issue is still an issue with Ambience. |
Great! Glad to have helped. If Ambience isn't working there could be a number of reasons why. I would recommend uninstalling it and reinstalling it fresh first, and if that still doesn't work post an issue on their repo. |
Im getting the issue listed here, https://github.com/LukaJankovic/Ambience/issues/3 if I put this in terminal
$ python3
Python 3.9.2 (default, Feb 20 2021, 00:00:00)
from lifxlan import *
print(LifxLAN().get_lights())
I get
[]
My lifx bulbs are on the same network.
The text was updated successfully, but these errors were encountered: