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