30 lines
700 B
YAML
30 lines
700 B
YAML
template: sunspec-battery-control
|
|
products:
|
|
- description:
|
|
de: SunSpec Batterie (Model 802)
|
|
en: SunSpec Battery (Model 802)
|
|
capabilities: ["battery-control"]
|
|
group: generic
|
|
params:
|
|
- name: usage
|
|
choice: ["battery"]
|
|
- name: modbus
|
|
choice: ["tcpip", "rs485"]
|
|
- preset: battery-params
|
|
render: |
|
|
{{- if eq .usage "battery" }}
|
|
type: custom
|
|
power:
|
|
source: sunspec
|
|
{{- include "modbus" . | indent 2 }}
|
|
value: 802:W
|
|
soc:
|
|
source: sunspec
|
|
{{- include "modbus" . | indent 2 }}
|
|
value: 802:SoC
|
|
limitsoc: # model 802
|
|
source: sunspec
|
|
{{- include "modbus" . | indent 2 }}
|
|
value: 802:SoCRsvMin
|
|
{{- include "battery-params" . }}
|
|
{{- end }}
|