176 lines
3.5 KiB
YAML
176 lines
3.5 KiB
YAML
template: sunspec-inverter
|
|
products:
|
|
- description:
|
|
de: SunSpec Wechselrichter
|
|
en: SunSpec Inverter
|
|
group: generic
|
|
params:
|
|
- name: usage
|
|
choice: ["grid", "pv", "battery"]
|
|
- name: modbus
|
|
choice: ["tcpip", "rs485"]
|
|
- preset: battery-params
|
|
render: |
|
|
type: custom
|
|
{{- if eq .usage "grid" }}
|
|
# sunspec model 20x (int+sf)/ 21x (float) meter
|
|
power:
|
|
source: sunspec
|
|
{{- include "modbus" . | indent 2 }}
|
|
value:
|
|
- 201:W
|
|
- 211:W
|
|
- 202:W
|
|
- 212:W
|
|
- 203:W
|
|
- 213:W
|
|
energy:
|
|
source: sunspec
|
|
{{- include "modbus" . | indent 2 }}
|
|
value:
|
|
- 201:TotWhImp
|
|
- 211:TotWhImp
|
|
- 202:TotWhImp
|
|
- 212:TotWhImp
|
|
- 203:TotWhImp
|
|
- 213:TotWhImp
|
|
scale: 0.001
|
|
returnenergy:
|
|
source: sunspec
|
|
{{- include "modbus" . | indent 2 }}
|
|
value:
|
|
- 201:TotWhExp
|
|
- 211:TotWhExp
|
|
- 202:TotWhExp
|
|
- 212:TotWhExp
|
|
- 203:TotWhExp
|
|
- 213:TotWhExp
|
|
scale: 0.001
|
|
currents:
|
|
- source: sunspec
|
|
{{- include "modbus" . | indent 4 }}
|
|
value:
|
|
- 201:AphA
|
|
- 211:AphA
|
|
- 202:AphA
|
|
- 212:AphA
|
|
- 203:AphA
|
|
- 213:AphA
|
|
- source: sunspec
|
|
{{- include "modbus" . | indent 4 }}
|
|
value:
|
|
- 201:AphB
|
|
- 211:AphB
|
|
- 202:AphB
|
|
- 212:AphB
|
|
- 203:AphB
|
|
- 213:AphB
|
|
- source: sunspec
|
|
{{- include "modbus" . | indent 4 }}
|
|
value:
|
|
- 201:AphC
|
|
- 211:AphC
|
|
- 202:AphC
|
|
- 212:AphC
|
|
- 203:AphC
|
|
- 213:AphC
|
|
voltages:
|
|
- source: sunspec
|
|
{{- include "modbus" . | indent 4 }}
|
|
value:
|
|
- 201:PhVphA
|
|
- 211:PhVphA
|
|
- 202:PhVphA
|
|
- 212:PhVphA
|
|
- 203:PhVphA
|
|
- 213:PhVphA
|
|
- source: sunspec
|
|
{{- include "modbus" . | indent 4 }}
|
|
value:
|
|
- 201:PhVphB
|
|
- 211:PhVphB
|
|
- 202:PhVphB
|
|
- 212:PhVphB
|
|
- 203:PhVphB
|
|
- 213:PhVphB
|
|
- source: sunspec
|
|
{{- include "modbus" . | indent 4 }}
|
|
value:
|
|
- 201:PhVphC
|
|
- 211:PhVphC
|
|
- 202:PhVphC
|
|
- 212:PhVphC
|
|
- 203:PhVphC
|
|
- 213:PhVphC
|
|
powers:
|
|
- source: sunspec
|
|
{{- include "modbus" . | indent 4 }}
|
|
value:
|
|
- 201:WphA
|
|
- 211:WphA
|
|
- 202:WphA
|
|
- 212:WphA
|
|
- 203:WphA
|
|
- 213:WphA
|
|
- source: sunspec
|
|
{{- include "modbus" . | indent 4 }}
|
|
value:
|
|
- 201:WphB
|
|
- 211:WphB
|
|
- 202:WphB
|
|
- 212:WphB
|
|
- 203:WphB
|
|
- 213:WphB
|
|
- source: sunspec
|
|
{{- include "modbus" . | indent 4 }}
|
|
value:
|
|
- 201:WphC
|
|
- 211:WphC
|
|
- 202:WphC
|
|
- 212:WphC
|
|
- 203:WphC
|
|
- 213:WphC
|
|
{{- end }}
|
|
{{- if eq .usage "pv" }}
|
|
power:
|
|
source: sunspec
|
|
{{- include "modbus" . | indent 2 }}
|
|
value:
|
|
- 101:W
|
|
- 111:W
|
|
- 102:W
|
|
- 112:W
|
|
- 103:W
|
|
- 113:W
|
|
energy:
|
|
source: sunspec
|
|
{{- include "modbus" . | indent 2 }}
|
|
value:
|
|
- 101:WH
|
|
- 111:WH
|
|
- 102:WH
|
|
- 112:WH
|
|
- 103:WH
|
|
- 113:WH
|
|
scale: 0.001
|
|
{{- include "sunspec-maxacpower" . }}
|
|
{{- end }}
|
|
{{- if eq .usage "battery" }}
|
|
power:
|
|
source: sunspec
|
|
{{- include "modbus" . | indent 2 }}
|
|
value:
|
|
- 101:W
|
|
- 111:W
|
|
- 102:W
|
|
- 112:W
|
|
- 103:W
|
|
- 113:W
|
|
soc:
|
|
source: sunspec
|
|
{{- include "modbus" . | indent 2 }}
|
|
value:
|
|
- 124:ChaState
|
|
- 802:SoC
|
|
{{- include "battery-params" . }}
|
|
{{- end }}
|