core icon indicating copy to clipboard operation
core copied to clipboard

Nuki Integration stopped working after upgrade to 2024.2.2

Open thesmer opened this issue 1 year ago • 1 comments

The problem

Hi, I just upgraded to HA 2024.2.1 from 2024.1.6 and now my Nuki Lock Integration is not working anymore. It demands a re-authentication, but rejects the correct token. I did not change anything in my setting and verified, that the same token is still valid. Settings are: callback enabled and http connection. Any help is appreciated.

update1: I can access the bridge via this command http://192.168.4.27:8080/list?token=[TOKEN] and get a good answer from it.

Update2: Same issue after upgrading to 2024.2.2

What version of Home Assistant Core has the issue?

core-2024.2.2

What was the last working version of Home Assistant Core?

core-2024.1.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Nuki

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

thesmer avatar Feb 17 '24 08:02 thesmer

Logger: pynuki Source: /usr/local/lib/python3.12/site-packages/pynuki/bridge.py:86 First occurred: 09:09:05 (1 occurrences) Last logged: 09:09:05

Could not login with provided credentials

thesmer avatar Feb 17 '24 08:02 thesmer

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)

home-assistant[bot] avatar Feb 17 '24 10:02 home-assistant[bot]

Hi, thats weird. There was no change on the authentication. Have you tried to use insecure authentication? This looks a bit like the time from your nuki bridge or your Home Assistant driftet away a bit to much and the restart of HA now triggered the issue.

pree avatar Feb 17 '24 11:02 pree

I will investigate and will let you know soon. Is there a command to force HA to update the time?
I will also restart the bridge and look at the time there.

thesmer avatar Feb 17 '24 12:02 thesmer

An insecure authentication will also not work.

thesmer avatar Feb 17 '24 12:02 thesmer

@pree your hint solved the issue. Restarted the whole system and now the time stamps are synchronized and it works. Thanks a lot!!!

thesmer avatar Feb 17 '24 13:02 thesmer