Enphase: add voltages (#29795)

This commit is contained in:
FrankvdAa 2026-05-10 11:05:16 +02:00 • committed by GitHub
parent 1e9bc6cd5d
commit b1d5f576ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,6 +47,40 @@ render: |
cache: {{ .cache }}
timeout: {{ .timeout }}
jq: .consumption[] | select(.measurementType == "net-consumption").wNow
voltages:
- source: http
uri: {{ .schema }}://{{ .host }}/production.json?details=1
{{- if .token }}
auth:
type: bearer
token: {{ .token }}
insecure: true
{{- end }}
cache: {{ .cache }}
timeout: {{ .timeout }}
jq: if (( .consumption[] | select(.measurementType == "net-consumption").activeCount >= 1 ) and ( .consumption[] | select(.measurementType == "net-consumption").lines | length >= 1 )) then .consumption[] | select(.measurementType == "net-consumption").lines[0].rmsVoltage else 0 end
- source: http
uri: {{ .schema }}://{{ .host }}/production.json?details=1
{{- if .token }}
auth:
type: bearer
token: {{ .token }}
insecure: true
{{- end }}
cache: {{ .cache }}
timeout: {{ .timeout }}
jq: if (( .consumption[] | select(.measurementType == "net-consumption").activeCount >= 1 ) and ( .consumption[] | select(.measurementType == "net-consumption").lines | length >= 2 )) then .consumption[] | select(.measurementType == "net-consumption").lines[1].rmsVoltage else 0 end
- source: http
uri: {{ .schema }}://{{ .host }}/production.json?details=1
{{- if .token }}
auth:
type: bearer
token: {{ .token }}
insecure: true
{{- end }}
cache: {{ .cache }}
timeout: {{ .timeout }}
jq: if (( .consumption[] | select(.measurementType == "net-consumption").activeCount >= 1 ) and ( .consumption[] | select(.measurementType == "net-consumption").lines | length >= 3 )) then .consumption[] | select(.measurementType == "net-consumption").lines[2].rmsVoltage else 0 end
currents:
- source: http
uri: {{ .schema }}://{{ .host }}/production.json?details=1
@ -108,6 +142,40 @@ render: |
timeout: {{ .timeout }}
jq: if (.production | length) > 1 and (.production[] | select(.measurementType == "production").activeCount >= 1) then .production[] | select(.measurementType == "production").whLifetime else .production[] | select(.type == "inverters").whLifetime end
scale: 0.001
voltages:
- source: http
uri: {{ .schema }}://{{ .host }}/production.json?details=1
{{- if .token }}
auth:
type: bearer
token: {{ .token }}
insecure: true
{{- end }}
cache: {{ .cache }}
timeout: {{ .timeout }}
jq: if (( .production[] | select(.measurementType == "production").activeCount >= 1 ) and ( .production[] | select(.measurementType == "production").lines | length >= 1 )) then .production[] | select(.measurementType == "production").lines[0].rmsVoltage else 0 end
- source: http
uri: {{ .schema }}://{{ .host }}/production.json?details=1
{{- if .token }}
auth:
type: bearer
token: {{ .token }}
insecure: true
{{- end }}
cache: {{ .cache }}
timeout: {{ .timeout }}
jq: if (( .production[] | select(.measurementType == "production").activeCount >= 1 ) and ( .production[] | select(.measurementType == "production").lines | length >= 2 )) then .production[] | select(.measurementType == "production").lines[1].rmsVoltage else 0 end
- source: http
uri: {{ .schema }}://{{ .host }}/production.json?details=1
{{- if .token }}
auth:
type: bearer
token: {{ .token }}
insecure: true
{{- end }}
cache: {{ .cache }}
timeout: {{ .timeout }}
jq: if (( .production[] | select(.measurementType == "production").activeCount >= 1 ) and ( .production[] | select(.measurementType == "production").lines | length >= 3 )) then .production[] | select(.measurementType == "production").lines[2].rmsVoltage else 0 end
currents:
- source: http
uri: {{ .schema }}://{{ .host }}/production.json?details=1