zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

SONOFF SNZB-02 stopped functioning with ZZH! adapter

Open pznamenskii opened this issue 5 years ago β€’ 17 comments

What happened

about 3 months ago I bound 2 SONOFF SNZB-02 sensors into my HA setup with ZZH stick successfully. A week ago I bought a 3rd sensor and failed to bind it whatever I tried. At this moment I realized my previous 2 sensor have not been reporting any data for a long while. I tried removing (forced) one of them and was not able to join it back. Logs do not show a single thing even on debug.

What did you expect to happen

sensors join Zigbee network successfully

How to reproduce it (minimal and precise)

Try joining SONOFF SNZB-02

Debug info

Zigbee2MQTT version: 1.22.1-1 Adapter hardware: ZZH! CC2652R
Adapter firmware version: 20210708

pznamenskii avatar Dec 02 '21 13:12 pznamenskii

I confirm the issue - I've just realized that my snzb-02 (all of them) stoped working after update to latest version of Z2m (from 1.18.x) :/ is there any chance of fixing this or revert of Z2m is only option?

I am using the same ZigBee coordinator as ticket author.

This is what I've found in logs when trying to re-pair:

info  2021-12-07 07:32:41: Device '0x00124b001c4b288c' joined
info  2021-12-07 07:32:41: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b001c4b288c","ieee_address":"0x00124b001c4b288c"},"type":"device_joined"}'
info  2021-12-07 07:32:41: Configuring '0x00124b001c4b288c'
info  2021-12-07 07:32:41: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x00124b001c4b288c"},"type":"device_connected"}'
info  2021-12-07 07:32:41: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b001c4b288c","ieee_address":"0x00124b001c4b288c"},"type":"device_announce"}'
info  2021-12-07 07:32:41: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x00124b001c4b288c"},"type":"device_announced"}'
error 2021-12-07 07:32:51: Configure failed: Error: Bind 0x00124b001c4b288c/1 msTemperatureMeasurement from '0x00124b0022812853/1' failed (AREQ - ZDO - bindRsp after 10000ms)
info  2021-12-07 07:32:51: Successfully configured '0x00124b001c4b288c'

This seems like the origin of the problem: Configure failed: Error: Bind 0x00124b001c4b288c/1 msTemperatureMeasurement from '0x00124b0022812853/1' failed (AREQ - ZDO - bindRsp after 10000ms)

jahu avatar Dec 07 '21 06:12 jahu

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jan 07 '22 00:01 github-actions[bot]

Not stale, still happening to me.

afics avatar Jan 09 '22 12:01 afics

the problem is urgent

image

sanyafifa avatar Jan 09 '22 12:01 sanyafifa

same here. I've thought it was broken and I've bought a new one... they are seen but don't report any useful data

sebastianovide avatar Jan 09 '22 16:01 sebastianovide

This device can be tricky to pair, there are some tips here: https://github.com/Koenkk/zigbee2mqtt/issues/8971#issuecomment-933473038

Koenkk avatar Jan 09 '22 19:01 Koenkk

the problem appeared after upgrading from 1.18. Before that, more than a year worked without problems on 2531. The new sonoff 2652 did not solve the problem

Radlagerkok avatar Jan 11 '22 01:01 Radlagerkok

I have the same problem:

  • Used successfully this device on older version (not sure about version, installed and paired in the begining of December 2021)
  • Did upgrade to 1.22.2 version.
  • Re-paired device.
  • Now getting the same errors like others.

Current version: image

Using this as coordinator.

Tried different combinations of re-pairing, with battery removal, usb stick removal, reboot - nothing helps.

simie7 avatar Jan 11 '22 09:01 simie7

