From cf5cf1900c4f045e9758f8be8a5aeb30ad8cc0b9 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 12 Aug 2024 13:51:16 +0200 Subject: [PATCH] Goodwe Hybrid: support secondary battery (#15355) --- templates/definition/meter/goodwe-hybrid.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/templates/definition/meter/goodwe-hybrid.yaml b/templates/definition/meter/goodwe-hybrid.yaml index a25984222..59dde85ff 100644 --- a/templates/definition/meter/goodwe-hybrid.yaml +++ b/templates/definition/meter/goodwe-hybrid.yaml @@ -11,6 +11,11 @@ params: choice: ["rs485", "tcpip", "udp"] baudrate: 9600 id: 247 + - name: battery + default: 1 + validvalues: + - 1 + - 2 - name: capacity advanced: true render: | @@ -75,16 +80,17 @@ render: | source: modbus {{- include "modbus" . | indent 2 }} register: # manual non-sunspec register configuration - address: 35182 # Battery1 Power + address: {{ if eq .battery "1" }}35182{{ else }}35265{{ end }} # Battery1/2 Power type: holding decode: int32 soc: source: modbus {{- include "modbus" . | indent 2 }} register: # manual non-sunspec register configuration - address: 37007 # SOC + address: {{ if eq .battery "1" }}37007{{ else }}39005{{ end }} # Battery1/2 Soc type: holding decode: uint16 + {{- if eq .battery "1" }} energy: source: modbus {{- include "modbus" . | indent 2 }} @@ -93,6 +99,7 @@ render: | type: holding decode: uint32 scale: 0.1 + {{- end }} batterymode: source: watchdog timeout: 30s