Hi guys.
My smarthome heavily uses z2m groups and scenes for every room, because they are more performant than ha scenes (which sends unicast zigbee packages).
I am now in the situation to have to change the network key on my rather large network (121 devices with 42 routers, mostly hue bulbs).
Tried this: Change zigbee secure network key, Zigbee2MQTT - #4 by khvej8 and changed my network key and started repairing 6x bulbs with the dimmer switch factory reset. Which worked and Z2M showed them online.
I started with a room and realized groups and scenes will be displayed in Z2M (they are saved in database.db) but does not work. The groups and scenes are obviously stored on the bulbs itself and cleared with the factory reset.
So because I had not much time for also migrate my 100+ scenes, I reverted the key change with an backup restore, repaired the bulbs again and redone my scenes/groups manually for this room. Yes, z2m shows the scene info but you have to change a value, delete the scene and redo it. It was a pain and waste of time.
Yeah, that's the reason I am here to ask: is there any mechanism to preserve z2m/zigbee groups/scenes while changing the network key?
I had an idea:
- Recall every z2m scene
- Save them temporary in HA
- Store the group members (screenshots, just to safe)
- Do the migration again
- Redo the groups (so the devices get the group IDs)
- Recall the temp HA group one for one…
- And save it with the old/same id/Name in Z2M (store the “same” scenes back on the devices)
Any help is appreciated