Wrong solar production displayed

Hi,
I have defined two solar productions in the Energy dashboard (Enphase and Solarman).
The graph of the Solarman production is fine: total daily production is 2.1 kWh (rainy day…).
However the Energy dashboard shows a wrong production, including a -0.7 Kwh value:

Note: the value -0.7 kWh corresponds to the production of the day before.

How can I correct this?
Thank you

It has to do with the fact that you use a daily sensor which also is unavailable for long times. If you have an ever increasing total, use that. If that does not help, show the sensor in developer tools. I suspect it has the wrong state_class. I suspect it is total, not toal_increasing.

1 Like

Here is the sensor definition:

Indeed the sensor is unavailable when the inverter is not producing.

If the sensor is made by an integration, then ask the maker on github to change the state_class to total_increasing. Total is for kWh sensors that can go up and down when producting/consuming. Solar panels do not consume. This one resets the counter every day, so it should be total_increasing.

Do you have a non-resetting solar priduction entity you can use instead? using a daily counter is possible but not ideal.

If you do not, you could consider overriding the state_class for this entity using the customize integration in the mean time.

Ok. I have changed the sensor for the total production (which is total_increasing): the issue is solved.
Thank you!

1 Like