You login to their cloud and generate a token, then every time you want to talk to the REST API, you just supply the token and it provides details for your lights, like listing lights, turning them on or off, color, fade, breath effect, etc.
I’ve just ordered my first ST Hub so am waiting for it to arrive but I’m amazed not many; if any people using Lifx.
I know they have been really slow to develop an API that was reachable outside of the home network, but it seems its finally here and works!
There is no need to manually add the devices, use the smart app to connect to your lifx account. The smart app will create devices based on what it finds in your account.
I’m not sure if something changed on the platform. but i can not control my LiFx bulbs any more.
I have had no issues with these but now they won’t respond at all.
I am getting the following in the logs:
___exception: javax.net.ssl.SSLException: hostname in certificate didn't match: <api.lifx.com> != <*.lifx.co> OR <*.lifx.co> OR <lifx.co>
thanks for confirming…
It’s alway’s something I guess.
I just tested the Lifx api directly and it’s working as it should. I’m wondering if this is related to behind the scenes security updates.
Think i found the issue, they renewed their SSL certificate today, the new certificate is allocated to *.lifx.com
Perhaps ST doesnt like a wildcard cert? Not sure if the previous cert was api.lifx.com or *.lifx.com
If it was a simple renewal, perhaps its just a timezone issue and the new cert isnt active yet
I updated the code about 3 hours ago. I change the URL to lifx.co instead of lifx.com…
I don’t know why i see the correct certificate but smarthings doesn’t… it might be timezone issue.
@icepicknz In PHP i know how to bypass ssl verification, in groovy however I didn’t find a way
It’s mostly working and kinda acting as “one” bulb so everything you can do with one bulb you can do with one group… However the syncing between group and bulb might be delayed a bit. What this mean is, if you turn a group on, it will turn the lights on however their respective device on Smartthings won’t be on until, the poll request get call which happen every 5 minutes. The syncing is a bit more complicated…
If you guys have some feedback that would be great also I was thinking of integrating scenes but I’m not sure how yet.
I been tweeting to lifx and smartthings. Lifx made a change not supported by smartthings. They have reverted the certificate back to cloud flare so things may break again @zzarbi
Oh yeah it was an outage on their part http://status.lifx.com they seem to have fixed it. @icepicknz There is no way to control them via the LAN, the protocol used by LIFX is a bit complicated and the HUB can’t handle it… At least not this version of the hub.