This sequence worked for me:

  • systemctl stop zigbee2mqtt
  • make backup of data folder
  • git checkout tags/1.22.1
  • systemctl start zigbee2mqtt
  • re-pair SNZB-02 device
  • systemctl stop zigbee2mqtt
  • restore from backup of data folder (in my case wasn't needed)
  • git checkout master
  • systemctl start zigbee2mqtt

I guess something messed between 1.22.1 and 1.22.2 versions.

simie7 avatar Jan 11 '22 11:01 simie7

This sequence worked for me:

Hi! Does SNZB-02 connect directly to the coordinator? I have no pairing after 3 flashes

sanyafifa avatar Jan 11 '22 11:01 sanyafifa

In my case - yes, directly.

simie7 avatar Jan 11 '22 12:01 simie7

Interesting fact: today got another one sensor, and successfully paired with the first try, without version downgrade.

simie7 avatar Jan 11 '22 15:01 simie7

found a similar problem :) The author writes what helped: https://notenoughtech.com/home-automation/is-sonoff-zigbee-dongle-plus-finally-ready-for-launch/

Zigbee2MQTT:error 2022-01-08 19:11:30: Configure failed: Error: Bind 0x0012xxxxxxx/1 msTemperatureMeasurement from '0x00124xxxxxxxx1/1' failed (AREQ - ZDO - bindRsp after 10000ms)

No matter what I’ve done, I could not receive any feedback from the sensor even though ZigBee2MQTT was reporting successful pairing. What had fixed it for me, was wiping all of my devices and adding this sensor first. It’s a weird issue, and I may bother Koen about it.

sanyafifa avatar Jan 12 '22 06:01 sanyafifa

Having the same problem with SONOFF SNZB-02. After upgrading to 1.22.2 the device fails to bind.

info Device '0x00124b001c4b2951' joined
info MQTT publish: topic 'raspberrypi/bridge/event', payload '{"data":{"friendly_name":"0x00124b001c4b2951","ieee_address":"0x00124b001c4b2951"},"type":"device_joined"}'
info Configuring '0x00124b001c4b2951'
info MQTT publish: topic 'raspberrypi/bridge/log', payload '{"message":{"friendly_name":"0x00124b001c4b2951"},"type":"device_connected"}'
info Starting interview of '0x00124b001c4b2951'
info MQTT publish: topic 'raspberrypi/bridge/event', payload '{"data":{"friendly_name":"0x00124b001c4b2951","ieee_address":"0x00124b001c4b2951","status":"started"},"type":"device_interview"}'
info MQTT publish: topic 'raspberrypi/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x00124b001c4b2951"},"type":"pairing"}'
error Configure failed: Error: Bind 0x00124b001c4b2951/1 msTemperatureMeasurement from '0x00124b0021600162/1' failed (AREQ - ZDO - bindRsp after 10000ms)
info Successfully configured '0x00124b001c4b2951'

I tracked down it to devices/sonoff.js:106 (zigbee-herdsman-converters package) line: await reporting.bind(endpoint, coordinatorEndpoint, bindClusters);

this line throws an error which is caught a few lines later and loggs an error

if it helps, I dumped parameters from the "bind" method:

endpoint={"ID":1,"profileID":260,"deviceID":770,"inputClusters":[0,3,1026,1029,1],"outputClusters":[3],"deviceNetworkAddress":57608,"deviceIeeeAddress":"0x00124b001c4b2951","clusters":{},"_binds":[],"_configuredReportings":[],"meta":{},"pendingRequests":[]}

coordinatorEndpoint={"ID":1,"profileID":260,"deviceID":5,"inputClusters":[],"outputClusters":[],"deviceNetworkAddress":0,"deviceIeeeAddress":"0x00124b0021600162","clusters":{},"_binds":[],"_configuredReportings":[],"meta":{},"pendingRequests":[]}

bindClusters=["msTemperatureMeasurement","msRelativeHumidity","genPowerCfg"]

kasprk avatar Jan 26 '22 23:01 kasprk

after playing around with the sensor and trying to bind it literally about 100 times I figured that if you rapidly remove/insert battery it will eventually register correctly ... also true if you use the "reconfigure" and play with the battery. I suspect that the 10 sec timeout for the bind is too small for this particular sensor

kasprk avatar Jan 27 '22 08:01 kasprk

I figured that if you rapidly remove/insert battery it will eventually register correctly

Hey is it possible to give a short algorithm how did you get the conjugation?

sanyafifa avatar Feb 05 '22 07:02 sanyafifa

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Mar 08 '22 00:03 github-actions[bot]