core: Lifx entities not available after power loss in 2022.5

The problem

One of my Lifx Clean bulbs is in a toilet, where the light switch is used to control power to the globe.

Before 2022.5 update, I could power on the globe and within a few seconds it would connect to Home Assistant which would fire some automations to control brightness and colour temperature.

Since 2022.5, the bulb is not found by home assistant unless I reload the Lifx integration while the bulb is powered on. Once it is powered off and disconnects, it won’t reconnect to Home Assistant.

The bulb works completely fine with my app and there were no issues before the update. I assume this might be caused by the changes in https://github.com/home-assistant/core/pull/70458 but that is only a guess.

There is also a log entry found when searching for Lifx but I’m not sure if this is related to the problem or just normal noise.

What version of Home Assistant Core has the issue?

2022.5.3

What was the last working version of Home Assistant Core?

2022.4.7

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Lifx

Link to integration documentation on our website

https://www.home-assistant.io/integrations/lifx/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.lifx.light
Source: components/lifx/light.py:391
Integration: LIFX (documentation, issues)
First occurred: May 8, 2022, 12:21:47 AM (2 occurrences)
Last logged: May 8, 2022, 10:34:04 PM

Duplicate LIFX discovery response ignored

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 40 (16 by maintainers)

Most upvoted comments

I’m not sure, that’s up to the maintainers.

You won’t have to do anything if you don’t want: it’ll use the same settings/values automatically as it does now. If you want to tweak them, it works just like any other integration: click the “Configure” button in the UI and it’ll show you what settings you can change.

I’ve released the update as a custom component here: https://github.com/Djelibeybi/ha-lifx-beta

Add the repo to HACS, then install release 2022.05.01.

So I’ve submitted an enhancement via #71619 that does two things: first, it lets you tweak all the discovery settings and second, it allows you to re-enable duplicate discovery handling. If folks are interested, I can make it available as HACS-installable custom component for testing purposes.

Hey there @djelibeybi, mind taking a look at this issue as it has been labeled with an integration (lifx) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)