From afaf409914db08ab578fac2e9ade52c90baa1ffa Mon Sep 17 00:00:00 2001 From: Wim Haanstra Date: Mon, 27 Apr 2026 17:55:32 +0200 Subject: [PATCH] Add Afore hybrid inverter (#29197) --- templates/definition/meter/afore-hybrid.yaml | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 templates/definition/meter/afore-hybrid.yaml diff --git a/templates/definition/meter/afore-hybrid.yaml b/templates/definition/meter/afore-hybrid.yaml new file mode 100644 index 000000000..2c43d13c0 --- /dev/null +++ b/templates/definition/meter/afore-hybrid.yaml @@ -0,0 +1,46 @@ +template: afore-hybrid +products: + - brand: Afore + description: + generic: Hybrid Inverter +requirements: + description: + en: | + The inverter's RS485 port must be switched to "Modbus" protocol + in the inverter menu. + de: | + Der RS485-Port des Wechselrichters muss im Wechselrichtermenü auf + das "Modbus"-Protokoll umgestellt werden. +params: + - name: usage + choice: ["battery"] + - name: modbus + choice: ["tcpip"] + port: 502 + id: 1 + - preset: battery-params +render: | + type: custom + power: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 2007 # Battery total power (S32, W, positive = discharging) + type: input + decode: int32 + soc: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 2002 # Battery SoC (U16, %) + type: input + decode: uint16 + energy: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 2013 # Battery total discharge (U32, 0.1 kWh) + type: input + decode: uint32 + scale: 0.1 + {{- include "battery-params" . }}