The energy dashboard doesnt show the same data as the entity

the number shown on the dashboard does not match up with what the entity shows and i do not know why. i got this problem after i removed a HACS addon and reïnstalled it after which i got duplicated entities. one with all the history and one without. i removed all the entities with the history and renamed the one without the history so that now there is only one entity now with the entire history. but since then the data is weird in the energy dashboard. This happens because you generate 4.4 kWh during the day, and at midnight the entity resets to zero, and the energy dashboard goes to -4.4 kWh.

does anybody have a solution for this problem?\

This means your entity isn’t setup right for statistics reset.

If it is state_class: total_increasing a reset to zero will not be counted as negative consumption.

If it is state_class: total, a reset to zero must be accompanied by an update in the last_reset attribute. If last_reset is missing, a reset to zero will be counted as negative consumption.

do you know how to change that so it does have the last_reset

That should be handled by the sensor, if it’s not correct raise an issue with the integration owner. I don’t think it would be easy to fix as an end user.

I’m seeing the same problem with my solar install. When I look at the attributes for my entities, I see:

state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
icon: mdi:transmission-tower-import
friendly_name: 18KPV #serialnumber# 

Anything else I can look into to make the energy dashboard make sense? It worked fine back with Solar Assistant, so I am sure it has something to do with my new integration.

If you have a concern, probably best to make your own post, and describe as much as possible your scenario with pictures, csv tables, entity information, etc. etc.

You’ve not provided much to go on, so there’s not much that can be said yet.

Gotcha. I’m not really worried about help fixing my issue. You were providing useful info about entity setup, so I was going to pick your brain about anything besides the state_class and last_reset that affect a midnight reset. The integration I’m using is pretty new, and I want to try and help.