Hi,
I have a huge issue with my Domoticz. A while back I created some new scenes and these got created with device idx's that were already in use by other sensors. I lost a lot of historical data I wanted. I did post about it in the bug section a few months back, but I did not hear anything, so...
I've just been trying to make some changes to my setup, and the device idx's are getting duplicated all over the place, which means I am losing devices and things are stopping working. I've gone back to a backup again, but if I add/change any devices, the issue will just start again.
I've seen a few threads in here about idx numbers, but nothing like this. I understand this idx is stored in the db somewhere, but I do not know if it is easy to change. Perhaps I can set it over my current highest value (210), somehow? Otherwise, it seems to start around 5/6 and I already have sensors there!
Anyone can help me with this? As I am totally stuck with it as is.... Thanks.
idx number are being re-used on new devices Topic is solved
Moderators: leecollings, remb0
- waltervl
- Posts: 7020
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: idx number are being re-used on new devices
This is really strange as IDX of group/scene can be the same as normal devices by design. Domoticz can handle this and should not lead to data loss. Perhaps a script or plugin is mixing things up?
Below my device list with double IDX
Below my device list with double IDX
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- gizmocuz
- Posts: 3026
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: idx number are being re-used on new devices
Well there is a difference between devices and non-devices (like scenes/groups) so this is normal and have always been like this
The database tables are also different
The database tables are also different
Quality outlives Quantity!