chore: fix missing battery params

This commit is contained in:
andig 2026-01-18 12:57:34 +01:00
parent 79c53ae834
commit dc1b84b7fd
3 changed files with 6 additions and 4 deletions

View file

@ -16,4 +16,6 @@ render: |
type: bosch-bpt
usage: {{ .usage }}
uri: {{ .uri }}
capacity: {{ .capacity }} # kWh
{{- if eq .usage "battery" }}
{{- include "battery-params" . }}
{{- end }}

View file

@ -87,5 +87,5 @@ render: |
address: 4146 # Batterie-SOC in %
type: holding
decode: uint16
capacity: {{ .capacity }} # Nutzbare Kapazität in kWh | Net capacity (kWh)
{{- include "battery-params" . }}
{{- end }}

View file

@ -20,7 +20,7 @@ params:
render: |
type: sma
uri: {{ .host }} # IP address or hostname
{{- if .password }}
password: {{ .password }} # optional
{{- if eq .usage "battery" }}
{{- include "battery-params" . }}
{{- end }}
capacity: {{ .capacity }} # kWh