Keep Device ID after reconnecting a device pending on MAC

A device should always keep its Device ID even after reconnecting.

Some devices (f.e. Osram Smart+ Motion Sensor / Centralite) always get a new device ID after reconnecting when replacing the battery, so there’s some alias-work to do in connected systems like iobroker.

The idea is to keep a list of all not by hand deleted devices and their MAC adress together with their deconz Device ID so there is no more alias work needed after reconnecting the device.

Hello, you are re-including it ?

@Smanar hi, no re-including, forget about the Link, wasn’t a good idea to link the other topic.

This is the unique id and that should be used to identify devices

The uniqueID never change, and from my memory the ID change only if you re-include the device and only if you delete it …
I need to make try with a recent version, but on my side all my sensos are numeroted from 1 to X and have same number since years …

Where are seen your “Device ID” ? Have you check using Phoscon/help/API information ?