Enphase: add inverters (#16625)

Return max value from two sources of production information. This allows using metering provided by either CTs or inverters, while before this commit only CT values were used.
This commit is contained in:
Ante Karamatić 2024-10-13 09:47:00 +02:00 • committed by GitHub
parent 01c2d97912
commit ee398fe6ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,7 @@ render: |
password: {{ .token }}
insecure: true
{{- end }}
jq: .production[] | select(.measurementType == "production").wNow
jq: .production | max_by(.wNow).wNow
energy:
source: http
uri: http://{{ .host }}/production.json
@ -51,7 +51,7 @@ render: |
password: {{ .token }}
insecure: true
{{- end }}
jq: .production[] | select(.measurementType == "production").whLifetime
jq: .production | max_by(.wNow).whLifetime
scale: 0.001
{{- end }}
{{- if eq .usage "battery" }}