PowerOpti: add grid energy (#32281)

This commit is contained in:
VolkerK62 2026-07-30 08:06:20 +02:00 • committed by GitHub
parent 2664c87ed1
commit e6134683ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,8 @@ params:
help:
en: Id in case of multiple PowerOpti
de: Id im Falle mehrerer PowerOpti
- name: cache
default: 1s
render: |
type: custom
power:
@ -27,6 +29,29 @@ render: |
user: {{ .user }}
password: {{ .password }}
jq: .Watt
cache: {{ .cache }}
{{- if eq .usage "pv" }}
scale: -1
{{- end }}
{{- if eq .usage "grid" }}
energy:
source: http
uri: https://backend.powerfox.energy/api/2.0/my/{{ .id }}/current
auth:
type: basic
user: {{ .user }}
password: {{ .password }}
jq: .A_Plus
scale: 0.001
cache: {{ .cache }}
returnenergy:
source: http
uri: https://backend.powerfox.energy/api/2.0/my/{{ .id }}/current
auth:
type: basic
user: {{ .user }}
password: {{ .password }}
jq: .A_Minus
scale: 0.001
cache: {{ .cache }}
{{- end }}