#new electricity meter, use new meter without losing data of old one...

1 messages · Page 1 of 1 (latest)

spiral pine
#

I have a new digital electricity meter with P1 meter (homewizard) and integrated this into HA, now I want to replace my shelly CT meter with this one in the energy dashboard but when I remove the shelly meter, I lose ALL historical data ???
How can I switch these without losing data and without having to remove the shelly and renaming my P1 meter to the shelly name (this is not a preferred outcome since I' d like to keep the shelly in HA)
Same applies for the gas meter...

late jay
#

Just make sure the new meter has the same entity ids as the old one. Then everything will transfer over

blissful kelp
#

You don't have to remove the shelly meter if you want, you could also leave it there and just have two sources.

spiral pine
#

but then i'd have to rename my homewizard entity to shelly_import_meter .. isnt that a weird way to fix this ? is there no elegant way to do this ?

late jay
#

Once the statistics are transferred you can change the name to whatever you like

spiral pine
#

but wont the statistics go with the shelly entity when I change its name prior to giving the homewizard entity the old shelly name ? (if that makes any sense..)

blissful kelp
#

Statistic get moved if you change an entity_id to another entity_id that isn't already present in statistics.

#

If you want to rename without moving statistics, I think you have to unintegrate/delete the device, and then re-integrate it as a new entity id.

spiral pine
#

Wow, seems like something that should be looked at 🤣 hardly a user friendly way to go about this...
Will try and report back, thanks for the quick assist 😉

#

Would disabling the old device also work or do I need to remove it entirely ?

late jay
spiral pine
#

tried it, but did not work, all data was gone after deleting and only came back after re-adding the device and adding it back to the energy dashboard config

#

somehow after deleting the device and restarting ha it still carried the data on that specific entityid, without it being shown in the entities list

blissful kelp
#

stats data is never deleted unless you delete it manually

#

don't remove it from the energy dashboard config

spiral pine
#

I have full daily backups so no real worry there

#

why is this so hard though ? 😆

blissful kelp
#

because nobody has done the work to make it better

spiral pine
#

logical.. just seems strange to be doing all kinds of aesthetic improvements when there's things like this still unresolved

spiral pine
#

If I had the skills I would 🤣 but seeing how much trouble I'm having fixing this there's no chance I'll be able to help 😉