Occupancy Sensor Calibration

[TCP/WebSocket<-->IM]

This request performs the background noise detection of the occupancy sensor.

If you believe your occupancy sensor is not accurate for your area, please perform this API request.

Before you start, please make sure no one is in the area that InvisOutlet and InvisDeco are installed at. Once the request is sent, the occupancy sensor will start doing background noise detection in 10 seconds, and perform the calibration based on the time you provided in the request.

Note: We recommend the detection time to be at least 30 seconds and maximum 60 seconds.

Request

  • packetID: Represents the ID of the packet. This can be any six digit number, no leading zeros.

  • payload:

    • callbackName: 26

    • callbackArgs:

      • 0: Specifies the calibration duration, 30 seconds is recommended

{
    "packetID": 221056,
    "payload":
    {
        "callbackName": 26,
        "callbackArgs": [30]
    }
}

Response

  • sn: The serial number of the InvisOutlet.

  • packetID: Represents the ID of the packet based on request packetID.

  • PUBACK : 1 - The request is received and calibration will begin in 10 seconds. 0 - Timeout to request occupancy sensor to perform calibration. Please try to restart InvisDeco and try again.

{
    "sn": "0003C44076",
    "packetID": 221056,
    "PUBACK": 1
}

The status of the occupancy calibration can be checked by the Synchronous Updates - Sensors response, occupancy_state is 4/5/6.

Last updated