List relays
protect_list_relaysList all relays managed by UniFi Protect. Returns array with details like id, name, state, outputs, inputs, and supports paging with limit and offset.
Instructions
List all relays managed by UniFi Protect. Returns array; each relay includes: id, modelKey, name, mac, state, type, guid, ledSettings (isEnabled), outputs (array of objects: id, name, type, delay, pulseDuration, state, rebootState — id is the outputId for protect_activate_relay_output), inputs (array of objects: id, name, state, actionTrigger, actionType, actionOutputId), wirelessConnectionState (signalState: signalQuality, signalStrength; batteryStatus: percentage, isLow; bridge) (7.3.70 docs). On a large site, use limit and offset to page; a paged result also returns totalCount and offset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Return at most this many items | |
| offset | No | Skip this many items first (default 0) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Paged results only: the index of the first item returned | |
| result | Yes | Array of items returned by the list endpoint | |
| totalCount | No | Paged results only: the number of items in the whole list |