Skip to content

Commit

Permalink
Kostal: fix battery control (#11469)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Jan 6, 2024
1 parent 41a5dd7 commit 9e1df8f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions templates/definition/meter/kostal-plenticore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ requirements:
description:
de: |
Nur ein System kann und darf auf den Wechselrichter zugreifen!
Für die optionale Batteriesteuerung muss Modbus Bytereihenfolge auf BigEndian (Sunspec) konfiguriert sein.
en: |
Only one system may access the inverter!
For optional battery control, Modbus byte order must be set to BigEndian (Sunspec).
Only a single system may access the inverter!
params:
- name: usage
choice: ["pv", "battery"]
Expand All @@ -26,6 +24,13 @@ params:
choice: ["tcpip"]
id: 71
port: 1502
- name: endianness
description:
de: Byte-Reihenfolge (Little/Big)
en: Endianness (Little/Big)
validvalues: ["big", "little"]
default: little
advanced: true
- name: capacity
advanced: true
# battery control
Expand Down Expand Up @@ -79,7 +84,7 @@ render: |
register:
address: 1042 # limit soc
type: writemultiple
decode: float32
decode: {{ if (eq .endianness "big") }}float32{{ else }}float32s{{ end }}
capacity: {{ .capacity }} # kWh
minsoc: {{ .minsoc }} # %
maxsoc: {{ .maxsoc }} # %
Expand Down

0 comments on commit 9e1df8f

Please sign in to comment.