jesserizzo / envoy_reader

MIT License
37 stars 26 forks source link

Add number of inverters; total and reporting #84

Open dcmartin opened 2 years ago

dcmartin commented 2 years ago

Use Case

The existing API does not provide for number of inverters; total and number reporting. As inverters might fail over time, being able to track the number reporting versus the total woud enable identifying potential bad inverters.

Solution

Add regexp for extraction from HTML as well as calcuate from JSON depending on version of API; for example the number of inverters from a LEGACY gateway is available:

curl -k -v -L 192.168.1.15/home| egrep -A2 "Number of Microinverters" | egrep -v '<tr>' | sed 's@.*<td>\([0-9]*\)</td>.*@\1@' | while read; do echo -n "${REPLY} "; done

Alternatives

NA

rct commented 2 years ago

I would like to see a sensor (or an attribute) that tracks the number of inverters current producing power.

I've cobbled this together in a template sensor, but it is cumbersome with a lot of microinverters.

I use this for monitoring and alerting. Inverters can take themself offline for a period if there are power hits to the grid. Generally they automatically reset. On rare occasions I've seen them not come back without an overnight reset or a power cycle.