From 0d578fd7880a6bc5bc8abce55afcf05d10ee44bd Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 11 Aug 2025 13:08:17 +0200 Subject: [PATCH] Wattsonic: add battery control (#22907) --- templates/definition/meter/wattsonic.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/templates/definition/meter/wattsonic.yaml b/templates/definition/meter/wattsonic.yaml index 7f46da1c3..c6ef310b4 100644 --- a/templates/definition/meter/wattsonic.yaml +++ b/templates/definition/meter/wattsonic.yaml @@ -5,6 +5,7 @@ products: - brand: Solinteng - brand: A-Tronix - brand: St-ems +capabilities: ["battery-control"] params: - name: usage choice: ["grid", "pv", "battery"] @@ -15,6 +16,14 @@ params: id: 247 - name: capacity advanced: true + - name: minsoc + type: int + default: 20 + advanced: true + - name: maxsoc + type: int + default: 95 + advanced: true - name: delay default: 100ms advanced: true @@ -108,5 +117,13 @@ render: | address: 43000 # SOC type: holding decode: int16 + limitsoc: + source: modbus + {{- include "modbus" . | indent 2 }} + delay: {{ .delay }} + register: + address: 52503 # min soc + type: writeholding + encoding: uint16 capacity: {{ .capacity }} # kWh {{- end }}