idx number are being re-used on new devices Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
pjsgsy
Posts: 26
Joined: Thursday 28 December 2017 20:51
Target OS: Windows
Domoticz version: 3.8153
Contact:

idx number are being re-used on new devices

Post by pjsgsy »

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.
User avatar
waltervl
Posts: 5896
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: idx number are being re-used on new devices

Post by waltervl »

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
Screenshot_20230127-000540-736.png
Screenshot_20230127-000540-736.png (168.53 KiB) Viewed 360 times
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
gizmocuz
Posts: 2551
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

Post by gizmocuz »

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
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest