Hello all!
I have for few months 2 Zigbee ethernet gateways, running with 2 Z2M instances (lets call them Z2M1 and Z2M2)
Most time its working, but 2 main stability issues which i cant seem to resolve!
Hope someone can help me
the Tasmota device I use, its same device for both Z2M1 and Z2M2, they have same f/w version AFAIK.
https://www.aliexpress.com/item/1005004958650903.html
My HA is running latest version (problems I describe here are from day 1 of adding the Z2M instances and devices, so its not tied to specific version)
My HA is running on Debian VM on UTM hypervisor on macbook pro (2022 version). Its connected to my home network via LAN cable. Rest of integrations of my HA instance are working fine, including local tuya, Tao cameras, 2 ESP devices and various other cloud based integrations.
Issue 1:
Z2M1 connects to few devices ( motion, presence, button switch, flood sensor) which are physically close to the coordinator
the coordinator itself, is connected to the same switch the Mac is connected, with short cables (both Mac and coordinator) and both are practically 10cmm within each other.
This Z2M1 gives lots of errors of connectivity to gateway in Z2M log.
After it have few of these in a row, Z2M1 just hangs!
The tasmota coordinator is avail and i can ping it constantly even when Z2M1 reports connections errors
The heartbeat supervisor is turned on for this addon but it never triggers…
I wrote a simple automation that monitors the Z devices connected to Z2M1 and the service and if it detects sensors “unavail” for few mins it will restart the addon and that solves this until next time.
Problem is this happens up to 15 times a day. sometimes its OK for hours, sometimes it hangs and restarts every 5 mins…
this is example addon log section when it hangs
[09:55:10] INFO: Preparing to start...
[09:55:10] INFO: Socat not enabled
[09:55:11] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-08-01 09:55:12] info: z2m: Logging to console, file (filename: log.log)
[2024-08-01 09:55:12] info: z2m: Starting Zigbee2MQTT version 1.39.0 (commit #unknown)
[2024-08-01 09:55:12] info: z2m: Starting zigbee-herdsman (0.50.1)
[2024-08-01 09:55: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-08-01 09:55:25] error: zh:ezsp:uart: --> Error: Error: {"sequence":7} after 4000ms
[2024-08-01 09:55:25] error: zh:ezsp:uart: -!- break waiting (7)
[2024-08-01 09:55:25] error: zh:ezsp:uart: Can't send DATA frame (6,2,0): 260001630004
[2024-08-01 09:55:27] error: zh:ezsp:uart: Port error: Error: read ECONNRESET
[2024-08-01 09:55:30] error: zh:ezsp:uart: --> Error: Error: {"sequence":7} after 4000ms
[2024-08-01 09:55:30] error: zh:ezsp:uart: -!- break rewaiting (7)
[2024-08-01 09:55:30] error: zh:ezsp:uart: Can't resend DATA frame (6,2,1): 260001630004
[2024-08-01 09:55:30] error: z2m: Error while starting zigbee-herdsman
[2024-08-01 09:55:30] error: z2m: Failed to start zigbee
[2024-08-01 09:55:30] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-08-01 09:55:30] error: z2m: Exiting...
[2024-08-01 09:55:30] error: z2m: Error: Failure send getMulticastTableEntry:{"type":"Buffer","data":[38,0,1,99,0,4]}
at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:686:23
at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
at Ezsp.getMulticastTableEntry (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:542:21)
at Multicast._initialize (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/multicast.ts:30:27)
at Multicast.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/multicast.ts:42:9)
at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:276:9)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:129:29)
at Zigbee.start (/app/lib/zigbee.ts:63:27)
at Controller.start (/app/lib/controller.ts:139:27)
at start (/app/index.js:154:5)
[09:55:31] INFO: Preparing to start...
[09:55:31] INFO: Socat not enabled
[09:55:31] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-08-01 09:55:32] info: z2m: Logging to console, file (filename: log.log)
[2024-08-01 09:55:32] info: z2m: Starting Zigbee2MQTT version 1.39.0 (commit #unknown)
[2024-08-01 09:55:32] info: z2m: Starting zigbee-herdsman (0.50.1)
[2024-08-01 09:55:33] 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-08-01 09:55:45] error: zh:ezsp:uart: Port error: Error: read ECONNRESET
Error: Failure to connect
at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:19)
at SerialDriver.emit (node:events:517:28)
at SerialDriver.onPortClose (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:393:18)
at Object.onceWrapper (node:events:632:26)
at Socket.emit (node:events:517:28)
at TCP.<anonymous> (node:net:350:12)
Can someone help me with how to solve or debug this?
Issue 2 is with Z2M2:
This coordinator is installed in a different floor in my house, and also connect by LAN cable to the home network.
This coordinator connected to something like 20 devices - motion, presence, temp, button switches, contact etc.
Unlike Z2M1, surprisingly it does not have any connectivity issues or hangs like Z2M1!
But its same device, and even though its LAN connection to the home network is even “longer” then Z2M1 (since they are in different house floors) its very stable in that perspective.
But the issue i see here sometimes is that zigbee sensors stops updating their status. I only spot this if I actively login in HA UI and see in dashboard for example outdoor temperature sensor reporting flat value for few hours
example screen shot how i detect it
In the addon log of Z2M2 - nothing…
If I restart manually Z2M2 - problem is solved until it happens next time
it can work ok for days and then it can happen again
I don’t have any good automation to detect this automatically
any idea how to debug this issue as well is appreciated