Replaced energy meter energy dashboard shows huge negative value

I’m using wmbusmeter with rtl-sdr dongle to read data from my electricity meter. It was working great for a long time, but last week my energy company replaced the meter. After coming back online meter reported energy usage counted from 0.

So now I have this huge negative value in my energy dashboard which is screwing my history.

Is there any way to fix this? Somehow inform HA that my meter was reset and counting total_increasing from 0 or some current value?

Simply adjust the statistic like in your second screenshot to 0 and then moving forward all will be OK.

It’s not working, because next hour this difference is recalculated again and appers in new hour.

That’s weird… Can you post a screenshot of the statistics view of the sensor which includes the moment it was replaced?