Sonnenbatterie: cache repeated http status requests (#32797)
This commit is contained in:
parent
63e18774b0
commit
d3d8950096
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue