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 }}