Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.77k stars 1.64k forks source link

SNZB-02 fails to send temperature msTemperatureMeasurement failed (AREQ - ZDO - bindRsp after 10000ms) #8971

Closed tvrulesme closed 2 years ago

tvrulesme commented 2 years ago

Debug info

Zigbee2MQTT version: version 1.21.2 (commit #44922120) Adapter hardware: CC2531 Adapter firmware version: CC2531_DEFAULT_20201127

Supported device SNZB-02 pairs successfully but shows the following error when it attempts to broadcast a temperature reading Zigbee2MQTT:error 2021-10-03 10:23:10: Configure failed: Error: Bind 0x00124b0022cf704d/1 msTemperatureMeasurement from '0x00124b00193691c1/1' failed (AREQ - ZDO - bindRsp after 10000ms)

configuration.yaml:

homeassistant: false
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.0.2
  user: mqtt_user
  password: Penguin1
serial:
  port: /dev/ttyACM0
devices:
  '0x00124b0022cf704d':
    friendly_name: '01-humidity'
    retain: true

logs:

Zigbee2MQTT:info  2021-10-03 10:12:49: Starting Zigbee2MQTT version 1.21.2 (commit #44922120)
Zigbee2MQTT:info  2021-10-03 10:12:49: Starting zigbee-herdsman (0.13.149)
Zigbee2MQTT:info  2021-10-03 10:12:58: zigbee-herdsman started (restored)
Zigbee2MQTT:info  2021-10-03 10:12:58: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}'
Zigbee2MQTT:info  2021-10-03 10:12:58: Currently 0 devices are joined:
.......

info  2021-10-03 10:18:39: Device '0x00124b0022cf704d' joined
info  2021-10-03 10:18:39: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b0022cf704d","ieee_address":"0x00124b0022cf704d"},"type":"device_joined"}'
info  2021-10-03 10:18:39: Starting interview of '0x00124b0022cf704d'
info  2021-10-03 10:18:39: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b0022cf704d","ieee_address":"0x00124b0022cf704d","status":"started"},"type":"device_interview"}'
info  2021-10-03 10:18:39: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x00124b0022cf704d"},"type":"device_connected"}'
info  2021-10-03 10:18:39: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x00124b0022cf704d"},"type":"pairing"}'
info  2021-10-03 10:18:40: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b0022cf704d","ieee_address":"0x00124b0022cf704d"},"type":"device_announce"}'
info  2021-10-03 10:18:40: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x00124b0022cf704d"},"type":"device_announced"}'
info  2021-10-03 10:18:40: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":[],"type":"groups"}'
info  2021-10-03 10:18:40: MQTT publish: topic 'zigbee2mqtt/bridge/config/devices', payload '[{"dateCode":"20201127","friendly_name":"Coordinator","ieeeAddr":"0x00124b00193691c1","lastSeen":1633252720100,"networkAddress":0,"softwareBuildID":"zStack12","type":"Coordinator"},{"description":"-","friendly_name":"0x00124b0022cf704d","ieeeAddr":"0x00124b0022cf704d","lastSeen":1633252720050,"networkAddress":59037,"type":"Unknown","vendor":"-"}]'
info  2021-10-03 10:18:40: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":[{"dateCode":"20201127","friendly_name":"Coordinator","ieeeAddr":"0x00124b00193691c1","lastSeen":1633252720166,"networkAddress":0,"softwareBuildID":"zStack12","type":"Coordinator"},{"description":"-","friendly_name":"0x00124b0022cf704d","ieeeAddr":"0x00124b0022cf704d","lastSeen":1633252720050,"manufacturerID":0,"networkAddress":59037,"type":"EndDevice","vendor":"-"}],"type":"devices"}'
info  2021-10-03 10:18:45: Successfully interviewed '0x00124b0022cf704d', device has successfully been paired
info  2021-10-03 10:18:45: Device '0x00124b0022cf704d' is supported, identified as: SONOFF Temperature and humidity sensor (SNZB-02)
info  2021-10-03 10:18:45: 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","supports_ota":false,"vendor":"SONOFF"},"friendly_name":"0x00124b0022cf704d","ieee_address":"0x00124b0022cf704d","status":"successful","supported":true},"type":"device_interview"}'
info  2021-10-03 10:18:45: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Temperature and humidity sensor","friendly_name":"0x00124b0022cf704d","model":"SNZB-02","supported":true,"vendor":"SONOFF"},"type":"pairing"}'
info  2021-10-03 10:18:45: Changed device specific options of '0x00124b0022cf704d' ({"retain":true})

......

Zigbee2MQTT:info  2021-10-03 10:23:00: Device '01-humidity' joined
Zigbee2MQTT:info  2021-10-03 10:23:00: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"01-humidity","ieee_address":"0x00124b0022cf704d"},"type":"device_joined"}'
Zigbee2MQTT:info  2021-10-03 10:23:00: Configuring '01-humidity'
Zigbee2MQTT:info  2021-10-03 10:23:00: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"01-humidity"},"type":"device_connected"}'
Zigbee2MQTT:info  2021-10-03 10:23:00: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"01-humidity","ieee_address":"0x00124b0022cf704d"},"type":"device_announce"}'
Zigbee2MQTT:info  2021-10-03 10:23:00: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"01-humidity"},"type":"device_announced"}'
Zigbee2MQTT:info  2021-10-03 10:23:00: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":[],"type":"groups"}'
Zigbee2MQTT:info  2021-10-03 10:23:00: MQTT publish: topic 'zigbee2mqtt/bridge/config/devices', payload '[{"dateCode":"20201127","friendly_name":"Coordinator","ieeeAddr":"0x00124b00193691c1","lastSeen":1633252980641,"networkAddress":0,"softwareBuildID":"zStack12","type":"Coordinator"},{"dateCode":"20201026","description":"Temperature and humidity sensor","friendly_name":"01-humidity","hardwareVersion":1,"ieeeAddr":"0x00124b0022cf704d","lastSeen":1633252980584,"manufacturerID":0,"manufacturerName":"eWeLink","model":"SNZB-02","modelID":"TH01","networkAddress":35923,"powerSource":"Battery","type":"EndDevice","vendor":"SONOFF"}]'
Zigbee2MQTT:info  2021-10-03 10:23:00: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":[{"dateCode":"20201127","friendly_name":"Coordinator","ieeeAddr":"0x00124b00193691c1","lastSeen":1633252980659,"networkAddress":0,"softwareBuildID":"zStack12","type":"Coordinator"},{"dateCode":"20201026","description":"Temperature and humidity sensor","friendly_name":"01-humidity","hardwareVersion":1,"ieeeAddr":"0x00124b0022cf704d","lastSeen":1633252980584,"manufacturerID":0,"manufacturerName":"eWeLink","model":"SNZB-02","modelID":"TH01","networkAddress":35923,"powerSource":"Battery","type":"EndDevice","vendor":"SONOFF"}],"type":"devices"}'
Zigbee2MQTT:error 2021-10-03 10:23:10: Configure failed: Error: Bind 0x00124b0022cf704d/1 msTemperatureMeasurement from '0x00124b00193691c1/1' failed (AREQ - ZDO - bindRsp after 10000ms)
Zigbee2MQTT:info  2021-10-03 10:23:10: Successfully configured '01-humidity'
Zigbee2MQTT:info  2021-10-03 10:27:01: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'offline'
deatondg commented 2 years ago

@maxbause What on Earth? I've been having this same issue for days. I recently bought 2 new sensors, and they wouldn't work although my existing ones would re-pair just fine. This method totally worked for me. Very easy, and very strange.

maxbause commented 2 years ago

I'm happy that the method works for you too @degreal and @deatondg! :)

@sjorge I also think that this problem has something to do with the state of the sensor, but I haven't had the time yet to further investigate.

nicolaferraro commented 2 years ago

Hey guys, I had the same problem: The sensor was connected, but I couldn't get any date out of it.

