Page 1 of 1

Option to change idx

Posted: Thursday 05 October 2023 10:59
by HvdW
Is it possible to have an option to change the idx number of a device in the future.

User case.
I have a temperature/humidity meter outside.
Every now and then it need to have new batteries.
When batteries are changed it gets a new idx.
This is not a problem in itself but I'd like to see the long run temperature scales like Temperature Last Year.

I'm handling it now by adapting the old idx in domoticz.db to the new assigned idx after battery replacement.

Adding this option of swapping idx numbers is a very risky thing. I realise that.

The suggestion is that domoticz reads the Hardware and/or Type and/or SubType name and makes a suggestion to attach the 'new' device to an existing device with corresponding idx number.
I don't know if ID is handed out by the device. If that is the case it would be simple to match old and new.

Re: Option to change idx

Posted: Thursday 05 October 2023 11:03
by Kedi
What I do is replace the device with the new one in the old device. There is a button for it after the 'Edit' button.

Re: Option to change idx

Posted: Thursday 05 October 2023 12:41
by waltervl
See the wiki for more info on the mentioned Replace function https://www.domoticz.com/wiki/Managing_ ... ace_device

Perhaps also interesting to read this whole page ;)