From 56eccb08ea92fb1a66ee349c229c15b4c2b0a55d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Sch=C3=B6ner?= <88542458+Chriner@users.noreply.github.com> Date: Sun, 23 Aug 2026 21:14:20 +0200 Subject: [PATCH] Sungrow: add grid and battery returnenergy (#33129) --- templates/definition/meter/sungrow-hybrid.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/templates/definition/meter/sungrow-hybrid.yaml b/templates/definition/meter/sungrow-hybrid.yaml index 0cd43d0c0..96df3d55b 100644 --- a/templates/definition/meter/sungrow-hybrid.yaml +++ b/templates/definition/meter/sungrow-hybrid.yaml @@ -52,6 +52,14 @@ render: | type: input decode: uint32s scale: 0.1 + returnenergy: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 13045 # Total export energy, 0.1kWh + type: input + decode: uint32s + scale: 0.1 currents: - source: calc div: @@ -162,6 +170,14 @@ render: | type: input decode: uint32s scale: 0.1 + returnenergy: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 13040 # Total Charge Energy (Accumulated charge of batteries), 0.1kWh + type: input + decode: uint32s + scale: 0.1 soc: source: modbus {{- include "modbus" . | indent 2 }}