Skip to content

Commit

Permalink
Enphase: add inverters (#16625)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ivoks authored Oct 13, 2024
1 parent 01c2d97 commit ee398fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/definition/meter/enphase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" }}
Expand Down

0 comments on commit ee398fe

Please sign in to comment.