Not know if I am asking for something which is impossible to do, but let me try.
I got and installed RTL-SDR Blog R820T2 RTL2832U to detect data from 433Mhz, 915Mhz devices. Installed 433_rtl and 433_auto_discovery and everything seems to be working.
Here is my observation - if a 433mhz device is turned off, leaves the reception area, or the HaOS is rebooted, upon next detection, the device is getting a different ID. This means that I have to manually
remove old devices from the devices list, then manually clean data from Developer tools->statistics, then manually add the same devices with new ID to new/existing dashboards. Then the cycle continues.
An example - I have Thermopro TX2 sensor. It was registered as Thermopro-TX2-9-1-102. From this name, Thermopro-TX2-9 does not change. -1- is one of the three frequencies one can select by moving the switch, and 102 is the device ID assigned (my assumption) - by RTL_433.
Everything worked fine, until I replaced the batteries on the sensor. This time the device came back as Thermopro-TX2-9-1-30. So I had to go and update everything.
The above becomes clear if I run MQTT Explorer. You can see below that while I have just three Thermopro devices, there are more than one instance of each device if the device was powered on/off.
The same can be seen with other devices as well - you can see a number of entries under TPMS-Schradar.
So the question is - is all this situation unavoidable?