How to replace entity in Energy Dashboard by new one without losing history

Wow, very interesting!

Questions:

  1. I guess this is confirmed (multiple times) to work that way reliably, isn’t it?
  2. I thought with step 1 all the history is gone already… at least data from states table will be removed immediately, will it?
    Statistics of course remain in the database (mine collected a garbage of 53 entities already… :roll_eyes: ).
  3. Is it safe to rename the entity in step 4 (so once it already catched the history of the old one)?

Cross-post with a similar process (just with many more words):