Jump to content
🌟 NOTIFICATION/Benachrichtigung: Welcome to our New Store! - shelly.com 🌟 ×

Simple LIFX HTTP API script example


Recommended Posts

LIFX are third party lights. Took some trial and error since the documentation isn't that good, hopefully this'll save someone's time.

The script turns lights on and off. Other controls like color brightness etc. are easy to add. The essential info is in the comments in the script.

I've attached the script here and in case I've updated it it's also up on github:
https://github.com/cLick1338/shelly-lifx-script/

Since it's a cloud API there'll be a response delay, I personally see 1-2 sec of delay. There is a LAN API but it's much more complicated to implement, you have to encode/decode packets locally. If anyone ever implements it please let me know.

lifx-setstate.js

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Erstelle neue...