From 9b20ce3a18524190d7caae9d79417c0dcbaa4861 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 24 Oct 2022 10:53:25 +0200 Subject: [PATCH] ABB: add rs485 (#4922) --- templates/definition/charger/abb.yaml | 2 +- templates/docs/charger/abb_0.yaml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/templates/definition/charger/abb.yaml b/templates/definition/charger/abb.yaml index 10da68936..79445cb7d 100644 --- a/templates/definition/charger/abb.yaml +++ b/templates/definition/charger/abb.yaml @@ -8,7 +8,7 @@ requirements: evcc: ["sponsorship"] params: - name: modbus - choice: ["tcpip"] + choice: ["rs485", "tcpip"] render: | type: abb {{- include "modbus" . }} diff --git a/templates/docs/charger/abb_0.yaml b/templates/docs/charger/abb_0.yaml index ce4c9f301..0aff9ab58 100644 --- a/templates/docs/charger/abb_0.yaml +++ b/templates/docs/charger/abb_0.yaml @@ -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