From 2bc3ed6d74a2af7c793bde161381c63e053e6f08 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 19:34:23 +0000 Subject: [PATCH] Fronius Solar API V1: cache GetPowerFlowRealtimeData requests (#32422) --- templates/definition/meter/fronius-solarapi-v1.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/definition/meter/fronius-solarapi-v1.yaml b/templates/definition/meter/fronius-solarapi-v1.yaml index 047ee8147..4ae94c96e 100644 --- a/templates/definition/meter/fronius-solarapi-v1.yaml +++ b/templates/definition/meter/fronius-solarapi-v1.yaml @@ -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