LIFX Smart Switch

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

It is not supported by the LIFX integration. Only the HomeKit Device integration.

ah. i have other home kit devices added but no home kit bridge. ill have to see how to get that going

found this tip:

You should be able to see the Switch in Home Assistant for 15 minutes after it boots. That’s how long it runs its HomeKit code for. After 15 minutes, you’ll need to reset again to get HomeKit activated.

Will try this

Right. When that’s active, Home Assistant should automatically detect the LIFX Switch as a HomeKit Device.

You would use a HomeKit Bridge to make it available to the Home app but only after you get it visible in Home Assistant.

Thanks. Got it in home assistant via home kit

I can’t workout how to do what you’ve done. Set the switch tj keep power on but capture button on off in homekit ha

I have it set as button one is wired and running lifx lights then button setup I set to non lifx

Button 2 is not wired. But I still want to use it .or was I meant to wire it to use it ? The button works and lights up

I want to use both buttons within home assistant automations.

i can see the single press event on each button. I could use that in the automations but the button is not on or off. id expect it to match up to what the is doing

how do you run yours exactly ?what am i doing wrong?

really appreciate your help

You don’t have to wire button two. Click the + button in the Automations box of the Device page for the Switch and then select one of the button triggers. You can then define the automation that will run when the button is tapped, double-tapped or held. The buttons don’t appear as entities, just automation triggers.

If you want to control the terminals via Home Assistant, set them all to non-LIFX regardless of whether a LIFX bulb is connected or not. This will make them appear as switch entities in Home Assistant. You can then control them like any other switch entity.

1 Like

Hi there, did you manage to get this working? I have the same issue - I want to set a switch to wired / with lifx device in the lifx app because I want the relay permanently in the on position to always supply power to the device then use HA for button programing

Cheers
Wazza

Hey no I didn’t. Have you opened up a ticket with lifx ? See my other post here about my experience.

Be good to get other complaints as they want me to get another Wi-Fi router to only run 2.4 on as lifx only supports 2.4 to test and see if that makes it work.

Pretty sure it’s a bug on their end. I’m surprised tho as other had it working

Update. Lifx confirmed this is an issue they are fixing. Their comms have been very good

This is an issue affect Switch users in HomeKit, that prevents the integration from detecting the buttons and even makes HomeKit crash.

We’re working along with Apple to fix this situation and apologize for the inconveniences.

If it helps in the interim, if you install the Eve app (free) it shows/exposes a “button” for each buttons on the lifx switch and also a “switch” for each of the bottons that have been set to “non lifx device” in the lifx app
Note that if you set a given button to “lifx device” in the lifx app for constant power - then a “switch” is not added / imported into homekit/eve for that particular button

In the eve app you can then rename switches/buttons etc … and siri/homekit will respond to vice commands that use those names

Not a full solution, but I found it better than nothing while waiting for the bug fix

cheers

This is exactly the same thing Home Assistant does.

On that note, my four switches are all behaving themselves. I haven’t noticed any of them not responding when I push a button, but there’s a caveat: we don’t really use them very often. They’re there for people who don’t know the house is mostly automated so they get very little use on a day-to-day basis.