Noob question: Sonoff humidity/temp sensor not returning any data

I’ve just finished installing on a Pi 3 (64bit), configured my new Zigbee dongle:
SONOFF Zigbee 3.0 USB Dongle Plus-E
and added/configured the Mosquitto broker and Zigbee2MQTT add-ons.
Seemingly without any issue. When I then try to add my only device, it does pop up as expected, but the configuration seems to either fail, or end up in a bad state where it’s added and visible, but no data is being reported. See attached pictures and log output with errors.

I have tried using the Zigbee2MQTT add-on, and have tried switching to the Zigbee2MQTT EDGE channel, without any change in behavior. The logs show a cryptic “Route error” in the bottom, but I don’t know what that means, or where to start troubleshooting:

 
> Zigbee2MQTT:info  2022-11-20 13:01:37: Device '0x00124b00251d224b' is supported, identified as: SONOFF Temperature and humidity sensor (SNZB-02)
> Zigbee2MQTT:info  2022-11-20 13:01:37: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Temperature and humidity sensor","exposes":[{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Measured temperature value","name":"temperature","property":"temperature","type":"numeric","unit":"°C"},{"access":1,"description":"Measured relative humidity","name":"humidity","property":"humidity","type":"numeric","unit":"%"},{"access":1,"description":"Voltage of the battery in millivolts","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"SNZB-02","options":[{"access":2,"description":"Number of digits after decimal point for temperature, takes into effect on next report of device.","name":"temperature_precision","property":"temperature_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the temperature value (absolute offset), takes into effect on next report of device.","name":"temperature_calibration","property":"temperature_calibration","type":"numeric"},{"access":2,"description":"Number of digits after decimal point for humidity, takes into effect on next report of device.","name":"humidity_precision","property":"humidity_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the humidity value (absolute offset), takes into effect on next report of device.","name":"humidity_calibration","property":"humidity_calibration","type":"numeric"}],"supports_ota":false,"vendor":"SONOFF"},"friendly_name":"0x00124b00251d224b","ieee_address":"0x00124b00251d224b","status":"successful","supported":true},"type":"device_interview"}'
> Zigbee2MQTT:info  2022-11-20 13:01:37: Configuring '0x00124b00251d224b'
> Zigbee2MQTT:info  2022-11-20 13:01:37: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Temperature and humidity sensor","friendly_name":"0x00124b00251d224b","model":"SNZB-02","supported":true,"vendor":"SONOFF"},"type":"pairing"}'
> Zigbee2MQTT:error 2022-11-20 13:01:40: Configure failed: Error: Bind 0x00124b00251d224b/1 msTemperatureMeasurement from '0x84b4dbfffecc16b2/1' failed (Route error)
> Zigbee2MQTT:info  2022-11-20 13:01:40: Successfully configured '0x00124b00251d224b'

Can anyone point me in the right direction? I really hope to get some useful data before I give up.

How many times have you tried re-pairing? Have you tried pairing close to router, then moving into position?

i.e. you should pair on the location where you want it as the device will use the best option out of the mesh.
And as fenty17 wrote…you may have to pair a number of times and/or press reconfigure… I have examples of more than 5 times whereas a 2nd device of the same make did it in 1

Agreed. But as a last resort I’d try moving something closer to router. My Aqara sensors can be a bit fussy.

I have 3 brands…all fussy (fuzzy?) :slight_smile:

1 Like

Thank you for your suggestions. I have tried re-pairing a few times, both on location and right next to the home base. This did not help.

In the end I removed the zigbee2mqtt add-on and used ZHA instead, and this seems to work as expected.

Which might be an explanation but Z2M covers way more devices ‘in general’… did you check the Z2M documentation ?

I did read what I could find, but being new to this makes it very difficult to have a good feel for what is actually relevant. I have no real frame of reference or feel for what’s obviously a bug, what’s a misconfigured setup or just me misunderstanding it. The terminology is new and confusing - It takes time to get used to it.
The Discord channel seemed to be very insistant that z2m support was very beta/preview for my Zigbee dongle (the Sonoff ZBDongle-E) and I really don’t feel like starting this project with bad prerequisites. I want something functional right now, to build on, and maybe I’ll revisit z2m when I have a better idea of the limitations of ZHA and the software is more mature.
You know the feeling of starting a new project and not reaching some sort of minimal functionality? That really kills my motivation. :slight_smile:
This way I can learn and enjoy right now.

I meant this one
| Zigbee2MQTT
I have devices that are not formally supported but work sort-off OK but lack certain attribs (no clue why)

I have exactly the same hardware and problems as you, No succes joining with Z2M or ZHA. After many hours I found I could join Z2M (ZHA removed) after pressing the Aqara button for >30 seconds, releasing button, then pressing once near Sonoff USB dongle. Instant connection. Joy! Continues to work after moving to final location several rooms away.
Perhaps this helps if you still have problems

Maybe a little bit too late, but try this:
https://github.com/Koenkk/zigbee2mqtt/issues/8971