From 299e5b0fffadb9eaa903371854cd481fe35912c8 Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Sun, 3 Mar 2024 13:43:40 +0100 Subject: [PATCH] SAX Homespeicher: add battery control (#12462) --- templates/definition/meter/sax.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/templates/definition/meter/sax.yaml b/templates/definition/meter/sax.yaml index e6f994e57..978661fdb 100644 --- a/templates/definition/meter/sax.yaml +++ b/templates/definition/meter/sax.yaml @@ -47,4 +47,29 @@ render: | address: 46 # SOC vom Speicher (Messwert) type: holding decode: uint16 + batterymode: + source: switch + switch: + - case: 1 # normal + set: + source: const + value: 4600 # W + set: + source: modbus + {{- include "modbus" . | indent 8 }} + register: + address: 43 # Leistungsgrenzwert für Entladung + type: writesingle + decode: uint16 + - case: 2 # hold + set: + source: const + value: 0 # W + set: + source: modbus + {{- include "modbus" . | indent 8 }} + register: + address: 43 # Leistungsgrenzwert für Entladung + type: writesingle + decode: uint16 {{- end }}