evcc-io/templates/definition/meter/solax-x3.yaml
2022-03-29 15:54:02 +02:00

68 lines
1.8 KiB
YAML

template: solax-x3
products:
- brand: Solax
description:
generic: Hybrid X3
requirements:
description:
de: Der Solax Inverter muss via Ethernet an das lokale Netzwerk angeschlossen sein.
en: The Solax inverter has to be connected to the local network via ethernet.
guidedsetup:
enable: true
params:
- name: usage
choice: ["grid", "pv", "battery"]
- name: host
required: true
example: 192.0.2.2
- name: port
required: true
default: 502
render: |
type: custom
power:
{{- if eq .usage "grid" }}
source: modbus
uri: {{ .host }}:{{ .port }}
id: 1
register: # manual non-sunspec register configuration
address: 192 #(see Hybrid.X1.X3-G3.ModbusTCP.RTU.V3.21-.English.pdf)
type: input
decode: int32s
scale: -1
{{- end }}
{{- if eq .usage "pv" }}
source: calc
add:
- source: modbus
uri: {{ .host }}:{{ .port }}
id: 1
register: # manual non-sunspec register configuration
address: 10 #(see Hybrid.X1.X3-G3.ModbusTCP.RTU.V3.21-.English.pdf)
type: input
decode: uint16
- source: modbus
uri: {{ .host }}:{{ .port }}
id: 1
register: # manual non-sunspec register configuration
address: 11 #(see Hybrid.X1.X3-G3.ModbusTCP.RTU.V3.21-.English.pdf)
type: input
decode: uint16
{{- end }}
{{- if eq .usage "battery" }}
source: modbus
uri: {{ .host }}:{{ .port }}
id: 1
register: # manual non-sunspec register configuration
address: 22 #(see Hybrid.X1.X3-G3.ModbusTCP.RTU.V3.21-.English.pdf)
type: input
decode: int16
soc:
source: modbus
uri: {{ .host }}:{{ .port }}
id: 1
register:
address: 28 #(see Hybrid.X1.X3-G3.ModbusTCP.RTU.V3.21-.English.pdf)
type: input
decode: Uint16
{{- end }}