From 0070476917ede263e2a1c64cb984ff83a8fc1a23 Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Sun, 30 Nov 2025 13:14:19 +0100 Subject: [PATCH] Revert "Solis Hybris S: fix battery power" (#25696) --- .../definition/meter/solis-hybrid-s.yaml | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/templates/definition/meter/solis-hybrid-s.yaml b/templates/definition/meter/solis-hybrid-s.yaml index cdd232248..468162173 100644 --- a/templates/definition/meter/solis-hybrid-s.yaml +++ b/templates/definition/meter/solis-hybrid-s.yaml @@ -118,13 +118,25 @@ render: | {{- end }} {{- if eq .usage "battery" }} power: - source: modbus - {{- include "modbus" . | indent 2 }} - register: - type: input - address: 33149 # Battery power - decode: int32 - scale: -1 + source: calc + mul: + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + type: input + address: 33149 # Battery power + decode: uint32 + - source: calc + add: + - source: modbus + {{- include "modbus" . | indent 6 }} + register: + type: input + address: 33135 # Battery current direction + decode: uint16 # 0:charge, 1:discharge + scale: 2 + - source: const + value: -1 energy: source: modbus {{- include "modbus" . | indent 2 }}