From 6a0cdbb72434cbe8e07234f4a29907b2d363e605 Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Thu, 13 Nov 2025 21:51:43 +0100 Subject: [PATCH] Solis Hybris S: fix battery power (#24024) --- .../definition/meter/solis-hybrid-s.yaml | 26 +++++-------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/templates/definition/meter/solis-hybrid-s.yaml b/templates/definition/meter/solis-hybrid-s.yaml index 9df9cece8..2c8045ef4 100644 --- a/templates/definition/meter/solis-hybrid-s.yaml +++ b/templates/definition/meter/solis-hybrid-s.yaml @@ -115,25 +115,13 @@ render: | {{- end }} {{- if eq .usage "battery" }} power: - 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 + source: modbus + {{- include "modbus" . | indent 2 }} + register: + type: input + address: 33149 # Battery power + decode: int32 + scale: -1 energy: source: modbus {{- include "modbus" . | indent 2 }}