Skip to content

Light

Functionality related lights

On

Turn on a light

Parameters

deviceId : device mac address lightId: light id timeoutMs: timeout in ms

Example

meshtech/diagnostics/cc3fc0fa8d21/command/device/light/on
{
  "id":"10",
  "params":{
    "deviceId":"FA2373DC17E8",
    "lightId":"1",
    "timeoutMs":"2000"
  }
}
meshtech/diagnostics/cc3fc0fa8d21/response/device/light/on
{
  "id":"10",
  "success":true,
  "result":"Light request for 'FA2373DC17E8' succeed"
}

Off

Turn off a light

Parameters

deviceId : device mac address lightId: light id timeoutMs: timeout in ms

Example

meshtech/diagnostics/cc3fc0fa8d21/command/device/light/off
{
  "id":"11",
  "params":{
    "deviceId":"FA2373DC17E8",
    "lightId":"1"
  }
}
meshtech/diagnostics/cc3fc0fa8d21/response/device/light/off
{
  "id":"11",
  "success":true,
  "result":"Light request for 'FA2373DC17E8' succeed"
}