Merge RFlink sensor data after replacement

Hi! I use a handful of 433mhz temperature sensors. I’ve added them in configuration.yaml with RFlink. Once in a while, I need to replace the batteries, but that changes the ID of the sensor. I can find the new ID in the log, and replace it in the configuration, but this creates a new sensor with new sensor data. Is there a way to merge the old sensor data with the new one?

Before I used Home Assistant, I used Domoticz. It had a feature where you could replace a sensor with a new one, keeping all the logs intact. Does HA have a similiar functionality?

You can use the aliases variable and configure the new device_id there.
This way you will keep the same device_id and get the new values.