device keeps rejoining during pairing - will not join for good. two sonoff devices so far affected.
What happened?
Two sonoff devices will not stick upon joining. It will join and suddenly leave/join/leave. If pairing is off - it will not join back. If parinig is on - it will keep rejoining.
What did you expect to happen?
Stay once joined.
How to reproduce it (minimal and precise)
pair new device (230v)
Zigbee2MQTT version
2.14.2
Adapter firmware version
ZStack3x0 0x00124b002390a732 Revision: 20220219
Adapter
slaesh cc2650rb
Setup
add-on, ibm m73 tiny
Device database.db entry
No response
Debug log
2026-10-05 17:04:55 zh:zstack:znp: <-- AREQ: ZDO - leaveInd 2026-10-05 17:04:55 zh:controller: Device leave '0x6ce4a4fffe5cf865' 2026-10-05 17:04:55 zh:controller: Removing device from database '0x6ce4a4fffe5cf865' 2026-10-05 17:04:55 z2m: Device '0x6ce4a4fffe5cf865' left the network 2026-10-05 17:04:55 z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x6ce4a4fffe5cf865","ieee_address":"0x6ce4a4fffe5cf865"},"type":"device_leave"}' Show more lines
Five seconds later, it rejoins:
Log 2026-10-05 17:05:00 zh:zstack:znp: <-- AREQ: ZDO - tcDeviceInd 2026-10-05 17:05:00 zh:controller: Device '0x6ce4a4fffe5cf865' joined 2026-10-05 17:05:00 zh:controller: Device '0x6ce4a4fffe5cf865' accepted by handler 2026-10-05 17:05:00 zh:controller: Deleted device '0x6ce4a4fffe5cf865' is joining, undeleting 2026-10-05 17:05:00 z2m: Device '0x6ce4a4fffe5cf865' joined 2026-10-05 17:05:00 z2m: Starting interview of '0x6ce4a4fffe5cf865'
The device announces itself again at 17:05:02, then Zigbee2MQTT restarts the full interview.
Log 2026-10-05 17:05:02 zh:zstack:znp: <-- AREQ: ZDO - endDeviceAnnceInd 2026-10-05 17:05:02 zh:controller: Device announce from '0x6ce4a4fffe5cf865:44478' 2026-10-05 17:05:02 z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x6ce4a4fffe5cf865","ieee_address":"0x6ce4a4fffe5cf865"},"type":"device_announce"}'
The interview completes successfully:
Log 2026-10-05 17:05:04 zh:controller: Interview - completed for device '0x6ce4a4fffe5cf865' 2026-10-05 17:05:04 z2m: Successfully interviewed '0x6ce4a4fffe5cf865', device has successfully been paired 2026-10-05 17:05:04 z2m: Device '0x6ce4a4fffe5cf865' is supported, identified as: SONOFF Zigbee smart switch (ZBMINIR2)
It happens again 14 seconds later
At 17:05:18, the same device leaves again:
Log 2026-10-05 17:05:18 zh:zstack:znp: <-- AREQ: ZDO - leaveInd 2026-10-05 17:05:18 zh:controller: Device leave '0x6ce4a4fffe5cf865' 2026-10-05 17:05:18 zh:controller: Removing device from database '0x6ce4a4fffe5cf865' 2026-10-05 17:05:18 z2m: Device '0x6ce4a4fffe5cf865' left the network
Then rejoins at 17:05:26:
Log 2026-10-05 17:05:26 zh:zstack:znp: <-- AREQ: ZDO - tcDeviceInd 2026-10-05 17:05:26 zh:controller: Device '0x6ce4a4fffe5cf865' joined 2026-10-05 17:05:26 zh:controller: Deleted device '0x6ce4a4fffe5cf865' is joining, undeleting 2026-10-05 17:05:26 z2m: Starting interview of '0x6ce4a4fffe5cf865'
Notes
No response
Sounds very similar to Telink/Tuya router devices join, interview successfully, then leave in a loop this is the same behaviour I'm observing.
But I beleive the SONOFF ZBMINIR2 is powered by a Silicon Labs EFR32MG21 Zigbee 3.0 microcontroller, so maybe its more widespread than the Telink chipset
@techie-dreamer yes, this issue looks same as mine! And yes - sonoff doesn't use telink and again, my sonoff devices are in indeed already on the network and will not drop, it's new devices that I want to add - keeps rejoining
My problems with Sonoff SNZB-02B und -02LD are solved with help from Sonoff support: https://github.com/Koenkk/zigbee2mqtt/issues/33323
Same issue here (Z2M 2.14.3, also reproduced on 2.14.1).
Setup:
- Zigbee2MQTT add-on 2.14.3-1 (zigbee-herdsman 11.2.0), HAOS in KVM
- Coordinator: Sonoff Dongle Plus (CC2674P10), adapter zstack (ZStack3x0), fw 20250321, channel 11
- 39 existing devices work fine (leave_count 0). Every NEW device that I pair (3x SONOFF ZBMINIL2 [EndDevice], 1x Gledopto GL-C-008P) is removed ~7-20 s after a successful interview + configure. SONOFF SNZB-01P paired without problems.
- Tried: join via Coordinator, transmit_power 20, different times, Z2M 2.14.1 and 2.14.3. Same result. (Link quality is fine, LQI 69-83 during join.)
Debug log (ZBMINIL2 0xf044d3fffe4f83f2, times trimmed): 14:44:41 ZDO - tcDeviceInd -> "New device joined", interview started 14:44:47 ZDO - tcDeviceInd -> "already in database with different network address, updating" 14:44:55 ZDO - tcDeviceInd -> same again; endDeviceAnnceInd (nwk 13856, deviceType 0, rxOnWhenIdle 0) 14:45:02 interview OK (modelId ZBMINIL2) 14:45:07 "Successfully configured" 14:45:14 ZDO - leaveInd -> "Device leave" -> "Removing device from database" -> "left the network"
Observations:
- No mgmtLeaveReq / leaveReq / removeDevice is sent by Z2M between join and leaveInd (nothing in the debug log), so the leaveInd originates from the coordinator.
- The device joins 3x within ~14 s, each time with a new network address.
- The ZStack debug log prints "ZDO - leaveInd" without payload, so I cannot tell whether it is a device-initiated leave request or a rejoin flag.
Is there a way to log the leaveInd payload, or a known coordinator firmware/table issue that causes this? Happy to test patches or provide more logs.
Additional test: I opened permit_join via two different Router-type devices (Pc rozete and Rigo rozete, both mains-powered plugs), with the new devices (ZBMINIL2, GL-C-008P) in pairing mode (LED blinking) 1-2 m from the router. Z2M reported PERMIT_JOINING_RESPONSE SUCCESS, but no new device joined at all (no tcDeviceInd for a new IEEE address). Joining via the Coordinator does produce a join + successful interview, but the device is removed ~7-20 s later (leaveInd). So new devices fail to stay on the network in both cases.
Extra data point: in every failing join the coordinator reports leaveInd 19-20 s after the device's last tcDeviceInd (5/5 cases, regardless of whether the interview succeeded), which looks like a fixed ~20 s trust center / link key timeout.
Update with debug log (permit_join "All", ZBMINIL2): after joining, tcDeviceInd is repeated every 6-12 s, each time with a new network address ("already in database with different network address"); activeEpReq gets no response (ZDO - activeEpRsp after 10000ms), interview fails; ~1 min later leaveInd -> removed. Repeats in a loop (join / fail / leave). Looks like the join handshake never completes rather than a leave after a successful join.
Update from my Z-Stack case (Sonoff Dongle-PP10, fw 20250321, Z2M 2.14.3): the problem is tied to the existing network state, not to the dongle, firmware, channel or Z2M version.
A brand-new network on the same dongle (new key/PAN, channel 20 and 11, empty NV): GL-C-008P, two Girier TS011F plugs and a Sonoff ZBMINIL2 all join and stay. Restoring the original network (39 devices, 44 entries in the backup) from coordinator_backup.json after clearing NV: the problem returns, new devices leave ~20 s after the last join, also with permit join on the coordinator only. This is not a coordinator IEEE migration: the network was created on this dongle from the start, and coordinator_ieee in the backup matches the dongle (00124b0033c168f2). So the EUI64/TCLK fix from ember-zli does not seem to apply here.
Is there a Z-Stack equivalent of that check, or a way to inspect the trust center link key table?