# Waveshare relais
TESTING ETM EXPERIMENTAL
Module de relais Waveshare (modèle 8 canaux RS485), pilotage via **Modbus RTU**.
## 1. Matériel requis
- Module Waveshare 8-Channel Relay (RS485)
- Adaptateur USB↔RS485 côté hub
- Alimentation 12 V DC + câble bus (A/B)
## 2. Raccordement RS485
A↔A, B↔B, masse commune, terminaison **120 Ω** en bout de bus.
Alimentation 12 V DC sur les bornes VCC/GND du module.
## 3. Adressage Modbus
Adresse par défaut : **1**. Configurable via l'utilitaire Waveshare ou par
commande Modbus de changement d'adresse.
Paramètres : **9600 bps, 8N1**.
## 4. Ajout dans PowerSync
Ajout manuel (port série, adresse esclave).
Voir [Ajouter un appareil](../../installation/application.md).
---
## Référence
**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 | — |