# Waveshare-Relais
TESTING ETM EXPERIMENTAL
Waveshare-Relaismodul (Variante mit 8 Kanälen, RS485), Ansteuerung über
**Modbus RTU**.
## 1. Benötigte Hardware
- Waveshare 8-Channel Relay Module (RS485)
- USB↔RS485-Adapter auf Hub-Seite
- 12-V-DC-Versorgung + Buskabel (A/B)
## 2. RS485-Anschluss
A↔A, B↔B, gemeinsame Masse, **120 Ω** am Busende.
12 V DC an die Klemmen VCC/GND des Moduls.
## 3. Modbus-Adressierung
Standardadresse: **1**. Einstellbar über das Waveshare-Dienstprogramm oder per
Modbus-Befehl zur Adressänderung.
Parameter: **9600 bps, 8N1**.
## 4. Hinzufügen in PowerSync
Manuelles Hinzufügen (serieller Port, Slave-Adresse).
Siehe [Gerät hinzufügen](../../installation/application.md).
---
## Referenz
**Manufacturer:** Waveshare
**Plugin:** `WaveshareRelayD8`
#### Supported models
| Model | Role | Transport | Pairing | Quantities |
| --- | --- | --- | --- | --- |
| **Waveshare Relay D8** | — | Modbus RTU | Auto-discovery | 17 |
#### Per-model detail
??? abstract "Waveshare Relay D8 — `waveshareRelayD8`"
_Settings:_
| Key | Label | Type | Range | Default | Read-only |
| --- | --- | --- | --- | --- | --- |
| `rtuMaster` | Modbus RTU master UUID | QString | — | — | no |
| `slaveAddress` | Modbus slave address | int | 1–247 | `1` | no |
_Measured quantities:_
| Key | Quantity | Type | Unit |
| --- | --- | --- | --- |
| `connected` | Connected | bool | — |
| `relay1State` | Relay 1 | bool | — |
| `relay2State` | Relay 2 | bool | — |
| `relay3State` | Relay 3 | bool | — |
| `relay4State` | Relay 4 | bool | — |
| `relay5State` | Relay 5 | bool | — |
| `relay6State` | Relay 6 | bool | — |
| `relay7State` | Relay 7 | bool | — |
| `relay8State` | Relay 8 | bool | — |
| `input1State` | Input 1 | bool | — |
| `input2State` | Input 2 | bool | — |
| `input3State` | Input 3 | bool | — |
| `input4State` | Input 4 | bool | — |
| `input5State` | Input 5 | bool | — |
| `input6State` | Input 6 | bool | — |
| `input7State` | Input 7 | bool | — |
| `input8State` | Input 8 | bool | — |