Nuki Smart Lock in Home Assistant: MQTT, Matter and Thread Explained
A smart door lock only gets smart once it talks to the rest of the house. And that is exactly what happens the moment your Nuki Smart Lock shows up in Home Assistant: the hallway light comes on when you unlock the door in the evening. You get a message on your phone when the front door is still standing open at 11 p.m. And you can see at a glance whether the door is locked – without opening the Nuki app, without a cloud, entirely inside your own network.
Getting there, though, is more confusing than it should be. Matter, Thread, MQTT, Wi-Fi, Bridge – there feel like five different guides out there, and they all contradict each other. In this article I clear that up: first I explain how these paths fit together, then which one suits your model, and after that we set them up step by step.
How to get the Smart Lock onto the door in the first place – swapping the cylinder, calibration, keypad and door sensor – is covered in my article Setting up the Nuki Smart Lock Ultra. This one is purely about the Home Assistant integration.
Nuki and Home Assistant: what works – and what doesn’t
Before we talk protocols, the most important question first: what do you get out of this? Depending on the path you choose, a different amount of information ends up in Home Assistant. In the best case (MQTT) you get this:
- The lock itself as a
lockentity – lock and unlock, plus a dedicated button for “open door” (pulling the latch) - Lock’n’Go as a button – unlock (optionally pulling the latch), wait a moment, lock again
- Battery level in percent, plus warnings for a critical battery and “currently charging”
- Door sensor – open or closed (if you have one paired), including its battery warning
- Keypad battery warning (if a keypad is paired)
- The firmware version of the lock as its own sensor
Clicking the device shows you every entity. The rest hides under Diagnostics: firmware version, battery charge state, and the low-battery warnings from the keypad and door sensor.
On my setup, that’s exactly eleven entities after the MQTT setup – without a single line of YAML. That’s enough to control the lock, query its state and use both in automations.
What Home Assistant can’t do with the Nuki
The limits matter just as much – I got stuck on them myself early on:
- Tap to Unlock has nothing to do with Home Assistant – on iPhone and Android alike. In Smart Home Mode, the digital key in your wallet is issued by the respective ecosystem (Apple Home, Samsung SmartThings or Google Home), each with its own Matter hub. In Nuki App Mode, the Nuki app unlocks the door instead, with no smart home system needed. Home Assistant can’t create keys like that, but it controls the lock regardless – details on that in the FAQ at the end.
- You still manage keypad codes and fingerprints in the Nuki app. Neither MQTT nor Matter can create or delete codes. The keypad talks to the lock directly over Bluetooth and doesn’t even show up in Home Assistant as its own device – all you get is its battery warning. (There are workarounds, more on that below.)
- Out of the box, Home Assistant doesn’t show who unlocked the door. Whether by fingerprint, app or code – that information stays in the Nuki app. Why that is and what it means for your automations, I explain further down.
- The Nuki Opener (for the intercom) plays by completely different rules – it has neither Wi-Fi nor Thread. More on that below as well.
The thinking error: Matter, Wi-Fi and MQTT are not three alternatives
This is the point where nearly every guide on the internet sows confusion – and where I took the wrong turn myself at first. “Should I use Matter, Wi-Fi or MQTT?” is already the wrong question, because it throws two completely different layers into one pot:
- The radio path – how the lock gets onto the network at all: via Wi-Fi, via Thread or via Bluetooth.
- The protocol – which language Home Assistant and the lock speak over it: MQTT, Matter or the HTTP API of the Nuki Bridge.
So Wi-Fi is not an alternative to MQTT – Wi-Fi is a road, MQTT is the language that travels on it. And once you keep the two apart, the whole thing becomes surprisingly clear:
| Protocol ↓ / Radio path → | Wi-Fi | Thread | Bluetooth |
|---|---|---|---|
| MQTT | ✅ yes | ✅ yes – but only with NAT64 | – |
| Matter | ❌ doesn’t exist on Nuki | ✅ yes | – |
| Bridge HTTP API | – | – | ✅ only with Nuki Bridge hardware |
Three conclusions follow from this table, and they shape the entire rest of the article.
1. On the Nuki, Matter only works over Thread – never over Wi-Fi
This is the single most common misconception: plenty of people buy a smart lock with built-in Wi-Fi and assume Matter runs over it. It doesn’t. Nuki made a deliberate decision against that and puts it unusually plainly in their own documentation: because Wi-Fi draws so much power, they will support Matter in the future as well exclusively over Thread. So if you want Matter, you need a Thread Border Router – meaning dedicated hardware for it.
2. MQTT runs over Thread too – and that’s exactly the trick
Almost every comparison out there frames it like this: MQTT means Wi-Fi and eats your battery, Matter means Thread and is efficient. So you’d have to choose. That’s not true.
Nuki even says so themselves: in the app’s Smart Home menu, the entry “Configure MQTT” literally reads “via Wi-Fi or Thread”. And I tried it on my own Smart Lock Ultra: the built-in Wi-Fi is switched off, the lock hangs exclusively in the Thread network – and MQTT runs anyway. Both protocols, MQTT and Matter, talk over the same Thread radio path at the same time. The Wi-Fi stays off, and you still get all the data. After switching from Wi-Fi to Thread, MQTT just has to be disconnected once and set up again.
There’s one catch, though: a switch without which this fundamentally can’t work – and it’s off by default.
A Thread device only knows IPv6. Your Mosquitto broker runs on Home Assistant and is reachable at a perfectly ordinary IPv4 address, something like 192.168.178.42. Out of the box those two can’t talk to each other at all – they speak different address families.
The translator in between is called NAT64, and it lives in the Thread Border Router. The OpenThread Border Router app (formerly add-on) ships with NAT64 disabled by default. If you don’t tick that box, you’ll never get MQTT over Thread running – and then you understandably conclude that it “doesn’t work”. That’s exactly how the false claims I kept tripping over while researching come about.
So: app OpenThread Border Router → Configuration → enable NAT64 → restart the app. Nuki does mention this as a prerequisite themselves, by the way, but only in a subordinate clause in their docs.
3. Matter isn’t data-poor – the opposite is true
“Matter basically only gives you the lock entity” – you read that everywhere, and it isn’t true. I counted: over Matter my Ultra delivers twelve entities, over MQTT eleven. And they are not the same ones – each path knows things the other doesn’t. So it isn’t “a lot vs. a little”, it’s two different data sets. You’ll find the full side-by-side comparison further down.
Which path fits your Nuki?
Which paths are open to you depends on the model. Roughly: everything from the 4th generation onwards can do MQTT and Matter, older models need helpers. What also matters is current firmware – MQTT over Thread only arrived later, via an update.
| Model | MQTT over Wi-Fi | MQTT over Thread | Matter | My recommendation |
|---|---|---|---|---|
| Smart Lock Ultra | ✅ | ✅ | ✅ | MQTT (over Thread if you have a Border Router) |
| Smart Lock Pro (5th gen) | ✅ | ✅ | ✅ | same as Ultra |
| Smart Lock Go | ✅ | ✅ | ✅ | MQTT over Wi-Fi (no extra hardware) |
| Smart Lock Pro (4th gen) | ✅ from firmware 4.0.28 | ✅ from firmware 4.1.8 | ✅ | MQTT |
| Smart Lock 4th gen (non-Pro) | ❌ no Wi-Fi built in | ✅ from firmware 4.1.8 | ✅ | MQTT over Thread – the only MQTT path here |
| Smart Lock 3.0 Pro | ✅ from firmware 3.5.11 | ❌ | ❌ | MQTT over Wi-Fi |
| Smart Lock 3.0 / 2.0 (non-Pro) | ❌ | ❌ | ❌ | Nuki Bridge, HomeKit or ESP32 (see special cases) |
| Nuki Opener | ❌ | ❌ | ❌ | Nuki Bridge (see special cases) |
The recommendation: if your lock can do MQTT, use MQTT. It’s the path Nuki themselves recommend in their own developer forum whenever people ask about Home Assistant – faster, more local and with more data than the Bridge integration. Matter is the simpler alternative with a different data set (operating mode instead of Lock’n’Go and battery warnings), and it’s mainly worth it if you’re building a Thread network anyway. Setting up a Thread network just for the Nuki is not something I’d recommend.
What you need
- A Nuki Smart Lock – in my case the Nuki Smart Lock Ultra*
- A running Home Assistant installation (mine is Home Assistant OS on a Raspberry Pi)
- For MQTT: the Mosquitto broker as an app – no extra hardware needed
- For Matter or MQTT over Thread: a Thread Border Router, e.g. the Home Assistant Connect ZBT-2*
- Optional: door sensor* and Keypad 2 NFC* – both feed additional data into Home Assistant
The Nuki Smart Lock Ultra, the Keypad 2 NFC and the door sensor were provided to me by Nuki as test samples – Nuki had no influence on the content of this article.
Path 1: connecting the Nuki via MQTT (recommended)
MQTT is the message hub of the smart home: devices push their states to a broker, and whoever is interested – Home Assistant, in this case – listens in. If you’ve never worked with MQTT before, you’ll find the basics in my article MQTT on the Raspberry Pi. For our purposes, the app inside Home Assistant is perfectly sufficient.
Step 1: install the Mosquitto broker
If you don’t have it yet: in Home Assistant, go to Settings → Apps → Install app, install the “Mosquitto broker” and start it. Home Assistant will then detect the broker on its own – you only have to confirm the MQTT integration under Settings → Devices & Services with a single click.

