chore: minor

This commit is contained in:
andig 2025-12-13 10:23:33 +01:00
parent 4d859a6880
commit b4a0d2d0a0
2 changed files with 12 additions and 6 deletions

View file

@ -11,16 +11,19 @@ params:
required: true
- name: capacity
required: true
- name: cache
advanced: true
default: 1s
render: |
type: custom
power:
source: http
uri: http://{{ .host }}/properties/report
jq: .properties.packInputPower - .properties.outputPackPower
cache: 1s
cache: {{ .cache }}
soc:
source: http
uri: http://{{ .host }}/properties/report
jq: .properties.electricLevel
cache: 1s
cache: {{ .cache }}
capacity: {{ .capacity }}

View file

@ -11,6 +11,9 @@ params:
default: 1.92 # kWh
- name: maxacpower
default: 800 # W
- name: cache
advanced: true
default: 1s
render: |
type: custom
{{- if eq .usage "grid" }}
@ -18,14 +21,14 @@ render: |
source: http
uri: http://{{ .host }}/properties/report
jq: .properties.energyPower
cache: 1s
cache: {{ .cache }}
{{- end }}
{{- if eq .usage "pv" }}
power:
source: http
uri: http://{{ .host }}/properties/report
jq: .properties.solarInputPower
cache: 1s
cache: {{ .cache }}
maxacpower: {{ .maxacpower }}
{{- end }}
{{- if eq .usage "battery" }}
@ -33,11 +36,11 @@ render: |
source: http
uri: http://{{ .host }}/properties/report
jq: .properties.packInputPower - .properties.outputPackPower
cache: 1s
cache: {{ .cache }}
soc:
source: http
uri: http://{{ .host }}/properties/report
jq: .properties.electricLevel
cache: 1s
cache: {{ .cache }}
capacity: {{ .capacity }} # kWh
{{- end }}