OpenEMS: add cache (#32402)

This commit is contained in:
andig 2026-08-01 17:27:18 +02:00 • committed by GitHub
parent f4a8708bfb
commit 0d024070b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,12 +55,15 @@ params:
en: FEMS/OpenEMS standard 60s
usages: ["battery"]
- preset: battery-params
- name: cache
default: 1s
render: |
type: custom
{{- if eq .usage "grid" }}
power:
source: http
uri: http://{{ .host }}/rest/channel/_sum/GridActivePower
cache: {{ .cache }}
auth:
type: basic
user: x
@ -69,6 +72,7 @@ render: |
energy:
source: http
uri: http://{{ .host }}/rest/channel/_sum/GridBuyActiveEnergy
cache: {{ .cache }}
auth:
type: basic
user: x
@ -79,6 +83,7 @@ render: |
power:
source: http
uri: http://{{ .host }}/rest/channel/_sum/ProductionActivePower
cache: {{ .cache }}
auth:
type: basic
user: x
@ -87,6 +92,7 @@ render: |
energy:
source: http
uri: http://{{ .host }}/rest/channel/_sum/ProductionActiveEnergy
cache: {{ .cache }}
auth:
type: basic
user: x
@ -98,6 +104,7 @@ render: |
power:
source: http
uri: http://{{ .host }}/rest/channel/_sum/EssDischargePower
cache: {{ .cache }}
auth:
type: basic
user: x
@ -106,6 +113,7 @@ render: |
soc:
source: http
uri: http://{{ .host }}/rest/channel/_sum/EssSoc
cache: {{ .cache }}
auth:
type: basic
user: x