Nuki 3.0 Pro looses connection despite AP is next to it

This …

… and this …

are because of that: Nuki 3.0 Pro Connectivity Issues with MQTT Broker on Home Assistant - #6 by Juergen

Essentially by setting the DTIM to 3 you align the power saving of the Smart Lock with the power saving of the network. This is in most networks not needed, but some routers (esp. the ones who try to learn and steer devices based around on some secret measurements they do) throw devices off the network if they think they need to act.

This is also why this …

… helps. Could also be responsible for this …

… if it is the network that does not allow the SL to connect, which is a behaviour we’ve also seen with Unifi configurations.

This is far too technical for the standard Nuki support. The best way to have this findable is flagging the working solution in the forum and having a separate, properly named thread for your Unifi problem. Google will index it and other customers will find it.

2 Likes

I have been testing this for the past weeks and I can say that there is some magic behind the scenes that I can’t understand.

I’m trying to find solutions and I like nuki products, but fault is definitely on the Nuki’s side, not on the wireless vendors, in this case, unifi.

I have a network with 50+ devices and every single time a network config changes, a reboot is made, etc (even just rebooting the SL itself because I had to charge the battery) will result in a long period of no response from nuki’s side.

It happens on both my Nuki bridge connected to a 3.0 standard and my Nuki 3.0 Pro directly connected to the wlan.

It doesn’t matter how you play with the settings for dtims, uaspd, proxy arp, basic data rates (actually, the auto just so you know, applies the minimum so manually setting to the minimum is the same).

I’m on the latest stable, and from my tests these are the conclusions that I made:

Smart Lock 3.0 Pro

  • Everytime a minor change in the network happens that results in the AP provisioning, it will throw the nuki’s into the reconnect loop.
  • sometimes rebooting the nuki fixes it, but most of the times doesn’t. It may take 1 to 5 reboots to fix it. Sometimes going into the nuki WiFi settings and removing the network and joining again, fixes it.
  • if for some reason the lock doesn’t stay connected to the AP for more than 5 minutes, you better reboot/fix it, it will be hard for it to stick on its own.
  • as soon as it crosses the 10 min uptime in the AP, it will be 100% online working as intended, no disconnections or whatsoever until you reboot it or change any network config.

Nuki Bridge

  • same behavior of the pro 3.0 with the difference that it remains online in the AP but it doesn’t connect to the servers.
  • while you can’t reach nuki in the nuki app, you can through MQTT or webhooks (funny, isn’t it?)

My guess: nuki has a really hard time reaching the nuki servers when it boots or lost connection (disassociate from the AP) and it starts going havoc into a non recovery process. Typically the bridge recovers on its own after a few hours, but the pro doesn’t.

So bottom line is: nuki understands a lot of locks, but it’s really bad on networking so it seems. Again, I don’t have any other similar issue on all my other iot devices, some of them are even cheap stuff from AliExpress that I’d expect to work worse than premium smart locks.

I’m getting tired of working around this issue for a long time now, but I’m too lazy to search another lock vendor and sell my nukis. So I guess I’ll have to live with it and hope, with all the respect, that Nuki engineers hire someone that understands networking or find a fix. I’m sorry to put it this way, but I think you’ll understand the frustration.

Edit: Just to add an example of my lock today:

Basically yesterday I changed some network config (not related with the Nuki network) but since the AP had to re-provision, it dropped the Nuki connection like I’ve described. Then, it start its “re-connect loop” until today earlier this morning, I went to it, removed wifi, removed mqtt, removed battery, re-added battery, wifi/mqtt etc. played a bit with it and it got connected. As soon as I saw it was connected for more than 5 minutes, I knew it would stick. Now it’s more than 2h up and I know, that unless I change anything in the network, reboot the AP/lock, it won’t disconnect and it will be fully green 24/7. It has been like this for the past 3 months or so but it’s really limited that you have to deal with this struggle whenever a network change or reboot to lock happens. To prove my theory, I can post a screenshot tomorrow and it’ll be full green.

1 Like

Update: I got my Nuki bridge connection again stable with the nano-HD AP, after some fine-tunning. It appears that the Auto power mode of the AP is too much for the Nuki bridge. I turned down the power on the 5 GHz band and also on the 2.4 Ghz (-7 dB more). Also made sure that neigbouring APs were tuned down as needed. After this, the bridge had no problem connecting again. So, conclusion: bridges with firmware 2.17.0 are sensitive to the transmitting power of the nearby Unifi APs!

Just another coincidence, I’d say. Like I mentioned in my previous post, I’ve been watching/monitorizing the Nuki’s on my environment where I have little to no interference with multiple Unifi APs all tuned. Sometimes it appears that playing with some settings triggers an immediate result, but that’s just a coincidence because based on my experiments, Nuki will eventually connect and keep stable after a few reboots/re-configs. But of course, interference may play a role if it’s too much.

Following my previous post, like I said yesterday, here it is how the lock is currently:

So once again, my theory is correct.

If Nuki wants to fix it, it needs to understand that the issue happens when lock needs to start the connection with the Nuki servers and it fails or has a hard time. After that is achieved, it sticks until the AP reboots/reprovisions or the lock itself reboots. So problem is always associated with first connections or re-connections to Nuki’s servers.

Heyhow,

for my Unifi-Solution to Nuki Pro I have thise Update:

Nuki Pro 3 on Beta 3.8.2 works fine with my last Post-config.

image

But reconnection after me booting the router in the night takes tooo long (like described by @Miguel_Ruivo )

Smart Lock 4 Pro (Beta 4.1.1.) with my configs mentioned solution shows this:

image

@Juergen is there the same wlan fix in that 4 pro beta?

Thanx so much, but - to be honest - why do I have to do the job of Nuki research? Battery-safe-mode-WLAN should not be this magic for a company dealing with battery devices for years. :cry:

Stefan

If you mean the less aggressive sleep behaviour by setting the battery-saving to “medium”, yes this should behave the same in the latest betas of 3rd and 4th generation locks.

There’s a miriad of different configurations of APs, routers, firewalls, ISPs, internet tarifs and new softwares … and so little WiFi devices that need to run for months on a set of AA batteries. Nobody is perfect. We’re doing our best.

P.S: Unifis WiFi experience should be taken with a grain of salt (in general, but especially when trying to judge the online availability of a Nuki lock)

@Juergen You’re right when you say that unifi metrics can be sometimes misleading or not the most accurate. But in this scenario the uptime and experience seem to reflect exactly how nuki is available in the nuki app or not.

One more update that proves my theory. You can see now that uptime is 2 days and 23h (so 3 days already) and connection is rock solid. Problem is always after a reboot from lock or AP. Ok

Any update on this? I just recharged my battery and now it won’t connect to my WIFI whatever I try… I use firmware version 3.8.7, all my other devices work just fine on WIFI!

any update on this i’ve changed the battery to medium, i’m connected to the network, it connects works for like 1 minute then drops it. I’m on the beta program to try and get the update but it doesn’t work

Suffering from the same issue, using Nuki 4.0 Pro.
TP-Link Deco as well

You might also contact TP-Link, last time I did it I was not lucky because hard to know when connection becomes less stable but if we are a lot to contact them and also ask for the ability to change DTIM we can hop they will do something.

I also hop one day a setting implemented in the Nuki smart lock 4 pro will be implemented, within setting level to high but nothing is sure and I don’t know if it finally works for people who have been able to test it.

Hallo, I’m having similar issues with my Nuki 3.0 Pro. I’m losing Wifi connection from time to time. Since I use the Nuki to unlock a holiday apartment, this is really annoying because my guests can’t get into the apartment (I’m using MQTT via Wifi to unlock).

Reading all the discussion here, it seams the best for me is to use a Nuki Bridge and disable Wifi on my Nuki 3.0 pro. Then all communication with the Nuki runs via Bluetooth, and the bridge is constantly powered, so no issues with power saving on Wifi. This should be a reliable, stable solution, right ?

@Jürgen: is this correct ? I assume the Nuki Bridge supports MQTT ?

Thanks and regards
Konrad

I have the same issue, but for me the issues started after updating to firmware 3.9.5, before that it worked perfectly fine. I’m also using Ubiquiti Unifi accesspoints. I’ve tried all suggestions in this thread, but none of them helped. I’ve now connected my Nuki Pro 3.0 to an old Nuki Bridge I had laying around and the Internet connection is stable again, but of course this is not how it should be.

Thanks, Frank, for sharing your experience.

Can you help me with this: I checked the Nuki Bridge documentation in more detail and i understood that it does not support MQTT. It can be interfaced via an HTTP-API. Is this correct ? Does this work without an active Internet connection (to Nuki Server) ? I dont want to rely on Internet or any Nuki Server.

thanks and regards, Konrad

Sorry, I don’t have any experience with that.

1 Like

It does not support MQTT.
There is a local http API for the Nuki bridge.
I am not sure if it requires the bridge to be connected to the web but the API itself is local communication.

I have had two Nuki 2s running for years, I have had some problems with the API, but they work.
I have installed a nuki 4 and I have had to go several times to restart it with the resulting problem with the guests, now I am trying to return the lock and I do not have a support solution

I have the same problem since the update to 3.9.5 unfortunately. One of my Nuki locks is in another country & I’m not able to connect to it, this is very annoying and frustrating!
Can Nuki support do anything about it?