Add GoodWe hybrid inverters (#5869)

This commit is contained in:
premultiply 2023-01-22 13:35:00 +01:00 • committed by GitHub
parent c023d577a5
commit 2fb9a84ddf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 252 additions and 0 deletions

View file

@ -0,0 +1,102 @@
template: goodwe-hybrid
products:
- brand: GoodWe
description:
generic: ET/EH/BH/BT Hybrid Inverter
params:
- name: usage
choice: ["grid", "pv", "battery"]
- name: modbus
choice: ["rs485", "tcpip"]
baudrate: 9600
id: 247
- name: capacity
advanced: true
render: |
type: custom
{{- if eq .usage "grid" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
address: 36025 # MTTotalActivepower Pmeter
type: holding
decode: int32
scale: -1
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
address: 36017 # E-Total-Buy
type: holding
decode: float32
scale: 0.1
{{- end }}
{{- if eq .usage "pv" }}
power:
source: calc
add:
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
address: 35105 # Ppv1 PV1 Power
type: holding
decode: uint32
scale: 0.1
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
address: 35109 # Ppv2 PV2 Power
type: holding
decode: uint32
scale: 0.1
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
address: 35113 # Ppv3 PV3 Power
type: holding
decode: uint32
scale: 0.1
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
address: 35117 # Ppv4 PV4 Power
type: holding
decode: uint32
scale: 0.1
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
address: 35191 # PV E-Total Total PV Energy
type: holding
decode: uint32
scale: 0.1
{{- end }}
{{- if eq .usage "battery" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
address: 35183 # Pbattery1 First group battery power
type: holding
decode: int16
soc:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
address: 37007 # SOC First group battery capacity
type: holding
decode: uint16
{{- if ne .capacity "" }}
capacity: {{ .capacity }} # kWh
{{- end }}
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
address: 35209 # E-BatteryDischarge Discharge energy
type: holding
decode: uint32
scale: 0.1
{{- end }}

View file

@ -0,0 +1,148 @@
product:
brand: GoodWe
description: ET/EH/BH/BT Hybrid Inverter
render:
- usage: grid
default: |
type: template
template: goodwe-hybrid
usage: grid
# RS485 via adapter (Modbus RTU)
modbus: rs485serial
id: 247
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
comset: "8N1" # Kommunikationsparameter für den Adapter
# RS485 via TCP/IP (Modbus RTU)
modbus: rs485tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
# Modbus TCP
modbus: tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
advanced: |
type: template
template: goodwe-hybrid
usage: grid
# RS485 via adapter (Modbus RTU)
modbus: rs485serial
id: 247
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
comset: "8N1" # Kommunikationsparameter für den Adapter
# RS485 via TCP/IP (Modbus RTU)
modbus: rs485tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
# Modbus TCP
modbus: tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
template: goodwe-hybrid
usage: pv
# RS485 via adapter (Modbus RTU)
modbus: rs485serial
id: 247
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
comset: "8N1" # Kommunikationsparameter für den Adapter
# RS485 via TCP/IP (Modbus RTU)
modbus: rs485tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
# Modbus TCP
modbus: tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
advanced: |
type: template
template: goodwe-hybrid
usage: pv
# RS485 via adapter (Modbus RTU)
modbus: rs485serial
id: 247
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
comset: "8N1" # Kommunikationsparameter für den Adapter
# RS485 via TCP/IP (Modbus RTU)
modbus: rs485tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
# Modbus TCP
modbus: tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
template: goodwe-hybrid
usage: battery
# RS485 via adapter (Modbus RTU)
modbus: rs485serial
id: 247
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
comset: "8N1" # Kommunikationsparameter für den Adapter
# RS485 via TCP/IP (Modbus RTU)
modbus: rs485tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
# Modbus TCP
modbus: tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
advanced: |
type: template
template: goodwe-hybrid
usage: battery
# RS485 via adapter (Modbus RTU)
modbus: rs485serial
id: 247
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
comset: "8N1" # Kommunikationsparameter für den Adapter
# RS485 via TCP/IP (Modbus RTU)
modbus: rs485tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
# Modbus TCP
modbus: tcpip
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional

View file

@ -68,6 +68,7 @@
"FENECON",
"FoxESS",
"Fronius",
"GoodWe",
"Growatt",
"Homematic IP",
"Huawei",
@ -104,6 +105,7 @@
"FENECON",
"FoxESS",
"Fronius",
"GoodWe",
"Growatt",
"Homematic IP",
"Huawei",