From fbb18974aefb7109b16507f92b153300c5c4aaaa Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Wed, 12 Feb 2025 20:56:14 +0100 Subject: [PATCH] Deye: add support for 2nd battery (#18754) --- templates/definition/meter/deye-hybrid-hp3.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/definition/meter/deye-hybrid-hp3.yaml b/templates/definition/meter/deye-hybrid-hp3.yaml index 08b73c0b7..a6e068e73 100644 --- a/templates/definition/meter/deye-hybrid-hp3.yaml +++ b/templates/definition/meter/deye-hybrid-hp3.yaml @@ -15,6 +15,10 @@ params: choice: ["rs485", "tcpip"] baudrate: 9600 id: 1 + - name: storageunit + type: int + default: 1 + advanced: true - name: capacity advanced: true - name: minsoc @@ -114,7 +118,12 @@ render: | source: modbus {{- include "modbus" . | indent 2 }} register: + {{- if eq .storageunit "1" }} address: 590 # "Battery output power" + {{- end }} + {{- if eq .storageunit "2" }} + address: 595 # "Battery2 output power" + {{- end }} type: holding decode: int16 scale: 10 @@ -130,7 +139,12 @@ render: | source: modbus {{- include "modbus" . | indent 2 }} register: + {{- if eq .storageunit "1" }} address: 588 # "battery capacity" + {{- end }} + {{- if eq .storageunit "2" }} + address: 589 # "battery2 capacity" + {{- end }} type: holding decode: uint16 batterymode: