Enphase: support IQ batteries (#25401)
This commit is contained in:
parent
15b732dbff
commit
5aadb01eae
1 changed files with 18 additions and 3 deletions
|
|
@ -4,9 +4,6 @@ products:
|
|||
description:
|
||||
generic: IQ Envoy
|
||||
requirements:
|
||||
description:
|
||||
de: 'Als Batteriespeicher werden seitens der Enphase-API derzeit nur die Batterien vom Typ "AC Battery" unterstützt.'
|
||||
en: 'Only batteries of type "AC Battery" are currently supported by Enphase-API.'
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["grid", "pv", "battery"]
|
||||
|
|
@ -23,6 +20,16 @@ params:
|
|||
- name: cache
|
||||
advanced: true
|
||||
default: 1s
|
||||
- name: battery_type
|
||||
description:
|
||||
en: "Enphase Battery Type (AC or IQ)"
|
||||
de: "Enphase Batterietyp (AC oder IQ)"
|
||||
help:
|
||||
en: "Select 'iq' for new Enphase IQ Batteries. Leave at default 'ac' for older generation AC Batteries."
|
||||
de: "Wähle 'iq' falls die neuere 'IQ Battery' Generation installiert ist. Standardeinstellung 'ac' für die ältere 'AC Battery' Generation."
|
||||
default: ac
|
||||
choice: ["ac", "iq"]
|
||||
advanced: true
|
||||
render: |
|
||||
type: custom
|
||||
{{- if eq .usage "grid" }}
|
||||
|
|
@ -128,7 +135,11 @@ render: |
|
|||
{{- if eq .usage "battery" }}
|
||||
power:
|
||||
source: http
|
||||
{{- if eq .battery_type "iq" }}
|
||||
uri: {{ .schema }}://{{ .host }}/ivp/livedata/status
|
||||
{{- else }}
|
||||
uri: {{ .schema }}://{{ .host }}/production.json?details=1
|
||||
{{- end}}
|
||||
{{- if .token }}
|
||||
auth:
|
||||
type: bearer
|
||||
|
|
@ -136,7 +147,11 @@ render: |
|
|||
insecure: true
|
||||
{{- end }}
|
||||
cache: {{ .cache }}
|
||||
{{- if eq .battery_type "iq" }}
|
||||
jq: ((.meters.storage.agg_p_mw // 0) / 1000 | round)
|
||||
{{- else }}
|
||||
jq: .storage[] | .wNow
|
||||
{{- end}}
|
||||
soc:
|
||||
source: http
|
||||
uri: {{ .schema }}://{{ .host }}/ivp/ensemble/inventory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue