Enphase: add voltages (#29795)
This commit is contained in:
parent
1e9bc6cd5d
commit
b1d5f576ea
1 changed files with 68 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue