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.
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).
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.
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.