protect_get_alarm_hub
Retrieve complete details of a UniFi Protect alarm hub using its ID, including state, LED settings, and last event.
Instructions
Get full details for a specific alarm hub by ID. Returns: id, modelKey ("linkstation"), name, mac, state, isAlarmHub, ledSettings (isEnabled), lastEvent, alarmHub (object) (7.1.83 docs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Alarm hub ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Device ID | |
| mac | No | MAC address | |
| name | No | Device name | |
| state | No | CONNECTED | DISCONNECTED | ... | |
| alarmHub | No | Alarm hub status (object: armed, battery, connector, cover, output, input, …) | |
| modelKey | No | Resource kind | |
| lastEvent | No | Last event timestamp in epoch ms (number) | |
| isAlarmHub | No | Whether this device is an alarm hub (boolean) | |
| ledSettings | No | LED settings (object: isEnabled) |