Home Assistant now keeps history when renaming entities
Before:
sensor.entity with statistics
Renamed sensor.entity to sensor.entity_old
Created a new sensor.entity using the same name
The new sensor.entity will have the full history (states and statistics) of the old sensor.entity
Now: doing the same results in a complete new history (states and statistics).
How to rename entities to actually preserve the old states + statistics?
It seems to be not possible anymore for an entity to inherit the history of another entity just based on the entity_id. I really need to solve this, otherwise this would be an actual step backā¦ the entity_id swap workaround worked just perfectly before 2023.4!
When reading this first I thought thatās exactly what this new feature does - instead after trying with a few entities, I lost all the history dataā¦
Edit: I think the core issue is when the old entity has itās own unique_id set. One simply can not transfer unique_idās to another entity, right?
Currently instead of a rocking
Home Assistant now keeps history when renaming entities
I tend to say the opposite is right: now we are not able to swap entities and keep their history. So that āfancy new featureā comes with a HUGE downside
Not possible without very very VERY ugly and dangerous database hacks I guess - really not an option.
Please my fellow HA enthusiasts, prove me wrong. How to achieve this now > HA Core 2023.4?
Looking forward to the solution as well. Yesterday one of my powerplugs died and I want to replace it with a new one, but keep the history of the old powerplug since it is integrated in my energy dashboard.
The new powerplug is ready to be adopted in Home Assistant, but without the steps to keep the history, I am a little hesitant to proceed.