ABB: add rs485 (#4922)

This commit is contained in:
andig 2022-10-24 10:53:25 +02:00 • committed by GitHub
parent 2c4d17557a
commit 9b20ce3a18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View file

@ -8,7 +8,7 @@ requirements:
evcc: ["sponsorship"]
params:
- name: modbus
choice: ["tcpip"]
choice: ["rs485", "tcpip"]
render: |
type: abb
{{- include "modbus" . }}

View file

@ -8,6 +8,19 @@ render:
type: template
template: abb
# 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