Page 1 of 1

change the sensor type and subtype without losing the history?

Posted: Thursday 27 November 2025 10:02
by keesberg
I previously created virtual sensors for my Omnik inverter.
(Type: General, Subtype: Custom Sensor) Because these values are incorrect, I can't correctly record the Omnik values in my Energy Dashboard.
How I can change the sensor type and subtype without losing the history?

Re: change the sensor type and subtype without losing the history?

Posted: Thursday 27 November 2025 10:42
by waltervl
Create a new correct virtual sensor, update your scripts and start from there.... Do not remove the old one yet.
See how things work out for a couple of days.
Then you probably need some manual database manipulation to copy the old data into the new device meter_calender table. The normal replace device function will not work as the devices are different.

Re: change the sensor type and subtype without losing the history?

Posted: Thursday 27 November 2025 10:55
by keesberg
OK thanks for this solution.