SONOFF SNZB-04PR2 (firmware 1.0.1) – Device repeatedly joins and disappears during pairing
What happened?
Hello,
I am experiencing a pairing issue with two SONOFF SNZB-04PR2 contact sensors running firmware version 1.0.1.
One sensor was previously paired and working correctly but unexpectedly lost its connection. The second sensor is brand-new and has never been paired before.
Both devices exhibit exactly the same behavior.
Actual behavior
The device is repeatedly detected and removed during pairing.
Affected devices
- Model: SONOFF SNZB-04PR2
- Firmware: 1.0.1
- Number of affected devices: 2
- Device 1: Previously paired and functional, subsequently lost its connection.
- Device 2: Brand-new, never previously paired.
What did you expect to happen?
The device should successfully complete the pairing process, stop blinking, and remain registered in Zigbee2MQTT.
How to reproduce it (minimal and precise)
- Enable “Permit join” in Zigbee2MQTT.
- Start the pairing procedure on the SNZB-04PR2.
- Zigbee2MQTT detects the device and displays it in the device list.
- However, the sensor’s LED continues blinking, indicating that pairing is still in progress.
- After a short period, the device disappears from the Zigbee2MQTT device list.
- The device is subsequently detected again and reappears.
- This cycle repeats until the sensor’s pairing procedure times out.
Zigbee2MQTT version
2.14.2
Adapter firmware version
8.0.2 [GA]
Adapter
SMLIGHT SLZB-MR5U
Setup
- Installation: Debian LXC container on Proxmox
Device database.db entry
No response
Debug log
No response
Notes
No response
CC @cubez2mdeveloper
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
As a temporary workaround, I set up a second, independent Zigbee network using a SMLIGHT SLZB-07Mg24 coordinator with Home Assistant ZHA.
I was able to successfully pair one of the affected SONOFF SNZB-04PR2 sensors (firmware 1.0.1) with ZHA.
The sensor is now working correctly, and its contact state is being reported to Home Assistant.
This suggests that the sensor itself is functional and that the pairing issue may be related to the Zigbee2MQTT/coordinator combination.
However, since both the coordinator and Zigbee software were changed, I cannot determine which component is responsible.
I will continue using ZHA as a temporary workaround while investigating the Zigbee2MQTT issue.
4. As a temporary workaround, I set up a second, independent Zigbee network using a SMLIGHT SLZB-07Mg24 coordinator with Home Assistant ZHA. I was able to successfully pair one of the affected SONOFF SNZB-04PR2 sensors (firmware 1.0.1) with ZHA. The sensor is now working correctly, and its contact state is being reported to Home Assistant. This suggests that the sensor itself is functional and that the pairing issue may be related to the Zigbee2MQTT/coordinator combination. However, since both the coordinator and Zigbee software were changed, I cannot determine which component is responsible. I will continue using ZHA as a temporary workaround while investigating the Zigbee2MQTT issue.
What a pain to have to use ZHA & another physical controller - 2 fragmented Zigbee networks.
I hope this issue is resolved soon as I've a number of new devices which I can't add right now - such as TS004_2 & Tuya TS0501B which join, interview successfully then left the network 20 seconds later never to be seen again.... although I have more of the same devices working normally (but they joined ages ago), which seems to point to a z2mqtt issue.
Thanks for reporting this issue and for testing the device with ZHA.
Since the device works with ZHA, this is helpful information, although the coordinator and Zigbee software were both changed during the test. Could you please share the Zigbee2MQTT debug logs captured during the pairing process, especially when the device disappears from the network?
This will help us investigate the issue further and determine whether it is related to the device firmware or the Zigbee2MQTT/coordinator combination.
A coordinator migration can cause this issue https://www.zigbee2mqtt.io/guide/usage/troubleshooting.html#post-ieee-eui64-migration-troubles
I've resolved a similar issue on my ember set-up by resolving post-IEEE migration EUI64 / Trust Center Link Key (TCLK) mismatch using ember-zli
I've documented this at https://github.com/Koenkk/zigbee2mqtt/issues/33560#issuecomment-6561582450
Issue resolved! 🎉
First of all, a huge thank you to everyone who helped investigate this issue, especially @techie-dreamer for pointing me in the right direction!
I can confirm that the problem was caused by an EUI64 mismatch between the coordinator and the Trust Center, following my previous coordinator migration.
Using ember-zli, I ran the Repairs → Check for EUI64 mismatch function, which detected mismatching.
The tool automatically applied the correction.
I then restarted my SMLIGHT coordinator and Zigbee2MQTT.
The SONOFF SNZB-04PR2 (firmware 1.0.1) paired successfully on the first attempt, without any issues!
This confirms that the EUI64 mismatch was responsible for the repeated join/leave behavior observed in my case.
For anyone experiencing similar symptoms after migrating an Ember-based coordinator while preserving the original IEEE address, checking the Trust Center EUI64 with ember-zli may be worth investigating.
Thanks again to everyone for your help!