Sungrow: add non-hybrid template (#3737)

This commit is contained in:
Michael Panzer 2022-07-01 11:02:26 +02:00 • committed by GitHub
parent e1c73c0c55
commit 06b20b8f3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 54 additions and 40 deletions

View file

@ -2,7 +2,7 @@ template: solaredge-hybrid
products:
- brand: SolarEdge
description:
generic: Hybrid
generic: Hybrid Inverter
guidedsetup:
enable: true
requirements:

View file

@ -1,14 +1,15 @@
template: sungrow
template: sungrow-inverter
covers: ["sungrow"]
products:
- brand: Sungrow
description:
generic: Inverter
generic: Hybrid Inverter
guidedsetup:
enable: true
requirements:
description:
de: Die Verbindung zu Sungrow-Geräten ist nur über den LAN-Port (am Gerät) oder seriell via RS485-Port möglich. Nicht verfügbar über das WiNet-S-Dongle!
en: Communication to Sungrow-Devices may only be established by using the LAN port (on device) or serial RS485 port. Not available on WiNet-S-Dongle!
de: Die Verbindung ist nur seriell (RS485) oder TCP (mit dem WiNet-S-Dongle) möglich.
en: Communication is either serial (RS485) or via TCP (WiNet-S-Dongle).
params:
- name: usage
choice: ["grid", "pv", "battery"]

View file

@ -0,0 +1,36 @@
template: sungrow-inverter
products:
- brand: Sungrow
description:
generic: Inverter
guidedsetup:
enable: true
requirements:
description:
de: Die Verbindung ist nur seriell (RS485) oder TCP (mit dem WiNet-S-Dongle) möglich.
en: Communication is either serial (RS485) or via TCP (WiNet-S-Dongle).
params:
- name: usage
choice: ["grid", "pv"]
- name: modbus
choice: ["rs485", "tcpip"]
render: |
type: custom
{{- if eq .usage "grid" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
type: input
address: 5082 # Export power
decode: int32s
{{- end }}
{{- if eq .usage "pv" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 5016 # Total DC power
type: input
decode: uint32s
{{- end }}

View file

@ -1,4 +1,5 @@
template: sunspec-hybrid-inverter
template: sunspec-hybrid
covers: ["sunspec-hybrid-inverter"]
products:
- description:
de: Hybridwechselrichter

View file

@ -1,6 +1,6 @@
product:
brand: SolarEdge
description: Hybrid
description: Hybrid Inverter
description: |
Nur ein System kann auf den Wechselrichter zugreifen!
render:

View file

@ -2,12 +2,12 @@ product:
brand: Sungrow
description: Inverter
description: |
Die Verbindung zu Sungrow-Geräten ist nur über den LAN-Port (am Gerät) oder seriell via RS485-Port möglich. Nicht verfügbar über das WiNet-S-Dongle!
Die Verbindung ist nur seriell (RS485) oder TCP (mit dem WiNet-S-Dongle) möglich.
render:
- usage: grid
default: |
type: template
template: sungrow
template: sungrow-inverter
usage: grid
# RS485 via adapter (Modbus RTU)
@ -31,7 +31,7 @@ render:
- usage: pv
default: |
type: template
template: sungrow
template: sungrow-inverter
usage: pv
# RS485 via adapter (Modbus RTU)
@ -47,30 +47,6 @@ render:
host: 192.0.2.2 # Hostname
port: 502 # Port
# Modbus TCP
modbus: tcpip
id: 1
host: 192.0.2.2 # Hostname
port: 502 # Port
- usage: battery
default: |
type: template
template: sungrow
usage: battery
# RS485 via adapter (Modbus RTU)
modbus: rs485serial
id: 1
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: 1
host: 192.0.2.2 # Hostname
port: 502 # Port
# Modbus TCP
modbus: tcpip
id: 1

View file

@ -5,7 +5,7 @@ render:
- usage: grid
default: |
type: template
template: sunspec-hybrid-inverter
template: sunspec-hybrid
usage: grid
# Modbus TCP
@ -15,7 +15,7 @@ render:
port: 502 # Port
advanced: |
type: template
template: sunspec-hybrid-inverter
template: sunspec-hybrid
usage: grid
# Modbus TCP
@ -27,7 +27,7 @@ render:
- usage: pv
default: |
type: template
template: sunspec-hybrid-inverter
template: sunspec-hybrid
usage: pv
# Modbus TCP
@ -37,7 +37,7 @@ render:
port: 502 # Port
advanced: |
type: template
template: sunspec-hybrid-inverter
template: sunspec-hybrid
usage: pv
# Modbus TCP
@ -49,7 +49,7 @@ render:
- usage: battery
default: |
type: template
template: sunspec-hybrid-inverter
template: sunspec-hybrid
usage: battery
# Modbus TCP
@ -59,7 +59,7 @@ render:
port: 502 # Port
advanced: |
type: template
template: sunspec-hybrid-inverter
template: sunspec-hybrid
usage: battery
# Modbus TCP