There ?may? be a way to fix it. lifetime_energy should always be increasing, but it is possible that HA saw it decrease resulting in a negative Wh value. This could have just happened once, but it could have happened multiple times.
Using the Energy Dashboard, first you’ll have to find which particular day and time of that day that HA saw lifetime_energy go negative and by how much.
Then go to DevTool->Statistics(tab) and find the row with sensor.solaredge_lifetime_energy
.
Over to the right is a icon that looks like a ramp, click on it. Go to the calendar day and hour the sensor went negative, and see if you find an entry that has a non-zero value (You’ll have to adjust the “minute” in increments of 15) . If you see a non-zero value and it just doesn’t look right, you can make an adjustment. At this point is where I can no longer help as I was never really able to determine what value to enter for the adjustment.
Here is a thread that you may find helpful: