LIFX (smart lights/...
 
Notifications
Clear all

LIFX (smart lights/bulbs) E1.31 Controller Project

12 Posts
6 Users
0 Reactions
14.2 K Views
TheLost
Posts: 189
Topic starter
(@thelost)
Estimable Member
Joined: 10 years ago
[#48370]

In my quest to bathe the outside of my house in 'blue' i ended up buying a bunch of LIFX BR30 & A19 bulbs. I got my wife's approval for this project on the condition that I only use the existing fixtures (~8 recessed can light under the eves and 4 carrage lights attached to the front of the house). I was told no DIY can be attached to the house year round (you start one small electrical fire... sheesh)

Anyway... i settled on the LIFX brand of smart bulbs for one very cool reason: They publish their protocols on GitHub. Not only do they publish their 'cloud' HTTP API documentation but they also publish the RAW UDP packet protocol to talk directly to the lights.

I did a quick little proof of concept using an existing python library and created a simple E1.31 listener/control running on a Raspberry Pi that would go blinky-flashy when xLights told it to dance.

Once the rest of my bulbs show up later this week I need to double check the bulbs can take raw requests fast enough (only testing with one A19 bulb now). But if there is enough interest I'll publish my project to github.

I was also thinking I could make an 'Arduino' sketch that runs on a NodeMCU (~$4) or similar ESP device that could act as the E1.31 controller for the lights. That way you wouldn't need the overhead of a Raspberry Pi.

Anybody else interested in a LIFX controller?


11 Replies
critic2
Posts: 1389
(@critic2)
Noble Member
Joined: 17 years ago

I would be interested. I think you will be happy with the brightness of these lamps.


Reply
TheLost
Posts: 189
Topic starter
(@thelost)
Estimable Member
Joined: 10 years ago
critic2 wrote:I would be interested. I think you will be happy with the brightness of these lamps.

I'm highly impressed with the LIFX company so far. Unlike other companies that build a 'closed system', they welcome DIY and encourage their users to tinker. For example, somebody on their user forum asked about sending UDP packets from an arduino. Not only did LIFX fix the users code they spent the time to educate them on what they did wrong (It had nothing to do with LIFX products).

I'm kind of disappointed... All the work to turn LIFX bulbs into E1.31 controlled lights has already been done. I'm just putting the pieces together.

The last of my BR30's get here Friday. Once I've got them set up and run some quick tests I'll post my simple Python code. I should have the ESP8266 project done by the end of next week (depending on my free time).


Reply
jchuchla
Posts: 8698
(@jchuchla)
Illustrious Member
Joined: 15 years ago
TheLost wrote:
I was also thinking I could make an 'Arduino' sketch that runs on a NodeMCU (~$4) or similar ESP device that could act as the E1.31 controller for the lights. That way you wouldn't need the overhead of a Raspberry Pi.

It's funny that we've gotten to the point where a $35 computer is excessive overhead.


Reply
TheLost
Posts: 189
Topic starter
(@thelost)
Estimable Member
Joined: 10 years ago

I've had a chance to play with the lights for a few days... and they do exactly what I want.

This picture really doesn't do them justice.. I have them down to ~75% power here. They are listed as 11w but they are much brighter than any of my 10w floods.

I've also finished testing them with xLights over E1.31 and they update fast enough to stay in sync with music.
(i haven't added the music to the video yet.. but here they are blinking)

I've been testing them on my normal 'Home' WiFI (Mesh) which has a much stronger range/signal than my dedicated 'Xmas' Wifi (single AP). I need to switch them to my less powerful (Xmas) WiFi and see if they still stay in sync. There are quite a few comments on the LIFX forum about connection issues but i haven't had any problems yet.

I should also have my Arduino code finished this weekend... I'm not sure there is anybody else that would want it, but I'll post it anyway 🙂


Reply
BillinSoFL
Posts: 159
(@billinsofl)
Estimable Member
Joined: 15 years ago

OMG you are a LIFE SAVER!!! I've been begging Madrix for over a year to add support for LIFX bulbs and strips... and nada 🙁 I am 3,000,000% interested on your project. I have LIFX all over the house and wanted to integrate with some other E1.31 strips. Hopefully I'll be abler to get it to work with Madrix.

Do you basically point xLlights to your Raspberry Pi just like any other E1.31 controller then patch in the lights?


Reply
BillinSoFL
Posts: 159
(@billinsofl)
Estimable Member
Joined: 15 years ago

Anyone get something similar working?


Reply
Posts: 49
(@jcommisso)
Trusted Member
Joined: 10 years ago

Too bad I use Hue... at least Hue also has an API though!

Problem is that it uses a Zigbee bridge, so everything would be delayed.

Sent from my iPhone using Tapatalk


Reply
BillinSoFL
Posts: 159
(@billinsofl)
Estimable Member
Joined: 15 years ago

Can we bump this thread??? I'd be willing to pay someone to write a gateway or something that I could run on a show computer that would take SACN E1.31 or ArtNet or something and run my LIFX bulbs and strips.

FYI. Madrix supports Philips Hue, but they never added support for Lifx, which is a shame because lifx is a better product.


Reply
MartinMueller2003
Posts: 7614
(@martinmueller2003)
Illustrious Member
Joined: 14 years ago

I am pretty sure the LIFX bulbs are MQTT compliant. There are a few people that added MQTT support to the pixelstick. You could take that as a starting point. You can find a software implementation of an E1.31 to MQTT bridge here:

https://github.com/hhromic/e131-mqtt-bridge


Reply
Page 1 / 2
Share: