Enphase: support IQ batteries (#25401)

This commit is contained in:
Matthias Grüter 2025-11-20 18:02:23 +01:00 • committed by GitHub
parent 15b732dbff
commit 5aadb01eae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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