Problem join new device after update
What happened?
What happened?
I have an existing Zigbee2MQTT network with approximately 80 devices.
After updating Home Assistant / Zigbee2MQTT (and later updating the SLZB radio firmware while troubleshooting), the existing network continues to operate perfectly:
- All existing devices communicate normally.
- MQTT works.
- Coordinator is online.
- Permit Join returns OK.
However:
No new devices can ever join the existing network.
No interview starts. No "device joined". No "device announce".
Nothing appears in the Zigbee2MQTT log except the Permit Join confirmation.
Hardware
Coordinator: SMLIGHT SLZB-06P7
Adapter: zStack
Connection: tcp://10.0.20.134:6638
Baud: 115200
Versions
Home Assistant: 2026.7.x
Zigbee2MQTT: 2.12.0-1
SLZB OS: 3.3.1 Stable
Radio firmware: 20260311 (previously 20240710)
Existing network
Channel: 15
PAN ID: 0x4FC2
Extended PAN ID: BE7B08CB543BA2D6
Network key restored from coordinator_backup.json.
Approximately 80 devices.
What I tested
✔ Updated radio firmware
✔ Coordinator <-> Router mode switch
✔ Restored Zigbee2MQTT backup
✔ Removed state.json
✔ Removed database.db
✔ Removed coordinator_backup.json
✔ Restored coordinator_backup.json
✔ Fresh database
✔ Fresh state
✔ Fresh configuration
✔ Multiple device manufacturers:
- IKEA
- Aqara
- Sonoff
None can join.
Important observation
I renamed the complete Zigbee2MQTT configuration directory and created a completely new Zigbee2MQTT instance.
Using:
- same coordinator
- same SLZB
- same radio
- same firmware
- same adapter
- same MQTT
Zigbee2MQTT created a NEW network.
Immediately afterwards:
An IKEA bulb joined successfully.
Interview completed successfully.
Therefore:
Hardware is confirmed working.
Radio is confirmed working.
Only the OLD Zigbee network refuses new joins.
coordinator_backup.json
Looks internally consistent.
PAN ID, Extended PAN ID and Network Key match the running network.
No duplicate IEEE addresses found.
Question
Could there be a zStack coordinator state (NVRAM/BDB/Trust Center state) that is not included in coordinator_backup.json and prevents new joins while existing devices continue to work?
Is there any known issue around commissioning existing zStack networks after updates?
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
2.12.0-1
Adapter firmware version
3.3.1 Stable
Adapter
SMLIGHT SLZB-06P7
Setup
Home Assistant: 2026.7.x VM on Proxmox Intel NUC 5gen
Device database.db entry
No response
Debug log
Notes
No response
I rebuilt the Zigbee network from scratch by creating a completely new Zigbee2MQTT installation (new database, new coordinator backup, and re-paired all devices). The issue is no longer reproducible. At this point I cannot determine whether the root cause was a corrupted database, corrupted coordinator backup, or a Zigbee2MQTT bug. Since the issue is resolved for me, I'm happy to close the issue unless the maintainers would like additional information.
I faced something similar some time ago and found out that there must have been a faulty device in my network, that caused this. In my case I deleted a good amount of my devices and all of a sudden, pairing was possible again. I could re-join the rest as well. As I did not know the root cause, I probably deleted too much at once, so it was impossible to find the culprit... Would be good to know what exactly to do in this case? There might be some tools, that can help?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
I'm experiencing what looks like the exact same issue, just wanted to add a data point.
Hardware: SMLIGHT SLZB-06P10, Ethernet (LAN mode), radio firmware 20240716, SLZB OS 3.3.1 Software: Zigbee2MQTT 2.14.1-1 (Home Assistant add-on), Z-Stack adapter, ~52 devices on the network (mix of IKEA, Philips Hue, Sonoff, Tuya)
Symptoms:
Existing network works perfectly — all 52 devices communicate normally, no errors, no dropped devices. No new device can join, regardless of manufacturer. Tested with: Sonoff SNZB-05P (water leak sensor) Sonoff SNZB-06P (occupancy sensor) An IKEA device Plus 3 more spare devices that had previously joined other networks — including one that had never joined any Zigbee network before (brand new, factory state) Permit Join always returns status: "ok" and I can see mgmtPermitJoinRsp with SUCCESS in the debug log. Tried permit join in every mode: all/broadcast, coordinator-only, and scoped to a specific router. Zero join activity ever appears in the log — no beacon request handling, no interview, no device announce, nothing beyond the permit_join confirmation itself. Same as reported here. Full power-cycle of the SLZB (unplugged 30s) did not help. Deleting state.json did not help.
This happened without me deliberately changing anything — I only noticed it when trying to add new sensors. I hadn't knowingly changed the radio firmware version before first noticing the problem, though I can't rule out an automatic update.
Debug log excerpt (permit_join opened, then silence)
[2026-09-24 22:49:31] debug: z2m:mqtt: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"device":null,"time":254,"transaction":"anrxu-3"}' [2026-09-24 22:49:31] info: z2m: Zigbee: allowing new devices to join. [2026-09-24 22:49:31] debug: zh:zstack:znp: <-- AREQ: ZDO - mgmtPermitJoinRsp [2026-09-24 22:49:31] debug: zh:controller: Received ZDO response: clusterId=PERMIT_JOINING_RESPONSE, status=SUCCESS, payload=undefined [2026-09-24 22:49:31] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"time":254},"status":"ok","transaction":"anrxu-3"}'254s window fully elapsed, no join/interview/announce ever logged.
Only existing-device traffic (reports, dataConfirm, srcRtgInd) appears until the window closes.
Happy to share more of the debug log or test anything the maintainers suggest — this seems worth tracking as a shared root cause given the very specific and consistent symptom pattern (existing network completely fine, new joins completely silent, hardware/radio individually confirmed working via spare-device tests).
Update — more data after comparing coordinator backups
I compared my current coordinator_backup.json (24 Sep 2026) with an older one from 18 Mar 2026, when joining still worked. Some findings may be relevant to the root cause.
Timeline
- 18 Mar 2026: backup taken right after the last successful pairing of a new device (zigbee-herdsman 9.0.9).
- Later: I accidentally flashed the wrong firmware on the radio, then flashed back the correct Z-Stack (20240716). Z2M restored the network from
coordinator_backup.jsonautomatically. - After that restore, I removed and successfully re-paired a HEIMAN CO sensor. So joining still worked after the restore, at least for a while.
- At some point after that, joining stopped completely. No join, no announce, no interview, for any device.
- Yesterday, while troubleshooting, I moved SLZB OS from 3.3.8.dev7 to 3.3.1 stable and changed
transmit_powerfrom 8 to 20. Neither changed anything, and the problem existed before both changes.
Differences between the two coordinator backups
| Field | 18 Mar 2026 | 24 Sep 2026 |
|---|---|---|
network_key.frame_counter |
5,374,891 | 3,548,078 (went backwards) |
nwk_update_id |
1 | 0 |
stack_specific.zstack.tclk_seed |
– | changed |
| Channel (20) / PAN ID / Ext PAN ID / network key | – | unchanged |
Other inconsistencies
- The CO sensor re-paired after the restore is still listed in the current coordinator backup with its March NWK address (
0xD70E) and March link key, whiledatabase.dbshows its current NWK address (0xC377). It looks as if the coordinator's tables were not updated by that re-join, or were later overwritten with older data. - 4 battery end devices (2× IKEA Remote Control N2, SONOFF SNZB-02P, Tuya TS0601) are in
database.dbbut missing from the coordinator backup device list. They still work normally. database.dbhas the same maximum device ID (96) in March and today: no device with a new IEEE has joined since March.
Questions for the maintainers
- Could a network frame counter lower than before the restore, or the
nwk_update_idmismatch (coordinator 0 vs. network 1), cause new joins to fail silently while existing devices keep working? - Is there Z-Stack Trust Center or NV state that is not included in
coordinator_backup.json, so that a restore leaves the coordinator in a state where it no longer accepts joins? - Is the frame counter regression expected after a restore? My understanding was that the restore should always write a counter higher than the last one used.
Next step
I'm considering rewriting the network to the coordinator with zigpy-znp (same keys and network parameters, frame counter raised above the March value, nwk_update_id = 1). If there's a better or safer approach, I'd appreciate advice before I try it. I'll report back with the results.
Yeahhh Solved!!! — rewriting the coordinator NVRAM with zigpy-znp fixed it (no re-pairing needed)
Follow-up to my previous comments: pairing works again on my SLZB-06P10 (CC2674P10, Z-Stack 20240716, SLZB OS 3.3.1, Z2M 2.14.1 / zigbee-herdsman 10.9.2). A SONOFF SNZB-05P joined, interviewed and configured in ~20 seconds on the first try, and all 51 existing devices came back online on their own. No device had to be re-paired, and I didn't need to create a new network.
What I did : thanks to Claude AI helping me :-) )
This is a step by step guide AI written:
(from a computer on the same LAN, with the Z2M add-on stopped for the whole procedure):
python3 -m venv ~/zigpy-env && source ~/zigpy-env/bin/activate
pip install zigpy-znp
# 1. Read the network state straight from the chip (this is a rollback copy)
python3 -m zigpy_znp.tools.network_backup socket://<SLZB_IP>:6638 -o backup-chip.json
# 2. Make a copy (backup-chip-corrected.json) and edit only two fields:
# "network_key" -> "frame_counter": set well above the current value (I used 20000000)
# "nwk_update_id": 0 -> 1
# 3. Wipe the NVRAM and write the network back
python3 -m zigpy_znp.tools.nvram_reset socket://<SLZB_IP>:6638
python3 -m zigpy_znp.tools.network_restore socket://<SLZB_IP>:6638 -i backup-chip-corrected.json
# 4. Verify before starting Z2M
python3 -m zigpy_znp.tools.network_backup socket://<SLZB_IP>:6638 -o verify.json
Then I started Z2M: devices reconnected, and permit join worked normally.
Comparing my Z2M coordinator_backup.json from March with the current one, I saw that the network key frame counter had gone backwards (≈5.37M in March → ≈3.55M now), and nwk_update_id had dropped from 1 to 0. That probably happened when I accidentally flashed the wrong firmware and Z2M restored the network. My guess is that joining devices were silently rejected because of the stale security state. Existing devices kept working, and there were no errors in the log, only permitJoin SUCCESS with zero join/announce. I can't say for sure which of the two values was the culprit. I changed both at the same time.
Worth noting: the backup read from the chip had "devices": [] (no link-key entries at all), while Z2M's backup listed 47 devices. So I restored from the chip's own backup, not from Z2M's coordinator_backup.json, to avoid writing back stale per-device entries.
PS Precautions if you try this
- Take a full HA backup and copy the whole
zigbee2mqttfolder first. - Keep Z2M stopped. Only one client can talk to the coordinator at a time.
- Keep
backup-chip.jsonunmodified.network_restore -i backup-chip.jsonbrings the chip back to exactly where it was. - Don't post your backup files publicly: they contain the network key.
If anyone else is hitting this, it might be worth comparing the frame_counter in an older coordinator_backup.json with the current one to check for the same regression.
Same thing here on an SLZB-MR1U (CC2652P7, SMLIGHT build 20240716, Z2M 2.14.2 over TCP), and I got to measure what was going on before wiping it.
Symptoms: network ran fine, nothing new would stay joined (Sonoff SNZB-04PR2/02B and TRV-ZBT joined, finished the interview, left ~21 s later or went quiet after a couple of minutes), five devices in database.db with no entry in the coordinator, frame counter stale after a hard reset. On top of that install_code/add failed with APS_TABLE_FULL (0xB2).
With Z2M stopped I read the NV over the same TCP port with raw ZNP (SYS_NV_LENGTH / SYS_NV_CREATE):
- EX_TCLK_TABLE: 300 sub-items, 29 used. The SMLIGHT P7 build sets ZDSECMGR_TC_DEVICE_MAX to 300; Koenkk's firmware.patch has 200 everywhere except the CC2674P10.
- EX_ADDRMGR: 357 sub-items, 29 used.
- EX_TCLK_IC_TABLE: doesn't exist, hence the 0xB2 (bdbAddInstallCode couldn't create it).
- creating a 20-byte test item: NVINTF_FAILURE. Nothing left to compact.
300×27 B + 357×19 B is ~15 KB of payload alone, in 2 data pages of 8 KB (NVOCMP_NVPAGES 3, one page for compaction). The network forms, so nothing looks wrong, and the last ~1 KB goes to small items over the following weeks. After that the TC can't store a TCLK for a new joiner (so the key exchange never completes and the device leaves), and the NWK frame counter stops being written. Devices that already have an entry keep working, since updating an existing entry is a different path from creating one. Z-Stack doesn't tell the host about failed NV writes, so there is nothing in the Z2M log. In mine the last device that still got its entry joined on 2026-08-28, the first one without joined on 2026-10-11.
Fix: full erase + stock CC1352P7_coordinator_20240710 through the ROM bootloader (the SLZB-OS updater keeps NV, so that would have carried the problem over), then herdsman restored from coordinator_backup.json. I bumped network_key.frame_counter in the backup first, because the backup reads it from NV and that value was weeks old. Since then: 8/8 routers in the map, install code accepted, Bosch TRV paired, and a SNZB-04PR2 that had left 10 times in a row joined and stayed.
Quick check if you're on one of these builds: a recently joined Zigbee 3.0 device that's in database.db but has no link_key entry in coordinator_backup.json. The definitive one is a small SYS_NV_CREATE with Z2M stopped. Happy to share the scripts.
I'm not saying 300 is wrong as such, it works until the margin is gone. But with 3 NV pages the headroom after formation is about 1 KB, and that's a different budget from the stock image.
Correction (2026-10-21): SMLIGHT support tells me their P7 builds use NVOCMP_NVPAGES 4, not 3; the "3 pages / 2 data pages" figure above came from Koenkk's firmware.patch, so the capacity arithmetic (15 KB of fixed tables in ~16 KB) does not apply to their build and I withdraw it. What stands is what was measured on that build with Z2M stopped: SYS_NV_CREATE of a 20-byte item returned NVINTF_FAILURE, the install-code table did not exist, devices joined after late August had no TCLK/address-manager entries, and the NWK frame counter in NV was weeks old. With 4 pages the reason the NV became unwritable is open (more NV-resident tables than I counted, or NVOCMP unable to compact after a brownout); the erase + stock image still cleared all of it. I've asked SMLIGHT for the table sizes of that build.
Thanks for the deep dive, very useful data. I checked the same thing on my SLZB-06P10 (CC2674P10) with zigpy_znp.tools.nvram_read (Z2M stopped), and the picture is different from yours:
TCLK_TABLE: capacity is 400 entries on this build (read stops cleanly at sub_id 0x018F), vs. the 200 in the official patch and the 300 you found on the P7 build. Only 5 entries are populated out of 400. ADDRMGR: capacity ~457 entries, only 9 populated. TCLK_IC_TABLE: same as you, it doesn’t exist at all (the very first sub_id read fails). So the missing-table issue isn’t P7-specific, at least not in the sense of “created vs not created” — it seems to just never get created until something needs it. No APS_TABLE_FULL here though, since I haven’t paired anything via install code.
So on my P10 there’s no exhaustion: usage is roughly 1-2% of capacity. My September problem (new devices wouldn’t stay joined, existing ones fine) had a different root cause — the network key’s frame_counter had regressed and nwk_update_id had dropped to 0 after I accidentally reflashed the wrong firmware and Z2M auto-restored from an old backup.
Fixed by rewriting NVRAM with a corrected coordinator_backup.json (frame_counter bumped well above the stale value, nwk_update_id back to 1) — no table exhaustion involved in my case!
Worth noting for anyone comparing notes here: ZDSECMGR_TC_DEVICE_MAX (and whatever governs ADDRMGR size) looks like it may vary not just by SMLIGHT build but by chip (P7 vs P10), so the 200/300 split you described might not be the whole story. Might be worth checking what the stock TI image sets for CC2674P10 specifically vs CC2652P7.
Closing the loop on my side.
@spatu , thanks for the P10 data. Agreed on the install-code table: it isn't created until the first install code is added, so its absence proves nothing by itself; I've corrected my notes. What was abnormal in my case was that creating any new item failed (SYS_NV_CREATE, 20 bytes -> NVINTF_FAILURE) with only 29 of 300 TCLK entries in use, and that every device joined after late August was missing its TCLK/address-manager entry. Your September case (frame_counter and nwk_update_id regressed after a restore from an old backup) is a different mechanism with a similar symptom; a stale frame counter was part of my picture too, which is why I bumped it before the restore.
SMLIGHT support replied to my ticket: the P7 build has NVOCMP_NVPAGES 4, not the 3 I had assumed from Koenkk's patch (so the capacity arithmetic above is withdrawn), and "we will increase the number of pages in future releases". So whatever the exact accounting, the NV budget of those builds is being enlarged.
Since the erase + stock 20240710 image on the same SLZB-MR1U: the NWK frame counter in coordinator_backup.json advances normally (+177k in two days, it had been frozen for weeks), and 19 new devices joined, all with TCLK entries.
For anyone else landing here with "existing network fine, new zigbee devices join but don't stay" on an SMLIGHT CC26xx build: two cheap checks before blaming the devices or Z2M. A recently joined device that is in database.db but has no link_key entry in coordinator_backup.json, and, with Z2M stopped, a small SYS_NV_CREATE over the TCP port (if it fails, the coordinator can't store anything new). If both come back clean, look at the frame counter instead, as in spatu's case.