I've found a sloppy fix, but it worked for me:

  1. Make sure that the sensor is still connected to the bridge
  2. Now open the back of the sensor and remove the button cell battery
  3. In your zigbee2mqtt web interface, force remove the sensor
  4. Take a piece of metal (I used a screwdriver tip) and short out the two battery contacts of the sensor (see attached file)
  5. Now put the battery back in and wait for the sensor to connect 5.1 Note: Don't press the button on the sensor, let it connect by itself

After that, all of my 5 sensor worked perfectly. IMG_8794

Hi @maxbause, I tried it but the sensor does not seem to connect back in step 5 (unless I hold the button again for a few secs). Should I just plug the battery and leave it alone for some minutes or reconnection happens immediately?

Does the light flash when you plug the battery again?

garykrige commented 2 years ago

I am also not managing to connect back (I'm using the latest dev docker image). I've left the device to connect for 20 minutes, but still no signs of connection without using the button - at which point it fails.

valdeira888 commented 2 years ago

Same problem here with my new SNZB-02 (I'm trying to add two of them but same error for both), here's the log line:

Configure failed: Error: Bind 0x00124b0023adcfe3/1 msTemperatureMeasurement from '0x00124b0022813510/1' failed (AREQ - ZDO - bindRsp after 10000ms)

I have another SNZB-02 in my network (added months ago) and it works fine.

Same here, bought 2 and both are not working, even with the screw driver fix.

phobosdigg commented 2 years ago

One of the sensors was connected using the maxbause method, but the other two sensors are not connected.

dkouskousis commented 2 years ago

Hey guys, I had the same problem: The sensor was connected, but I couldn't get any date out of it.

I've found a sloppy fix, but it worked for me:

  1. Make sure that the sensor is still connected to the bridge
  2. Now open the back of the sensor and remove the button cell battery
  3. In your zigbee2mqtt web interface, force remove the sensor
  4. Take a piece of metal (I used a screwdriver tip) and short out the two battery contacts of the sensor (see attached file)
  5. Now put the battery back in and wait for the sensor to connect 5.1 Note: Don't press the button on the sensor, let it connect by itself

After that, all of my 5 sensor worked perfectly. IMG_8794

Hi @maxbause, I tried it but the sensor does not seem to connect back in step 5 (unless I hold the button again for a few secs). Should I just plug the battery and leave it alone for some minutes or reconnection happens immediately?

Does the light flash when you plug the battery again?

You are a god @maxbause ! Finally, the three zigbee devices connected successfuly.

Thank you!

maxbause commented 2 years ago

Hey guys, I had the same problem: The sensor was connected, but I couldn't get any date out of it. I've found a sloppy fix, but it worked for me:

  1. Make sure that the sensor is still connected to the bridge
  2. Now open the back of the sensor and remove the button cell battery
  3. In your zigbee2mqtt web interface, force remove the sensor
  4. Take a piece of metal (I used a screwdriver tip) and short out the two battery contacts of the sensor (see attached file)
  5. Now put the battery back in and wait for the sensor to connect 5.1 Note: Don't press the button on the sensor, let it connect by itself

After that, all of my 5 sensor worked perfectly. IMG_8794

Hi @maxbause, I tried it but the sensor does not seem to connect back in step 5 (unless I hold the button again for a few secs). Should I just plug the battery and leave it alone for some minutes or reconnection happens immediately?

Does the light flash when you plug the battery again?

Hi @nicolaferraro, in my case, all five sensors reconnected automatically in between 10 and 30 seconds after putting the battery back in. I didn't notice the LED blinking, but I was also not paying attention. I would try leaving it alone for a while without the battery plugged in to make sure that potential stored energy is completely used up. You could also try to bridge the battery contacts for longer (I bridged them for about 10 seconds).

Also, did you check that your zigbee2mqtt server allowed joining new devices while putting the battery back in?

Let me know if you had any success.

phobosdigg commented 2 years ago

After step 5, the sensor reappears in the device list and the same error occurs:

"Configure failed: Error: Bind 0x00124b002228e6aa/1 msTemperatureMeasurement from '0x00124b00060fd6da/1' failed (AREQ - ZDO - bindRsp after 10000ms)"

What else can I try?

takthetank commented 2 years ago

FYI reverting to version 1.19.1 solves the pairing problem!

Koenkk commented 2 years ago

@takthetank well that is interesting since nothing has been changed in the device definition since then.

Any chance you could provide me the herdsman debug log when pairing on 1.19.1 (working) and on 1.21.2 (non-working)

See https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging on how to enable the herdsman debug logging. Note that this is only logged to STDOUT and not to log files.

takthetank commented 2 years ago

@Koenkk Here you go, I hope they help!

I run a clean install for each version, and paired the same sensor. In 1.19.1 I got successful pairing, reporting, etc. In 1.21.1 it said successfully paired this time, but got nothing in Bind and Reporting tabs (UI).

_Zigbee2MQTT_logs 1.19.1.txt _Zigbee2MQTT_logs 1.21.1.txt

raper1092 commented 2 years ago

Yeah !! you helped me save the rest of my hair that I plucked out trying to solve this problem. I admit that I am just starting the adventure with zigbeemqtt and bad luck wanted that one of the first devices that I connected was SNZB-02 and version 1.21.2 ... I can only confirm that after reverting to version 1.19.1 everything at least when it comes to these devices works properly (I have not found any other problems) The question is whether in addition https://github.com/zigbee2mqtt/hassio-zigbee2mqtt can be defined as a specific version of zigbeemqtt? Because in home-assistant I do not see such players from the promoter level.

dsduarte commented 2 years ago

Hello... A few weeks ago I've moved to another house and decided to start a new setup: HA, Z2M, etc... As @raper1092 , I also got bad luck with devices that used to work just fine, not working properly. But a kept my old HA VM backed up... I started it with Z2M on 1.21.1-1 using a sonoff zigbee bridge runing tasmota and the devices are working fine on that. On my new setup, with CC2531 as coordination and Z2M 1.21.2-1 I have a few device reporting issues:

1- SNZB02's are not reporting temperature, humiduty, LQI, and battery info; 2- ZBMIN's and BASICZBR3 are not reporting LQI; 3- SNZB01 (action switch) are not reporting LQI, battery info and action button; 4- SNZB03 (PIR sensor) are reporting battery and occupancy, but not reporting LQI; 5- SNZB04 (contact sensor) are reporting battery and contact status, but not reporting LQI. 6- Tuya Scene Swich (TS0044) is not reporting LQI.

Koenkk commented 2 years ago

@takthetank thanks! Could you check again with the latest dev branch? Might fix the issue, if not please provide the logs again.

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

snippem commented 2 years ago

Hassos pi latest dev zigbee2mqtt.

2: Device '0x00124b0023205202' joined info 2021-10-14 10:50:13: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b0023205202","ieee_address":"0x00124b0023205202"},"type":"device_joined"}' info 2021-10-14 10:50:13: Configuring '0x00124b0023205202' info 2021-10-14 10:50:13: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x00124b0023205202"},"type":"device_connected"}' info 2021-10-14 10:50:13: MQTT publish: topic 'homeassistant/sensor/0x00124b0023205202/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b0023205202/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b0023205202"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b0023205202","sw_version":"Zigbee2MQTT 1.21.2-dev"},"device_class":"battery","enabled_by_default":true,"json_attributes_topic":"zigbee2mqtt/0x00124b0023205202","name":"0x00124b0023205202 battery","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b0023205202","unique_id":"0x00124b0023205202_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' info 2021-10-14 10:50:13: MQTT publish: topic 'homeassistant/sensor/0x00124b0023205202/temperature/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b0023205202/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b0023205202"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b0023205202","sw_version":"Zigbee2MQTT 1.21.2-dev"},"device_class":"temperature","enabled_by_default":true,"json_attributes_topic":"zigbee2mqtt/0x00124b0023205202","name":"0x00124b0023205202 temperature","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b0023205202","unique_id":"0x00124b0023205202_temperature_zigbee2mqtt","unit_of_measurement":"°C","value_template":"{{ value_json.temperature }}"}' info 2021-10-14 10:50:13: MQTT publish: topic 'homeassistant/sensor/0x00124b0023205202/humidity/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b0023205202/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b0023205202"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b0023205202","sw_version":"Zigbee2MQTT 1.21.2-dev"},"device_class":"humidity","enabled_by_default":true,"json_attributes_topic":"zigbee2mqtt/0x00124b0023205202","name":"0x00124b0023205202 humidity","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b0023205202","unique_id":"0x00124b0023205202_humidity_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.humidity }}"}' info 2021-10-14 10:50:13: MQTT publish: topic 'homeassistant/sensor/0x00124b0023205202/voltage/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b0023205202/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b0023205202"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b0023205202","sw_version":"Zigbee2MQTT 1.21.2-dev"},"device_class":"voltage","enabled_by_default":false,"json_attributes_topic":"zigbee2mqtt/0x00124b0023205202","name":"0x00124b0023205202 voltage","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b0023205202","unique_id":"0x00124b0023205202_voltage_zigbee2mqtt","unit_of_measurement":"mV","value_template":"{{ value_json.voltage }}"}' info 2021-10-14 10:50:13: MQTT publish: topic 'homeassistant/sensor/0x00124b0023205202/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b0023205202/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b0023205202"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b0023205202","sw_version":"Zigbee2MQTT 1.21.2-dev"},"enabled_by_default":false,"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x00124b0023205202","name":"0x00124b0023205202 linkquality","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b0023205202","unique_id":"0x00124b0023205202_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' info 2021-10-14 10:50:13: MQTT publish: topic 'homeassistant/sensor/0x00124b0023205202/last_seen/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b0023205202/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b0023205202"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b0023205202","sw_version":"Zigbee2MQTT 1.21.2-dev"},"enabled_by_default":false,"icon":"mdi:clock","json_attributes_topic":"zigbee2mqtt/0x00124b0023205202","name":"0x00124b0023205202 last seen","state_topic":"zigbee2mqtt/0x00124b0023205202","unique_id":"0x00124b0023205202_last_seen_zigbee2mqtt","value_template":"{{ value_json.last_seen }}"}' info 2021-10-14 10:50:13: MQTT publish: topic 'zigbee2mqtt/0x00124b0023205202/availability', payload 'online' info 2021-10-14 10:50:13: MQTT publish: topic 'zigbee2mqtt/0x00124b0023205202', payload '{"battery":null,"humidity":null,"last_seen":"2021-10-14T08:50:13.307Z","linkquality":null,"temperature":null,"voltage":null}' info 2021-10-14 10:50:13: MQTT publish: topic 'zigbee2mqtt/0x00124b0023205202', payload '{"battery":null,"humidity":null,"last_seen":"2021-10-14T08:50:13.330Z","linkquality":null,"temperature":null,"voltage":null}' info 2021-10-14 10:50:14: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b0023205202","ieee_address":"0x00124b0023205202"},"type":"device_announce"}' info 2021-10-14 10:50:14: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x00124b0023205202"},"type":"device_announced"}' info 2021-10-14 10:50:15: MQTT publish: topic 'zigbee2mqtt/Stopcontact tijdelijk 1', payload '{"current":0.05,"energy":0.15,"last_seen":"2021-10-14T08:50:15.119Z","linkquality":114,"power":7,"state":"ON","voltage":244}' info 2021-10-14 10:50:15: MQTT publish: topic 'zigbee2mqtt/Stopcontact tijdelijk 1', payload '{"current":0.05,"energy":0.15,"last_seen":"2021-10-14T08:50:15.119Z","linkquality":108,"power":7,"state":"ON","voltage":244}' info 2021-10-14 10:50:16: MQTT publish: topic 'zigbee2mqtt/ouders slaapkamer plafond', payload '{"energy":null,"interlock":false,"last_seen":"2021-10-14T08:50:16.419Z","linkquality":60,"power":0.02,"state_l1":"OFF","state_l2":"OFF","temperature":null,"update":{"state":"idle"},"update_available":false,"voltage":null}' info 2021-10-14 10:50:19: MQTT publish: topic 'zigbee2mqtt/hal begane grond beweging', payload '{"battery":100,"illuminance":10246,"illuminance_lux":11,"last_seen":"2021-10-14T08:50:19.330Z","led_indication":false,"linkquality":126,"motion_sensitivity":"medium","occupancy":true,"occupancy_timeout":0,"temperature":17.74,"update":{"state":"idle"},"update_available":false}' info 2021-10-14 10:50:19: MQTT publish: topic 'zigbee2mqtt/hal begane grond beweging', payload '{"battery":100,"illuminance":10335,"illuminance_lux":11,"last_seen":"2021-10-14T08:50:19.330Z","led_indication":false,"linkquality":126,"motion_sensitivity":"medium","occupancy":true,"occupancy_timeout":0,"temperature":17.74,"update":{"state":"idle"},"update_available":false}' info 2021-10-14 10:50:20: MQTT publish: topic 'zigbee2mqtt/Stopcontact tijdelijk 1', payload '{"current":0.05,"energy":0.15,"last_seen":"2021-10-14T08:50:20.057Z","linkquality":108,"power":7,"state":"ON","voltage":244}' info 2021-10-14 10:50:20: MQTT publish: topic 'zigbee2mqtt/Stopcontact tijdelijk 1', payload '{"current":0.05,"energy":0.15,"last_seen":"2021-10-14T08:50:20.057Z","linkquality":111,"power":7,"state":"ON","voltage":244}' info 2021-10-14 10:50:21: MQTT publish: topic 'zigbee2mqtt/zitgedeelte woonkamer', payload '{"energy":null,"interlock":true,"last_seen":"2021-10-14T08:50:21.230Z","linkquality":96,"power":0,"state_l1":"OFF","state_l2":"OFF","temperature":null,"update":{"state":"idle"},"update_available":false,"voltage":null}' info 2021-10-14 10:50:23: MQTT publish: topic 'zigbee2mqtt/hal begane grond beweging', payload '{"battery":100,"illuminance":10335,"illuminance_lux":11,"last_seen":"2021-10-14T08:50:23.751Z","led_indication":false,"linkquality":126,"motion_sensitivity":"medium","occupancy":true,"occupancy_timeout":0,"temperature":17.74,"update":{"state":"idle"},"update_available":false}' info 2021-10-14 10:50:23: MQTT publish: topic 'zigbee2mqtt/hal begane grond beweging', payload '{"battery":100,"illuminance":10335,"illuminance_lux":11,"last_seen":"2021-10-14T08:50:23.751Z","led_indication":false,"linkquality":126,"motion_sensitivity":"medium","occupancy":false,"occupancy_timeout":0,"temperature":17.74,"update":{"state":"idle"},"update_available":false}' error 2021-10-14 10:50:24: Configure failed: Error: Bind 0x00124b0023205202/1 msTemperatureMeasurement from '0x00124b00214f3f95/1' failed (AREQ - ZDO - bindRsp after 10000ms) info 2021-10-14 10:50:24: Successfully configured '0x00124b0023205202'

Resulting in null s reported on all values

takthetank commented 2 years ago

@Koenkk Tried the same with latest dev, interview and bindings look successful, but it doesn't report anything! _Zigbee2MQTT_DEV_logs.txt

Koenkk commented 2 years ago

@takthetank I see temperature reports incoming from an unknown device:

2021-10-13T21:17:20.818766586Z   zigbee-herdsman:controller:log 'zcl' data is from unknown device with address '20312', skipping... +0ms

Do you have an other device which does temperature measurements in your network?

If not, maybe for some reason this device uses a different network address when pairing vs sending messages. Can you try:

dsduarte commented 2 years ago

@takthetank I see temperature reports incoming from an unknown device:

2021-10-13T21:17:20.818766586Z   zigbee-herdsman:controller:log 'zcl' data is from unknown device with address '20312', skipping... +0ms

Do you have an other device which does temperature measurements in your network?

If not, maybe for some reason this device uses a different network address when pairing vs sending messages. Can you try:

  • Force remove the SNZB-02
  • Remove battery, and make sure the SNZB-02 is completely empty, press the reset button until it shows no signs of life anymore
  • Pair the device again

i did this... but I don't know how to troubleshooting theese logs:

2021-10-14T14:19:40.162Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,3,69,196,2,21,0,149] 2021-10-14T14:19:40.162Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,3,69,196,2,21,0,149] 2021-10-14T14:19:40.163Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 3 - 2 - 5 - 196 - [2,21,0] - 149 2021-10-14T14:19:40.163Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - srcRtgInd - {"dstaddr":5378,"relaycount":0,"relaylist":[]} 2021-10-14T14:19:40.164Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] 2021-10-14T14:19:40.345Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,12,69,202,11,39,220,189,108,34,0,75,18,0,2,21,206] 2021-10-14T14:19:40.346Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,12,69,202,11,39,220,189,108,34,0,75,18,0,2,21,206] 2021-10-14T14:19:40.346Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 12 - 2 - 5 - 202 - [11,39,220,189,108,34,0,75,18,0,2,21] - 206 2021-10-14T14:19:40.346Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - tcDeviceInd - {"nwkaddr":9995,"extaddr":"0x00124b00226cbddc","parentaddr":5378} 2021-10-14T14:19:40.347Z zigbee-herdsman:controller:log Device '0x00124b00226cbddc' joined 2021-10-14T14:19:40.347Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] 2021-10-14T14:19:40.351Z zigbee-herdsman:controller:log Device '0x00124b00226cbddc' accepted by handler 2021-10-14T14:19:40.355Z zigbee-herdsman:controller:log Delete device '0x00124b00226cbddc' joined, undeleting Zigbee2MQTT:info 2021-10-14 11:19:40: Device '0x00124b00226cbddc' joined Zigbee2MQTT:info 2021-10-14 11:19:40: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00226cbddc","ieee_address":"0x00124b00226cbddc"},"type":"device_joined"}' 2021-10-14T14:19:40.815Z zigbee-herdsman:controller:endpoint Bind 0x00124b00226cbddc/1 msTemperatureMeasurement from '0x00124b001cd49161/1' Zigbee2MQTT:info 2021-10-14 11:19:40: Configuring '0x00124b00226cbddc' 2021-10-14T14:19:40.822Z zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - bindReq - {"dstaddr":7673,"srcaddr":"0x00124b00226cbddc","srcendpoint":1,"clusterid":1026,"dstaddrmode":3,"dstaddress":"0x00124b001cd49161","dstendpoint":1} 2021-10-14T14:19:40.823Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,23,37,33,249,29,220,189,108,34,0,75,18,0,1,2,4,3,97,145,212,28,0,75,18,0,1,229] Zigbee2MQTT:info 2021-10-14 11:19:40: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x00124b00226cbddc"},"type":"device_connected"}' Zigbee2MQTT:info 2021-10-14 11:19:40: MQTT publish: topic 'homeassistant/sensor/0x00124b00226cbddc/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00226cbddc/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00226cbddc"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b00226cbddc","sw_version":"Zigbee2MQTT 1.21.2-dev"},"device_class":"battery","enabled_by_default":true,"json_attributes_topic":"zigbee2mqtt/0x00124b00226cbddc","name":"0x00124b00226cbddc battery","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00226cbddc","unique_id":"0x00124b00226cbddc_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' Zigbee2MQTT:info 2021-10-14 11:19:40: MQTT publish: topic 'homeassistant/sensor/0x00124b00226cbddc/temperature/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00226cbddc/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00226cbddc"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b00226cbddc","sw_version":"Zigbee2MQTT 1.21.2-dev"},"device_class":"temperature","enabled_by_default":true,"json_attributes_topic":"zigbee2mqtt/0x00124b00226cbddc","name":"0x00124b00226cbddc temperature","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00226cbddc","unique_id":"0x00124b00226cbddc_temperature_zigbee2mqtt","unit_of_measurement":"°C","value_template":"{{ value_json.temperature }}"}' Zigbee2MQTT:info 2021-10-14 11:19:40: MQTT publish: topic 'homeassistant/sensor/0x00124b00226cbddc/humidity/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00226cbddc/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00226cbddc"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b00226cbddc","sw_version":"Zigbee2MQTT 1.21.2-dev"},"device_class":"humidity","enabled_by_default":true,"json_attributes_topic":"zigbee2mqtt/0x00124b00226cbddc","name":"0x00124b00226cbddc humidity","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00226cbddc","unique_id":"0x00124b00226cbddc_humidity_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.humidity }}"}' Zigbee2MQTT:info 2021-10-14 11:19:40: MQTT publish: topic 'homeassistant/sensor/0x00124b00226cbddc/voltage/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00226cbddc/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00226cbddc"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b00226cbddc","sw_version":"Zigbee2MQTT 1.21.2-dev"},"device_class":"voltage","enabled_by_default":false,"json_attributes_topic":"zigbee2mqtt/0x00124b00226cbddc","name":"0x00124b00226cbddc voltage","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00226cbddc","unique_id":"0x00124b00226cbddc_voltage_zigbee2mqtt","unit_of_measurement":"mV","value_template":"{{ value_json.voltage }}"}' Zigbee2MQTT:info 2021-10-14 11:19:40: MQTT publish: topic 'homeassistant/sensor/0x00124b00226cbddc/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x00124b00226cbddc/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x00124b00226cbddc"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b00226cbddc","sw_version":"Zigbee2MQTT 1.21.2-dev"},"enabled_by_default":false,"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x00124b00226cbddc","name":"0x00124b00226cbddc linkquality","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00226cbddc","unique_id":"0x00124b00226cbddc_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' 2021-10-14T14:19:40.957Z zigbee-herdsman:controller:log Device '0x00124b00226cbddc' is already in database with different networkAddress, updating networkAddress 2021-10-14T14:19:40.967Z zigbee-herdsman:controller:log Not interviewing '0x00124b00226cbddc', completed 'true', in progress 'false' 2021-10-14T14:19:41.002Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,12,69,202,11,39,220,189,108,34,0,75,18,0,2,21,206] 2021-10-14T14:19:41.007Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,12,69,202,11,39,220,189,108,34,0,75,18,0,2,21,206] 2021-10-14T14:19:41.010Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 12 - 2 - 5 - 202 - [11,39,220,189,108,34,0,75,18,0,2,21] - 206 2021-10-14T14:19:41.015Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - tcDeviceInd - {"nwkaddr":9995,"extaddr":"0x00124b00226cbddc","parentaddr":5378} 2021-10-14T14:19:41.018Z zigbee-herdsman:controller:log Device '0x00124b00226cbddc' joined 2021-10-14T14:19:41.022Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] 2021-10-14T14:19:41.025Z zigbee-herdsman:controller:log Device '0x00124b00226cbddc' accepted by handler 2021-10-14T14:19:41.064Z zigbee-herdsman:controller:log Not interviewing '0x00124b00226cbddc', completed 'true', in progress 'false' 2021-10-14T14:19:41.079Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,33,0,69] 2021-10-14T14:19:41.081Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,33,0,69] 2021-10-14T14:19:41.082Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 33 - [0] - 69 2021-10-14T14:19:41.083Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - bindReq - {"status":0} 2021-10-14T14:19:41.084Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] 2021-10-14T14:19:41.088Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,13,69,193,11,39,11,39,220,189,108,34,0,75,18,0,128,127] 2021-10-14T14:19:41.089Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,13,69,193,11,39,11,39,220,189,108,34,0,75,18,0,128,127] 2021-10-14T14:19:41.090Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 13 - 2 - 5 - 193 - [11,39,11,39,220,189,108,34,0,75,18,0,128] - 127 2021-10-14T14:19:41.091Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - endDeviceAnnceInd - {"srcaddr":9995,"nwkaddr":9995,"ieeeaddr":"0x00124b00226cbddc","capabilities":128} 2021-10-14T14:19:41.096Z zigbee-herdsman:adapter:zStack:adapter Discovering route to 9995 2021-10-14T14:19:41.097Z zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - extRouteDisc - {"dstAddr":9995,"options":0,"radius":30} 2021-10-14T14:19:41.097Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,4,37,69,11,39,0,30,86] 2021-10-14T14:19:41.102Z zigbee-herdsman:controller:log Device announce '0x00124b00226cbddc' Zigbee2MQTT:info 2021-10-14 11:19:41: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00226cbddc","ieee_address":"0x00124b00226cbddc"},"type":"device_announce"}' Zigbee2MQTT:info 2021-10-14 11:19:41: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x00124b00226cbddc"},"type":"device_announced"}' 2021-10-14T14:19:41.223Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] 2021-10-14T14:19:41.257Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,69,0,33] 2021-10-14T14:19:41.258Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,69,0,33] 2021-10-14T14:19:41.259Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 69 - [0] - 33 2021-10-14T14:19:41.261Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - extRouteDisc - {"status":0} 2021-10-14T14:19:41.262Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] 2021-10-14T14:19:51.086Z zigbee-herdsman:controller:endpoint Bind 0x00124b00226cbddc/1 msTemperatureMeasurement from '0x00124b001cd49161/1' failed (AREQ - ZDO - bindRsp after 10000ms) Zigbee2MQTT:error 2021-10-14 11:19:51: Configure failed: Error: Bind 0x00124b00226cbddc/1 msTemperatureMeasurement from '0x00124b001cd49161/1' failed (AREQ - ZDO - bindRsp after 10000ms) Zigbee2MQTT:info 2021-10-14 11:19:51: Successfully configured '0x00124b00226cbddc'

dsduarte commented 2 years ago

if it helps, here are the logs of paring the same device on another HA VM, running Z2M 1.21.2-1 with Sonnoff Bridge over TCP:

2021-10-14T14:45:52.324Z zigbee-herdsman:adapter:ezsp:uart waiting (0) 2021-10-14T14:45:52.324Z zigbee-herdsman:adapter:ezsp:uart --> [71cd21a9602a1585e1904b25aa5493099d4e27a7e0cb7781fdc063b8867e] [113,205,33,169,96,42,21,133,225,144,75,37,170,84,147,9,157,78,39,167,224,203,119,129,253,192,99,184,134,126] 2021-10-14T14:45:52.340Z zigbee-herdsman:adapter:ezsp:uart waiting (0) success 2021-10-14T14:45:52.387Z zigbee-herdsman:adapter:ezsp:uart <-- [10cda1a9602a15f0bd497e] [16,205,161,169,96,42,21,240,189,73,126] 2021-10-14T14:45:52.390Z zigbee-herdsman:adapter:ezsp:uart Recv DATA frame (1,0,0): 10cda1a9602a15f0bd497e 2021-10-14T14:45:52.408Z zigbee-herdsman:adapter:ezsp:uart Send ACK frame (2) 2021-10-14T14:45:52.412Z zigbee-herdsman:adapter:ezsp:uart --> [82503a7e] [130,80,58,126] 2021-10-14T14:45:52.430Z zigbee-herdsman:adapter:ezsp:log <=== Frame: 8f800134000042 2021-10-14T14:45:52.435Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 52 (sendUnicast) received: 0042 2021-10-14T14:45:52.436Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 52 (sendUnicast) parsed: 0,66 2021-10-14T14:45:52.601Z zigbee-herdsman:adapter:ezsp:uart <-- [20cdb1a96b2a1585e1904b25aa5493099d4e27e9e0ce670e777e] [32,205,177,169,107,42,21,133,225,144,75,37,170,84,147,9,157,78,39,233,224,206,103,14,119,126] 2021-10-14T14:45:52.610Z zigbee-herdsman:adapter:ezsp:uart Recv DATA frame (2,0,0): 20cdb1a96b2a1585e1904b25aa5493099d4e27e9e0ce670e777e 2021-10-14T14:45:52.627Z zigbee-herdsman:adapter:ezsp:uart Send ACK frame (3) 2021-10-14T14:45:52.628Z zigbee-herdsman:adapter:ezsp:uart --> [83401b7e] [131,64,27,126] 2021-10-14T14:45:52.633Z zigbee-herdsman:adapter:ezsp:log <=== Frame: 8f90013f000037b804010000010140010000420d0000 2021-10-14T14:45:52.639Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 63 (messageSentHandler) received: 0037b804010000010140010000420d0000 2021-10-14T14:45:52.640Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 63 (messageSentHandler) parsed: 0,47159,EmberApsFrame: {"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":320,"groupId":0,"sequence":66},13,0, 2021-10-14T14:45:52.695Z zigbee-herdsman:adapter:ezsp:uart <-- [30cdb1a97d312a15b658944a24ab5593499c44d840da769874edde6988fa7d5e3fe5e3ffee5dbfcef7e9e3d0ea757e] [48,205,177,169,125,49,42,21,182,88,148,74,36,171,85,147,73,156,68,216,64,218,118,152,116,237,222,105,136,250,125,94,63,229,227,255,238,93,191,206,247,233,227,208,234,117,126] 2021-10-14T14:45:52.695Z zigbee-herdsman:adapter:ezsp:uart Recv DATA frame (3,0,0): 30cdb1a9112a15b658944a24ab5593499c44d840da769874edde6988fa7e3fe5e3ffee5dbfcef7e9e3d0ea757e0000 2021-10-14T14:45:52.707Z zigbee-herdsman:adapter:ezsp:uart Send ACK frame (4) 2021-10-14T14:45:52.707Z zigbee-herdsman:adapter:ezsp:uart --> [8430fc7e] [132,48,252,126] 2021-10-14T14:45:52.708Z zigbee-herdsman:adapter:ezsp:log <=== Frame: 8f9001450000040100000101000100000affeb37b8ffff10180a01060000420832303230313032360283f9 2021-10-14T14:45:52.708Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 69 (incomingMessageHandler) received: 00040100000101000100000affeb37b8ffff10180a01060000420832303230313032360283f9 2021-10-14T14:45:52.708Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 69 (incomingMessageHandler) parsed: 0,EmberApsFrame: {"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":10},255,-21,47159,255,255, B20201026 2021-10-14T14:45:52.708Z zigbee-herdsman:adapter:ezsp processMessage: {"messageType":0,"apsFrame":{"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":10},"lqi":255,"rssi":-21,"sender":47159,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[24,10,1,6,0,0,66,8,50,48,50,48,49,48,50,54]}} 2021-10-14T14:45:52.731Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":10,"manufacturerCode":null,"commandIdentifier":1},"Payload":[{"attrId":6,"status":0,"dataType":66,"attrData":"20201026"}],"Command":{"ID":1,"name":"readRsp","parameters":[{"name":"attrId","type":33},{"name":"status","type":32},{"name":"dataType","type":32,"conditions":[{"type":"statusEquals","value":0}]},{"name":"attrData","type":1000,"conditions":[{"type":"statusEquals","value":0}]}]}},"address":47159,"endpoint":1,"linkquality":255,"groupID":0,"wasBroadcast":false,"destinationEndpoint":1}' 2021-10-14T14:45:52.752Z zigbee-herdsman:controller:device:log Interview - got 'dateCode' for device '0x00124b00226cbddc' 2021-10-14T14:45:52.754Z zigbee-herdsman:controller:endpoint Read 0x00124b00226cbddc/1 genBasic(["swBuildId"], {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) 2021-10-14T14:45:52.755Z zigbee-herdsman:adapter:ezsp sendZclFrameToEndpointInternal 0x00124b00226cbddc:47159/1 (0,0,1) 2021-10-14T14:45:52.758Z zigbee-herdsman:adapter:ezsp:log ===> Send command setExtendedTimeout: (00124b00226cbddc,true) 2021-10-14T14:45:52.758Z zigbee-herdsman:adapter:ezsp:log ===> Send data setExtendedTimeout: (9000017e00dcbd6c22004b120001) 2021-10-14T14:45:52.759Z zigbee-herdsman:adapter:ezsp:uart Send DATA frame (0,4,0): 9000017e00dcbd6c22004b120001 2021-10-14T14:45:52.765Z zigbee-herdsman:adapter:ezsp:uart waiting (1) 2021-10-14T14:45:52.765Z zigbee-herdsman:adapter:ezsp:uart --> [04d221a92a2ac90f35b64a6eb855933c4b7e] [4,210,33,169,42,42,201,15,53,182,74,110,184,85,147,60,75,126] 2021-10-14T14:45:52.766Z zigbee-herdsman:adapter:ezsp:uart waiting (1) success 2021-10-14T14:45:52.788Z zigbee-herdsman:adapter:ezsp:log Time to watchdog ... 0 2021-10-14T14:45:52.788Z zigbee-herdsman:adapter:ezsp:log ===> Send command nop: () 2021-10-14T14:45:52.818Z zigbee-herdsman:adapter:ezsp:uart <-- [41d2a1a92a2a810b7e] [65,210,161,169,42,42,129,11,126] 2021-10-14T14:45:52.819Z zigbee-herdsman:adapter:ezsp:uart Recv DATA frame (4,1,0): 41d2a1a92a2a810b7e 2021-10-14T14:45:52.819Z zigbee-herdsman:adapter:ezsp:uart Send ACK frame (5) 2021-10-14T14:45:52.819Z zigbee-herdsman:adapter:ezsp:uart --> [8520dd7e] [133,32,221,126] 2021-10-14T14:45:52.819Z zigbee-herdsman:adapter:ezsp:log <=== Frame: 9080017e00 2021-10-14T14:45:52.820Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 126 (setExtendedTimeout) received: 2021-10-14T14:45:52.825Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 126 (setExtendedTimeout) parsed: 2021-10-14T14:45:52.825Z zigbee-herdsman:adapter:ezsp:log ===> Send data nop: (9100010500) 2021-10-14T14:45:52.825Z zigbee-herdsman:adapter:ezsp:uart Send DATA frame (1,5,0): 9100010500 2021-10-14T14:45:52.825Z zigbee-herdsman:adapter:ezsp:uart waiting (2) 2021-10-14T14:45:52.826Z zigbee-herdsman:adapter:ezsp:uart --> [15d321a9512a54f47e] [21,211,33,169,81,42,84,244,126] 2021-10-14T14:45:52.827Z zigbee-herdsman:adapter:ezsp:uart waiting (2) success 2021-10-14T14:45:52.827Z zigbee-herdsman:adapter:ezsp:log ===> Send command sendUnicast: (0,47159,EmberApsFrame: {"clusterId":0,"profileId":260,"sequence":13,"sourceEndpoint":1,"destinationEndpoint":1,"groupId":0,"options":320},14, @) 2021-10-14T14:45:52.873Z zigbee-herdsman:adapter:ezsp:uart <-- [52d3a1a9512a2b9d7e] [82,211,161,169,81,42,43,157,126] 2021-10-14T14:45:52.873Z zigbee-herdsman:adapter:ezsp:uart Recv DATA frame (5,2,0): 52d3a1a9512a2b9d7e 2021-10-14T14:45:52.873Z zigbee-herdsman:adapter:ezsp:uart Send ACK frame (6) 2021-10-14T14:45:52.873Z zigbee-herdsman:adapter:ezsp:uart --> [8610be7e] [134,16,190,126] 2021-10-14T14:45:52.874Z zigbee-herdsman:adapter:ezsp:log <=== Frame: 9180010500 2021-10-14T14:45:52.880Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 5 (nop) received: 2021-10-14T14:45:52.880Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 5 (nop) parsed: 2021-10-14T14:45:52.881Z zigbee-herdsman:adapter:ezsp:log ===> Send data sendUnicast: (92000134000037b8040100000101400100000d0e05100b000040) 2021-10-14T14:45:52.886Z zigbee-herdsman:adapter:ezsp:uart Send DATA frame (2,6,0): 92000134000037b8040100000101400100000d0e05100b000040 2021-10-14T14:45:52.887Z zigbee-herdsman:adapter:ezsp:uart waiting (3) 2021-10-14T14:45:52.887Z zigbee-herdsman:adapter:ezsp:uart --> [26d021a9602a1585e1904b25aa5493099d4e27a6e3cb7780fdc623ff077e] [38,208,33,169,96,42,21,133,225,144,75,37,170,84,147,9,157,78,39,166,227,203,119,128,253,198,35,255,7,126] 2021-10-14T14:45:52.888Z zigbee-herdsman:adapter:ezsp:uart waiting (3) success 2021-10-14T14:45:53.006Z zigbee-herdsman:adapter:ezsp:uart <-- [63d0a1a9602a15f108607e] [99,208,161,169,96,42,21,241,8,96,126] 2021-10-14T14:45:53.007Z zigbee-herdsman:adapter:ezsp:uart Recv DATA frame (6,3,0): 63d0a1a9602a15f108607e 2021-10-14T14:45:53.023Z zigbee-herdsman:adapter:ezsp:uart Send ACK frame (7) 2021-10-14T14:45:53.025Z zigbee-herdsman:adapter:ezsp:uart --> [87009f7e] [135,0,159,126] 2021-10-14T14:45:53.036Z zigbee-herdsman:adapter:ezsp:log <=== Frame: 92800134000043 2021-10-14T14:45:53.037Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 52 (sendUnicast) received: 0043 2021-10-14T14:45:53.041Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 52 (sendUnicast) parsed: 0,67 2021-10-14T14:45:53.148Z zigbee-herdsman:adapter:ezsp:uart <-- [73d0b1a96b2a1585e1904b25aa5493099d4e27e8e3ce67565c7e03d0b1a97d31] [115,208,177,169,107,42,21,133,225,144,75,37,170,84,147,9,157,78,39,232,227,206,103,86,92,126,3,208,177,169,125,49] 2021-10-14T14:45:53.155Z zigbee-herdsman:adapter:ezsp:uart Recv DATA frame (7,3,0): 73d0b1a96b2a1585e1904b25aa5493099d4e27e8e3ce67565c7e 2021-10-14T14:45:53.155Z zigbee-herdsman:adapter:ezsp:uart Send ACK frame (0) 2021-10-14T14:45:53.155Z zigbee-herdsman:adapter:ezsp:uart --> [8070787e] [128,112,120,126] 2021-10-14T14:45:53.156Z zigbee-herdsman:adapter:ezsp:log <=== Frame: 9290013f000037b804010000010140010000430e0000 2021-10-14T14:45:53.156Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 63 (messageSentHandler) received: 0037b804010000010140010000430e0000 2021-10-14T14:45:53.182Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 63 (messageSentHandler) parsed: 0,47159,EmberApsFrame: {"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":320,"groupId":0,"sequence":67},14,0, 2021-10-14T14:45:53.190Z zigbee-herdsman:adapter:ezsp:uart <-- [03d0b1a97d312a15b658944a24ab5593499c45d840da769874fbde6888fc3eb9a5e9b37e] [3,208,177,169,125,49,42,21,182,88,148,74,36,171,85,147,73,156,69,216,64,218,118,152,116,251,222,104,136,252,62,185,165,233,179,126] 2021-10-14T14:45:53.191Z zigbee-herdsman:adapter:ezsp:uart Recv DATA frame (0,3,0): 03d0b1a9112a15b658944a24ab5593499c45d840da769874fbde6888fc3eb9a5e9b37e00 2021-10-14T14:45:53.193Z zigbee-herdsman:adapter:ezsp:uart Send ACK frame (1) 2021-10-14T14:45:53.193Z zigbee-herdsman:adapter:ezsp:uart --> [8160597e] [129,96,89,126] 2021-10-14T14:45:53.194Z zigbee-herdsman:adapter:ezsp:log <=== Frame: 929001450000040100000101000100000bffeb37b8ffff06180b010040860202 2021-10-14T14:45:53.194Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 69 (incomingMessageHandler) received: 00040100000101000100000bffeb37b8ffff06180b010040860202 2021-10-14T14:45:53.197Z zigbee-herdsman:adapter:ezsp:log <=== Application frame 69 (incomingMessageHandler) parsed: 0,EmberApsFrame: {"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":11},255,-21,47159,255,255, @� 2021-10-14T14:45:53.223Z zigbee-herdsman:adapter:ezsp processMessage: {"messageType":0,"apsFrame":{"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":11},"lqi":255,"rssi":-21,"sender":47159,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[24,11,1,0,64,134]}} 2021-10-14T14:45:53.225Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":11,"manufacturerCode":null,"commandIdentifier":1},"Payload":[{"attrId":16384,"status":134}],"Command":{"ID":1,"name":"readRsp","parameters":[{"name":"attrId","type":33},{"name":"status","type":32},{"name":"dataType","type":32,"conditions":[{"type":"statusEquals","value":0}]},{"name":"attrData","type":1000,"conditions":[{"type":"statusEquals","value":0}]}]}},"address":47159,"endpoint":1,"linkquality":255,"groupID":0,"wasBroadcast":false,"destinationEndpoint":1}' 2021-10-14T14:45:53.253Z zigbee-herdsman:controller:endpoint Read 0x00124b00226cbddc/1 genBasic(["swBuildId"], {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') 2021-10-14T14:45:53.267Z zigbee-herdsman:controller:device:log Interview - failed to read attribute 'softwareBuildID' from endpoint '1' (TypeError: Cannot read property 'swBuildId' of undefined) 2021-10-14T14:45:53.270Z zigbee-herdsman:controller:device:log Interview - completed for device '0x00124b00226cbddc' 2021-10-14T14:45:53.296Z zigbee-herdsman:controller:log Succesfully interviewed '0x00124b00226cbddc' Zigbee2MQTT:info 2021-10-14 11:45:53: Successfully interviewed '0x00124b00226cbddc', device has successfully been paired Zigbee2MQTT:info 2021-10-14 11:45:53: Device '0x00124b00226cbddc' is supported, identified as: SONOFF Temperature and humidity sensor (SNZB-02) Zigbee2MQTT:info 2021-10-14 11:45:53: 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","supports_ota":false,"vendor":"SONOFF"},"friendly_name":"0x00124b00226cbddc","ieee_address":"0x00124b00226cbddc","status":"successful","supported":true},"type":"device_interview"}' Zigbee2MQTT:info 2021-10-14 11:45:53: MQTT publish: topic 'homeassistant/sensor/0x00124b00226cbddc/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00226cbddc"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b00226cbddc","sw_version":"Zigbee2MQTT 1.21.2"},"device_class":"battery","enabled_by_default":true,"json_attributes_topic":"zigbee2mqtt/0x00124b00226cbddc","name":"0x00124b00226cbddc battery","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00226cbddc","unique_id":"0x00124b00226cbddc_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' Zigbee2MQTT:info 2021-10-14 11:45:53: MQTT publish: topic 'homeassistant/sensor/0x00124b00226cbddc/temperature/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00226cbddc"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b00226cbddc","sw_version":"Zigbee2MQTT 1.21.2"},"device_class":"temperature","enabled_by_default":true,"json_attributes_topic":"zigbee2mqtt/0x00124b00226cbddc","name":"0x00124b00226cbddc temperature","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00226cbddc","unique_id":"0x00124b00226cbddc_temperature_zigbee2mqtt","unit_of_measurement":"°C","value_template":"{{ value_json.temperature }}"}' Zigbee2MQTT:info 2021-10-14 11:45:53: MQTT publish: topic 'homeassistant/sensor/0x00124b00226cbddc/humidity/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00226cbddc"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b00226cbddc","sw_version":"Zigbee2MQTT 1.21.2"},"device_class":"humidity","enabled_by_default":true,"json_attributes_topic":"zigbee2mqtt/0x00124b00226cbddc","name":"0x00124b00226cbddc humidity","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00226cbddc","unique_id":"0x00124b00226cbddc_humidity_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.humidity }}"}' Zigbee2MQTT:info 2021-10-14 11:45:53: MQTT publish: topic 'homeassistant/sensor/0x00124b00226cbddc/voltage/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00226cbddc"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b00226cbddc","sw_version":"Zigbee2MQTT 1.21.2"},"device_class":"voltage","enabled_by_default":false,"json_attributes_topic":"zigbee2mqtt/0x00124b00226cbddc","name":"0x00124b00226cbddc voltage","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00226cbddc","unique_id":"0x00124b00226cbddc_voltage_zigbee2mqtt","unit_of_measurement":"mV","value_template":"{{ value_json.voltage }}"}' Zigbee2MQTT:info 2021-10-14 11:45:53: MQTT publish: topic 'homeassistant/sensor/0x00124b00226cbddc/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00226cbddc"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor (SNZB-02)","name":"0x00124b00226cbddc","sw_version":"Zigbee2MQTT 1.21.2"},"enabled_by_default":false,"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x00124b00226cbddc","name":"0x00124b00226cbddc linkquality","state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b00226cbddc","unique_id":"0x00124b00226cbddc_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' Zigbee2MQTT:info 2021-10-14 11:45:53: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Temperature and humidity sensor","friendly_name":"0x00124b00226cbddc","model":"SNZB-02","supported":true,"vendor":"SONOFF"},"type":"pairing"}' Zigbee2MQTT:info 2021-10-14 11:45:54: Changed device specific options of '0x00124b00226cbddc' ({"retain":true})

takthetank commented 2 years ago

@takthetank I see temperature reports incoming from an unknown device:

2021-10-13T21:17:20.818766586Z   zigbee-herdsman:controller:log 'zcl' data is from unknown device with address '20312', skipping... +0ms

Do you have an other device which does temperature measurements in your network?

If not, maybe for some reason this device uses a different network address when pairing vs sending messages. Can you try:

  • Force remove the SNZB-02
  • Remove battery, and make sure the SNZB-02 is completely empty, press the reset button until it shows no signs of life anymore
  • Pair the device again

Ok did that and now it seems to report fine!

@Koenkk Update: I tried again and now it won't even pair, sometimes it succeeds pairing but it won't report temp and humi. The steps I follow every time are the following:

The strange thing I noticed now is that I get the following entries regarding the 2 SNZB-02 sensors I have with their friendly names:

Zigbee2MQTT:debug 2021-10-15 07:51:03: Received MQTT message on 'zigbee2mqtt/Sonoff sensor 1/availability' with data 'online'
Zigbee2MQTT:debug 2021-10-15 07:51:03: Received MQTT message on 'zigbee2mqtt/Sonoff sensor 2/availability' with data 'online'

Note that currently the sensors are without battery, shortcircuited and with their button pressed long enough to not see any light bleeping...

_Zigbee2MQTT_logs.txt

Here is a log with successful pair but reporting no temp: _Zigbee2MQTT_logs_pair_no_temp.txt

snippem commented 2 years ago

@Koenkk bought 3 of these sensors as posted above the device pairs and then the following error apears.

Configure failed: Error: Bind 0x00124b0023205202/1 msTemperatureMeasurement from '0x00124b00214f3f95/1' failed (AREQ - ZDO - bindRsp after 10000ms)

Allready updated to the latest dev and did as you discribed:

Force remove the SNZB-02 Remove battery, and make sure the SNZB-02 is completely empty, press the reset button until it shows no signs of life anymore Pair the device again

but no luck the device does pair but only shows null on al the values and shows the error when it pairs. Have tried on a second pi4 and a cc2652 running hassos. And the sensor does pair but also shows null on all the values and the same error. When i did the force remove then short circuit the sensor and pair again that works on that setup. It shows all of the values and it works as it should. But this trick does not work on the setup that controlls my home. The only difference is that the zigbee stick is a cc2652RB and 124 devices on the network that the zigbee stick controlls.

Koenkk commented 2 years ago

@snippem

The only difference is that the zigbee stick is a cc2652RB and 124 devices on the network that the zigbee stick controlls.

Try pairing it very close to the coordinator, I think this device is a bit tricky over multiple hops.

Jenda987 commented 2 years ago

Also checked according described procedure with latest dev with 3xSNZB-02 devices. Successfull joining was only with one device. Two others didn't worked and shows null on all the values and the same error. I am using Egony Stick V4 CC2652P. Version 1.21.1 is always working without any issue.

snippem commented 2 years ago

@snippem

The only difference is that the zigbee stick is a cc2652RB and 124 devices on the network that the zigbee stick controlls.

Try pairing it very close to the coordinator, I think this device is a bit tricky over multiple hops.

IMG_20211014_222906.jpg

Paired 3 times all with the same error.

Koenkk commented 2 years ago

@snippem not sure how to fix it now, will check once I receive my SNZB-02.

dsduarte commented 2 years ago

@snippem not sure how to fix it now, will check once I receive my SNZB-02.

I don't know if it helps, but I've deleted all my devices, installed the new edge version and after pairing using CC2531, SNZB-02 was reporting temp and humidity but the other parameteres like LQI and battery not. I've deleted all again a reinstalled the edge version using sonoff zb bridge over TCP and all devices are reporting all of their parameters ok!

salvq commented 2 years ago

Just followed tipd from @maxbause and it just started working, values are being received finally

zigbee2mqtt    | Zigbee2MQTT:info  2021-10-17 13:43:56: MQTT publish: topic 'zigbee2mqtt/0x00124b00226b0cfb', payload '{"battery":23,"humidity":75.85,"linkquality":81,"temperature":28.2,"voltage":2800}'
zigbee2mqtt    | Zigbee2MQTT:info  2021-10-17 13:44:01: MQTT publish: topic 'zigbee2mqtt/0x00124b00226b0cfb', payload '{"battery":23,"humidity":75.85,"linkquality":81,"temperature":28.2,"voltage":2800}'
pierrepinon commented 2 years ago

@maxbause procedure works too, thx 🙏

t0ny-peng commented 2 years ago

Can confirm that the solution provided by maxbause works perfectly for my 3 sensors.

snippem commented 2 years ago

What are the network sizes with the maxbause way to add the sensor? Because that way also works for me but only on a test setup with a few devices. When I try to add them with the maxbause way to a 124 device network it doesn't work anymore. Then I get the same errors as dicribed in in the title of this topic.

AndyKassell commented 2 years ago

@maxbause method does not work for me, I have 2 devices on a network of 30.

maxbause commented 2 years ago

Great to see that my method works for some people! I know it's a bit off-topic, but with all the trouble I read about this sensor, I was wondering if it would make sense to design an open-source version of it, specially adapted to zigbee2mqtt? (hard- and firmware)

dettrick commented 2 years ago

@maxbause your method works for me for my 8 sensors

For those having trouble, it's not clear from the picture but when your shorting the contacts what you are trying to short is the metal piece in the middle to the metal piece on the side.

snippem commented 2 years ago

@maxbause your method works for me for my 8 sensors

For those having trouble, it's not clear from the picture but when your shorting the contacts what you are trying to short is the metal piece in the middle to the metal piece on the side.

Please give more details about you setup. Because I and others already stated. The method works but how many routers and child devices are on your network. As I stated before the method works but with my network with 124 routers and child devices it does not.

dettrick commented 2 years ago

@snippem I have 31 devices in my network comprised of 2 routers and 29 child devices.

snippem commented 2 years ago

@snippem I have 31 devices in my network comprised of 2 routers and 29 child devices.

Okay for comparison I have 54 routers and 70 child devices. Maybe you are paring the sensor directly with your coordinator and I am not.

dsduarte commented 2 years ago

@maxbause your method works for me for my 8 sensors

For those having trouble, it's not clear from the picture but when your shorting the contacts what you are trying to short is the metal piece in the middle to the metal piece on the side.

For me, what is not clear is between steps 3 and 5... The method didn't work for me and I'm confused about the logic in delete the device from z2m and turn on the device... After deleting the device, z2m should allow it to regiser?

pniewiadowski commented 2 years ago

I have SONOFF SNZB-02 and the @maxbause solution didn't work for me. What I did is:

  1. Enable joining new devices in z2m
  2. Press and hold paring button on Sonoff device
  3. Wait until z2m shows error with configuration
  4. Go to Device section and click yellow reconfigure button next to the Sonoff device

Then device starts reporting data finally.

grfernandes54 commented 2 years ago

@pniewiadowski your solution works for me.

zold commented 2 years ago

@pniewiadowski YES, this solution works for me.

valdeira888 commented 2 years ago

I have SONOFF SNZB-02 and the @maxbause solution didn't work for me. What I did is:

  1. Enable joining new devices in z2m
  2. Press and hold paring button on Sonoff device
  3. Wait until z2m shows error with configuration
  4. Go to Device section and click yellow reconfigure button next to the Sonoff device

Then device starts reporting data finally.

It works. Thanks

snippem commented 2 years ago

I have SONOFF SNZB-02 and the @maxbause solution didn't work for me. What I did is:

  1. Enable joining new devices in z2m
  2. Press and hold paring button on Sonoff device
  3. Wait until z2m shows error with configuration
  4. Go to Device section and click yellow reconfigure button next to the Sonoff device

Then device starts reporting data finally.

It works 😄

edit: Tried to add another new sensor and this one paired on the first try. I paired the new sensor close to the coordinator 1 meter or so and no errors of null values.

Screenshot_20211022-152012.jpg

dompa72 commented 2 years ago

I have the same problem, I tried everything you wrote but failed, always in error

chemobook commented 2 years ago

Same story :(

chemobook commented 2 years ago

Some of xiaomi sensors not working too, need to take off the battery and plug it again.

dsduarte commented 2 years ago

I've tried so many things and nothing solved... non of those steps mentioned before worked for me... not only SNZB-02 but my other SNZB devices have reporting issues... I used to run my coordinatior on a CC2531, connected to a QNAP NAS, running HA on a Virtual Machine and the add-on z2m. The only combination that all my devices are reporting all of its parameters (LQI, battery, temperature, humidity, etc...) is with z2m edge and a sonoff zigbee gateway over tcp. I tried on CC2531, on previous versions of z2m. I don't know... may be my CC2531 is the problem!

AndyKassell commented 2 years ago

I have SONOFF SNZB-02 and the @maxbause solution didn't work for me. What I did is:

  1. Enable joining new devices in z2m
  2. Press and hold paring button on Sonoff device
  3. Wait until z2m shows error with configuration
  4. Go to Device section and click yellow reconfigure button next to the Sonoff device

Then device starts reporting data finally.

This did eventually work for me but only when I paired my sensors very close to the coordinator, pairing close to a router does not seem to work.

cperriot commented 2 years ago

Hello, same probleme here, some SNZB-02 not pairing, some pairing with no data retrieved. i had to replace some batteries and to hold the sensor against the antenna. having the sensor a few centimeters wasn't enough i press both to get everything ok...

coordinator texas 2652

IRus commented 2 years ago

I have SONOFF SNZB-02 and the @maxbause solution didn't work for me. What I did is:

1. Enable joining new devices in z2m

2. Press and hold paring button on Sonoff device

3. Wait until z2m shows error with configuration

4. Go to Device section and click yellow reconfigure button next to the Sonoff device

Then device starts reporting data finally.

Works for me as well, devices that I successfully set up with this trick: