Deye: add support for 2nd battery (#18754)

This commit is contained in:
premultiply 2025-02-12 20:56:14 +01:00 • committed by GitHub
parent 9e1ae8c98b
commit fbb18974ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: