Skip to content

Commit

Permalink
Enphase: support CT (evcc-io#17447)
Browse files Browse the repository at this point in the history
If enabled, use CT as source for PV data. Otherwise use data coming from inverters.
  • Loading branch information
ivoks authored Dec 1, 2024
1 parent a35a705 commit 3b58b49
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 | max_by(.wNow).wNow
jq: if .production[] | select(.measurementType == "production").activeCount >= 1 then .production[] | select(.measurementType == "production").wNow else .production[] | select(.type == "inverters").wNow end
energy:
source: http
uri: http://{{ .host }}/production.json
Expand All @@ -51,7 +51,7 @@ render: |
password: {{ .token }}
insecure: true
{{- end }}
jq: .production | max_by(.wNow).whLifetime
jq: if .production[] | select(.measurementType == "production").activeCount >= 1 then .production[] | select(.measurementType == "production").whLifetime else .production[] | select(.type == "inverters").whLifetime end
scale: 0.001
{{- end }}
{{- if eq .usage "battery" }}
Expand Down

0 comments on commit 3b58b49

Please sign in to comment.