evcc-io/templates/definition/meter/kostal-plenticore.yaml
andig 7dabe4b0b5
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Publish Github & APT release (push) Has been cancelled
Kostal Plenticore: fix template
2022-03-21 16:38:26 +01:00

42 lines
946 B
YAML

template: kostal-plenticore
products:
- brand: Kostal
description:
generic: Plenticore Hybrid
guidedsetup:
enable: true
linked:
- template: kostal-ksem-inverter
usage: grid
- template: kostal-ksem
usage: grid
excludetemplate: kostal-ksem-inverter
params:
- name: usage
choice: [ "pv", "battery" ]
- name: modbus
choice: [ "tcpip" ]
id: 71
port: 1502
render: |
{{- if eq .usage "pv" }}
type: custom
power:
source: calc
add: # The add plugin sums up both string values
- source: modbus
model: sunspec
{{ include "modbus" . | indent 4 }}
value: 160:1:DCW # string 1
- source: modbus
model: sunspec
{{ include "modbus" . | indent 4 }}
value: 160:2:DCW # string 2
{{- end }}
{{- if eq .usage "battery" }}
type: modbus
{{ include "modbus" . }}
model: sunspec
power: 802:W # sunspec model 802 battery
soc: 802:SoC # sunspec model 802 battery
{{- end }}