LIFX Bulb changing colour

I am playing around with a LIFX bulb, now that they are supported natively by HE. But I'm having some issues with it changing colour when I don't want it to.

The bulb is a LIFX A60 1200lm, E27 fitting, and I'm in UK (if that matters). I have linked the bulb to HE, and I'm using the "LIFX Color" system driver. At the moment all I'm doing is triggering it on/off based on a motion sensor via "Motion and Mode Lighting Apps"

I set the bulb up with the following states:
LIFX1

When I leave the room, the light turns off. However when I return some time later, the light comes back on with these states:
LIFX2

The light is obviously controllable via the LIFX app, but I don't use this. It's also controllable via Google Home, but I don't use this much (and certainly not during this brief period). The only other HE app that is referencing this bulb is HSM, but I'm not setting the colour of this bulb there.

Am I using the correct driver for this bulb? Any ideas what could be changing the colour, and the colour mode?

Please enable debug logs for the bulb, and capture those logs when then issue occurs - that will provide the most detail for troubleshooting what else might be interacting with your bulb to cause this behavior.

2 Likes

On second glance, it looks like something is just changing the saturation value (which automatically toggles the color mode to RGB when greater than 0). All other values remained the same.

1 Like

That is very strange and I cannot replicate with the US version. As @dkilgore90 mentioned please post a screenshot of the Logs capturing both the app and bulb. You may need to enable the logging on both from Device Details page (for the driver) and App Settings page for the app.

Driver:

App:

Here are the logs from the bulb. I'll capture the app logs in a few minutes. It seems like something changes the Hue at 17:37:55.881

Saturation is changed at 17:37:57.114, but by then the light is on

dev:6432022-04-20 17:37:57.139 infoOffice Light #1 color is #17D5FF

dev:6432022-04-20 17:37:57.131 infoOffice Light #1 saturation is 91%

dev:6432022-04-20 17:37:57.128 infoOffice Light #1 hue is 53

dev:6432022-04-20 17:37:57.122 infoOffice Light #1 color is Cyan

dev:6432022-04-20 17:37:57.116 infoOffice Light #1 colorMode is RGB

dev:6432022-04-20 17:37:57.114 debugLightState(hue: 34734, saturation: 59637, brightness: 65535, kelvin: 6500, power: 65535, label: Office LIFX)

dev:6432022-04-20 17:37:57.110 debugparse:lifx device: D073D56632D60000, command: 107, payload: AE87F5E8FFFF64190000FFFF4F6666696365204C4946580000000000000000000000000000000000000000000000000000000000, isBroadcast: false

dev:6432022-04-20 17:37:56.328 debugparse:lifx device: D073D56632D60000, command: 118, payload: FFFF, isBroadcast: false

dev:6432022-04-20 17:37:56.323 debugparse:lifx device: D073D56632D60000, command: 118, payload: FFFF, isBroadcast: false

dev:6432022-04-20 17:37:56.312 infoOffice Light #1 switch is on

dev:6432022-04-20 17:37:56.309 debugparse:lifx device: D073D56632D60000, command: 118, payload: FFFF, isBroadcast: false

dev:6432022-04-20 17:37:56.065 debugparse:lifx device: D073D56632D60000, command: 118, payload: 0000, isBroadcast: false

dev:6432022-04-20 17:37:56.031 infoOffice Light #1 hue is 0

dev:6432022-04-20 17:37:56.016 infoOffice Light #1 hue is 53

dev:6432022-04-20 17:37:56.002 infoOffice Light #1 hue is 0

dev:6432022-04-20 17:37:56.007 debugLightState(hue: 0, saturation: 0, brightness: 65535, kelvin: 6500, power: 0, label: Office LIFX)

dev:6432022-04-20 17:37:56.004 debugparse:lifx device: D073D56632D60000, command: 107, payload: 00000000FFFF6419000000004F6666696365204C4946580000000000000000000000000000000000000000000000000000000000, isBroadcast: false

dev:6432022-04-20 17:37:55.993 debugLightState(hue: 0, saturation: 0, brightness: 65535, kelvin: 6500, power: 0, label: Office LIFX)

dev:6432022-04-20 17:37:55.990 debugparse:lifx device: D073D56632D60000, command: 107, payload: 00000000FFFF6419000000004F6666696365204C4946580000000000000000000000000000000000000000000000000000000000, isBroadcast: false

dev:6432022-04-20 17:37:55.988 debugLightState(hue: 34734, saturation: 0, brightness: 65535, kelvin: 6500, power: 0, label: Office LIFX)

dev:6432022-04-20 17:37:55.985 debugparse:lifx device: D073D56632D60000, command: 107, payload: AE870000FFFF6419000000004F6666696365204C4946580000000000000000000000000000000000000000000000000000000000, isBroadcast: false

dev:6432022-04-20 17:37:55.941 debugon()

dev:6432022-04-20 17:37:55.881 debugsetColor([hue:53, saturation:91, level:100, rate:null])

dev:6432022-04-20 17:37:55.828 debugsetLevel(100)

dev:6432022-04-20 17:37:55.761 debugsetColorTemperature(6500, null, null)

dev:6432022-04-20 17:35:44.207 debugLightState(hue: 34734, saturation: 0, brightness: 65535, kelvin: 6500, power: 0, label: Office LIFX)

dev:6432022-04-20 17:35:44.203 debugparse:lifx device: D073D56632D60000, command: 107, payload: AE870000FFFF6419000000004F6666696365204C4946580000000000000000000000000000000000000000000000000000000000, isBroadcast: false

dev:6432022-04-20 17:31:59.941 infoOffice Light #1 switch is off

dev:6432022-04-20 17:31:59.935 debugLightState(hue: 34734, saturation: 0, brightness: 65535, kelvin: 6500, power: 0, label: Office LIFX)

dev:6432022-04-20 17:31:59.931 debugparse:lifx device: D073D56632D60000, command: 107, payload: AE870000FFFF6419000000004F6666696365204C4946580000000000000000000000000000000000000000000000000000000000, isBroadcast: false

dev:6432022-04-20 17:31:59.128 debugparse:lifx device: D073D56632D60000, command: 118, payload: DCF7, isBroadcast: false

dev:6432022-04-20 17:31:59.123 debugparse:lifx device: D073D56632D60000, command: 118, payload: E0FB, isBroadcast: false

dev:6432022-04-20 17:31:59.117 debugparse:lifx device: D073D56632D60000, command: 118, payload: FFFF, isBroadcast: false

dev:6432022-04-20 17:31:58.881 debugoff()

dev:6432022-04-20 17:31:58.839 debugoff()

dev:6432022-04-20 17:31:58.794 debugoff()

dev:6432022-04-20 17:30:44.196 debugLightState(hue: 34734, saturation: 0, brightness: 65535, kelvin: 6500, power: 65535, label: Office LIFX)

dev:6432022-04-20 17:30:44.156 debugparse:lifx device: D073D56632D60000, command: 107, payload: AE870000FFFF64190000FFFF4F6666696365204C4946580000000000000000000000000000000000000000000000000000000000, isBroadcast: false

dev:6432022-04-20 17:25:44.126 debugLightState(hue: 34734, saturation: 0, brightness: 65535, kelvin: 6500, power: 65535, label: Office LIFX)

dev:6432022-04-20 17:25:44.117 debugparse:lifx device: D073D56632D60000, command: 107, payload: AE870000FFFF64190000FFFF4F6666696365204C4946580000000000000000000000000000000000000000000000000000000000, isBroadcast: false

dev:6432022-04-20 17:24:50.757 warndescription logging is: true

dev:6432022-04-20 17:24:50.756 warndebug logging is: true

dev:6432022-04-20 17:24:50.755 infoupdated...

dev:6432022-04-20 17:24:39.008 infoOffice Light #1 color is #FFFFFF

dev:6432022-04-20 17:24:38.993 infoOffice Light #1 saturation is 0%

dev:6432022-04-20 17:24:38.989 infoOffice Light #1 color is Skylight

dev:6432022-04-20 17:24:38.987 infoOffice Light #1 colorMode is CT

dev:6432022-04-20 17:24:15.048 infoOffice Light #1 color is #17D5FF

dev:6432022-04-20 17:24:15.040 infoOffice Light #1 saturation is 91%

How do I extract the App logs to show them here?

These logs indicate individual commands being fired to the driver for this bulb... Now to trace the source - particularly the setColor

Similar to the device, once the App logging is enabled (at it's most verbose settings), you can click the App name at the top of the logs page to filter to entries for that app

app:6482022-04-20 17:52:43.088 infoTurning on switch [Office Desk Light, Office LED, Office Light #1, Office Light #2]

app:6482022-04-20 17:52:43.037 infoSetting color to hue:53 sat:91 level:100

app:6482022-04-20 17:52:42.932 infoSetting colorTemp [Office LED, Office Light #1] to 6500 at level 100

app:6482022-04-20 17:52:42.918 infoSetting dimmers [Office LED] to 100

app:6482022-04-20 17:52:42.908 infoMotion active: mZone-Office

app:6482022-04-20 17:52:27.661 infoOffice Light #1 was turned off

app:6482022-04-20 17:52:26.683 infoOffice Desk Light was turned off

app:6482022-04-20 17:52:26.673 infoOffice Light #2 was turned off

app:6482022-04-20 17:52:26.597 infoOffice LED was turned off

app:6482022-04-20 17:52:26.344 infoTurning off lights

app:6482022-04-20 17:52:26.334 infoMotion inactive: mZone-Office

This is the App. Could it be the Color Temperature setting?

You're setting color to "daylight" - seems this doesn't translate well to LIFX, and is likely resulting in the saturation change. I'd remove that altogether, and stick with just colorTemperature

1 Like

OK I'll try that, thanks!

That seems to have fixed it! Thanks for your help.

It's strange though, that one of the colour possibilities in the LIFX app is "Daylight, 5600k" :thinking:

Anyway, problem solved!

I've found that LIFX color definitions often don't align with HE's

1 Like

Daylight in Hubitat, which works with most bulbs but not Lifx is defined as: hue: 53 & saturation: 91. So @dkilgore90 was spot on.

1 Like

Im about to jump into Hubitat tonight, All my lifx lights are connected via wifi...Since Hubitat is local will all my devices respond quicker once its linked in?