Control your LIFX LED bulbs
I prefer LIFX lamps over Hue as they show nicer and deeper colors and soon LIFX will have a lamp that can also light your room with IR light during the night so your security camera can see a much bigger area. As there is no native Zipato support for LIFX yet I went looking at the LIFX HTTP API and found it quite easy to implement.
1: Create your private unique API token and copy/paste it to a txt file on your computer. See: https://community.lifx.com/t/creating-a-lifx-http-api-token/25
2: Go to the very good developer zone for LIFX and read the HTTP API introduction. See: https://api.developer.lifx.com/
3: Try out an example, "Toggle Power" is a nice one to start. At the end of this page there is a "Try It Out" form to fill out, put "all" as selector and set duration to "2" (without the quotes). Click "Try it!", the first time the HEX token you copied before will be asked.
4: If this works your LIFX lamps should toggle ON or OFF depending on their previous state. Go to the next step if it seems OK.
5: Now create a new rule using a button like the example shown here. (The beep is only there to have a audible feedback.)
6: To configure the HTTP puzzle part use "POST" and copy/paste the
- Request Headers field
- URL field
- Request Data field
7: Save your rule, sync and see the magic working!
Have fun!
Attach to a virtual switch, the two separate rules one for On / Off using the setState call and this works quite well, albeit you might want to default the colour and brightness for the on event.
Even with other automation systems controlling it, it will respect the state in the Zipatile UI. Really impressed this came together nicely
Attach to a virtual switch, the two separate rules one for On / Off using the setState call and this works quite well, albeit you might want to default the colour and brightness for the on event.
Even with other automation systems controlling it, it will respect the state in the Zipatile UI. Really impressed this came together nicely
Thanks for sharing, to be honest, even though Phillips Hue has native integration I find the API to be more reliable sometimes, so I trigger commands through HTTP posts, is nice to be able to check the status of bulbs and use it on the rules without the need of virtual switches. I use Phillips because is the only option for smart bulbs in Mexico (at least the only high quality option).
Thanks for sharing, to be honest, even though Phillips Hue has native integration I find the API to be more reliable sometimes, so I trigger commands through HTTP posts, is nice to be able to check the status of bulbs and use it on the rules without the need of virtual switches. I use Phillips because is the only option for smart bulbs in Mexico (at least the only high quality option).
Replies have been locked on this page!