Kostal Plenticore Gen2: fix battery charging (#27161)

This commit is contained in:
andig 2026-02-01 14:01:26 +01:00 • committed by GitHub
parent 2671732c32
commit aea38f39a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,8 +114,9 @@ render: |
encoding: {{ if (eq .endianness "big") }}float32{{ else }}float32s{{ end }}
- case: 3 # charge
set:
{{- if .maxchargepower }}
source: const
value: {{ if .maxchargepower }}-{{ .maxchargepower }}{{ end }} # W
value: -{{ .maxchargepower }} # W
set:
source: modbus
{{- include "modbus" . | indent 10 }}
@ -123,5 +124,9 @@ render: |
address: 1034 # Battery charge power (DC) setpoint, absolute [W]
type: writemultiple
encoding: {{ if (eq .endianness "big") }}float32{{ else }}float32s{{ end }}
{{- else }}
source: error
error: ErrNotAvailable
{{- end }}
{{- include "battery-params" . }}
{{- end }}