Migrating Temperature device history to SetPoint device
Posted: Thursday 03 October 2024 14:45
For whatever reason in the past I have created a Temperature sensor that should have been a Setpoint device (it shows the SetPoint temperature of my heatpump heating buffer).
I have now corrected this (so the value is shown on the Utility tab and not on the Temperature tab).
I would like to migrate all of the history (past days, last month, last year) that still resides with the Temperature sensor to the new Setpoint device (so I keep an overall view and also get the compare working again).
My guess would be to do this directly on the db using SQLite3 but open to _any_ solution
To avoid messing things up, Can anyone point out how (in SQL) to select the historic values from the temperature sensor and how to insert them linked to the setpoint device?
I have now corrected this (so the value is shown on the Utility tab and not on the Temperature tab).
I would like to migrate all of the history (past days, last month, last year) that still resides with the Temperature sensor to the new Setpoint device (so I keep an overall view and also get the compare working again).
My guess would be to do this directly on the db using SQLite3 but open to _any_ solution
To avoid messing things up, Can anyone point out how (in SQL) to select the historic values from the temperature sensor and how to insert them linked to the setpoint device?