Light information & management

Get light details

Get detailed information about a specific light

get/v1/lights/{id}

Request

Path parameters

idstring required

The primary key of light

Example:66d025b301ebc903e80003ea

Response

Success response

idstring required

The primary key of light

modelKey'light' required

The model key of the light

state'CONNECTED' | 'CONNECTING' | 'DISCONNECTED' required

Connection state of the device.

namestring required

The name of the device.

macstring required

The primary MAC address of the device.

isDarkboolean required

Whether the light is currently sensing that it's in a dark scene.

isLightOnboolean required

Whether the light has its main LED currently enabled.

isLightForceEnabledboolean required

Whether the light has its main LED currently force-enabled.

lastMotionnumber nullable required

Unix timestamp of the last time the PIR motion-detection was triggered.

isPirMotionDetectedboolean required

Whether the light PIR is currently detecting motion

camerastring required

The primary key of camera

Example response

{
  "id": "66d025b301ebc903e80003ea",
  "state": "CONNECTED",
  "name": "Front Door",
  "mac": "24A43C3DFEB9",
  "lightDeviceSettings": {
    "pirDuration": 30000,
    "pirSensitivity": 50,
    "ledLevel": 6
  },
  "lastMotion": 1445408038748,
  "camera": "66d025b301ebc903e80003ea"
}

Changes

No recorded changes to this operation across all 1 revision of this API.