krbaker / hass-sunpower

Home Assistant SunPower Integration using the local installer ethernet interface.
Apache License 2.0
63 stars 23 forks source link

[Help] Notify if individual panel appears to not be producing #76

Open scottismyname opened 6 months ago

scottismyname commented 6 months ago

I have everything setup in HA and the graphs and everything are looking good. Right now I have 36 panels (each with their own inverter), and I'm trying to determine how I can monitor and notify me if a panel does not seem to be producing.

The problem I can see is based on the device list and the json output (as well as looking on the website), I have 2 inverters producing 0W and one other producing much lower than the others (i.e. 30W compared to the others that are producing 280W).

Is there an easy way to look at the total solar produced in a day on a per panel basis and notify me if any are not working or much lower than the others?

I've had solar for 8 years and it has been working flawlessly but I don't see an easy way to do what I need without checking the data on a daily basis.

syaoran68 commented 6 months ago

since the inverters are individually sensor'd on home assistant the better way might be to have an automation fire off a notification when it detects too much of a delta between panel sensors power readings?

scottismyname commented 6 months ago

I couldn't figure out a clean way to do this in HA, but I ended up writing a program in c# that takes a snapshot each night near the end of the day. It logs the following to a database: 1) Per panel production 2) Home consumption for the day.

For each panel if the amount of power it produced compared to the average of all of the panels is less than half, it flags that panel.

It then sends me an email that shows the total production, each panels production, my consumption and how many panels are flagged for under-production