diff --git a/templates/definition/meter/enphase.yaml b/templates/definition/meter/enphase.yaml index 1b646cb24..12b497ad0 100644 --- a/templates/definition/meter/enphase.yaml +++ b/templates/definition/meter/enphase.yaml @@ -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" }}