protect_get_light
Retrieve complete details for a single UniFi Protect light by ID, including its configuration, state, motion detection, and camera association.
Instructions
Get full details for a specific light by ID. Returns: id, modelKey, name, mac, state, type, guid, lightModeSettings (mode, enableAt), lightDeviceSettings (isIndicatorEnabled, pirDuration, pirSensitivity, ledLevel), isDark, isLightOn, isLightForceEnabled, lastMotion, isPirMotionDetected, camera (7.3.47 docs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Light 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 | ... | |
| camera | No | Paired camera ID | |
| isDark | No | Whether it is currently dark out (boolean) | |
| modelKey | No | Resource kind | |
| isLightOn | No | Whether the light is currently on (boolean) | |
| lastMotion | No | Last motion timestamp in epoch ms (number) | |
| lightModeSettings | No | Activation settings (object: mode, enableAt) | |
| isLightForceEnabled | No | Main LED force-enabled (boolean) | |
| isPirMotionDetected | No | PIR motion currently detected (boolean) | |
| lightDeviceSettings | No | Hardware settings (object: isIndicatorEnabled, pirDuration, pirSensitivity, ledLevel) |