Zigbee some devices not working after update/restart

I have issue whit some deivces but not all. Using ZHA every time if i restart or if there is a update. device is not responding in program. reconfigurate is not working. Only remove and reinstall it to the zigbee network. do not think this is the correct way to do this.
is there a beter way to get it back working easier after an update

How long are you waiting? Battery powered devices can show as “unavailable” for an hour or more after a restart.

This is because they are not in constant communication with the coordinator - they report in at intervals to conserve batteries, and different devices may do so more or less frequently. This is a feature of Zigbee rather than ZHA.

Devices are only formally marked as unavailable after about six hours (there is a timeout in both ZHA and Z2M which you can change).

maybe that is it. waited for 30min. But it is not battery powered but a plug, can that have the same situation whit that

Ah. Mains powered devices should appear right away.

Can you try the plug in different locations? If that makes a difference, there may be a weakness in the network in the original area.

Lots of good advice here:

Zigbee networks: how to guide for avoiding interference + optimizing using Zigbee Router devices (repeaters/extenders) to get best possible range and coverage.

It is now working fine,
Think that happend is that the used router was offline as well. Meaning first needed that router be online and after that the rest is working, and the 6hrs wait is not bad. meaning restart in night and not during day.