How to guide: replace energy meter and retain statistics

Really sorry to hijack like that, but I’m desperate…
You guys seem to know your stuff - would you take a look at similar thread here?

I can’t get it to stick…