Kostal Plenticore Gen2: fix battery charging (#27161)
This commit is contained in:
parent
2671732c32
commit
aea38f39a1
1 changed files with 6 additions and 1 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue