From 3158ff16efb266581ab282ac7466a54b623723a6 Mon Sep 17 00:00:00 2001 From: FrankvdAa Date: Sun, 12 Jul 2026 10:07:55 +0200 Subject: [PATCH] Add Anker SOLIX Solarbank Max AC (#31696) --- .../meter/anker-solix-solarbank-max-ac.yaml | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 templates/definition/meter/anker-solix-solarbank-max-ac.yaml diff --git a/templates/definition/meter/anker-solix-solarbank-max-ac.yaml b/templates/definition/meter/anker-solix-solarbank-max-ac.yaml new file mode 100644 index 000000000..4059f30d8 --- /dev/null +++ b/templates/definition/meter/anker-solix-solarbank-max-ac.yaml @@ -0,0 +1,90 @@ +template: anker-solix-solarbank-max-ac +products: + - brand: Anker + description: + generic: SOLIX Solarbank Max AC +requirements: + description: + de: | + Die Modbus-TCP-Schnittstelle muss in der Anker-App freigeschaltet werden. + en: | + The Modbus TCP interface must be enabled in the Anker app. +params: + - name: usage + choice: ["grid", "pv", "battery"] + - name: modbus + choice: ["tcpip"] + port: 502 + id: 1 + - name: maxacpower + - preset: battery-params +render: | + type: custom + {{- if eq .usage "grid" }} + power: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 10012 # Grid Power (W, positive = import, negative = export) + type: input + decode: int32 + {{- end }} + {{- if eq .usage "pv" }} + power: + source: calc + add: + - source: modbus + {{- include "modbus" . | indent 6 }} + register: + address: 10002 # PV Power (W) + type: input + decode: int32 + - source: modbus + {{- include "modbus" . | indent 6 }} + register: + address: 10004 # Thirdparty PV Power (W) + type: input + decode: int32 + energy: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 10018 # Total PV Generation (kWh) + type: input + decode: uint32 + scale: 0.1 + maxacpower: {{ .maxacpower }} + {{- end }} + {{- if eq .usage "battery" }} + power: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 10008 # Battery Power (W, positive = discharging, negative = charging) + type: input + decode: int32 + energy: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 10264 # Battery Total Discharge Energy (kWh) + type: input + decode: uint32 + scale: 0.1 + returnenergy: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 10262 # Battery Total Charge Energy (kWh) + type: input + decode: uint32 + scale: 0.1 + soc: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 10014 # SOC (%) + type: input + decode: uint16 + {{- include "battery-params" . }} + {{- end }}