Négative Energy

Good morning,

Looking at my energy graphs in HomeAssistant, I notice that I have two devices that have had significant negative energy consumption.

June 29, 2023: device A -653.68 KWh
July 13, 2023: device B -252.61 KWh

This has the effect of destroying my annual statistics for my house.

Is there a way to remove these two negative values ​​either directly in the DB or indirectly by executing any code?

Thank you for your help.
Richard

Developer tools → Statistics. Click the ramp icon next to your entity and navigate to the time the errors occurred and delete them.

Then fix your sensor configurations to prevent this happening again.

Hi,
If you navigate to http://yourhaserver/developer-tools/statistics you can find & edit statistics values there. I have to do this from time to time myself before when my Shelly3EM power monitoring device gets restarted for any reason my power stats are all screwed up for one 5 minute block in time.
It’s been a saviour for me.
Nick

You too need to fix your energy sensors to prevent this from occurring.

Thanks for your help.
Now, i have a good value in my energy graph.
Thank you so much.
Richard