Negative value since adding radiator consumption

Hi !
Until now, I was only tracking my electricity consumption on the Energy Dashboard (thanks to a small module connected to my Lixee ZLinky electricity meter).
Yesterday, I noticed that my radiators had an entity linked to their energy consumption, so I wanted to add that to the Energy Dashboard.
But since then, I’ve noticed time periods where there are negative values, and since I’m not very familiar with how this part works, I don’t understand why.

Does anyone have an idea?

The entity you are using to measure your radiator energy is probably using the wrong state_class attribute.
The state_class should be “total_increasing”.

It seems like the radiator consumption precision is 1.0, so if it consumes 0.1 during that hour but it makes the counter roll over then that could result in it displaying a negative value for the untracked consumption, since it added 0.9 extra consumption that actually happened earlier.

Sorry for my late answer, I had to manage some issues with my electrical consumption tracking device…

You’re right, I now understand why this behavior.

I will contact the developer of the integration to know if it would be possible to change the Wh precision.

thanks