-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Implement LIFX Binding #215
Comments
From teichsta on May 07, 2013 08:47:57 Summary: Implement LIFX Binding (was: LIFX binding) |
From teichsta on May 21, 2013 14:17:49 unassigned to make current state more transparent |
From kai.openhab on May 22, 2013 01:15:11 Owner: --- |
From teichsta on May 23, 2013 08:49:22 Status: Accepted |
From teichsta on November 05, 2013 14:47:54 Labels: To-Github |
Just to add a bit of context - https://npmjs.org/package/lifx |
@LIFX have released an official public API. The github repos currently contain reference implementations in Ruby, Objective-C and for the Android SDK. |
Yes - they claim that java is coming soon, so as soon as it's out we will I've started work on the binding skeleton so should be fairly quick to implement once the right Java SDK is out. Another option is to integrate the Ruby version via JRuby but that seems like a bit of an overkill :) On Sat, Apr 12, 2014 at 5:33 AM, phardy notifications@github.com wrote:
|
It takes terribly long for the Java-API to arrive. |
For the record: The LIFX library depends on |
I know, they are taking their sweet time :(. In the meantime, I use exec On Fri, May 9, 2014 at 11:51 PM, Christoffer Sawicki <
|
So as a first step, use the list_lights to get the raw addresses of your import org.openhab.core.library.types.* var HSBType hsbValueBulbs var HSBType hsbValue rule "Set moodlight colours"
end Just ignore the second RGB part - that is for my other homebrew lamp :) On Sat, May 10, 2014 at 1:10 AM, Petr Klus petr@klus.co.uk wrote:
|
It's not very clean atm but works reliably for my case. Do not want to spend too much time developing something that is going to be obsolete in a matter of months |
Regarding looking into Android version - Yes, that is a possibility I will
|
Thanks for the infos! I am a bit reluctant to go with the Python solution. I'll rather wait a bit longer for a proper Java binding... If they do not tell any ETA for the Java-API, I guess you better start sooner than later looking into the Android version ;-) |
Update - got a quick reply on twitter saying that the Lifx guys are now focusing their efforts on improving the bulb firmware. Shortly after that, the beta firmware surfaced and is breaking the currently reverse-engineered protocol: So I think it would be probably best to wait for official Java API |
But wouldn’t it be an option to use the lify-java project (and hoping that they update it according to the newer firmware version?) Regards, Am 07 Jun 2014 um 14:23 schrieb petrklus notifications@github.com:
|
I contacted LIFX about their official java sdk. This is what I got: "Hey Christoph, https://github.com/besherman/lifx-sdk-java It seems to be newer than the one petrklus posted. |
This is quite contrary to what they announced a few weeks ago... |
Hi Kai! I am at the moment testing the ruby gem with HTTP binding on top and I am Best, Petr On Tue, Jul 15, 2014 at 9:47 AM, Kai Kreuzer notifications@github.com
|
That's a pity, I had hoped you would pick up this task. Wouldn't you agree that a dedicated LiFX binding in Java would be so much nicer than fiddling with Ruby and HTTP...? |
Absolutely! It's more a time issue at this moment to be absolutely honest - So I would still like to do it but do not want to be stopping anybody else On Fri, Jul 18, 2014 at 4:55 PM, Kai Kreuzer notifications@github.com
|
Any progress? In the following video Kai shows controlling a LIFX with openHAB. Is this only working with openHAB 2.0, yet? |
Would love to know! On Sun, Oct 19, 2014 at 5:44 PM, Christoph Wempe notifications@github.com
|
Hi, Yes, well spotted ;-) Regards, Am 19 Oct 2014 um 21:46 schrieb petrklus notifications@github.com:
|
That's good and bad. ;) Makes waiting for 2.0 even harder. |
FYI: I plan to release an 2.0 alpha on Nov 23, which should allow running the new bindings together with 1.x addons through a compatibility layer. Hoping to get it usable by then :-) |
Excited!! Are the binding going to be part of the https://github.com/openhab/openhab2 repo? Also, re. LiFX - which way did you decide to go with the binding, which library are you using? |
Hi, I´m developing the LIFX binding for Eclipse SmartHome. It supports auto-discovery of bulbs and changing the color, which works very stable and fast. Unfortunately LIFX only provides an official Android SDK, but no Java SDK. So I decided to use a Java fork of the official Android API SDK (https://github.com/besherman/lifx-sdk-java), which works quite good. As Kai mentioned, i will present it at the EclipseCon next week. I plan to contribute the binding this weekend. If you want to try it out now, you can find it at my ESH fork (https://github.com/dnobel/smarthome/tree/lifx/binding/org.eclipse.smarthome.binding.lifx). Regards Dennis |
Thank you for the update - will have a look! To help me understand though - what would decide if a binding is part of ESH or OH? Is the binding going to be part of OH only if inclusion into ESH is not possible due to licensing reasons? |
Actually, all ESH bindings will be made available in openHAB2, but not everything from openHAB2 will be available for any ESH-based solution. |
so how are we going to proceed with this Binding? Is anybody volunteering to downport the Binding (to some degree)? |
I'd vote for closing it and rather concentrate on making the other 1.x add-ons working smoothly on openHAB 2 runtime, so that people can move. |
Depends - how long is the OH 1.x expected to be around? On the 1.x, I've moved from the EXEC binding to lifx-http |
@kaikreuzer I agree - I do not think anyone would get massive amount of utility from it. There are other ways to make it work with 1.x and they work very well! (just my opinion of course) |
I think I read somewhere that rules are not implemented in openhab2, yet. I didn't know about the "other ways to make it work" until now. |
No, that's wrong. Rules work just like for openHAB 1. It is only the case that we are also working on a new rule engine, which is not yet in place. |
btw: There is a official HTTP API comming for lifx. Let`s hope sooner rather than later. ;) |
Yeah, but if you read chendo/lifx-http#4 (comment), you will see that it will be hosted, i.e. cloud based. So rather useless for a decent openHAB integration. |
There's this Java SDK, too. sort of unofficial, but reversed engineered from the official Android SDK. https://github.com/besherman/lifx-sdk-java I, for one, would prefer an non-cloud solution. I hacked up a Lifx solution for SmartThings using some reverse engineered node.js libraries. Worked reasonably well... except that SmartThings itself didn't work reasonably well as a hub (it ran everything through the cloud). |
@llamahunter This is the library that is used in the openHAB 2 LIFX binding, see https://github.com/eclipse/smarthome/tree/master/binding/org.eclipse.smarthome.binding.lifx/lib |
The LIFX Binding uses version 1 of the the besherman lifx-sdk-java lib. The original library was just a fork of the Android SDK and ported to Java without modifications of the API. As LIFX stopped all activities on github and no further development was made, the author decided to write a completely new library (see also https://github.com/besherman/lifx-sdk-java#history). Maybe this library is better then the original LIFX library and does not have these performance issue. |
Ah, right, thanks for the correction! |
Before anybody starts to integrate the new lifx-sdk-java, keep in mind there is a new firmware 2.0 for LIFX. There is also a new cloud API. But I think a local binding is preferred to a cloud binding. |
Hi. Is there working binding lifx (2.0 firmware) for openhab1? Really need kelvin support and stable connect. My problem is in connection. i tried to use lifx-http but sometimes it doesn't react at all, same thing with OH2 binding. I think problem is in firmware2 support because original iOS app and ping from PC to LIFX is great! In Developer Zone of site LIFX there are enough documentation about local protocol, but i'm not a programmer((((( Please reopen issue. |
@brutevinch Same problem here - I wanted to get some "local" control as my internet connection is not very stable (and thus the cloud api is not working very well). Installed OH2 + LiFX, discovery went well but after a few hours I started getting nullpointer exceptions from the binding and could no longer control some of the bulbs (openhab/openhab-addons#328) |
So, there's now a published V2 protocol doc from lifx. Is anyone working on a binding? https://github.com/LIFX/lifx-protocol-docs |
Yes, @kgoderis implemented the new protocol: eclipse-archived/smarthome#483 |
@kaikreuzer is this for OH1 too? |
No, Eclipse SmartHome bindings only work on openHAB 2. |
Windows build does not start with included batch files openhab#215 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
From christop...@gmail.com on March 23, 2013 17:58:14
I would like to see a LIFX binding in the future.
It's a smartphone controlled LED-Bulb (like Philips HUE).
Here are some information for developers: http://www.kickstarter.com/projects/limemouse/lifx-the-light-bulb-reinvented/posts/419030
Original issue: http://code.google.com/p/openhab/issues/detail?id=215
The text was updated successfully, but these errors were encountered: