Since many of us start with ZHA and after some time realize that Zigbee2MQTT would be a better alternative when the network keeps expanding I propose an ZHA-MQTT Migration assistant to be created.
Of course the move could be made manually, but with 100+ devices it’s a daunting task to commit to. Having a tool that can ease that transition would truly be helpful.
Update:
My thinking is that the migration assistant would be bidirectional.
It’s not though, zigbee2mqtt is a separate packages that publishes information to an mqtt broker. HA connects to that broker. It does not need to run with HA at all. Many people use it without HA. So going back to my comment, why would HA maintain a 3rd party application when that 3rd party application already has maintainers. Secondly, why would HA create this migration tool for them, when HA wants people to use it’s ZHA integration over Z2M?
It’s very clear. Many people want to switch to Zigbee2MQTT because they are not satisfied with ZHA missing features/entities.
There are two alternatives to solve this. Either step up development of ZHA to match Zigbee2MQTT or simplify migration between the two. Given that Home Assistant foundation want’s more 3rd part integrations to work seemlesly the second option would be a good alternative.
It originates with Zigbee devices, not either of the integrations. As long as manufacturers keep on implementing Zigbee in eccentric ways, Z2M will be needed.
People who consider how a device is going to be used before buying it get on fine with ZHA.
I would say that’s not the complete answer/description of the situation. HA very much wants Z2M to survive and flourish within the HA ecosystem:
But the work of the Open Home Foundation doesn’t stop there. Through close partnership with Nabu Casa, the foundation funds, directs resources to, and collaborates on the development of critical external projects like Z-Wave JS, WLED, Rhasspy, and Zigbee2MQTT. Our main requirements are that the projects remain open to everyone, and aligned with our core principles.
Yes, but HA has never written migration guides away from HA and it’s not going to start. We have migration guides to move from custom things to HA, not the other way around. The other way around is the responsibility of the other custom thing. Not only that, but this WTH is about HA core, not any external software. So in the spirit of WTH, WTH does this have to do with HA?
The only aspect this could be considered in is this:
No disagreement there, in terms of it not being core functionality… for now.
IMO, like many other smart home platforms have done, HA folks will realize that developing a core protocol driver takes a lot of resources and diverts attention away from other things. Other platforms have abandoned their internal driver efforts and have switched to using ZwaveJS and Z2M… and when they have, they’ve provided migration tools. My bold prediction is that HA will eventually do the same.
HA pays for the development of ZHA by funding multiple developers to maintain ZHA. HA is only affiliated with Z2M through the OHF, they still do not maintain Z2M or pay for Z2m. There are no plans from ZHA and likely will never be plans to offer a migration between the 2. They both offer extremely different entity structure and nothing is 1 to 1, unlike the zwave counterpart which was exactly 1 to 1.
I totally agree. But who knows, given the tight integration of ZHA perhaps if given some love people might want to migrate from Z2MQTT to ZHA going forward.
I agree with the underlying point, even if a migration assistant isn’t the answer. ZHA does have real feature gaps compared with Zigbee2MQTT, and for a lot of people that’s what pushes them to switch.
For me, the biggest one was direct bindings. ZHA lets you bind, but it doesn’t give you a proper view of what’s already bound to what, whether a binding still works, or what a device actually supports. On a large network with lots of remotes and switches, that becomes guesswork quickly. Zigbee2MQTT is simply better there today.
Rather than migrate 100+ devices, I ended up building something to fill that particular gap on top of ZHA: ZHA Bindings Manager. It’s free and in HACS, and it does one job: it shows, checks and manages bindings. It doesn’t solve the wider “missing entities” side that OP mentions, which @petro is right about: that’s mostly quirks, and anyone can contribute those.
On @RedKing’s point about checking how a device behaves before buying: that’s exactly why I also started a community Zigbee Capabilities Database, where people share scans of what devices actually support, per firmware, from both ZHA and Z2M networks.
My personal view is that the better long-term fix isn’t an easier way to leave ZHA. It’s closing the gaps that make people want to leave. I’d be very happy to help if the ZHA maintainers ever want proper binding management built in.
Like @petro pointed out, it’s not really core functionality at the moment, so don’t hold your breath. Your WTH might have validity in the future, but not for now. If someone wanted to they could develop a marketplace app to automate all the manual steps involved.