Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuki Hub not pairing with new SL #176

Closed
bcutter opened this issue Apr 15, 2023 · 6 comments
Closed

Nuki Hub not pairing with new SL #176

bcutter opened this issue Apr 15, 2023 · 6 comments

Comments

@bcutter
Copy link
Contributor

bcutter commented Apr 15, 2023

Today I had to switch a SL 3.0 PRO.

Steps:

  1. Nuki Hub: unpaired SL ✔
  2. Switched hardware ✔
  3. Configured new SL via Nuki app (everything is working fine) ✔
  4. Entered NUKI Lock PIN in Nuki Hub (just to be safe) ✔
  5. Pair Nuki Hub with new SL 3.0 ❌❌❌

I'm stuck at step 5. No pairing possible strictly following https://github.com/technyon/nuki_hub#pairing
grafik

Pairing should be automatic.
➡ No it does not. No idea if it started at all or why it fails.
When pairing is successful...
➡ If not, how to check why?

Done without success:

  • restarted SL (battery removed for some time) several times
  • gone through pairing process a dozen times
  • restarted Nuki Hub several times

Nothing. At the moment it feels like 8.22 is unable to pair. No idea why Nuki Hub does not pair with the new SL. HELP really appreciated 🙏

@bcutter
Copy link
Contributor Author

bcutter commented Apr 15, 2023

Tried also with Nuki Hub 8.18 and 8.8 now (next to 8.22), made no difference.

Only things changed for the pairing scenario is:

ESP is the same, Nuki Hub (firmware + config) is the same... what the heck.

How to get some insights? Logs?
How can I check if the Nuki Hub REALLY starts to search for a SL in pairing mode and actually wants to pair with it?

Not making any progress here, wasting one hour after another. I'm 5 minutes before enabling WiFi and switching to native MQTT support...

Only little things which looks interesting (not sure if it's normal if no lock is paired):

Lock PIN set: -

I set it, several times - output does not change. Is that fine @technyon ?

@bcutter
Copy link
Contributor Author

bcutter commented Apr 15, 2023

Latest update:

The very same NUKI Hub can pair almost immediately with the old SL. Tried several times. One time also with both - old and new - SL in pairing mode, powered on Nuki hub physically next to the new one - it only paired with the old SL.

I'm completely out of ideas. Remaining questions:

  • Did Nuki hub REALLY unpair from the old SL?
  • Is there some kind of "pairing cache" so Nuki Hub only pairs with the SL it was already paired in the past?

@bcutter
Copy link
Contributor Author

bcutter commented Apr 15, 2023

Another update:

  • ESP/Nuki hub 1 (productive one) : can only pair with old SL (the one it was paired before/first)
  • ESP/Nuki hub 2 (for test purposes): can only pair with new SL (the one it was paired before/first)

I see some kind of pattern: the one it was paired before/first.

At the moment I put my bets on the unpairing is not done right in Nuki Hub.

I'm flashing Nuki Hub over ESP 2 to test this theory now.

Update:

  • confirmation 1: erased and reflashed ESP 2 with Nuki hub. After that, it paired instantly with the old SL (which it did not before)
  • confirmation 2: erased and reflashed ESP 1 with Nuki hub. After that, it paired instantly with the new SL (which it did not before)

What a massive fault somewhere in the unpairing code! I wasted 3 hours of my weekend, thanks.

Found this: #149

@technyon
Copy link
Owner

Give this binary a try.

nuki_hub-8.23-pre-2.zip

@bcutter
Copy link
Contributor Author

bcutter commented Apr 16, 2023

I'm good now. Hope I don't need to re-pair soon...

Did not test the linked pre-release.

@technyon
Copy link
Owner

It would be helpful if you could test, since I can't really reproduce the issue. You don't need to unpair your though, you can test with one of your ESPs and enable "Register as app" before testing. That way your current ESPs don't get unpaired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants