arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.69k stars 4.72k forks source link

No connection to TCP-Serial Bridge to ZIGBEE2MQTT and HZA #21623

Closed prior-philip closed 2 weeks ago

prior-philip commented 2 weeks ago

PROBLEM DESCRIPTION

Neither zigbee2mqtt nor HZA is able to successfully connect to zigbee bridge pro. Console shows:

13:13:12.053 TCP: Got connection from 192.168.1.13

but zigbee2mqtt throws

[2024-06-13 14:13:12] warning: zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462 [2024-06-13 14:13:22] error: zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms Error: Failure to connect at SerialDriver.resetForReconnect (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:19) at SerialDriver.emit (node:events:519:28) at /opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22 at Queue.execute (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20) at Socket. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:154:17)

I followed this process with no success. https://github.com/arendst/Tasmota/discussions/17998#discussioncomment-5027394

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:
13:25:01.083 RSL: RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":75,"Free":436,"Rules":"on system#boot do TCPStart 8888 endon on system#boot do power1 toggle endon"}}
13:25:01.313 RSL: RESULT = {"Rule2":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
13:25:01.562 RSL: RESULT = {"Rule3":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:
13:26:04.779 WIF: Checking connection...
13:26:17.005 TCP: Got connection from 192.168.1.13
13:26:17.009 TCP: to MCU/1: 1AC038BC7E
13:26:24.794 WIF: Checking connection...

TO REPRODUCE

Steps to reproduce the behavior: Start Serial to TCP Bridge on 8888 and invoke zigbee2mqtt on same port with adapter option "ezsp"

serial: port: tcp://192.168.1.199:8888 adapter: ezsp

EXPECTED BEHAVIOUR

zigbee2mqtt (or HZA) to connect on 8888 and take over coordinator role