List lights
protect_list_lightsList all lights managed by UniFi Protect, including state, motion, and settings. Use limit and offset to page large sites.
Instructions
List all lights managed by UniFi Protect. Returns array; each light includes: id, modelKey, name, mac, state, type, guid, lightModeSettings (mode, enableAt), lightDeviceSettings (isIndicatorEnabled, pirDuration, pirSensitivity, ledLevel), isDark, isLightOn, isLightForceEnabled, lastMotion, isPirMotionDetected, camera (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 |