protect_get_light
Retrieve complete details of a UniFi Protect light by its ID, including state, mode, settings, and motion detection status.
Instructions
Get full details for a specific light by ID. Returns: id, modelKey, name, mac, state, lightModeSettings (mode, enableAt), lightDeviceSettings (isIndicatorEnabled, pirDuration, pirSensitivity, ledLevel), isDark, isLightOn, isLightForceEnabled, lastMotion, isPirMotionDetected, camera (7.1.83 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 | |
| name | No | Device name | |
| 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) |