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

compatibility with v2 api #12

Open
ptonelli opened this issue Sep 13, 2015 · 2 comments
Open

compatibility with v2 api #12

ptonelli opened this issue Sep 13, 2015 · 2 comments

Comments

@ptonelli
Copy link

I am trying to use pylifx to control multiple lifx bulbs. If I simply use the controller, I can switch all lamps. If I use the find_bulbs() method, I can see all the available bulbs in .bulbs, but I cannot control the bulbs separately.

This snippet works:

lc = pylifx.LifxController("4C:49:46:58:XX:XX")
lc.find_bulbs()
lc.off()

This one does not:

lc = pylifx.LifxController("4C:49:46:58:XX:XX")
lc.find_bulbs()
for bulb in lc.bulbs:
    bulb.off()

I tried to go into the API, but the messages seem to have changed. I believe lifxjs has similar issues

micolous added a commit to micolous/pylifx that referenced this issue Sep 16, 2015
@ptonelli
Copy link
Author

Thank you for the commit, It does not yet work for me, I need to dig why. I will do it as soon as possible.

@ptonelli
Copy link
Author

ptonelli commented Oct 6, 2015

sorry, I switched to python-lifx-sdk which was written for the v2 api and works out of the box, so I will not be of much help...

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

1 participant