Energy Dashboard shows odd entry on graph after midnight

I can see that just after midnight, I get a spike but I know this must be due to how it is resetting the counter. But I’m not sure how I can dertermine which sensor I’m meant to add to sort this out.

Should I be using the sensors that are the ‘total’ or the daily one?

Please share the history graphs for the energy sensors you are using. Use the History panel, not the entity pop-up card. This ensures you will be looking at state data, not statistics (that can hide some glitches).

Hi.

Here are the picture requested.

Here are the sensors that it shows, I can’t find the one ‘Consumed Solar’.

I have the daily and Total for the Export. The energy dashboard is currently configured with the ‘Total’ sensor.


And I have the Electricity Import, again the is using the ‘Total’.

Currently my Battery Storage doesn’t have anything in the settings, but I had used

I can see that it would appear that the drop to 0, occurs a few seconds after midnight.

Should I be using the total sensor, rather than Daily?

I used to think so. I saw a lot of issues like this where the value did not reset exactly at midnight and thought it was the cause but user @karwosts told me in a post once (that I now can’t find) that the energy dashboard should be able to handle this. Maybe they have some advice.

Statistics collection (and therefore energy dashboard, which relies on statistics) is unaffected by sensors that reset to 0 when:

  • the sensor is state_class: total_increasing
    or
  • the sensor is state_class: total, and the change to zero is accompanied with an update of the last_reset attribute.

In either of those cases, the state changing to 0 will not affect the long term statistics accumulation.

Hi All,

Basically, I think I’ve fixed it.

This morning I had this showing.

Last night I swapped most of my sensors to total, but missed the export. I changed that this morning and the spike after midnight has now gone.

It helped using my PC so I could have a couple of pages open and compare the sensors I had set in the energy dashboard and the history page so I could view the sensor graphs better.

I’m not sure, if the energy help Webpage, that is linked from the energy dashboard config page, says anywhere that it’s best to use total sensors rather than the daily ones. I assume my daily ones where setting to zero just after midnight as they where being controlled by the GivTCP integration.

Regards