Page 1 of 1

How to replace a Xiaomi Sensor keeping the same device ?

Posted: Thursday 25 July 2019 20:08
by Masure
Hi,

I have a defective Xiaomi temperature sensor. I can add the new one but I'd like to keep and continue the data history on the same Domoticz device.

How the best way to do that ? I don't mind if it requires doing sqlite database update while domoticz not running.

ps : The scripts are not the problem because I always use name to identify my devices in there.

Re: How to replace a Xiaomi Sensor keeping the same device ?

Posted: Friday 26 July 2019 0:56
by Bigted
Did you read the manual, page 20 :lol:

Add the new device with a new name, you will have a new idx value

On the old device edit | replace, and select the new device

All the history will transfer

Remove the old device from setup | devices

Rename the new device with the old name

Re: How to replace a Xiaomi Sensor keeping the same device ?

Posted: Friday 26 July 2019 7:42
by Masure
this is perfect !

I just made a google search without finding anything, I feel dumb :roll: