From 958650db9de8d6779d236dde5330a145a47cd0da Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Mon, 16 Feb 2026 18:05:25 +0100 Subject: [PATCH] Add Solax X3 MIC/PRO G2 (#27419) --- templates/definition/meter/solax-g2.yaml | 104 +++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 templates/definition/meter/solax-g2.yaml diff --git a/templates/definition/meter/solax-g2.yaml b/templates/definition/meter/solax-g2.yaml new file mode 100644 index 000000000..6c529b082 --- /dev/null +++ b/templates/definition/meter/solax-g2.yaml @@ -0,0 +1,104 @@ +template: solax-g2 +products: + - brand: Solax + description: + generic: X3-MIC G2 + - brand: Solax + description: + generic: X3-PRO G2 + - brand: Qcells + description: + generic: Q.VOLT P5T-X + - brand: Qcells + description: + generic: Q.VOLT P17T-X +params: + - name: usage + choice: ["grid", "pv"] + - name: modbus + choice: ["rs485", "tcpip"] + baudrate: 9600 + - name: maxacpower +render: | + type: custom + {{- if eq .usage "grid" }} + power: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 1083 # 0x43B Grid_Power + type: input + decode: int32 + scale: -1 + energy: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 1087 # 0x43F Consume Energy + type: input + decode: uint32 + scale: 0.01 + {{- end }} + {{- if eq .usage "pv" }} + power: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 1038 # 0x40E Pac + type: input + decode: uint16 + scale: 1 + energy: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 1059 # 0x423 yield_total + type: input + decode: uint32 + scale: 0.1 + currents: + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 1034 # 0x40A Iac_R + type: input + decode: uint16 + scale: 0.1 + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 1035 # 0x40B Iac_S + type: input + decode: uint16 + scale: 0.1 + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 1036 # 0x40C Iac_T + type: input + decode: uint16 + scale: 0.1 + voltages: + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 1028 # 0x404 Vac_R + type: input + decode: uint16 + scale: 0.1 + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 1029 # 0x405 Vac_S + type: input + decode: uint16 + scale: 0.1 + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 1030 # 0x406 Vac_T + type: input + decode: uint16 + scale: 0.1 + maxacpower: {{ .maxacpower }} # W + {{- end }}