Migrate data from an old sensor to a new sensor

I had a dsmr sensor setup with the name: sensor.gas_delivered
Due to a change in configuration of the device, the sensor is now names:
sensor.dsmr_api_gas_delivered

I had to change my energy dashboard, but now all my old data is no longer accessible.

Is there a way to move the historic data in the database to the new sensor name?

Thanks,
Robert

1 Like