forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deye: add single phase inverters (evcc-io#10692)
- Loading branch information
1 parent
993aa06
commit 2fd77db
Showing
5 changed files
with
209 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,6 +151,7 @@ | |
"Acrel", | ||
"Ads-tec", | ||
"Alpha ESS", | ||
"Anker", | ||
"AVM", | ||
"Bosswerk", | ||
"Deye", | ||
|