Replies: 2 comments 6 replies
-
My suggestion, and others may have a better solution is to A. Install a good quality mains powered Zigbee router at the location that does not have a coordinator. That should reinitialize the primary connection once the backhaul is reconnected. Or B. Have Home Assistant restart the ZHA/Z2M integration which should again force a resync of the network. Just my 2cp. |
Beta Was this translation helpful? Give feedback.
-
Tunneling the connection is not recommended. Zigbee2mqtt and zha both require a constant serial connection. My suggested solution is to use a Pi - even a 2 or 3 and set up a local zigbee2mqtt instance at the remote location and set up a tunnel for the mqtt connection which will be much more forgiving with disconnects. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a single HA/Z2M instance that is managing two physical locations. The HA/Z2M is at location1, while the coordinator is at location2.
Between the locations i've a low latency tunnel that is rock solid (500/500Mbps link) and is working for years without issues. Only caveat is once in 24hrs the tunnel goes down for 30-40seconds (ISP enforced session teardown).
When the tunnel is back, every 3-4th time Z2M loses the connection to the coordinator, Z2M goes down and can't restart.
What actually happens is that connections to coordinator on port TCP-6638 are reset.
I can immediately see that the issue is present if i try
Normally ofcourse telnet would remain connected and would spew gibberish during normal operation.
This happens only after the tunnel goes down/up, and never during the rest of the day, hence the connection and tunnel itself aren't an issue.
My assumption is that the coordinator ends up in some kind of loop when TCP connection isn't terminated gracefully and ever so often the process ends up in some kind of locked up state.
The only solution is to fully reboot the coordinator.
Haven't had the opportunity to take some packet traces as it's not really 100% reproducible, but i could if needed.
Is there any way to optimize this behavior on the coordinator or lead me through how to extract some debugging info, please?
Some stats (I've got Tuya based thermostat with debounce set to 1, and some window blinds modules):
Thanks in advance for any suggestions (aside the obvious to have a HA instance on both locations haha)!
Beta Was this translation helpful? Give feedback.
All reactions