I have one of these installed, I was wondering if anyone has integrated this into HA? It would be great to be able to control the switches.
Video on the product: https://www.youtube.com/watch?v=WXl25XByjP4
I have one of these installed, I was wondering if anyone has integrated this into HA? It would be great to be able to control the switches.
Video on the product: https://www.youtube.com/watch?v=WXl25XByjP4
I also got one of these and would love to be able to integrate it to Home Assistant.
Have you heard if there is any interest in getting this developed?
Thank you
I contacted LIFX here in Australia, it’s on the road map but homekit will be next. I think someone smarter then I could make it work as LAN controls work apparently. I have got a work around using it with ifttt and home assistant. I can’t track the state however.
I am now using this with node red via HTTP control (cloud API) it’s faster vs IFTTT and I can track the state of each button. Took me a while to work it all out but it can be done.
I have discovered something around the LIFX Switch and the LIFX integration in HA. HA (for me) stalls on start up for 4-5 mins trying to (from what I can guess) discover the switches. When I move LIFX to complete manual config. Home Assistant starts up instantly. I can replicate the issue by putting in the IP address of the Switch into the manual config and it will stall HA on start up.
Positing @lebowski9000’s thread on LIFX community site as it helped me a lot here: Home Assistant: LIFX Switch - Developing with LIFX - LIFX Developer Zone
Thanks for the inspiration @Lebowski9000 ! FYI - This is how I’ve solved it similarly in HA with node-red.
In my setup I’ve got 80+ LIFX lights, but I only have 1 “dumb” set of smart festoons wired into a switch that I want to control, so I only care about controlling 1 relay of 1 switch (I have 13 )
Works great thus far and I’ve then got a Light entity using the switch platform in HASS which I surface to Google Assistant and my dashboard so I’m controlling a Light entity which subsequently uses the switch entity.
Thanks for the inspo…this was the final thing in my setup I couldn’t control with GA!
Wondering now about taking it a step further. As my festoon lights are smart, but on FLUX platform, I might be able to leave that circuit powered on and then connect the relay button to something in LIFX for node-red to monitor and control soft power state on FLUX platform. I think I’ll need to have a LIFX light that doesn’t actually do anything to act as a “ghost” device though, possible could use a Z-strip/beam controller that’s not connected to an actual light.
I also have a few of these and think we should progress this. The protocol is available, no point in waiting for LIFX to do this. (No direct revenue in doing it so it will probably never get prioritised.)
How can we progress it?
@pk10125 I’m now using local api via @Djelibeybi’s solution, see Home Assistant: LIFX Switch - #18 by Djelibeybi - Developing with LIFX - LIFX Developer Zone
I’m busy noodling on an alternative LIFX integration that resolves a bunch of issues with the bulbs as well as introduces Switch support. However, Python is not my first language and asyncio is wrapping itself around my brain much like a brick would, so progress is currently being measured in less failuires.
The existing integration (and the library upon which it is based) is showing its age. I’m using Photons Core, which is the underlying library that I’m fairly sure powers LIFX Cloud. It’s phenomenally powerful but about as complex as Home Assistant, so getting the two of them to play nicely together is an interesting challenge.
The workaround above leverages Photons Interactor, the HTTP REST API interface powered by the same underlying library.
I’m pretty comfortable with Python and asyncio. Let me know if there’s somewhere I can help out
What’s the state of the switch? Do you all still recommend it for manual control of lifx ? Thanks
Mine still work exactly as expected when configured via the HomeKit Device integration. So much so that I’ve added more so I’m up to about 8 now.
Wow fantastic. Do you have it set to turn the power off or only the LIFX light off?
Use both switches for one light?
In the LIFX app, I set all terminals to having a non-LIFX device connected to make all terminals show up in Home Assistant and I set all buttons to No Action so that only Home Assistant determines what happens when they are pressed. I then configure automations in Home Assistant to either turn a terminal on the switch on or off (if there’s a dumb light attached) or turn the appropriate smart light on/off.
In some cases, the buttons do completely different things: they are also programmed to open/close blinds, the garage door, turn the A/C on/off, etc depending on time of day and who’s home.
thanks for sharing this much appreciated. ill prob do the same so HA controls it.
I wanted to see if You have this set up in your bedroom. My only worry is light coming on at night as we turn off the bedroom lights physically at bedtime.
Do you have automation to set your lifx bedroom lights to 0% so if they do get turned on once they don’t show light ? They need two off ons to go bright which is unlikely in one night
Currently I don’t have any LIFX Switches in the bedroom. They’re used only in the living areas of the house.
Ah thanks my whole house has them.
We hardly use the light switches any more so there’s no real urgency to replace them now. I’ll probably do it slowly, though.
i’ve done this so single, double long on each switch is set to non lifx device
but i can’t seem to get the switch to show up in home assistant using native lifx integration .
did you have to do anything special ?
thank you