Fronius Solar API V1: cache GetPowerFlowRealtimeData requests (#32422)
This commit is contained in:
parent
b301bb5c61
commit
2bc3ed6d74
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue