Hello,
I am very frustrated at the moment. I bought 2 Smartlock 4.0 pro because I wanted to integrate them into Home Assistant via MQTT.
Unfortunately, I discovered that MQTT is totally unreliable.
Both Smartlocks have a very good wifi connection and are continuously accessible via the Nuki app. However, the MQTT connection keeps breaking off and the devices are displayed as unavailable in Home Assistant, there is no reconnect, a connection is only re-established when the battery pack is removed and reinserted.
This can’t be the solution! MQTT is a long-established standard, why is the implementation here so unreliable?
I have already adjusted the energy saving settings as described in the FAQ, only the “Fast” setting allows a reasonably stable connection, but due to the high battery consumption this is not a solution, even on the Medium setting there are connection interruptions. So the problem seems to be with the energy-saving settings, surely that must be solvable?
A look at the beta forum shows that the problem has been known for many versions and a solution has been promised every time, but unfortunately nothing seems to help so far - as shown by the user reports that continue to report problems. @Nuki Team, when will the problem be fixed permanently? As a customer, I expect a widely advertised function such as MQTT for Home Assitant to work reliably!
I installed a nuki smartlock 4 pro and confiugure in Home Assistant with MQTT (Mosquitto) and I have no problem. Could it be related to some specific HA or MQTT specific version?
I configured nuki MQTT connection with user and password
I was also able to configure Nuki 4.0 pro with MQTT within home assistant, however I am now finding that I have a lot less functionality and sensors when compared to other users I see online.
Here is what mqtt discovered from my lock (by the way it did not even identify it as a “Nuki lock” simply as unamed:
Any ideas about what could be the issue? Another thing, I just connected this today and baterry went from 95% to 76% in a matter of 6 hours, is this normal?
Same here, but normally my mqtt connection is reliable most times.
Bit i‘ve seen very often in recent times that after a lock event the mqtt connection drops and is reestablshed 15-30sec later again.
This only happens on lock events, not on unlock events.
Further i discovered that my Bluetooth connection drops at these times. Seems as the communication module restarts after certain lock events.
It seems connection gets restored via the app also by simply going into the MQTT setting and hitting save again without retyping user/pass, leaving all as is, after that it magically comes back online in HA,
for now I’ve sorted to have an automation send me a notification on my phone when the MQTT entity becomes unavailable, with a link to tasker app where I’ve setup the routine that goes till the MQTT menu of the lock and hit save for me,
suboptimal, to say the least, I just tried to access the nuki web hoping I could do this via web hence possibly further automating the restore process to no involve my manual intervention but it does not expose MQTT functionalities.
alias: Nuki mqtt fail alert
description: Handle connection restore via tasker on android
trigger:
- platform: state
entity_id:
- lock.your_lock_id
to: unavailable
for:
hours: 0
minutes: 2
seconds: 0
condition: []
action:
- service: notify.your_android_phone_id
metadata: {}
data:
title: ⚠️ Nuki MQTT connection fail
message: Lock device has become unavailable in Home Assistant
data:
actions:
- action: URI
title: Restore with tasker
uri: app://net.dinglisch.android.taskerm
mode: single
I have the same issue!!! It’s totally unreliable.
Via App it’s working perfectly, MQTT after 1h, 2h it creashes and Nuki becomes unavailable untill you go in the app and save again the MQTT connection…
Given this is a long known standing issue, without a clear fix in sight as it looks like we’re going with trial/error here with no clear root cause to address, and given we know “simply” re-saving the mqtt config restores the connection,
can we at least get shipped a way for us to do this operation programmatically on the device with a webhook that can be fired by homeassistant itself?
so that when it knows it has lost connection it can then self-recover it?
all this hook should be allowed to do is re-save existing MQTT connection config, triggering the same flow an user would do by hitting the save button, nothing more, so it should not be too much security-critical to expose given its not going to really “change” anything, only affect/restore local mqtt connectivity
not perfect of course, but would still be better than current status quo imho
if I were a PM at nuki the jira ticket would look like:
As a User,
I want to have a webhook available on my cloud connected nuki device that triggers re-save of existing mqtt-config,
so that when homeassistant looses mqtt connection it can selfe-serve restore it through an automation calling said webook, improving device reliability
this of course is meant as patch while the actual root cause is being researched, but at least it would give us users a better experience for the time being
the reason I suspect this is working could be that after sometime for whatever reason the device either loses or forgets/ignores the home assistant discoverability selection, but this is just speculation
the frequency of the disconnections is totally random, for example today I had two events in late evening while rest of day was ok, if we had said webhook we could restore connectivity automatically
Same and identical issue. If I set the WiFi to fast reconnection, the connection between HA and Nuki seems more stable. However, in one week, the battery goes from 100% to 60%. If I set the WiFi connection to medium, Nuki is unreachable most of the time. It is not acceptable to pay 279 euros to become a beta tester.
Same problem here, random disconnections. I usually solve it by removing and replacing the power pack.
This is pretty ridiculous for a 300€ device that just doesn’t work.
My wifi network is stable and works flawlessly when the device disconnects from the network when MQTT stops working, my wifi network is not the problem.
The Nuki team should understand that this device is a critical security device, not a convenience device, a disconnection means you won’t be able to get into your house.
I’m talking about MQTT disconnecting often and being unreliable.
I know about improvements with beta firmwares and have been following the discussions closely. However, I don’t want to install a beta firmware on a critical device. I guess my question then is “When will it be released?”
Thank you