protect_get_relay
Retrieve complete configuration and status for a UniFi Protect relay by its ID, including LED settings, outputs, inputs, and connection state.
Instructions
Get full details for a specific relay by ID. Returns: id, modelKey, name, mac, state, type, guid, ledSettings (isEnabled), outputs (array), inputs (array), wirelessConnectionState (7.3.47 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 | |
| guid | No | Hardware MODEL GUID, shared by every unit of the same model. NOT a per-device identifier — use `id` to identify a device. | |
| name | No | Device name | |
| type | No | Hardware model name, e.g. "UVC G6 Turret", "UP Chime PoE", "UNVR-PRO" | |
| 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) |