home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.68k stars 30.81k forks source link

Nanoleaf Skylight "unavailable" - even though it isn't! #118542

Open koshisan opened 5 months ago

koshisan commented 5 months ago

The problem

I received a Nanoleaf Skylight last week. Since them HA integration has been a bit of hit and miss. Multiple times a day the light would become "unavailable" as reported by the Nanoleaf HA integration.

Thing is: It isn't!

I can still control the light through the app or even through HA itself over the Homekit integration (which unfortunately does not support the build-in scenes, so its not really a work around).

I do think this is API-related somehome, because - while Homekit always works - when I start the smartphone app, I can see the light listed there also as "unavailable". Then the app seems to do something (some kind of discovery perhaps?) and after a second or so the light is reported as online. After letting the app do its work, its also available in HA again.

As for the network side: I can always access the light through its IP without any issues - regardless of the presumed state by HA/the app.

What version of Home Assistant Core has the issue?

core-2024.5.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Nanoleaf

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 months ago

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

Code owner commands Code owners of `nanoleaf` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign nanoleaf` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


nanoleaf documentation nanoleaf source (message by IssueLinks)

mac-gallagher commented 3 months ago

Seeing the same behavior lately with my Nanoleaf Lines and Elements

koshisan commented 3 months ago

Unfortunately the maintainer did not reply for nearly two months now. One thing I did notice: Sometimes, when the light has been in this state long enough, the integration seems to notice this and change its state to failed. In that case it does list the URL which it is trying to access - with an IPv6 URL. However, I am only running IPv4 and as far as I can tell from configuration database the light is also listed there with its v4 IP only. Maybe this is the root cause of the issue?

brstone89 commented 2 months ago

@joostlek appears to be the new owner. Any chance we can get a look at this issue? I've had it happening with the original Aurora panels as well.

mac-gallagher commented 2 months ago

I was able to mitigate this issue for my Nanoleaf Lines by updating them:

  1. Reset my lines and removed them from HA
  2. Paired them directly to the Nanoleaf iOS app
  3. Updated them from version 9.5.9 to 9.6.4
  4. Removed them from the app and Apple Home and performed another reset
  5. Re-paired them to HA via the Nanoleaf integration

It seems to have worked (for now, at least). I'm no longer seeing issues with dropped connections

sadoMasupilami commented 1 month ago

I was able to mitigate this issue for my Nanoleaf Lines by updating them:

  1. Reset my lines and removed them from HA
  2. Paired them directly to the Nanoleaf iOS app
  3. Updated them from version 9.5.9 to 9.6.4
  4. Removed them from the app and Apple Home and performed another reset
  5. Re-paired them to HA via the Nanoleaf integration

It seems to have worked (for now, at least). I'm no longer seeing issues with dropped connections

did it work on the long run?

mac-gallagher commented 2 weeks ago

@sadoMasupilami This worked for a while, but I had to repeat the process around a month later (version 9.6.4 to 11.2.4). Been working fine since then; let's see how long it lasts 🤞

sadoMasupilami commented 2 weeks ago

i currently have an automation that restarts the integration regularly. It is not beautiful but better than nothing