evcc-io/templates/definition/meter/sigenergy.yaml
2025-10-15 07:52:18 +00:00

127 lines
3 KiB
YAML

template: sigenergy
products:
- brand: Sigenergy
description:
generic: Sigen Hybrid/Sigen PV Max/SigenStore EC
capabilities: ["battery-control"]
requirements:
description:
de: Der Elektriker muss die Funktion Modbus via TCP/IP in seiner Version der Sigen App aktivieren bevor diese Konfiguration funktional ist. Diese Option ist in der mySigen App für Kunden nicht verfügbar.
en: The electrician needs to enable the Modbus via TCP/IP in their service app before the setup is functional. This is not available in the customers mySigen app.
params:
- name: usage
choice: ["grid", "pv", "battery"]
allinone: true
- name: host
- name: port
default: 502
- name: id
default: 1
- name: capacity
advanced: true
- name: minsoc
type: int
advanced: true
- name: maxsoc
type: int
advanced: true
render: |
type: custom
{{- if eq .usage "grid" }}
power:
source: modbus
uri: {{ .host }}:{{ .port }}
id: 247
register:
address: 30005 # [Grid sensor] Active power
type: holding
decode: int32
energy:
source: modbus
uri: {{ .host }}:{{ .port }}
id: {{ .id }}
register:
address: 30562 # Accumulated import energy
type: holding
decode: uint64
scale: 0.01
currents:
- source: modbus
uri: {{ .host }}:{{ .port }}
id: {{ .id }}
register:
address: 31017 # Phase A current
type: holding
decode: int32
scale: 0.01
- source: modbus
uri: {{ .host }}:{{ .port }}
id: {{ .id }}
register:
address: 31019 # Phase B current
type: holding
decode: int32
scale: 0.01
- source: modbus
uri: {{ .host }}:{{ .port }}
id: {{ .id }}
register:
address: 31021 # Phase C current
type: holding
decode: int32
scale: 0.01
{{- end }}
{{- if eq .usage "pv" }}
power:
source: modbus
uri: {{ .host }}:{{ .port }}
id: 247
register:
type: holding
address: 30035 # Photovoltaic power
decode: int32
{{- end }}
{{- if eq .usage "battery" }}
power:
source: modbus
uri: {{ .host }}:{{ .port }}
id: 247
register:
type: holding
address: 30037 # Battery power
decode: int32
scale: -1
energy:
source: modbus
uri: {{ .host }}:{{ .port }}
id: {{ .id }}
register:
address: 30574 # Battery accumulated discharge energy
type: holding
decode: uint64
scale: 0.01
soc:
source: modbus
uri: {{ .host }}:{{ .port }}
id: 247
register:
address: 30014 # Energy storage system SOC
type: holding
decode: uint16
scale: 0.1
limitsoc:
source: convert
convert: float2int
set:
source: modbus
uri: {{ .host }}:{{ .port }}
id: 247
register:
address: 40048 # Discharge Cut-Off SoC
type: writeholding
decode: uint16
scale: 10
capacity: {{ .capacity }} # kWh
minsoc: {{ .minsoc }} # %
maxsoc: {{ .maxsoc }} # %
{{- end }}