zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[SNZB-02D / SONOFF] ???

Open Max2959 opened this issue 5 months ago β€’ 8 comments

What happened?

device still online after stop/start of the dongle-P, but no informations are sent. no logo of connected device shown. Only the button wake/reconnection can make it work.

What did you expect to happen?

automatic reconnection after shutting down and restart the dongle

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

2.12.0 (unknown)

Adapter firmware version

{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20250321,"transportrev":2}

Adapter

ZStack3x0

Setup

os: #1 SMP PREEMPT_DYNAMIC Thu Jun 18 16:52:30 UTC 2026 - 6.18.35-haos - x64 node: v22.22.2 ha: true

Device database.db entry

No response

Debug log

No response

Notes

Device

definition: SNZB-02D - SONOFF (v0.0.0) software_build_id: 2.3.0 date_code: 20250116 endpoints:

{"1":{"bindings":[{"cluster":"genPollCtrl","target":{"endpoint":1,"ieee_address":"0x00124b003929d4bd","type":"endpoint"}},{"cluster":"genPowerCfg","target":{"endpoint":1,"ieee_address":"0x00124b003929d4bd","type":"endpoint"}},{"cluster":"msTemperatureMeasurement","target":{"endpoint":1,"ieee_address":"0x00124b003929d4bd","type":"endpoint"}},{"cluster":"msRelativeHumidity","target":{"endpoint":1,"ieee_address":"0x00124b003929d4bd","type":"endpoint"}}],"clusters":{"input":["genBasic","genPowerCfg","genIdentify","genPollCtrl","msTemperatureMeasurement","msRelativeHumidity","manuSpecificAmazonWWAH","customSonoffSnzb02d"],"output":["genOta"]},"configured_reportings":[{"attribute":"batteryPercentageRemaining","cluster":"genPowerCfg","maximum_report_interval":65000,"minimum_report_interval":3600,"reportable_change":10},{"attribute":"measuredValue","cluster":"msTemperatureMeasurement","maximum_report_interval":3600,"minimum_report_interval":10,"reportable_change":100},{"attribute":"measuredValue","cluster":"msRelativeHumidity","maximum_report_interval":3600,"minimum_report_interval":10,"reportable_change":100}],"scenes":[]}}
Health

time: Thu Jun 25 2026 09:37:19 GMT+0200 (heure d’étΓ© d’Europe centrale) os.load_average: 0, 0, 0 os.memory_percent: 53.4232 process.memory_percent: 5.7756 process.uptime_sec: 9515

{"leave_count":0,"messages":17,"messages_per_sec":0.0507,"network_address_changes":0}

Max2959 avatar Jun 25 '26 07:06 Max2959

cc @cubez2mdeveloper

andrei-lazarov avatar Jun 25 '26 11:06 andrei-lazarov

Noticed this a few z2m versions back. It still works but the update interval is taking too long. Before it's not like that

kingp0dd avatar Jul 05 '26 03:07 kingp0dd

Hi @Max2959 , sorry for the inconvenience this behavior has caused you.

This is an expected limitation stemming from the built-in rejoin backoff mechanism implemented within the firmware of sleepy battery-powered Zigbee devices such as your SNZB-02D.

When the coordinator is powered down for a prolonged duration, the sensor loses its active parent connection and begins a staged rejoin retry sequence with exponentially increasing waiting intervals: 1 min, 5 min, 30 min, 60 min, 120 min, 240 min, up to 720 minutes.

If the coordinator remains offline long enough, the device will enter a lengthy sleep backoff window and cease active network scanning. Zigbee2MQTT continues to display the device as online because the persisted network join record still exists in our database, however there is no live radio communication between the sensor and coordinator β€” this is why temperature, humidity and battery telemetry stops being published.

There are two available resolutions to restore reporting:

  1. Manually press the device button to trigger an immediate forced rejoin;
  2. Allow the backoff timer to elapse fully for the device to automatically attempt reconnection on its next scheduled cycle.

Important note: This backoff timing logic is enforced at the device firmware level. There are no Zigbee2MQTT configuration options available to adjust or reduce these retry intervals at this time.

If you encounter any further issues during usage, feel free to reach out to us again and we will be happy to assist you.

CubeZ2mDeveloper avatar Jul 09 '26 09:07 CubeZ2mDeveloper

From time to time, I experience same bahavior with Sonoff SNZB-02LD. When device is not reporting measurements anymore, I press the button, the device start sending again measurements. If I leave it, the device can be unavailable for days.

peros550 avatar Aug 11 '26 21:08 peros550

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

github-actions[bot] avatar Oct 11 '26 00:10 github-actions[bot]

@CubeZ2mDeveloper I think I have the exact same issue with my SNZB-02DR2. However I don't see how it might be caused by the prolonged power down of the coordinator. Longest power down that happens is a minute or so when HA restarts on update. Sensor sits quite close to two different AC powered endpoints. I don't have power outages. Another issue is the ZigBee connection icon that is constantly on whenever device is paired and does not indicate anyhow that it has any issue with connecting to the parent. This make the icon kind of useless. As Zigbee2mqtt also indicates that device is connected, the only way to know is to compare the readings on device vs HA. Far from ideal. It would be terrific if at the very least the second issue is somehow resolved so at the first look I can tell that I need to do something to fix it, until I figure out why on earth it disconnects in the first place. Right now it's hard to tell if that happens after the HA update-driven reboot or randomly or one of the AC powered parents is the trouble maker or what else.

KGoreczny avatar Nov 24 '26 09:11 KGoreczny

@CubeZ2mDeveloper I think I have the exact same issue with my SNZB-02DR2. However I don't see how it might be caused by the prolonged power down of the coordinator. Longest power down that happens is a minute or so when HA restarts on update. Sensor sits quite close to two different AC powered endpoints. I don't have power outages. Another issue is the ZigBee connection icon that is constantly on whenever device is paired and does not indicate anyhow that it has any issue with connecting to the parent. This make the icon kind of useless. As Zigbee2mqtt also indicates that device is connected, the only way to know is to compare the readings on device vs HA. Far from ideal. It would be terrific if at the very least the second issue is somehow resolved so at the first look I can tell that I need to do something to fix it, until I figure out why on earth it disconnects in the first place. Right now it's hard to tell if that happens after the HA update-driven reboot or randomly or one of the AC powered parents is the trouble maker or what else.

Hi, thanks for the additional feedback.

To help us investigate this issue, could you please provide the following information?

  • SNZB-02DR2 firmware version.
  • Zigbee2MQTT version.

Also, could you try placing the sensor closer to the coordinator and monitoring it for a while? This would help us determine whether the issue is related to the intermediate Zigbee routers or the sensor's own network connection.

Thanks for your help!

CubeZ2mDeveloper avatar Dec 01 '26 07:12 CubeZ2mDeveloper

@CubeZ2mDeveloper I think I have the exact same issue with my SNZB-02DR2. However I don't see how it might be caused by the prolonged power down of the coordinator. Longest power down that happens is a minute or so when HA restarts on update. Sensor sits quite close to two different AC powered endpoints. I don't have power outages. Another issue is the ZigBee connection icon that is constantly on whenever device is paired and does not indicate anyhow that it has any issue with connecting to the parent. This make the icon kind of useless. As Zigbee2mqtt also indicates that device is connected, the only way to know is to compare the readings on device vs HA. Far from ideal. It would be terrific if at the very least the second issue is somehow resolved so at the first look I can tell that I need to do something to fix it, until I figure out why on earth it disconnects in the first place. Right now it's hard to tell if that happens after the HA update-driven reboot or randomly or one of the AC powered parents is the trouble maker or what else.

Hi, thanks for the additional feedback.

To help us investigate this issue, could you please provide the following information?

  • SNZB-02DR2 firmware version.
  • Zigbee2MQTT version.

Also, could you try placing the sensor closer to the coordinator and monitoring it for a while? This would help us determine whether the issue is related to the intermediate Zigbee routers or the sensor's own network connection.

Thanks for your help!

FW 1.0.5 Zigbee2MQTT 2.14.3-1

KGoreczny avatar Dec 01 '26 19:12 KGoreczny