Fronius Solar API V1: cache GetPowerFlowRealtimeData requests (#32422)

This commit is contained in:
github-actions[bot] 2026-08-01 19:34:23 +00:00 • committed by GitHub
parent b301bb5c61
commit 2bc3ed6d74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,11 +42,14 @@ params:
de: Firmware Versionen ab 1.36.5-1 erfordern /api/config.
en: Firmware starting with 1.36.5-1 requires /api/config.
- preset: battery-params
- name: cache
default: 1s
render: |
type: custom
power:
source: http
uri: http://{{ .host }}/solar_api/v1/GetPowerFlowRealtimeData.fcgi
cache: {{ .cache }}
{{- if eq .usage "grid" }}
jq: if .Body.Data.Site.P_Grid == null then 0 else .Body.Data.Site.P_Grid end
{{- end }}
@ -59,6 +62,7 @@ render: |
uri: http://{{ .host }}/solar_api/v1/GetPowerFlowRealtimeData.fcgi
jq: if .Body.Data.Site.E_Total == null then 0 else .Body.Data.Site.E_Total end
scale: 0.001
cache: {{ .cache }}
{{- end }}
{{- if eq .usage "battery" }}
jq: if .Body.Data.Site.P_Akku == null then 0 else .Body.Data.Site.P_Akku end
@ -66,6 +70,7 @@ render: |
source: http
uri: http://{{ .host }}/solar_api/v1/GetPowerFlowRealtimeData.fcgi
jq: .Body.Data.Inverters."1".SOC
cache: {{ .cache }}
{{- if .password }}
batterymode:
source: switch