# How to send Downlinks to the Kuando Busylight device

![](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FeBePP7ttvzQOqmShO5oz%2Fimage.png?alt=media\&token=49c3f84d-68fa-42f2-96f1-6328afeb1a19)

{% hint style="success" %}
**Applications**:

The [Kuando Busylight](https://busylight.com/) can be installed in a large variety of use cases. Through a downlink it can be programmed to show any color and used as a **visual notifier**, indicating a certain event, status, or as a cue for specific handling.

**Product features**:&#x20;

* Meeting room occupancy
* Office desk availability
* Parking lot availability
* Cue for calendar event
* Indicator for status in test or production line
* Indicator for bin availability in the warehouse
* Temperature/humidity/CO2/ indicator
  {% endhint %}

In this tutorial, you will learn how to set downlinks to the **Kuando Busylight** to show **color status** as a visual notifier.

### 1. Create a rule

To be able to send downlinks based on a condition, you need to create a **Rule**. Go to *Rules* and select *Create Rule*. Select desired device/s as a **Rule Input**, add a **Logic block** with your defined condition and select **Downlink** as a **Rule Output**.

![Downlink on Rule Engine](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FovpG7x23dIKcrr6wQLEY%2Fimage.png?alt=media\&token=940d63b5-e120-4684-a1b3-6b1ce5c29db9)

On the **Downlink Input Field,** you need to select your Kuando Busylight by choosing the assigned **Data Flow** and **Device**. Enter Port *15* and select **JSON** as a **payload schema**.

<img src="https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FmYg9mm0KxXTPYb24AmnY%2Fimage.png?alt=media&#x26;token=1d7575b2-2323-4507-84dd-4365d544c1f5" alt="" data-size="original">

**Custom payload description** as follows:

```
{ 
    "red":12,          // Red intensity max 255 min 0
    "green":20,        // Green intensity max 255 min 0
    "blue":34,         // Blue intensity max 255 min 0
    "offDuration":10,  // Off duration max 255 min 0
    "onDuration":10    // On duration max 255 min 0
}
```

If the light shall be **On** all the time, you can set the **onDuration** **to** **255** and **offDuration** **to** **0.**

Test your Rule accordingly to see the changing light colors based on your rule condition.&#x20;

{% hint style="info" %}
If you do not have a device at your hand, you can use the [device-simulator](https://docs.akenza.io/akenza.io/get-started/create-new-device/device-simulator "mention") provided from akenza to trigger your **Downlink**.
{% endhint %}
