I’m using ZHA for my Zigbee netwoork but notice that using Zigbee2MQTT may provide additional functionality for some of my devices as well as open up the possibility to use devices not available through ZHA (yet).
I don’t want to convert my existing Zigbee network from ZHA to Zigbee2MQTT as the thought of re-pairing all my devices and adjusting automations fills me with dread.
Instead I’m thinking about buying another Zigbee coordinator and setting this up with Zigbee2MQTT. I’m thinking about having ZHA and Zigbee2MQTT running in parallel - each with their own coordinator dongle. I expect I’ll need to ensure that the new Zigbee network uses a different channel to my existing one.
Is it possible to have ZHA and Zigbee2MQTT running in parallel? Will it be easy to identify the new coordinator dongle when setting up Zigbee2MQTT?
Thanks for your help
Sure you could do that but the devices can only be paired with one or the other coordinator. Not both.
There’s no problem running both. Theoretically they could run on the same channel, but it doesn’t make sense to have them interfering with each other.
I started with ZHA. Added Z2M, intending to only test an unsupported device. The ZHA devs added support for the device, but I ended up migrating almost everything to Z2M over the course of a month or so. I like the concept of ZHA’s approach, but Z2M is currently an easier implementation to use once installed.
Still have both running with just a couple devices on ZHA. ZHA is installed primarily to keep evaluating. I expect ZHA will eventually catch up with Z2M’s ease of use, and I’m not opposed to moving back when/if it makes sense.
Biggest issue using both in production would be building two separate robust meshes.
I have a similar request. I want to install ZHA and zigbee2mqtt parallel in HA. But would like to use only one coordiantor. Is it possible that I can add the same zigbee device in both ZHA and zigbee2mqtt. i want to use ZHA primarily and leave zigbee2mqtt disabled. Then for OTA and other testing I would like to disable ZHA and enable zigbee2mqtt. Is this possible or do I have to pair the devices every time new?
Out of curiosity: why do you want to use ZHA then? Why not stay with Z2M for its features?
I find ZHA much easier to use than zigbee2mqtt.
Thanks for your reply. I guess I will just try it and see how it behaves if I just disable ZHA and enable zigbee2mqtt and vice versa.
You’ll need to restore a z2m backup to ZHA if the system will still let you.
They ended up removing mention of z2m restore from the 2202.9 release notes at the last minute. I don;t really know, but imagine the functionality is still there, but may need work, or just better docs.
I saw this original information and I think it could have been understood as
wash&go solution. I’m pretty sure it doesn’t work straight way. It recreates zigbee network, but I doubt it is able to recreate the same entities (name and unique_id wise). It would result in the mess of doubled entities (suffixed with _2) or completely differently named entities, depending on naming convention applied in integration backup is restored.
Hi. Why is it not possible to run zha and zigbee2mqtt in parallel with a cooridnator?
You can with two coordinators. The coordinator can not be shared between the two.
I’ve done some testing an it is possible to move a coordinator back and forth between integrations without repairing, but you end up with two sets of entities. Might be useful for some limited testing purposes, but I wouldn’t recommend it beyond that.
I’ve had ZHA running very successfully with ConBee II stick for months. But I want to migrate from my Tado radiator valves to Zigbee vales because Tado does not allow HA to control the opening of the valve.
I bought a Ketotek valves to test only to find that it cannot be read by ZHA/ConBee combination. So I tried to install Zigbee2MQTT, but I have problems when I open the web UI.
My config is as follows:
options: "-d -d"
The log after I start Z2M is as follows:
[20:24:40] INFO: Preparing to start...
[20:24:40] INFO: Socat not enabled
[20:24:42] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info 2023-04-06 20:24:44: Logging to console and directory: '/config/zigbee2mqtt/log/2023-04-06.20-24-44' filename: log.txt
Zigbee2MQTT:info 2023-04-06 20:24:44: Starting Zigbee2MQTT version 1.30.3 (commit #unknown)
Zigbee2MQTT:info 2023-04-06 20:24:44: Starting zigbee-herdsman (0.14.103)
I then click on Open Web UI and get the following error message:
502: Bad Gateway
The log file is now
[20:33:11] INFO: Preparing to start...
[20:33:11] INFO: Socat not enabled
[20:33:12] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info 2023-04-06 20:33:15: Logging to console and directory: '/config/zigbee2mqtt/log/2023-04-06.20-33-15' filename: log.txt
Zigbee2MQTT:info 2023-04-06 20:33:15: Starting Zigbee2MQTT version 1.30.3 (commit #unknown)
Zigbee2MQTT:info 2023-04-06 20:33:15: Starting zigbee-herdsman (0.14.103)
Zigbee2MQTT:error 2023-04-06 20:33:25: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-04-06 20:33:25: Failed to start zigbee
Zigbee2MQTT:error 2023-04-06 20:33:25: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-04-06 20:33:25: Exiting...
Zigbee2MQTT:error 2023-04-06 20:33:25: undefined
I restarted Z2M and waited 3 min without clicking on Open Web UI and the log files is as below:
[20:39:03] INFO: Preparing to start...
[20:39:03] INFO: Socat not enabled
[20:39:04] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info 2023-04-06 20:39:07: Logging to console and directory: '/config/zigbee2mqtt/log/2023-04-06.20-39-07' filename: log.txt
Zigbee2MQTT:info 2023-04-06 20:39:07: Starting Zigbee2MQTT version 1.30.3 (commit #unknown)
Zigbee2MQTT:info 2023-04-06 20:39:07: Starting zigbee-herdsman (0.14.103)
Zigbee2MQTT:error 2023-04-06 20:39:17: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-04-06 20:39:17: Failed to start zigbee
Zigbee2MQTT:error 2023-04-06 20:39:17: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-04-06 20:39:17: Exiting...
Zigbee2MQTT:error 2023-04-06 20:39:17: undefined
I have looked at the “zigbee2mqtt-fials-to-start” link but nothing seems to fit.
What should I change?
I’m guessing then that I would have to double all the repeaters and have one set for one network and the other set for the other network?
There is no doubt that Z2M supports more devices and that ZHA is easier (for me) to use, but I don’t want o double the number of repeaters.
So I am stuck. I’d like to use some TRVs which are supported by Z2M but not by ZHA, but the radiators are all over the house and too far from the second Zigbee coordinator. And I’ve tested some cover sensors that do not work on ZHA but pop right into Z2M.
But the thought of migrating by entire ZHA config to Z2M does not excite me. I have 50 devices and 362 entities running on ZHA. Is there an easy migration path?
Did you ever get it fixed? I’m on the same page right now…
I converted to Z2M and everything is running like a charm.