Deye: add single phase inverters (#10692)

This commit is contained in:
premultiply 2023-11-11 08:37:40 +01:00 • committed by GitHub
parent 993aa068c6
commit 2fd77db641
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 209 additions and 21 deletions

View file

@ -1,11 +1,12 @@
template: deye-hybrid
template: deye-hybrid-3p
covers: ["deye-hybrid"]
products:
- brand: Deye
description:
generic: SUN-(5/6/8/10/12)K-SG04LP3-EU series hybrid inverter
generic: 3p hybrid inverter
- brand: Sunsynk
description:
generic: SYNK-(8/10/12)K-SG04LP3 *untested*
generic: 3p hybrid inverter
params:
- name: usage
choice: ["grid", "pv", "battery"]
@ -22,14 +23,14 @@ render: |
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
register:
address: 625 # Grid side total power
type: holding
decode: int16
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
register:
address: 522 # "Total_GridBuy_Power Wh"
type: holding
decode: uint32
@ -37,21 +38,21 @@ render: |
currents:
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
register:
address: 613 # "Out-of-grid - current A"
type: holding
decode: int16
scale: 0.01
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
register:
address: 614 # "Out-of-grid - current B"
type: holding
decode: int16
scale: 0.01
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
register:
address: 615 # "Out-of-grid - current C"
type: holding
decode: int16
@ -63,32 +64,32 @@ render: |
add:
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
register:
address: 672 # "PV1 input power"
type: holding
decode: int16
decode: uint16
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
register:
address: 673 # "PV2 input power"
type: holding
decode: int16
decode: uint16
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
register:
address: 674 # "PV3 input power"
type: holding
decode: int16
decode: uint16
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
register:
address: 675 # "PV4 input power"
type: holding
decode: int16
decode: uint16
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
register:
address: 534 # "Total_PV_Power_Wh"
type: holding
decode: uint32
@ -98,24 +99,24 @@ render: |
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
register:
address: 590 # "Battery output power"
type: holding
decode: int16
soc:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
register:
address: 588 # "battery capacity"
type: holding
decode: int16
decode: uint16
{{- if .capacity }}
capacity: {{ .capacity }} # kWh
{{- end }}
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
register:
address: 518 # "Total discharge of the battery (Wh)"
type: holding
decode: uint32

View file

@ -0,0 +1,42 @@
template: deye-mi
products:
- brand: Deye
description:
generic: Micro inverter
- brand: Bosswerk
description:
generic: Micro inverter
- brand: Anker
description:
generic: Micro inverter
- brand: Sunsynk
description:
generic: Micro inverter
params:
- name: usage
choice: ["pv"]
- name: modbus
choice: ["rs485", "tcpip"]
baudrate: 9600
id: 1
advanced: true
render: |
type: custom
{{- if eq .usage "pv" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 86 # "Output active power"
type: holding
decode: uint32
scale: 0.1
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 63 # "Total_Active_PowerWh"
type: holding
decode: uint32
scale: 0.1
{{- end }}

View file

@ -0,0 +1,109 @@
template: deye-storage
products:
- brand: Deye
description:
generic: Storage (hybrid) inverter
- brand: Sunsynk
description:
generic: Storage (hybrid) inverter
params:
- name: usage
choice: ["pv", "battery", "grid"]
- name: modbus
choice: ["rs485", "tcpip"]
baudrate: 9600
id: 1
- name: capacity
advanced: true
render: |
type: custom
{{- if eq .usage "pv" }}
power:
source: calc
add:
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 186 # "PV1 input power"
type: holding
decode: uint16
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 187 # "PV2 input power"
type: holding
decode: uint16
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 188 # "PV3 input power"
type: holding
decode: uint16
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 189 # "PV4 input power"
type: holding
decode: uint16
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 96 # "historyPV PowerWh"
type: holding
decode: uint32
scale: 0.1
{{- end }}
{{- if eq .usage "battery" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 190 # "Battery output power"
type: holding
decode: int16
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 74 # "Battery cumulative discharge"
type: holding
decode: uint32
scale: 0.1
soc:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 184 # "battery capacity"
type: holding
decode: uint16
{{- if .capacity }}
capacity: {{ .capacity }} # kWh
{{- end }}
{{- end }}
{{- if eq .usage "grid" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 169 # "Total grid power"
type: holding
decode: int16
energy:
source: calc
add:
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 78 # "Total_GridBuy_PowerWh_low"
type: holding
decode: uint16
scale: 0.1
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 80 # "Total_GridBuy_PowerWh"
type: holding
decode: uint16
scale: 6553.6
{{- end }}

View file

@ -0,0 +1,35 @@
template: deye-string
products:
- brand: Deye
description:
generic: String inverter
- brand: Sunsynk
description:
generic: String inverter
params:
- name: usage
choice: ["pv"]
- name: modbus
choice: ["rs485", "tcpip"]
baudrate: 9600
id: 1
render: |
type: custom
{{- if eq .usage "pv" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 86 # "Output active power"
type: holding
decode: uint32
scale: 0.1
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 63 # "Total_Active_PowerWh"
type: holding
decode: uint32
scale: 0.1
{{- end }}

View file

@ -151,6 +151,7 @@
"Acrel",
"Ads-tec",
"Alpha ESS",
"Anker",
"AVM",
"Bosswerk",
"Deye",