Search for Mosquitto broker in the app store and install it. 
MQTT then shows up under Settings → Devices & services.
Step 2: create a dedicated user for the lock
The Mosquitto broker uses Home Assistant’s user management. So go to Settings → People → Users and create a new user, for example nuki. While you’re at it, enable “Can only log in from the local network” – the lock doesn’t need any more rights than that.
Important: the username and the password may each be 32 characters long at most. The Nuki firmware won’t swallow longer passwords from your password manager – a mistake you can spend an eternity hunting for while debugging.
Step 3: choose the radio path – Wi-Fi or Thread
Before the lock can speak MQTT, it has to get onto the network in the first place. You have a choice:
- Wi-Fi (the easy way, no extra hardware): set it up in the Nuki app under Features & Configuration → Built-in Wi-Fi. Careful: the lock can only do 2.4 GHz, no Wi-Fi 6 and no WPA3 – so on modern routers you may have to switch to WPA2/WPA3 mixed mode.
- Thread (the efficient way, needs a Border Router): for this you enable Matter/Thread as described in Path 2. The lock then lives in the Thread network, switches its Wi-Fi off by itself – and still speaks MQTT over it. Mandatory prerequisite: NAT64 must be enabled on the Border Router, otherwise the lock can’t reach your broker.
From practice: while setting up MQTT over Thread, the Nuki app showed me an error message – and the connection came up anyway. Don’t let that throw you off: check in Home Assistant whether the entities show up before you start hunting for problems.
Step 4: enable MQTT in the Nuki app
Now comes the actual step. In the Nuki app, tap your Smart Lock and go to Settings → Features & Configuration → Smart Home → MQTT. There you enter:
- Host: the IP address or hostname of your Home Assistant server, e.g.
192.168.178.42. Just the bare IP or name – nohttp://in front, no port behind it. This is by far the most common mistake. - Port:
1883 - User / password: the MQTT user you just created in Home Assistant
- Auto Discovery: enable it – this makes the lock announce itself to Home Assistant on its own
- Allow Locking: enable it if you want Home Assistant to control the lock and not just watch it. If you leave it off, the lock won’t even subscribe to the control commands – that’s a clean security option, but it’s also the explanation for “Home Assistant can’t unlock the door”.
Step 5: the result in Home Assistant
After a few seconds, a new device appears under Settings → Devices & Services → MQTT. The device carries the name you gave the Nuki in the app. It can take a few minutes for the Smart Lock to show up; to speed that along, open the door once via the app or the keypad. You now have – without a single line of YAML – these entities:
| Entity | Type | What for |
|---|---|---|
| Smart Lock | Lock | Lock and unlock, status |
| Unlatch | Button | Pull the latch – the door really opens |
| Lock’n’Go (also with unlatch) | Button | Head out and lock automatically |
| Battery | Sensor (%) | Battery level |
| Battery Critical / Charging | Binary sensor | Warning, or “currently charging” |
| Door Sensor | Binary sensor | Door open/closed (only with a door sensor) |
| Keypad Battery Critical | Binary sensor | Keypad battery low (only with a keypad) |
| Firmware Version | Sensor | Firmware level of the lock |
You’ll find the automatically created device in Home Assistant under Settings > Devices and Services > MQTT – that’s also where you can assign it to a room and pull information from the device details onto your dashboards.
It gets interesting when you look at what the lock writes into the broker – with MQTT Explorer, for example:
Home Assistant won’t tell you “who unlocked the door”
I’m stressing this point because I was hoping for it myself – and because I haven’t found it honestly described in any other article. I had fully counted on being able to see in Home Assistant, via MQTT, who opened the door: the kids by fingerprint, the neighbor by numeric code, me by app. I wanted to build my automations on that.
Out of the box, that isn’t possible. Home Assistant’s activity log only states that the door was locked or unlocked. The trigger, the user and the keypad code are missing, and Nuki’s auto discovery doesn’t create an entity for them either. According to Nuki’s MQTT specification, though, the lock also sends these details to the topic nuki/<Nuki-ID>/lockActionEvent with every action: the action, the trigger, the user’s Auth-ID and the keypad code ID, but only as numbers. You can use this topic in automations via an MQTT trigger and map the numbers to the people in your household yourself. The more convenient route is the Nuki Web API with the HACS integration hass_nuki_ng, but that runs through the Nuki cloud.
In practice that means: don’t build your automations around the question “who”, but around “when and in what state”. That still gets you surprisingly far – the details are in the paragraphs that follow.
When it doesn’t work: MQTT troubleshooting
- The lock won’t connect: enter the host as a bare IP (no
http://, no port), and retype the username and password. Typos are the number one source of errors here. - TLS/encrypted broker: the Nuki firmware can’t do TLS and speaks exclusively to the unencrypted port 1883. If you’ve switched your broker to TLS-only, you won’t get in.
- Broker outside the home network: the lock only connects to private IP addresses, so a cloud broker won’t work.
- No device shows up in Home Assistant: is “Auto Discovery” enabled in the Nuki app? And is your MQTT integration running with the default discovery prefix
homeassistant? Nuki has that hard-coded – a different prefix means: no devices. - Home Assistant can’t unlock: “Allow Locking” is off in the Nuki app.
- Wi-Fi problems: 2.4 GHz only, no WPA3, no Wi-Fi 6.
- Firewall/VLAN: port 1883 has to be reachable from the lock.
- Zombie device after removal: the discovery messages sit in the broker as “retained”. If you delete the lock in Home Assistant, it just comes back – only deleting the topics in the broker settles it for good.
Path 2: connecting the Nuki via Matter over Thread
The Matter route is worth it if you want to build a Thread network anyway, if you’d like to use the lock in Apple Home or Google Home alongside Home Assistant – or if you want to run MQTT over Thread and therefore need a Border Router regardless.
Step 1: set up a Thread Border Router
Without a Thread Border Router, nothing happens at all – Thread is its own radio network, and the Border Router is the bridge into your LAN. Because that’s a topic in its own right (picking a stick, flashing firmware, distributing channels cleanly), I’ve split it out into a separate article: Setting up a Thread Border Router in Home Assistant. There I show you step by step how to turn a Sonoff stick with OpenThread firmware into a Border Router.
Two things from it are decisive for the Nuki:
- Enable NAT64. The app ships with it disabled. Without NAT64, MQTT over Thread never comes up – and Nuki names it as a prerequisite themselves.
- One stick per radio standard. If your stick is already running as a Zigbee coordinator, for ZHA or Zigbee2MQTT, you need a second one for Thread. Home Assistant has deprecated multiprotocol (Zigbee and Thread on one stick) and recommends a separate stick for each protocol.
Step 2: install the Matter Server
Under Settings → Apps → Install app, install and start the Matter Server app if it isn’t running yet. Home Assistant then sets up the Matter integration automatically.
Step 3: enable Matter on the lock and pair it
- In the Nuki app: enable Settings → Features & Configuration → Smart Home → Matter. The app opens the pairing window. You’ll find the Matter code on the back of the lock and in the packaging.
- In Home Assistant: Settings → Devices & Services → Add device → Add Matter device.
- Scan the QR code with the Home Assistant Companion app on your smartphone. The pairing itself runs over Bluetooth, and the phone has to be on the same network while it does.
Pairing happens in two stages: first you open the pairing window on the lock in the Nuki app, then you pick the device up in Home Assistant. I’ll walk you through both halves – this is the part where I got stuck the longest.
First half: in the Nuki app
In the Nuki app, open your Smart Lock’s settings and go to Features & Configuration → Smart Home. You’ll see two entries: Connect via Matter and below it Configure MQTT. Take a look at the subtitle under MQTT – it becomes important in a moment.

Tap Connect via Matter. The app briefly explains what this does, and mentions one requirement that’s easy to skim past: you have to be within Bluetooth range of the lock. That very first contact doesn’t happen over the network at all – it happens over Bluetooth. I’ll explain why further down. Tap Activate.
Now the app asks whether you want to use Tap to Unlock with your wallet. You don’t need this for Home Assistant – that’s the Smart Home Mode of Tap to Unlock I described above. Tap Not now.
And with that, the pairing window is open. The app asks you to scan the code in your smart home app. The clock is now running: the window stays open for roughly 15 minutes. Just leave the Nuki app open and switch over to Home Assistant.
Second half: in Home Assistant
Get your Matter code ready. You’ll find it on a card in the box and on the back of the lock – a QR code with a numeric code underneath. Treat it like a key: it does not belong in a blog post, which is why it’s blacked out in my photo.
Now open the Home Assistant Companion app – not the browser on your computer. Go to Settings → Devices & services and pick the Matter integration. Since Home Assistant 2026.9 there’s also a shorter route via Settings → Connectivity → Matter, where Add device sits in the bottom right corner.
Tap Add device. Be careful not to hit Add hub by accident – that’s something else entirely.
Home Assistant asks whether your device is new or already connected to another Matter controller. If the lock isn’t paired anywhere yet, choose “No. It is new.”
Now scan the code – and do it here, inside the Companion app. Not with your iPhone’s camera app. Sounds like a detail, but it’s the trap I write about at length below.
iOS takes over and asks for confirmation. Read this dialog carefully. It has to say “Home Assistant”. If it just says “Home”, you’ve landed in the Apple Home branch – cancel and start over.
And then you wait. Commissioning took me a good minute – don’t let the spinner make you nervous. If everything goes through, the Nuki app confirms the connection and the lock shows up in Home Assistant as a new device.
Two stumbling blocks: Matter requires IPv6 to be enabled on your network (link-local is enough) – on some routers that’s off by default. Also check in Home Assistant under Settings → System → Network that IPv6 is set to “Automatic”. And if you work with VLANs, mDNS has to be allowed through between your phone, Home Assistant and the Thread network. On my Fritzbox I didn’t have to change any settings. If Home Assistant runs as a VM on a NAS, the virtual network adapter has to pass IPv6 multicast as well – on our UGREEN NAS that was not the case in the default MacVTap mode (details in the NAS article).
The damper: PIN codes can’t (yet) be managed from Home Assistant
Here I have to bust a myth that’s currently making the rounds through a lot of articles. With version 2026.4, Home Assistant did indeed get PIN management for Matter door locks: create users, assign codes, hand out one-time access for guests. Sounds great – and it still doesn’t work with the Nuki. Nuki’s firmware doesn’t expose the Matter commands needed for it. Nuki’s reasoning includes the facts that Matter PINs don’t allow letters and that the Nuki keypad has no zero key. Nuki lists the point as “under review”, and there’s no timeline.
In short: in 2026 you still hand out keypad codes in the Nuki app. The workarounds run through the Nuki Web API or an ESP32 bridge – more on that in a moment.
Both at once: MQTT and Matter over Thread
Now comes the part that made the whole effort worthwhile – and that I haven’t found in any other article.
As soon as you enable Matter and the lock joins the Thread network, it switches off its Wi-Fi by itself. At that point my MQTT connection dropped out – and I was convinced that the two paths were mutually exclusive. They are not. The MQTT connection just has to be set up once more in the Nuki app, and since then both run in parallel:
- Wi-Fi on the lock: off
- Matter over Thread: running – 12 entities
- MQTT over Thread: running – 11 entities
So you get both data sets over the same power-saving radio path – provided NAT64 is running.
Who delivers what? The side-by-side comparison
I counted this on my own lock instead of copying it out of forums:
| What | MQTT | Matter |
|---|---|---|
| Lock and unlock | ✅ | ✅ |
| Battery level in % | ✅ | ✅ |
| Door sensor (open/closed) | ✅ | ✅ |
| “Open door” (pull the latch) | ✅ | ✅ |
| Lock’n’Go | ✅ | ❌ |
| Keypad battery warning | ✅ | ❌ |
| Door sensor battery warning | ✅ | ❌ |
| Switch operating mode | ❌ | ✅ |
| Thread diagnostics (channel, role, network) | ❌ | ✅ |
| Identify button | ❌ | ✅ |
| Who unlocked the door (as an entity) | ❌ | ❌ |
| Total | 11 | 12 |
Over Matter, “open door” isn’t a separate entity – it’s built into the lock entity itself. The lock’s dialog has an Open door button, and in automations you use the lock.open action. According to Nuki, Home Assistant is currently the only Matter hub that tells unlocking and opening the door apart; other Matter platforms run whichever unlock action you’ve set in the Nuki app.
My recommendation: if you have a Thread Border Router anyway – take both. MQTT gives you Lock’n’Go and the battery warnings from the keypad and door sensor, Matter gives you the operating mode and the hook into other ecosystems. And because everything runs over Thread, it costs you nothing in battery life.
When Matter pairing fails: the traps
The Matter commissioning cost me an entire evening, with error messages that tell you nothing at all. To spare you that, here are the points where it got stuck for me. Work through them in this order.
1. Matter has to be enabled in the Nuki app – the QR code alone isn’t enough
That was my main mistake. The Matter code on the back of the lock and in the packaging is only the address – it doesn’t make the lock listen. A Matter device only accepts a pairing while it’s broadcasting in pairing mode, and you open that window exclusively in the Nuki app: Settings → Features & Configuration → Smart Home → enable Matter. It only stays open for about 15 minutes; after that you have to open it again.
2. Don’t scan the QR code with the camera app
If you point the iPhone camera at the code, iOS recognizes it as a Matter code and immediately offers to add the lock to Apple Home. That’s the wrong ecosystem branch – and afterwards the code is burned for Home Assistant. The code has to be scanned inside the Home Assistant Companion app.
This is how the trap springs: the moment the code is in frame, iOS pops up a yellow “Open in Home” button at the bottom. Tempting – and exactly wrong.
Tap it and you end up here: Apple Home wants to take over the lock. This is your last chance to back out. Close the dialog and scan the code in the Home Assistant Companion app instead.
3. Pairing necessarily runs through your phone
A fresh Matter device isn’t on any network – it has no IP and can’t be reached over anything. So first contact happens over Bluetooth, and that’s how it gets told the Thread credentials in the first place. Home Assistant deliberately doesn’t use its own Bluetooth for this (mine runs in a VM and wouldn’t have any) – your smartphone is the Bluetooth module. That’s why it only works through the Companion app and not in a browser. In the end it worked with an iPhone 16; the iPhone 17 Pro refused to complete the pairing for reasons I never figured out.
4. The nastiest error: the app uses the wrong address
This is where I was stuck the longest. The pairing kept aborting at “Configuring”, and the Matter Server log said – nothing. Not a single attempt. Home Assistant was never asked.
The cause is a known bug: during Matter pairing, the Companion app reaches for your external address (a Cloudflare tunnel, in my case) instead of talking to Home Assistant locally. The connection runs into a timeout, and all you see is a meaningless error message.
The fix: in the Companion app, go to Settings → Companion App → Connection, enter the internal URL (e.g. http://192.168.178.42:8123 – or without the port on a fresh HAOS installation from Home Assistant 2026.8 onwards; with http, not https) and add the SSID of your home Wi-Fi. The app can only tell it’s on your Wi-Fi if your phone gives it location access set to ‘Always’ (iOS) or ‘Allow all the time’ (Android) – without that, it can’t read the SSID and sticks with the external address. Important: restart Home Assistant afterwards – for me the change only took effect after that.
And what if the log keeps saying “NoAck”?
Then your Border Router is reporting that it’s calling out to the lock but getting no acknowledgment back. It looks dramatic, but it’s often just a secondary symptom – I chewed on it for hours even though the actual error was somewhere else entirely.
Still, it holds true: your first Thread device has the hardest time of it. With Zigbee, your existing devices span a mesh that bridges radio dead spots. With Thread you’re starting from zero – and of all things, a battery-powered lock in a metal door has to cover the entire distance to the Border Router on its own. A mains-powered Thread device halfway along automatically becomes a router and stabilizes the network.
Myth buster: the “Nuki” integration in Home Assistant needs the Bridge
This is the trap nearly everyone falls into – me included. You search Home Assistant for “Nuki”, find an official, built-in integration called Nuki, click it – and you’re asked for an IP address, a port and a token. So you go hunting in the Nuki app for the HTTP API you’re supposed to enable. And you keep hunting. And you find nothing.
The reason: this integration talks exclusively to the Nuki Bridge – the separate piece of hardware you have to buy on top. The Smart Locks themselves have no local HTTP API, despite their built-in Wi-Fi. Their Wi-Fi serves only two purposes: remote access via the Nuki cloud, and MQTT. Nuki staff now answer this question routinely in their own developer forum – and then recommend it themselves: use MQTT.
That makes the built-in “Nuki” integration effectively legacy for modern locks. It only stays relevant if you already have a Bridge anyway – or if you run an Opener.
Special cases: Opener, older locks and keypad codes
There are three things MQTT and Matter don’t cover. If one of these applies to you, here’s the direction to go – full guides for them would burst this article:
- Nuki Opener* (the add-on for the intercom): it has neither Wi-Fi nor Thread, so neither MQTT nor Matter. The route goes through the Nuki Bridge and the built-in “Nuki” integration – which in return gives you a nice bonus: a
nuki_eventwhen someone rings, so you can react to the doorbell at the front door. - Older locks (Smart Lock 2.0/3.0 without “Pro”): They have neither Wi-Fi nor Thread. You have three options: the Nuki Bridge, HomeKit over Bluetooth or your own bridge built with an ESP32. With HomeKit, Home Assistant adds the lock directly through the “HomeKit Device” integration; your Home Assistant machine needs Bluetooth or an ESPHome Bluetooth proxy for that. With an ESP32, the Nuki Hub project talks to the lock over Bluetooth and pushes everything into MQTT. There’s an ESPHome component as an alternative. Handy side effect: Nuki Hub also supports the Opener and can even manage keypad codes.
- Managing keypad codes from Home Assistant (e.g. automatically creating a code for the cleaner and deleting it again): neither MQTT nor Matter can do that. Locally, you can do it with an ESP32 bridge such as Nuki Hub, which also talks to the lock over Bluetooth and can add, change and delete keypad codes via MQTT. Without extra hardware, that leaves the Nuki Web API with the HACS integration hass_nuki_ng, which brings keypad codes and users into Home Assistant as switchable entities. That runs through the Nuki cloud, though, so you give up being fully local.
Automation ideas for the Nuki
Now for the fun part. Because Home Assistant doesn’t know who unlocked the door out of the box, we build the automations on state – and that works well. How to create automations in general is covered in my article Creating Home Assistant automations.
My favorite: light on when it’s dark and someone unlocks the door
This is the automation that runs at our place every day, and it doesn’t need a single extra device. As soon as the lock is unlocked and the sun is below the horizon, the hallway light comes on. Whether by fingerprint, by app or by key – whoever comes home in the evening never stands in the dark.
alias: Hallway light on arrival in the dark
triggers:
- trigger: state
entity_id: lock.falkenweg_3
to: unlocked
conditions:
- condition: sun
after: sunset
before: sunrise
actions:
- action: light.turn_on
target:
entity_id: light.flur
data:
brightness_pct: 60
mode: single
Replace lock.falkenweg_3 with the name of your lock and light.flur with your lamp. The trick is the sun condition: it only switches the light on between sunset and sunrise – during the day nothing happens, even though the automation triggers.
More ideas
- Goodnight check: at 10:30 p.m., check whether the door is locked – if not, send a notification to your phone or just lock it automatically.
- Door-open warning: the door sensor reports “open” for more than ten minutes → push message, for example via a Telegram bot. That saves you on the day the door was only pushed to.
- Battery watchdog: battery level below 20 % → reminder to charge. On the Ultra, a USB-C cable is all it takes.
- Tie in presence: the door gets locked and nobody is home anymore → turn the heating down, lights off.
- Keypad battery: the keypad and the door sensor report their critical battery level too – there are dedicated sensors for that.
A word on security: think hard about whether you want to set up automatic unlocking – via geofencing, say, when you approach the house. I deliberately use automations only for locking and for notifications. At our place, unlocking is always an active step: by fingerprint, by code or by app. A GPS signal is too shaky for me as the sole thing that opens my front door.
Conclusion
If you remember only one thing from this article, make it this: the radio path and the protocol are two different things. Once you keep them apart, the confusion around Matter, Wi-Fi and MQTT dissolves on its own.
And then it turns out the widespread either-or question isn’t one at all. On my setup both run at the same time over Thread – MQTT for Lock’n’Go and the battery warnings from the keypad and door sensor, Matter for the operating mode and the hook into other systems. The lock’s Wi-Fi is completely off while all that happens. The key to it is a single checkbox almost nobody knows about: NAT64 in the Border Router. Without it, MQTT over Thread cannot work – and that’s exactly where all those claims that it doesn’t work come from.
If you don’t have a Thread Border Router and don’t want one: use MQTT over Wi-Fi. Fully local, no extra hardware, set up in ten minutes – and Nuki recommends it themselves in their own developer forum. You pay for it in battery life, which is easy enough to live with on the Ultra with its rechargeable battery.
And the built-in “Nuki” integration in Home Assistant? Leave it alone as long as you have neither a Bridge nor an Opener.
Whichever path you take: with lock status, door sensor and battery level in Home Assistant, the smart door lock finally becomes a real building block of your smart home. Have fun automating!
Frequently asked questions (FAQ)
Yes. Both MQTT and Matter run completely locally on your network, and a Nuki Web account isn’t needed for either path. It only becomes cloud-dependent if you use the Nuki Web API – for example to manage keypad codes from Home Assistant.
No. Nuki supports Matter exclusively over Thread and has announced that this will stay that way in the future – Wi-Fi draws too much power for it. Over Wi-Fi you get the native MQTT interface instead.
No. I measured it on my own Smart Lock Ultra: with Wi-Fi disabled and Thread active, MQTT keeps running – over the Thread network. The prerequisite is a Thread Border Router with NAT64 enabled. Without NAT64 the lock can’t reach your broker, because Thread devices only speak IPv6 while the broker sits on an IPv4 address. That very checkbox is disabled by default in the Home Assistant app.
Because that integration talks exclusively to the Nuki Bridge – the separate piece of hardware. The Smart Locks themselves offer no local HTTP API, despite their built-in Wi-Fi. Without a Bridge, the route goes via MQTT or Matter.
For current locks, no: they connect to Home Assistant directly via MQTT or Matter. You only still need the Bridge for older models without their own radio module (HomeKit or an ESP32 work there too), for the Nuki Opener – or if you want to use the built-in “Nuki” integration.
Not over MQTT or Matter. Home Assistant has had PIN management for Matter door locks since version 2026.4, but Nuki’s firmware doesn’t support the commands needed for it. Locally, an ESP32 bridge such as Nuki Hub can do it. Without extra hardware, that leaves the Nuki Web API, for example with the HACS integration hass_nuki_ng – but then it runs through the cloud.
It doesn’t work through Home Assistant – but it isn’t a pure Apple thing either, as is often claimed. In Smart Home Mode, the digital key is always issued by the ecosystem itself: on Apple via Apple Home with a HomePod or Apple TV as the hub, on Android via the Samsung Wallet Digital Home Key with SmartThings and a SmartThings hub. On Android it also works with Google Wallet and Google Home plus a Matter hub. Without a smart home system, there’s Nuki App Mode, where the Nuki app unlocks the door. Home Assistant can’t create keys like that, but it controls the lock regardless – you can run both side by side.
Yes. On my setup both run in parallel over Thread with the Wi-Fi switched off: Matter delivers twelve entities, MQTT eleven – and they are different ones. Lock’n’Go only exists over MQTT, the operating mode only over Matter. Shortly after the Matter pairing, the MQTT connection drops out. Set up MQTT once more in the Nuki app, and from then on both run in parallel.
Usually for one of two reasons. First: Matter has to be enabled in the Nuki app – the QR code alone isn’t enough, only that puts the lock into pairing mode. Second, during Matter pairing the Home Assistant Companion app sometimes reaches for your external address instead of the local one and runs into a timeout; in that case enter the internal URL and your home SSID in the app settings, set the app’s location access to ‘Always’ (iOS) or ‘Allow all the time’ (Android) and restart Home Assistant.
MQTT isn’t the power hog – permanently active Wi-Fi is. If you run MQTT over Thread you don’t have the problem – the lock switches its Wi-Fi off by itself. If you stay on MQTT over Wi-Fi it costs you noticeable runtime; on the Ultra with its USB-C rechargeable battery, though, that’s easy to live with.

























