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!
How easy would it be to put this into ST?
Listing lights and their current state
curl -H “Authorization: YOUR_APP_TOKEN” “https://api.lifx.com/v1beta1/lights/all”
Turn all lights on
curl -H “Authorization: Bearer YOUR_APP_TOKEN” -X PUT -d “state=on” “https://api.lifx.com/v1beta1/lights/all/power”
Set all light purple
curl -H “Authorization: Bearer YOUR_APP_TOKEN” -X PUT -d “color=purple” “https://api.lifx.com/v1beta1/lights/all/color”
Any help would be appreciated