For zigbee remove the backup battery if you have the V2 version and unplug. Leave it unplugged for at least 20 minutes. This will put the zigbee devices in panic mode and they will reestablish their mesh. Zwave- repair can be done from the hub settings on the old and new app was well as the IDE.