Rename entities while retaining history

Not quite sure where to ask this, if there’s a more fitting place, please move.

I wonder if there’s a way to rename the entity of a device, while retaining its accumulated history.

I’ve had a Zigbee (through Deconz) power plug for about a month, and it’s doing fine, Home Assistant (docker) has stored the total power consumption without issues.

I’ve since added more devices to Home Assistant and gotten to a point where I have a need to restructure my devices, as I naively didn’t think my naming scheme through from the beginning.
I started renaming one or two identities through Home Assistant Entities tab, when I noticed that I now have “lost” the power consumption of the power plug. The history is now beginning at today’s date with no more history beyond that.

Am I to assume that as soon as an entity is renamed, the history will be lost?
Is there a way to tie my renamed entity to the old history or is this simply not possible?

Thanks!

1 Like

Implemented here Retain history when renaming an entity by bdraco · Pull Request #89963 · home-assistant/core · GitHub