Option to change idx
Posted: Thursday 05 October 2023 10:59
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.
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.