My guess is - the Energy Dashboard entities should ideally be total-increasing, that is, they should be the total solar, grid, battery charge, battery discharge [since the device was first turned on].
These figures then always only ever increase, and Home Assistant does the work of partitioning into days.
If you use the daily-figures, then you are relying on the inverter resetting them every night at just after midnight. If the reset happens too early or too late, then it conflicts with how HA works and the figures get messed up.
Your inverter / integration should provide a figure for total solar (ever), but if not then you will need to set up a utility meter to replicate a ‘total-ever’ counter.