Sonnenbatterie: cache repeated http status requests (#32797)

This commit is contained in:
github-actions[bot] 2026-08-13 09:49:41 +00:00 • committed by GitHub
parent 63e18774b0
commit d3d8950096
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,8 @@ params:
choice: ["self-consumption", "time-of-use"]
default: self-consumption
required: true
- name: cache
default: 1s
- name: chargepower
deprecated: true
render: |
@ -41,6 +43,7 @@ render: |
power:
source: http
uri: http://{{ .host }}:{{ .port }}/api/v1/status
cache: {{ .cache }}
{{- if eq .usage "grid" }}
jq: .GridFeedIn_W
scale: -1 # reverse direction
@ -53,6 +56,7 @@ render: |
soc:
source: http
uri: http://{{ .host }}:{{ .port }}/api/v1/status
cache: {{ .cache }}
jq: .USOC
{{- if .token }}
batterymode: