Solar Generation Entity goes negative on Energy Dashboard

Hi, I recently added my solar panels to the energy dashboard and everything is working as expected, except for the fact that the first registered amount of solar energy in the morning goes negative (picture attached)

Which does not make any sense as the sensor reporting the amounts never goes negative on the graph (picture attached)


Last reported solar generation for the previous day was 28kWh


At 6:14 am (sunrise) generation starts reporting 0 kWh

Where does the sensor gets the -27.8 Kwh at the beginning of the day? Now my energy distrbution card starts the solar generation at -27.8 instead of 0 so it never reflects the actual solar generation for that day because it’s starting to deduct the -27.8.

Thanks in advance for anyone who might have a clue as to what is going on.

1 Like

I am a complete newbie with HA so take the following with a grain of salt…

I installed my solar PV into the Energy page as well but don’t have the issue.

It looks like you are using Solar Energy Generation Daily as the input entity in the Energy page configuration.

You might have better luck using Solar Energy Generation Total entity instead of Daily.

The daily energy generation data stream resets each day at midnight, and the Energy page is interpreting that daily energy data stream reset as negative energy production.

A total energy production entity only ever increments upwards.

3 Likes

Thank you for your suggestion, after swapping the entities (daily generation for total generation) My graph start displaying the information accurately.

Thank you so much!

1 Like