Deye: add support for 2nd battery (#18754)
This commit is contained in:
parent
9e1ae8c98b
commit
fbb18974ae
1 changed files with 14 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue