zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Danalock - Not able to finish interview

Open FredyReady opened this issue 3 years ago • 13 comments

What happened?

Hello, So I have been using Z2M for past 2 months, it is great, most of the things work right out of the box.

About a month ago I bought the Danalock V3-BTZB/V3-BTZBE, at that time I did not have network extended to my main door, so I tried to pair the lock just near the main coordinator - SONOFF ZB-Dongle-E running 6.10.3.0 build 297 and all went well, the lock was controllable from Z2M. So then I focused on extending my network to main door.

After month (Just yesterday) I managed to finally get stable Zigbee network signal to my main door (Tuya plug right next to the door has LQI of around 180). So I was happy I can finally use the Danalock, I switched the mechanical lock, isntalled Danalock and here the issue began.

I tried pairing the danalock via the pinhole (1 push). The Danalock starts to blink green, Z2M notification "Device '0x70ac08fffe845662' joined" popped up, immediately following with "Starting interview of '0x70ac08fffe845662'" the Danalock stops blinking green and after about 10 seconds another notification pops up "Device '0x70ac08fffe845662' left the network".

I have been fiddling and trying various scenarios:

  • Pairing Danalock near the coordinator - Failed
  • Resetting whole network and pair Danalock only - Failed
  • Re-flashing firmware on ZB-Dongle-E - 6.10.3.0 build 297 - and then pair again - Failed
  • Flashing to EZSP v9 - 7.1.1.0 build 273 as suggested in #16093 by @kizio1000 - Failed (I flashed back to 6.10.3.0 build 297)
  • Pairing with Danalock app, updated firmware to latest version - 0.21.7 and the pair - Failed
  • I have tried to pair for at least 30 times by now - Failed every single time
  • Restart Z2M, restart HA, updated to latest version and HA Core and then pair - Failed
  • Remove second ZB-Dongle-E with Router firmware and pair again - Failed

I am getting despaired... I have spent 300 Euro on the lock with the cylinder and now I cannot use it...

The Danalock works well with the app via Bluetooth. And as mentioned, it worked month ago (lock bought on 1st of March, I do not remember which version of Z2M I was running, but I usually try to run latest version).

I can see some resemblance with #14568 and #16093 but no solution available now. I suspect some bug in Z2M maybe?

Any help or solution would be much appreciated, I am prepared to even pay for fix at this stage, as Danalock is the only available Zigbee HA compatible lock available to me.

No other devices on my Zigbee have any issue (Using Sonoff, IKEA, Lidl, EGLO, Tuya)

Also if needed, I will provide any logs, insight, or whatever, I really want to solve this.

I am providing the debug log with try on pairing the Danalock, the address is '0x70ac08fffe845662'.

What did you expect to happen?

Danalock to pair with Z2M as it did about month ago

How to reproduce it (minimal and precise)

Pair Danalock V3 FW 0.21.7 with Z2M [1.30.3] using SONOFF ZB-Dongle-E

Zigbee2MQTT version

1.30.3

Adapter firmware version

6.10.3.0 build 297

Adapter

SONOFF ZB-Dongle-E

Debug log

Zigbee2MQTT:info 2023-04-07 17:52:02: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":4,"humidity":49.4,"linkquality":248,"temperature":16.4,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:02: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":4,"humidity":49.5,"linkquality":248,"temperature":16.4,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:02: Device '0x70ac08fffe845662' joined Zigbee2MQTT:info 2023-04-07 17:52:02: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x70ac08fffe845662","ieee_address":"0x70ac08fffe845662"},"type":"device_joined"}' Zigbee2MQTT:info 2023-04-07 17:52:02: Starting interview of '0x70ac08fffe845662' Zigbee2MQTT:info 2023-04-07 17:52:03: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x70ac08fffe845662","ieee_address":"0x70ac08fffe845662","status":"started"},"type":"device_interview"}' Zigbee2MQTT:info 2023-04-07 17:52:03: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":9.69,"energy":4.38,"indicator_mode":"off/on","linkquality":192,"power":2111,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":222}' Zigbee2MQTT:info 2023-04-07 17:52:03: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":8.62,"energy":4.38,"indicator_mode":"off/on","linkquality":192,"power":2111,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":222}' Zigbee2MQTT:info 2023-04-07 17:52:04: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":8.62,"energy":4.38,"indicator_mode":"off/on","linkquality":192,"power":1963,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":222}' Zigbee2MQTT:info 2023-04-07 17:52:04: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":3,"humidity":49.5,"linkquality":248,"temperature":16.4,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:04: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":3,"humidity":49.5,"linkquality":248,"temperature":16.4,"voc":4}' Zigbee2MQTT:info 2023-04-07 17:52:04: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":3,"humidity":49.5,"linkquality":248,"temperature":16.4,"voc":4}' Zigbee2MQTT:info 2023-04-07 17:52:04: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":3,"humidity":49.5,"linkquality":248,"temperature":16.5,"voc":4}' Zigbee2MQTT:info 2023-04-07 17:52:04: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":3,"humidity":48.7,"linkquality":248,"temperature":16.5,"voc":4}' Zigbee2MQTT:info 2023-04-07 17:52:07: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":3,"humidity":48.7,"linkquality":248,"temperature":16.7,"voc":4}' Zigbee2MQTT:info 2023-04-07 17:52:07: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":3,"humidity":49.6,"linkquality":248,"temperature":16.7,"voc":4}' Zigbee2MQTT:info 2023-04-07 17:52:07: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":2,"humidity":49.6,"linkquality":248,"temperature":16.7,"voc":4}' Zigbee2MQTT:info 2023-04-07 17:52:07: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":2,"humidity":49.6,"linkquality":244,"temperature":16.7,"voc":3}' Zigbee2MQTT:info 2023-04-07 17:52:07: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":358,"formaldehyd":2,"humidity":49.6,"linkquality":248,"temperature":16.7,"voc":3}' Zigbee2MQTT:info 2023-04-07 17:52:08: MQTT publish: topic 'zigbee2mqtt/MainHall Boiler Relay', payload '{"linkquality":192,"power_on_behavior":null,"state":"ON"}' Zigbee2MQTT:info 2023-04-07 17:52:09: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":8.62,"energy":4.38,"indicator_mode":"off/on","linkquality":192,"power":1963,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":228}' Zigbee2MQTT:info 2023-04-07 17:52:09: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":8.62,"energy":4.38,"indicator_mode":"off/on","linkquality":192,"power":2138,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":228}' Zigbee2MQTT:info 2023-04-07 17:52:09: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":358,"formaldehyd":2,"humidity":49.6,"linkquality":248,"temperature":16.4,"voc":3}' Zigbee2MQTT:info 2023-04-07 17:52:09: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":358,"formaldehyd":2,"humidity":48.7,"linkquality":248,"temperature":16.4,"voc":3}' Zigbee2MQTT:info 2023-04-07 17:52:10: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":9.94,"energy":4.38,"indicator_mode":"off/on","linkquality":192,"power":2138,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":228}' Zigbee2MQTT:info 2023-04-07 17:52:11: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":358,"formaldehyd":4,"humidity":48.7,"linkquality":248,"temperature":16.4,"voc":3}' Zigbee2MQTT:info 2023-04-07 17:52:11: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":358,"formaldehyd":4,"humidity":48.7,"linkquality":248,"temperature":16.4,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:11: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":4,"humidity":48.7,"linkquality":244,"temperature":16.4,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:12: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":4,"humidity":48.7,"linkquality":248,"temperature":16.4,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:12: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":4,"humidity":49.3,"linkquality":248,"temperature":16.4,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:14: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":4,"humidity":49.3,"linkquality":248,"temperature":16.7,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:14: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":4,"humidity":48.9,"linkquality":248,"temperature":16.7,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:14: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":2,"humidity":48.9,"linkquality":244,"temperature":16.7,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:14: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":357,"formaldehyd":2,"humidity":48.9,"linkquality":248,"temperature":16.7,"voc":3}' Zigbee2MQTT:info 2023-04-07 17:52:14: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":358,"formaldehyd":2,"humidity":48.9,"linkquality":248,"temperature":16.7,"voc":3}' Zigbee2MQTT:info 2023-04-07 17:52:15: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":9.65,"energy":4.38,"indicator_mode":"off/on","linkquality":192,"power":2138,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":228}' Zigbee2MQTT:info 2023-04-07 17:52:15: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":9.65,"energy":4.39,"indicator_mode":"off/on","linkquality":192,"power":2138,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":228}' Zigbee2MQTT:info 2023-04-07 17:52:16: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":9.65,"energy":4.39,"indicator_mode":"off/on","linkquality":192,"power":2127,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":228}' Zigbee2MQTT:info 2023-04-07 17:52:17: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":358,"formaldehyd":2,"humidity":48.9,"linkquality":244,"temperature":16.6,"voc":3}' Zigbee2MQTT:info 2023-04-07 17:52:17: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":358,"formaldehyd":2,"humidity":49,"linkquality":248,"temperature":16.6,"voc":3}' Zigbee2MQTT:info 2023-04-07 17:52:18: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":358,"formaldehyd":4,"humidity":49,"linkquality":244,"temperature":16.6,"voc":3}' Zigbee2MQTT:info 2023-04-07 17:52:18: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":358,"formaldehyd":4,"humidity":49,"linkquality":244,"temperature":16.6,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:18: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":360,"formaldehyd":4,"humidity":49,"linkquality":248,"temperature":16.6,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:19: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":9.65,"energy":4.39,"indicator_mode":"off/on","linkquality":192,"power":2127,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":222}' Zigbee2MQTT:info 2023-04-07 17:52:19: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":360,"formaldehyd":4,"humidity":49,"linkquality":248,"temperature":16.6,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:19: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":360,"formaldehyd":4,"humidity":48.9,"linkquality":244,"temperature":16.6,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:20: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":9.71,"energy":4.39,"indicator_mode":"off/on","linkquality":192,"power":2127,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":222}' Zigbee2MQTT:info 2023-04-07 17:52:21: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":9.71,"energy":4.39,"indicator_mode":"off/on","linkquality":192,"power":2076,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":222}' Zigbee2MQTT:info 2023-04-07 17:52:21: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":360,"formaldehyd":2,"humidity":48.9,"linkquality":248,"temperature":16.6,"voc":1}' Zigbee2MQTT:info 2023-04-07 17:52:21: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":360,"formaldehyd":2,"humidity":48.9,"linkquality":248,"temperature":16.6,"voc":5}' Zigbee2MQTT:info 2023-04-07 17:52:21: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":360,"formaldehyd":2,"humidity":48.9,"linkquality":244,"temperature":16.6,"voc":5}' Zigbee2MQTT:info 2023-04-07 17:52:22: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":360,"formaldehyd":2,"humidity":48.9,"linkquality":244,"temperature":16.7,"voc":5}' Zigbee2MQTT:info 2023-04-07 17:52:22: MQTT publish: topic 'zigbee2mqtt/Workshop TH Sensor', payload '{"co2":360,"formaldehyd":2,"humidity":49,"linkquality":248,"temperature":16.7,"voc":5}' Zigbee2MQTT:error 2023-04-07 17:52:23: Failed to interview '0x70ac08fffe845662', device has not successfully been paired Zigbee2MQTT:info 2023-04-07 17:52:23: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x70ac08fffe845662","ieee_address":"0x70ac08fffe845662","status":"failed"},"type":"device_interview"}' Zigbee2MQTT:info 2023-04-07 17:52:24: MQTT publish: topic 'zigbee2mqtt/Bathroom WashingMachine Plug', payload '{"child_lock":"UNLOCK","current":9.71,"energy":4.39,"indicator_mode":"off/on","linkquality":192,"power":2076,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":228}'

FredyReady avatar Apr 07 '23 15:04 FredyReady

@FredyReady can you record herdsman log of pairing proccess? https://www.zigbee2mqtt.io/guide/usage/debug.html#zigbee-herdsman-debug-logging

kirovilya avatar Apr 07 '23 16:04 kirovilya

@kirovilya Thanks for taking look at this, much apprecaited!

I tried enabling via Z2M config, adding "zigbee_herdsman_debug: true" at the end as suggested in provided link, and somehow it breaks my coordinator, debug is enabled but coordinator won't start, so whole network goes down. If I disable herdsman log, restart Z2M, all is fine. Am I doing something wrong

Capture

I am attaching log with herdsman logging enabled:

2023-04-08T09:03:39.516Z zigbee-herdsman:adapter:ezsp:uart Unexpected packet sequence 1 | 2 2023-04-08T09:03:39.516Z zigbee-herdsman:adapter:ezsp:ezsp <== Frame: 18900145000004010000010100010000f290c0c6f1ffff0f08f50a010020c0e2ff2036e4ff2000 2023-04-08T09:03:39.517Z zigbee-herdsman:adapter:ezsp:ezsp <== 0x45: {"_cls_":"incomingMessageHandler","_id_":69,"_isRequest_":false,"type":0,"apsFrame":{"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":242},"lastHopLqi":144,"lastHopRssi":-64,"sender":61894,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[8,245,10,1,0,32,192,226,255,32,54,228,255,32,0]}} 2023-04-08T09:03:39.628Z zigbee-herdsman:adapter:ezsp:uart <-- [415ab1a97d312a15b65894a524ab5593499c876f05b21d9874f0cfe98bfc7d5d29a5ebc9de6f8ffef0657e] 2023-04-08T09:03:39.629Z zigbee-herdsman:adapter:ezsp:uart <-- DATA (4,1,0): 415ab1a9112a15b65894a524ab5593499c876f05b21d9874f0cfe98bfc7d29a5ebc9de6f8ffef0657e 2023-04-08T09:03:39.629Z zigbee-herdsman:adapter:ezsp:uart --> ACK (5) 2023-04-08T09:03:39.630Z zigbee-herdsman:adapter:ezsp:uart --> [8520dd7e] 2023-04-08T09:03:39.630Z zigbee-herdsman:adapter:ezsp:uart Unexpected packet sequence 1 | 2 2023-04-08T09:03:39.630Z zigbee-herdsman:adapter:ezsp:ezsp <== Frame: 189001450000040100ef010100010000c948ae5fd3ffff0d098a0200031602000400000001 2023-04-08T09:03:39.632Z zigbee-herdsman:adapter:ezsp:ezsp <== 0x45: {"_cls_":"incomingMessageHandler","_id_":69,"_isRequest_":false,"type":0,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":201},"lastHopLqi":72,"lastHopRssi":-82,"sender":54111,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[9,138,2,0,3,22,2,0,4,0,0,0,1]}} 2023-04-08T09:03:39.715Z zigbee-herdsman:adapter:ezsp:uart <-- [515ab1a97d312a15b658944a24ab5593499cbd5b102b3f9874f2ce9683fd7d5e1f670932fe596b00e7dbe4867e] 2023-04-08T09:03:39.716Z zigbee-herdsman:adapter:ezsp:uart <-- DATA (5,1,0): 515ab1a9112a15b658944a24ab5593499cbd5b102b3f9874f2ce9683fd7e1f670932fe596b00e7dbe4867e 2023-04-08T09:03:39.716Z zigbee-herdsman:adapter:ezsp:uart --> ACK (6) 2023-04-08T09:03:39.716Z zigbee-herdsman:adapter:ezsp:uart --> [8610be7e] 2023-04-08T09:03:39.717Z zigbee-herdsman:adapter:ezsp:uart Unexpected packet sequence 1 | 2 2023-04-08T09:03:39.717Z zigbee-herdsman:adapter:ezsp:ezsp <== Frame: 18900145000004010000010100010000f37cbbc6f1ffff0f08f50a010020c0e2ff2036e4ff2000 2023-04-08T09:03:39.718Z zigbee-herdsman:adapter:ezsp:ezsp <== 0x45: {"_cls_":"incomingMessageHandler","_id_":69,"_isRequest_":false,"type":0,"apsFrame":{"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":243},"lastHopLqi":124,"lastHopRssi":-69,"sender":61894,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[8,245,10,1,0,32,192,226,255,32,54,228,255,32,0]}} 2023-04-08T09:03:39.829Z zigbee-herdsman:adapter:ezsp:uart <-- [615ab1a97d312a15b65894a524ab5593499c846f05b21d9874f0cfe98bfc7d5d29a5ebc9de6f8ffede837e] 2023-04-08T09:03:39.830Z zigbee-herdsman:adapter:ezsp:uart <-- DATA (6,1,0): 615ab1a9112a15b65894a524ab5593499c846f05b21d9874f0cfe98bfc7d29a5ebc9de6f8ffede837e 2023-04-08T09:03:39.830Z zigbee-herdsman:adapter:ezsp:uart --> ACK (7) 2023-04-08T09:03:39.830Z zigbee-herdsman:adapter:ezsp:uart --> [87009f7e] 2023-04-08T09:03:39.831Z zigbee-herdsman:adapter:ezsp:uart Unexpected packet sequence 1 | 2 2023-04-08T09:03:39.831Z zigbee-herdsman:adapter:ezsp:ezsp <== Frame: 189001450000040100ef010100010000ca48ae5fd3ffff0d098a0200031602000400000001 2023-04-08T09:03:39.832Z zigbee-herdsman:adapter:ezsp:ezsp <== 0x45: {"_cls_":"incomingMessageHandler","_id_":69,"_isRequest_":false,"type":0,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":202},"lastHopLqi":72,"lastHopRssi":-82,"sender":54111,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[9,138,2,0,3,22,2,0,4,0,0,0,1]}} 2023-04-08T09:03:39.916Z zigbee-herdsman:adapter:ezsp:uart <-- [715ab1a97d312a15b658944a24ab5593499cbaab142b3f9874f2ce9683fd7d5e1f670932fe596b00e7db07157e] 2023-04-08T09:03:39.916Z zigbee-herdsman:adapter:ezsp:uart <-- DATA (7,1,0): 715ab1a9112a15b658944a24ab5593499cbaab142b3f9874f2ce9683fd7e1f670932fe596b00e7db07157e 2023-04-08T09:03:39.916Z zigbee-herdsman:adapter:ezsp:uart --> ACK (0) 2023-04-08T09:03:39.917Z zigbee-herdsman:adapter:ezsp:uart --> [8070787e] 2023-04-08T09:03:39.917Z zigbee-herdsman:adapter:ezsp:uart Unexpected packet sequence 1 | 2 2023-04-08T09:03:39.917Z zigbee-herdsman:adapter:ezsp:ezsp <== Frame: 18900145000004010000010100010000f48cbfc6f1ffff0f08f50a010020c0e2ff2036e4ff2000 2023-04-08T09:03:39.918Z zigbee-herdsman:adapter:ezsp:ezsp <== 0x45: {"_cls_":"incomingMessageHandler","_id_":69,"_isRequest_":false,"type":0,"apsFrame":{"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":244},"lastHopLqi":140,"lastHopRssi":-65,"sender":61894,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[8,245,10,1,0,32,192,226,255,32,54,228,255,32,0]}} 2023-04-08T09:03:40.030Z zigbee-herdsman:adapter:ezsp:uart <-- [015ab1a97d312a15b65894a524ab5593499c856306b21d9874f0cfe98bfc7d5d29a5ebc9de6f8ffed3677e] 2023-04-08T09:03:40.031Z zigbee-herdsman:adapter:ezsp:uart <-- DATA (0,1,0): 015ab1a9112a15b65894a524ab5593499c856306b21d9874f0cfe98bfc7d29a5ebc9de6f8ffed3677e 2023-04-08T09:03:40.031Z zigbee-herdsman:adapter:ezsp:uart --> ACK (1) 2023-04-08T09:03:40.031Z zigbee-herdsman:adapter:ezsp:uart --> [8160597e] 2023-04-08T09:03:40.038Z zigbee-herdsman:adapter:ezsp:uart Unexpected packet sequence 1 | 2 2023-04-08T09:03:40.038Z zigbee-herdsman:adapter:ezsp:ezsp <== Frame: 189001450000040100ef010100010000cb44ad5fd3ffff0d098a0200031602000400000001 2023-04-08T09:03:40.039Z zigbee-herdsman:adapter:ezsp:ezsp <== 0x45: {"_cls_":"incomingMessageHandler","_id_":69,"_isRequest_":false,"type":0,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":203},"lastHopLqi":68,"lastHopRssi":-83,"sender":54111,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[9,138,2,0,3,22,2,0,4,0,0,0,1]}} 2023-04-08T09:03:40.117Z zigbee-herdsman:adapter:ezsp:uart <-- [7d315ab1a97d312a15b658944a24ab5593499cbb577d332b3f9874f2ce9683fd7d5e1f670932fe596b00e7db7d337c7e] 2023-04-08T09:03:40.118Z zigbee-herdsman:adapter:ezsp:uart <-- DATA (1,1,0): 115ab1a9112a15b658944a24ab5593499cbb57132b3f9874f2ce9683fd7e1f670932fe596b00e7db137c7e 2023-04-08T09:03:40.118Z zigbee-herdsman:adapter:ezsp:uart --> ACK (2) 2023-04-08T09:03:40.119Z zigbee-herdsman:adapter:ezsp:uart --> [82503a7e] 2023-04-08T09:03:40.119Z zigbee-herdsman:adapter:ezsp:uart Unexpected packet sequence 1 | 2 2023-04-08T09:03:40.122Z zigbee-herdsman:adapter:ezsp:ezsp <== Frame: 18900145000004010000010100010000f570b8c6f1ffff0f08f50a010020c0e2ff2036e4ff2000 2023-04-08T09:03:40.123Z zigbee-herdsman:adapter:ezsp:ezsp <== 0x45: {"_cls_":"incomingMessageHandler","_id_":69,"_isRequest_":false,"type":0,"apsFrame":{"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":245},"lastHopLqi":112,"lastHopRssi":-72,"sender":61894,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[8,245,10,1,0,32,192,226,255,32,54,228,255,32,0]}} 2023-04-08T09:03:40.317Z zigbee-herdsman:adapter:ezsp:uart <-- [215ab1a97d312a15b658944a24ab5593499cb8a7172b3f9874f2ce9683fd7d5e1f670932fe596b00e7db7f6c7e] 2023-04-08T09:03:40.317Z zigbee-herdsman:adapter:ezsp:uart <-- DATA (2,1,0): 215ab1a9112a15b658944a24ab5593499cb8a7172b3f9874f2ce9683fd7e1f670932fe596b00e7db7f6c7e 2023-04-08T09:03:40.317Z zigbee-herdsman:adapter:ezsp:uart --> ACK (3) 2023-04-08T09:03:40.318Z zigbee-herdsman:adapter:ezsp:uart --> [83401b7e] 2023-04-08T09:03:40.318Z zigbee-herdsman:adapter:ezsp:uart Unexpected packet sequence 1 | 2 2023-04-08T09:03:40.319Z zigbee-herdsman:adapter:ezsp:ezsp <== Frame: 18900145000004010000010100010000f680bcc6f1ffff0f08f50a010020c0e2ff2036e4ff2000 2023-04-08T09:03:40.319Z zigbee-herdsman:adapter:ezsp:ezsp <== 0x45: {"_cls_":"incomingMessageHandler","_id_":69,"_isRequest_":false,"type":0,"apsFrame":{"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":246},"lastHopLqi":128,"lastHopRssi":-68,"sender":61894,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[8,245,10,1,0,32,192,226,255,32,54,228,255,32,0]}} 2023-04-08T09:03:40.435Z zigbee-herdsman:adapter:ezsp:uart <-- [315ab1a97d312a15b65894a524ab5593499c826b04b21d9874f0cfe88bfc7d5d2aa5ebc9de6f8ffcc8a07e] 2023-04-08T09:03:40.435Z zigbee-herdsman:adapter:ezsp:uart <-- DATA (3,1,0): 315ab1a9112a15b65894a524ab5593499c826b04b21d9874f0cfe88bfc7d2aa5ebc9de6f8ffcc8a07e 2023-04-08T09:03:40.435Z zigbee-herdsman:adapter:ezsp:uart --> ACK (4) 2023-04-08T09:03:40.436Z zigbee-herdsman:adapter:ezsp:uart --> [8430fc7e] 2023-04-08T09:03:40.436Z zigbee-herdsman:adapter:ezsp:uart Unexpected packet sequence 1 | 2 2023-04-08T09:03:40.436Z zigbee-herdsman:adapter:ezsp:ezsp <== Frame: 189001450000040100ef010100010000cc4caf5fd3ffff0d098b0200031502000400000003 2023-04-08T09:03:40.437Z zigbee-herdsman:adapter:ezsp:ezsp <== 0x45: {"_cls_":"incomingMessageHandler","_id_":69,"_isRequest_":false,"type":0,"apsFrame":{"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":204},"lastHopLqi":76,"lastHopRssi":-81,"sender":54111,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[9,139,2,0,3,21,2,0,4,0,0,0,3]}} 2023-04-08T09:03:40.518Z zigbee-herdsman:adapter:ezsp:uart --> Error: Error: {"sequence":2} after 2000ms 2023-04-08T09:03:40.518Z zigbee-herdsman:adapter:ezsp:uart -!- break waiting (2) 2023-04-08T09:03:40.519Z zigbee-herdsman:adapter:ezsp:uart Can't send DATA frame (1,3,0): 1900011800 2023-04-08T09:03:40.519Z zigbee-herdsman:adapter:ezsp:uart <-- [415ab1a97d312a15b658944a24ab5593499cb9b76b2b3f9874f2ce9683fd7d5e1f670932fe596b00e7dbaec87e] 2023-04-08T09:03:40.520Z zigbee-herdsman:adapter:ezsp:uart <-- DATA (4,1,0): 415ab1a9112a15b658944a24ab5593499cb9b76b2b3f9874f2ce9683fd7e1f670932fe596b00e7dbaec87e 2023-04-08T09:03:40.520Z zigbee-herdsman:adapter:ezsp:uart --> ACK (5) 2023-04-08T09:03:40.520Z zigbee-herdsman:adapter:ezsp:uart --> [8520dd7e] 2023-04-08T09:03:40.521Z zigbee-herdsman:adapter:ezsp:uart Unexpected packet sequence 1 | 2 2023-04-08T09:03:40.521Z zigbee-herdsman:adapter:ezsp:ezsp <== Frame: 18900145000004010000010100010000f790c0c6f1ffff0f08f50a010020c0e2ff2036e4ff2000 2023-04-08T09:03:40.522Z zigbee-herdsman:adapter:ezsp:ezsp <== 0x45: {"_cls_":"incomingMessageHandler","_id_":69,"_isRequest_":false,"type":0,"apsFrame":{"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":247},"lastHopLqi":144,"lastHopRssi":-64,"sender":61894,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[8,245,10,1,0,32,192,226,255,32,54,228,255,32,0]}} 2023-04-08T09:03:40.566Z zigbee-herdsman:adapter:ezsp:uart --> Error: Error: {"sequence":4} after 2000ms 2023-04-08T09:03:40.566Z zigbee-herdsman:adapter:ezsp:uart -!- break rewaiting (4) 2023-04-08T09:03:40.567Z zigbee-herdsman:adapter:ezsp:uart Can't resend DATA frame (3,0,1): 2b00017e00e0b675fd5f38c1a401 2023-04-08T09:03:40.567Z zigbee-herdsman:adapter:ezsp:driv Reset connection. Try 0 2023-04-08T09:03:40.567Z zigbee-herdsman:adapter:ezsp:driv Stop driver 2023-04-08T09:03:40.567Z zigbee-herdsman:adapter:ezsp:ezsp Stop ezsp 2023-04-08T09:03:40.570Z zigbee-herdsman:adapter:ezsp:erro Request error Error: Failure send setExtendedTimeout:{"type":"Buffer","data":[43,0,1,126,0,224,182,117,253,95,56,193,164,1]}: Error: Failure send setExtendedTimeout:{"type":"Buffer","data":[43,0,1,126,0,224,182,117,253,95,56,193,164,1]} at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:551:23 at Queue.executeNext (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:32:32) 2023-04-08T09:03:40.571Z zigbee-herdsman:adapter:ezsp:debg sendZclFrameToEndpointInternal 0xa4c1385ffd75b6e0:54111/1 (0,0,23) 2023-04-08T09:03:40.572Z zigbee-herdsman:adapter:ezsp:ezsp ==> setExtendedTimeout: {"remoteEui64":{"_value":{"type":"Buffer","data":[164,193,56,95,253,117,182,224]}},"extendedTimeout":true} 2023-04-08T09:03:40.573Z zigbee-herdsman:controller:endpoint DefaultResponse 0xa4c1385ffd75b6e0/1 61184(2, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (sendZclFrameToEndpointInternal error) 2023-04-08T09:03:40.573Z zigbee-herdsman:controller:device:error Default response to 0xa4c1385ffd75b6e0 failed 2023-04-08T09:03:40.577Z zigbee-herdsman:adapter:ezsp:uart Port closed 2023-04-08T09:03:40.577Z zigbee-herdsman:adapter:ezsp:ezsp Close ezsp 2023-04-08T09:03:40.577Z zigbee-herdsman:adapter:ezsp:driv Close driver 2023-04-08T09:03:40.578Z zigbee-herdsman:adapter:ezsp:ezsp Close ezsp 2023-04-08T09:03:40.578Z zigbee-herdsman:adapter:ezsp:driv Close driver 2023-04-08T09:03:41.020Z zigbee-herdsman:adapter:ezsp:uart ->> DATA (1,3,1): 1900011800 2023-04-08T09:03:41.021Z zigbee-herdsman:adapter:ezsp:uart --> [1b5b21a94c2a81857e] 2023-04-08T09:03:41.021Z zigbee-herdsman:adapter:ezsp:uart -?- rewaiting (2) 2023-04-08T09:03:41.580Z zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20221031142411-if00","baudRate":115200,"rtscts":false,"autoOpen":false} 2023-04-08T09:03:41.584Z zigbee-herdsman:adapter:ezsp:uart Serialport opened 2023-04-08T09:03:41.584Z zigbee-herdsman:adapter:ezsp:uart Uart reseting 2023-04-08T09:03:41.585Z zigbee-herdsman:adapter:ezsp:uart --> Write reset 2023-04-08T09:03:41.586Z zigbee-herdsman:adapter:ezsp:uart --> [1ac038bc7e] 2023-04-08T09:03:41.586Z zigbee-herdsman:adapter:ezsp:uart -?- waiting reset 2023-04-08T09:03:41.587Z zigbee-herdsman:adapter:ezsp:uart <-- [c9de6f8f6560ef7e] 2023-04-08T09:03:41.588Z zigbee-herdsman:adapter:ezsp:uart <-- CRC error: c9de6f8f6560ef7e|60ef|006e 2023-04-08T09:03:41.588Z zigbee-herdsman:adapter:ezsp:uart --> [a0547d3a7e] 2023-04-08T09:03:41.702Z zigbee-herdsman:adapter:ezsp:uart <-- [11]

FredyReady avatar Apr 08 '23 09:04 FredyReady

@FredyReady please post the log as a file (or to pastebin) - it's very inconvenient to watch it. post the device paring log, not just the errors. do you have a usb extension stick? not used with USB3 port?

kirovilya avatar Apr 08 '23 09:04 kirovilya

@kirovilya

Sorry, not used to doing such things.

Here is the log - I do not know what is happening lately, not even pastebin is loading for me now, so I created github gist.

I am unable to post any pairing log with herdsman debug enabled, as it breaks the coordinator.

I have extension cable, and using USB 3.0 as I have only USB 3.0 ports available, HA is running on Intel NUC which has only 3.0 ports. I have USB 2.0 extension cable available, if that would help?

FredyReady avatar Apr 08 '23 09:04 FredyReady

So I tried switching to USB 2.0 extension cable. With herdsman debugging disabled, the adapter works, network is online. With herdsman debugging enabled, the adapter breaks, same errors, network offline.

Just to rule out additional factors. I tried pairing Danalock with USB 2.0 extension, and issue is still occuring.

FredyReady avatar Apr 08 '23 09:04 FredyReady

@FredyReady I see some connection problems: image

try to changing the USB cable... maybe some other software is preventing you from working with your serial-port

I still want to see the process of pairing your device in order to understand what prevents you from passing the interview

kirovilya avatar Apr 08 '23 11:04 kirovilya

@kirovilya

Yes, that is what I wrote, once I enable herdsman debug, the coordinator will not connect.

So I am unable to provide herdsman log while pairing the Danalock. I can only provide the Z2M log while pairing. I understand that seeing the pairing process debug is crucial, but I am in dead end now.

I tried 3 different cables already, one USB 2.0, two USB 3.0. The coordinator cannot connect while the debug is turned on, once it is turned off, the coordinator communication is estabilished.

Here is log right after Z2M reboot with herdsman debug logging enabled. Here is log right after Z2M reboot with herdsman debug logging disabled.

It appears that in parallel I have another issue merging, enabling herdsman debug logging breaks the coordinator communication.

Any idea, why enabling debug causes the inability of coordinator connection? If you have any suggestions on how to fix it, let me know, I am ready to configure what's needed.

FredyReady avatar Apr 08 '23 12:04 FredyReady

@FredyReady I see communication problems in the log - data transfer errors. this once again confirms the assumption that there are problems with the serial port. perhaps with disabled hurdsman-log, communications are faster and more stable. I don't have any idea why this might be.

kirovilya avatar Apr 09 '23 06:04 kirovilya

@kirovilya

Yeah I do not understand why this happens... But I will try to make some changes with the hope that I would be able to get the herdsman logging working with functional coordinator. If I manage that, then I will post the pairing log.

Thanks for the effort so far anyway :)

FredyReady avatar Apr 09 '23 16:04 FredyReady

So there was apparently some issue with my adapter after all... I jsut received Sonoff ZB-Dongle-P, switched to it, re-pair the whole network and Danalock has paired too!

So I will stay on P version for now, maybe I will try E version in the future to check.

Thanks for the help, closing the thread.

FredyReady avatar May 07 '23 13:05 FredyReady

Any update on this?
It's now no longer possible to get the P-version, so I'm stuck with Dongle-E... And have the exact same issue with my Danalock. In fact, this adapter seems to have numerous issues, but hopefully it will be updated at some point. Would be great with some input on the Danalock, though.

Tul47 avatar Sep 11 '23 20:09 Tul47

Any update on this? It's now no longer possible to get the P-version, so I'm stuck with Dongle-E... And have the exact same issue with my Danalock. In fact, this adapter seems to have numerous issues, but hopefully it will be updated at some point. Would be great with some input on the Danalock, though.

Unfortunately no update since the issue was with the E version of dongle. No issue with the lock since May. I can actually say it is really reliable.

Anyways, you can get P version on Aliexpress ;) Plenty of pcs on stock. I do recommend switching to P. While E has some benefits like higher transmitting power, this can be compensated with more routers and stable network overall.

FredyReady avatar Sep 12 '23 07:09 FredyReady

Thanks, I might try to switch... But I have 50+ devices paired, and many are hard to get to 😭

Tul47 avatar Sep 12 '23 14:09 Tul47