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
74.08k stars 31.09k forks source link

Timeout fetching nuki devices data #119608

Open AlexW75 opened 5 months ago

AlexW75 commented 5 months ago

The problem

Hi, I've been frequently encountering an error message in the log for my NUKI Lock. It occurs occasionally when I command the lock to either lock or unlock. However, if I execute the command a second time, it always succeeds. This issue has been present for at least a year, but since I managed it by using an automation that repeats the command, it is a minor issue for me.

I am happy to provide additional trace information if needed.

What version of Home Assistant Core has the issue?

core-2024.4.3

What was the last working version of Home Assistant Core?

none

What type of installation are you running?

Home Assistant OS

Integration causing the issue

NUKI

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: pynuki
Quelle: components/nuki/coordinator.py:98
Erstmals aufgetreten: 00:44:08 (1 Vorkommnisse)
Zuletzt protokolliert: 00:44:08

Call failed: <Response [200]>

Logger: homeassistant.components.nuki.coordinator
Quelle: helpers/update_coordinator.py:318
Integration: Nuki (Dokumentation, Probleme)
Erstmals aufgetreten: 00:43:54 (1 Vorkommnisse)
Zuletzt protokolliert: 00:43:54

Timeout fetching nuki devices data

Additional information

No response

home-assistant[bot] commented 5 months ago

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

Code owner commands Code owners of `nuki` 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 nuki` 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)


nuki documentation nuki source (message by IssueLinks)

pree commented 5 months ago

Hi @AlexW75. This looks really weird, having it "Failed 200". Is there anything special about your Network? Could you try querying the API directly to see if that also results in this behaviour?

AlexW75 commented 5 months ago

My network is nothing special just a FritzBox Mesh. What you mean with directly? Over NukiWeb?

aperezva commented 2 months ago

Registrador: homeassistant.components.nuki.coordinator Fuente: helpers/update_coordinator.py:360 integración: Nuki (documentación, problemas) Ocurrió por primera vez: 15:23:23 (1 ocurrencias) Último inicio de sesión: 15:23:23

Timeout fetching nuki devices data

Same or similar problem

SVNKoch commented 2 months ago

I just had the same problem, restarts didn't help and reconfigurations with a newly set API key on the bridge still resulted in failed connection (some timeout message).

What helped: I restarted the bridge, deleted the integration, restarted HA, nuki got auto discovered, entered API key and everything was working again

RaimondB commented 1 month ago

I am having similar issues:

2024-10-11 12:11:47.858 ERROR (MainThread) [homeassistant.helpers.entity_registry] 'lock' from integration nuki has a non string unique_id '318250121', please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+nuki%22
2024-10-11 12:12:17.273 DEBUG (MainThread) [homeassistant.components.nuki.coordinator] Finished fetching nuki devices data in 0.094 seconds (success: True)
2024-10-11 12:12:57.182 ERROR (MainThread) [homeassistant.components.nuki.coordinator] Timeout fetching nuki devices data
2024-10-11 12:12:57.182 DEBUG (MainThread) [homeassistant.components.nuki.coordinator] Finished fetching nuki devices data in 10.003 seconds (success: False)

Restarting HA, rediscovering lock as mentioned above did not work for me.

Claudio1L commented 1 month ago

clean install of HAOS

Core 2024.10.2 Supervisor 2024.10.0 Operating System 13.1 Frontend 20241002.3

systematically every reboot:

Logger: pynuki Source: components/nuki/init.py:144 First occurred: 10:06:07 PM (1 occurrences) Last logged: 10:06:07 PM Call failed: <Response [200]>