Merge Data

Hello,

I have two temperature sensors.
#1 the old and #2 the new one.
How can I merge the history data from 1 with the data from 2?

thx

Rename the entities on the new one to match the old one and it will bring forward the history

Edit: also this will fix any automation using the entity - IF you don’t use device automations and are using entitiybstates instead.

1 Like

Thank you for your feedback.
At the moment, however, the old temperature sensor is still running.
Do I have to take it out of service before renaming?

1 Like

I’d like to do the same thing (merge the old entity history into the new one), but I’m wondering the same: do I need to delete the old entity to have its name free to be assigned to the new entity? Won’t this process delete its hisstory too?

That’s still my question. :person_shrugging:

1 Like

I’ve just found out that the same issue was being discussed in another thread, that’s been recently updated, look here: Merge statistics of old entity to new entity - #28 by molelightn

So I tested myself and can confirm that you can merge two entities by deleting the old one and replacing the new one’s name with the old one, since history data doesn’t get deleted. :grinning: