If you just factory reset a device and re-pair/re-join it in ZHA then it with not be wiped so that is OK to do at any time, but there is no valid way to force a device to only connect to a specific router device because that it not how Zigbee work. So that only works with old xiaomi/aqara devices because they did not probably implement Zigbee. Tip to read and follow → Zigbee networks: how to guide for avoiding interference and optimize for getting better range + coverage
1 Like