From 76601597be190bbf66dfc83606b885e548225b05 Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Sun, 10 Mar 2024 22:10:03 +0100 Subject: [PATCH] GoodWe-Hybrid: fix registers (#12854) --- templates/definition/meter/goodwe-hybrid.yaml | 42 +++++-------------- 1 file changed, 11 insertions(+), 31 deletions(-) diff --git a/templates/definition/meter/goodwe-hybrid.yaml b/templates/definition/meter/goodwe-hybrid.yaml index 4189506fb..1c69d86d0 100644 --- a/templates/definition/meter/goodwe-hybrid.yaml +++ b/templates/definition/meter/goodwe-hybrid.yaml @@ -34,37 +34,17 @@ render: | {{- end }} {{- if eq .usage "pv" }} power: - source: calc - add: - - source: modbus - {{- include "modbus" . | indent 4 }} - register: # manual non-sunspec register configuration - address: 35105 # Ppv1 PV1 Power - type: holding - decode: uint32nan - - source: modbus - {{- include "modbus" . | indent 4 }} - register: # manual non-sunspec register configuration - address: 35109 # Ppv2 PV2 Power - type: holding - decode: uint32nan - - source: modbus - {{- include "modbus" . | indent 4 }} - register: # manual non-sunspec register configuration - address: 35113 # Ppv3 PV3 Power - type: holding - decode: uint32nan - - source: modbus - {{- include "modbus" . | indent 4 }} - register: # manual non-sunspec register configuration - address: 35117 # Ppv4 PV4 Power - type: holding - decode: uint32nan + source: modbus + {{- include "modbus" . | indent 2 }} + register: # manual non-sunspec register configuration + address: 35301 # PV Total Power + type: holding + decode: uint32nan energy: source: modbus {{- include "modbus" . | indent 2 }} register: # manual non-sunspec register configuration - address: 35191 # PV E-Total Total PV Energy + address: 35191 # PV Energy-Total type: holding decode: uint32 scale: 0.1 @@ -74,21 +54,21 @@ render: | source: modbus {{- include "modbus" . | indent 2 }} register: # manual non-sunspec register configuration - address: 35183 # Pbattery1 First group battery power + address: 35182 # Battery1 Power type: holding - decode: int16 + decode: int32 soc: source: modbus {{- include "modbus" . | indent 2 }} register: # manual non-sunspec register configuration - address: 37007 # SOC First group battery capacity + address: 37007 # SOC type: holding decode: uint16 energy: source: modbus {{- include "modbus" . | indent 2 }} register: # manual non-sunspec register configuration - address: 35209 # E-BatteryDischarge Discharge energy + address: 35209 # Energy-Battery Discharge type: holding decode: uint32 scale: 0.1