OpenEMS: add cache (#32402)
This commit is contained in:
parent
f4a8708bfb
commit
0d024070b8
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue