Devices change IDs after reboot

I am running deCONZ on an RPI since quite a while and also use FHEM and Homebridge to access the devices. Last weekend I had to uninstall and re-install deCONZ because it got terribly slow for whatever reason. Probably a DB issue? However, solved with a restore.
Now I have the issue that the device IDs of some devices (not always the same?) change after rebooting the RPI. Consequently the automations no longer work (even through the Phoscon APP) and need to be updated.
Any ID what can make the IDs change?

Good question, if you re-include a device without deleting it, it keep his ID. Without deleting the device I haven’t idea.
Perhaps this one is not saved in the database ?