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:
parent
01c2d97912
commit
ee398fe6ad
1 changed files with 2 additions and 2 deletions
|
|
@ -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" }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue