Energy tab displays wrong info

I posted in another thread where someone had the same issue as me… But no reply in there so ill try to post a new post instead…

Im running the following versions:
Core-2021.12.6
supervisor-2021.12.2
Home Assistant OS 7.0

My graph looks like this: (i first thought this might be a timezone issue… So i changed my timezone from UTC to UTC+1 but the graph still looks the same).

I do not know what could be wrong. This has been working earlier in earlier versions… for some reason the accumulated consumption starts as a minus value each day -22,63 kWh this day…
The metric used is accumulated consumption… That metric gets set to 0 every day… Could that have something to do with this issue?

Have a read of this topic and see if it helps:

https://community.home-assistant.io/t/how-to-prevent-entity-from-resetting-to-0/369363