Closed mrwolfjunior closed 2 years ago
try to replace in your zcsazzurro/sensor.py file
except: energyGeneratingTotal = 0
(and all other variables) with
except: energyGeneratingTotal = None
I remeber that was there other issue with HA if I don't return any value... but try!
Hi,
had some issues around the graph produced in the energy tab:![Screenshot 2022-05-27 190104](https://user-images.githubusercontent.com/52622663/170746602-0863a4bc-6e6b-43f3-ba53-f6ed2459e0ec.png)
I think the problem is related to the template because when something is going wrong there is a "default(0)". If I understood correctly HA is doing a delta of the values, so:
The graph will have a production of 1kW (delta 0-1) and then 12kw (delta 2-3), that is wrong. So in order to fix that I guess you should not put the value at all. So something like:
If you see I'm only checking if the value is a number, if it is not, the value is skipped