# Nightlight

> Control InvisDeco Pro's nightlight on/off and its brightness.

**Request**

* <mark style="color:red;">`packetID`</mark> : Represents the ID of the packet. This can be any six digit number, no leading zeros.
* <mark style="color:red;">`payload`</mark> :&#x20;
  * <mark style="color:red;">`callbackName`</mark> : 14
  * <mark style="color:red;">`callbackArgs`</mark> :
    * `1`: 1 - On, 0 - Off.
    * `2`: The nightlight brightness, ranging from 0 to 100.

```json
{
    "packetID": 164423,
    "payload":
    {
        "callbackName": 14,
        "callbackArgs": [1, 100]
    }
}
```

#### Response

* <mark style="color:red;">`sn`</mark>: The serial number of the InvisOutlet.
* <mark style="color:red;">`packetID`</mark>: Represents the ID of the packet based on request <mark style="color:red;">`packetID`</mark>.
* <mark style="color:red;">`PUBACK`</mark> : If the request is successfully processed; 1 - Successful, 0 - Fail.

```json
{
    "sn": "0003C44076",
    "packetID": 164423,
    "PUBACK": 1
}
```
