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

LiFX 2.0 Protocol #34

Open
angeloxx opened this issue Feb 1, 2015 · 17 comments
Open

LiFX 2.0 Protocol #34

angeloxx opened this issue Feb 1, 2015 · 17 comments

Comments

@angeloxx
Copy link

angeloxx commented Feb 1, 2015

LiFX 2.0 firmware upgrade broke the protocol.
The On/Off command changes to: proto=0x14, packettype=0x75 with the same payload, The SetColor command changes to proto=0x14, same packettype and payload.

@angeloxx
Copy link
Author

angeloxx commented Feb 1, 2015

You can still use 0x15, but the proto changes to 0x14

@ipa64
Copy link

ipa64 commented Feb 23, 2015

Hi, I use kayno project, but from aps lifx2.0 it's not working anymore. Is there a chance to ge a modified library?
Thanks
https://github.com/kayno/arduinolifx

@magicmonkey
Copy link
Owner

Apologies for the delay, I've been having some trouble with my bulbs since the firmware upgrade. I'll look into it this weekend and see where I can get.

@fitch
Copy link

fitch commented Mar 2, 2015

@angeloxx Were you able to fix this? Can you provide any code diffs?

@ipa64
Copy link

ipa64 commented Mar 2, 2015

Here
https://github.com/kayno/arduinolifx

Le 2 mars 2015 à 13:33, Markus Rautopuro [email protected] a écrit :

@angeloxx Were you able to fix this? Can you provide any code diffs?


Reply to this email directly or view it on GitHub.

@ryanj
Copy link

ryanj commented Mar 4, 2015

👍

@fitch
Copy link

fitch commented Mar 4, 2015

@ipa64 Sorry for a stupid question, but how does your link show a correction to this node.js library?

@magicmonkey
Copy link
Owner

Apologies it's taking me a while to get to this, it took me longer than expected to get the new firmware working with the proper Lifx apps let alone the little nodeJS library. I intend to merge the PRs, test it, then issue an update to the npm package; I just need to get the time to do it... hopefully in the next few days (although I thought that a few days ago).

@fitch
Copy link

fitch commented Mar 4, 2015

(Meanwhile, check this out: it seems that this fork https://github.com/stormboy/lifxjs works with LIFX 2.0.)

@ryanj
Copy link

ryanj commented Mar 5, 2015

Thanks @fitch - I tried the stormboy/lifxjs repo, but I wasn't able to get it to discover, or to control my bulbs (which are running the 2.0 firmware).

@fitch
Copy link

fitch commented Mar 5, 2015

Ok, maybe it's still incomplete. I have 3 bulbs with 2.0 firmware and running this with https://github.com/stormboy/lifxjs works:

yyy@xxx ~/x/lifxjs -> node cli.js 
Keys:
Press 1 to turn the lights on
..
New gateway found: 192.168.100.3
New gateway found: 192.168.100.12
Lights on
New gateway found: 192.168.100.11
Lights off
Lights on

(Lights turn on and off :), and I can set the color also.)

@ryanj
Copy link

ryanj commented Mar 6, 2015

MY BAD - my firewall was blocking port 56700
I'm able to detect the bulbs now. Thanks for testing @fitch

@magicmonkey
Copy link
Owner

Thanks all, I've just got some time and merged a bunch of pending pull requests, and also pulled stormboy/master. Some quick testing suggests that it still works with my bulbs, I'll roll an NPM release later if I don't find any problems.

@fitch
Copy link

fitch commented Mar 8, 2015

I didn't manage to control individual bulbs with stormboy/master and commit c1e346d. I'm trying to pass the bulb address (as a hex string like d073d5010064) to lx.lightsColour hue, saturation, brightness, kelvin, time, bulbAddress, but it doesn't do anything. Controlling all the lights (without the bulb address) works. I'll try later if I can manage what I'm doing wrong.

@wiegraff13
Copy link

angeloxx suggestion of using protocol 0x14 for setLightColour seems to have done the trick for me as per my branch: https://github.com/wiegraff13/lifxjs

@wiegraff13
Copy link

It appears that packet 0x65 no longer causes the light to respond with a 0x6b packet.

Correction: My issue was actually in the code above the lifx.js. The requestStatus function works on 2.0 as is.

@MariusRumpf
Copy link

There are now official documentations for version 2.0
https://github.com/LIFX/lifx-protocol-docs

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

7 participants