Nuki Smart Lock and Matter (or mqtt)

Is it possible to activate/deactivate Nuki Keypad autorizations from HA?
I have integrated my Nuki via MQTT but could not find any action / service which might offer this.

My usecase: based on a google calendar entry for the cleaning service I would like to activate their keypad authorization when the timeslot starts and deactivate it once its over.
The nuki app offers just static timeframes.

Finally decided on which lock to get and settled on the Nuki Pro (Gen 5). Problem is it’s not available in my country so want to make sure I’m getting this extra right before I try to find a way to get it shipped over.

  • There is absolutely no way to avoid using the app regardless of which way I connect the lock, correct? Sure there is no way of setting the lock up in AP mode, connecting directly to it and adding it to my network/SSID via a cheeky Nuki built-in web server or via Python in the same way I could do for my Broadlink IR/RF devices? Probably wouldn’t want this behaviour from a lock for security reasons come to think of it…
  • Running this over Wifi/MQTT will expose all of the same entities and actions that I would get through any other means? (not talking about any other Nuki add-ons, just the lock itself). I’ve seen some MQTT config editing being required when quick-scrolling through this thread, is that necessary to expose certain entities that would otherwise not be available?
  • Running this over Wifi/MQTT, even if I need to do initial setup via the Nuki app, I will be able to run fully local without ever requiring the app afterwards? So no issues either with the lock if I cut off it’s internet access ability in my router?
  • Even though I have the Sonoff Dongle E which I could set up in multiproto, I avoid having to add Matter/Thread as long as I can (as should everyone! Zigbee4Life!!! :joy:). My Dongle is nowhere near to the door so I assume it wouldn’t be an option anyway?
  • Aware that running this via Wifi and MQTT will consume a little more battery, a price I’m very willing to pay, but how bad are we talking in terms of battery consumption? I have a mesh AP located relatively close to the door so reception compared to Thread/Matter should be heaps better.
  • And just going back all the way to basics as I’ve never really been sold on wifi locks (I’ve been trying to find a Zigbee lock for the longest time but have never been able to find one that would fit or looks acceptable): Are we sure that Wifi locks aren’t subject to Deauth attacks? I get that the communication is encrypted once it’s established so trying to capture and repeat is probably a nogo, but pushing a lock off a network and having it reconnect to a spoofed SSID would be a different way to try and gain access and would circumvent the encryption I suppose?

Many thanks for any help!

I’m using the Nuki Ultra, but from what I understand, the Ultra and Pro are essentially the same in functionality. The main difference is that the Pro is designed for retrofitting, while the Ultra is not.

To answer your questions:

  1. Yes, you still need to set up the lock using the Nuki app. Even if you’re planning to use Matter or MQTT, both features must be enabled within the app first.
  2. When you add the lock to Home Assistant via MQTT, almost all entities are exposed automatically. I haven’t needed to add anything manually so far. That said, as you pointed out, if there are a few missing entities, you can still add them manually.
  3. The Nuki Ultra supports native MQTT, meaning Home Assistant can send lock/unlock commands and receive state updates entirely without cloud services. If your MQTT broker (e.g. Mosquitto) is running locally on HA, everything will continue to work even if the internet is disconnected.
  4. I’m not sure about using the Sonoff Dongle, but I’ve successfully used the Echo Show 15 (2nd gen) as the Matter controller, and it works fine for connectivity.
1 Like

Thanks @Kayut much appreciated.
I went ahead and ordered it and it should be arriving Wed, very much looking forward to it.

  1. I’ll probably be setting the app up on an android phone with netguard so I can block all internet requests while I’m using the app to set up the lock so as long as it just needs to estbalish a direct BT connection to the lock for setup that’ll satisfy my paranoia :rofl:
  2. Cool, thx, that’s what I was hoping for. Don’t think I’ll need anything fancy so as long as most entities are covered that’s great. But equally great to see I can include everything if needed via some extra messing around.
  3. Yup, got Mosquitto running locally and will keep everything local, thx for confirming
  4. Don’t think it will be relevant to me due to connection distance and my general aversion to it but thx for confirming that it’ll work if I do ever change my mind or am forced to adopt matter
  5. Still a bit iffy on wifi security for a lock but hey, at least nobody will know I have a smart lock looking from the outside so that’s a good start. Doesn’t prevent wifi sniffing from finding it if they then know how to identify it as a smart lock from the MAC address somehow, but I only know enough about it to worry myself and not enough to put my own mind at ease :rofl:

PS: chose the Pro over the Ultra only due to price. My front door isn’t anywhere near the living space so having it be a bit bigger vs the ultra wasn’t an issue. I know they’re not the quietest either but no issue for me for the same reason.
The Pro or Ultra were the only 2 locks that were an easy match for my door lock as most others here in Australia are deadbolt only and my deadbolt is integrated into a larger mechanism/casette that does the key latching. Sure there’s a name for that but can’t remember it atm :slight_smile:
Anything with a handle was also a no-go as there is a large vertical handle bar on either side of the door to push/pull the door. Having something with a handle behind it would look very off.
Also didn’t want to have to install an additional hub like would appear to be the case for the Aqara’s for example so you run out of options quickly. The Nuki’s are expensive by comparison but I’d rather invest a bit more in a quality system which fits my narrowminded view and this would appear to be a good fit for that.

Quick update, after some annoyances at the start when it was giving me grief pairing with the app in the absence of an internet connection, the lock is working beautifully via Wifi/mqtt.
2min install on the door and have been loving it ever since.
Thx for the assist @Kayut!

2 Likes

Hello Nuki uses.
Unbelievable thing happened: my wife came to me asking for NUKI locks…
We are looking at Nuki 5th gen.

Besides our house, she would like to install smart locks at her parents’ places.

While I can start with the Thread in our house, I would avoid it in the remaining locations. So if remote control is the case, they will run Wifi. What are the differences between Wifi and Thread-based connections?

  1. I assume the battery lasts longer when on Thread. Can you compare its durability for Wifi vs Thread?
  2. What about controlling the lock while connected via Wifi? Is the reaction time somehow impacted compared to Thread? I would expect that Wifi means less frequent heartbeat, resulting in higher lag in received commands. What are experienced times?
  3. Any other disadvantages of being on Wifi?

Thank you in advance

PS. I noticed that MQTT is mentioned only for Nuky up to gen4. Does it mean that gen5 does not support this method anymore?

Hi,
Does somebody connected Nuki smartlock with MQTT over Thread? I use Matter over Thread, but I would like to use MQTT also. With Wifi I can use MQTT but I would like to use Thread.

Yes , I own the Nuki Smart Lock Gen4 (non pro, so without Wifi). I connected via Matter over Thread first and then enabled MQTT as well. Works perfectly. (see also Nuki Smart Lock and Matter (or mqtt) - #116 by jhol-byte)

Thanks. In the meantime I enabled NAT64 in the Thread router configuration and MQTT is working via Thread. I don’t know if this is the only solution or without that how the Nuki finds the mqtt broker.