Successfully migrated from ZHA to Z2M without re-pairing #24478
Replies: 6 comments 13 replies
-
Interesting! Had a chat with @Nerivec about this, it should be easy to add an automatic interview when an unknown device sends a message. So the procedure would be:
|
Beta Was this translation helpful? Give feedback.
-
What to do after coming home from a nice party? Feed the cats and deliver the code, of course! Note: The most straightforward way would be to instruct users to download a backup from ZHA and then disable it. However, you could probably also just curl the backup from the other extension.
|
Beta Was this translation helpful? Give feedback.
-
Does |
Beta Was this translation helpful? Give feedback.
-
I was able to download zigbee.db on a HAOS OVA install by using the File editor addon. Then dumping some attributes from it there are quite a few tables and they are versioned:
I think we're only interested in
There's not a good way of exporting devices from HA and I don't have access to |
Beta Was this translation helpful? Give feedback.
-
Thanks for this. Note that the ext_pan_id is in reverse order in the Z2M configuration vs. a ZHA backup for me (no clue who is right) ZHA backup "network_info": {
"extended_pan_id": "7e:51:d3:4f:64:50:5a:6e", Z2M config ext_pan_id:
- 110
- 90
- 80
- 100
- 79
- 211
- 81
- 126 |
Beta Was this translation helpful? Give feedback.
-
Tried following this but something is unhappy:
A quick web search suggests that maybe the problem is that there are other routers around that are still running the network and that's causing some kind of conflict? |
Beta Was this translation helpful? Give feedback.
-
@Koenkk First of all, love the project! Thank you! I'm so glad to be able to set light gradients on my Signe again, and the software updates are a welcome plus (for no reason other than feeling up to date).
So, I've had a fun night and automated the device migration part with a script:
database.db
entry, e.g.:zigbee2mqtt/database.db
zigbee2mqtt/configuration.yaml
:This could be automated further for a full ZHA import:
I guess you know all this already, but I've read quite a few forum discussion and watched youtube videos where people crawl through their homes, re-pairing all of their devices manually 🤭
I could write this as a standalone TS script if you're interested?
Beta Was this translation helpful? Give feedback.
All reactions