protect_get_relay
Retrieve full details for a specific relay by its ID, including state, LED settings, and input/output arrays.
Instructions
Get full details for a specific relay by ID. Returns: id, modelKey, name, mac, state, ledSettings (isEnabled), outputs (array), inputs (array), wirelessConnectionState (7.1.83 docs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Relay ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Device ID | |
| mac | No | MAC address | |
| name | No | Device name | |
| state | No | CONNECTED | DISCONNECTED | ... | |
| inputs | No | Input channels (array of objects) | |
| outputs | No | Output channels (array of objects) | |
| modelKey | No | Resource kind | |
| ledSettings | No | LED settings (object: isEnabled) | |
| wirelessConnectionState | No | Wireless link state (object) |