> For the complete documentation index, see [llms.txt](https://docs.chirpwireless.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget.md).

# Control Widget

Add a Control widget to a Chirp dashboard — a switch, button, slider, or input that operates a device from one tap.

Every other widget *shows* you something. The **Control widget** lets you *do* something. It puts an interactive control on your dashboard — a **switch**, **button**, **slider**, or **input** — bound to one of a device's commands, so you can operate the device without leaving the screen you're already looking at. It's the dashboard version of [Controlling Your Devices](https://docs.chirpwireless.io/devices/commands.md): the command does the work, the widget is the switch on the wall.

<figure><img src="https://1153890212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxgYoHO4zlaBzHJcfIrto%2Fuploads%2Fgit-blob-ae965ab3bbca7f5148f7270a9664e6fa87832a67%2Fcontrol-dashboard.jpg?alt=media" alt="A home dashboard of Control widgets — a switch, a dial, a slider, and an input controlling a lamp"><figcaption></figcaption></figure>

## Why do I need to set up a command first?

A Control widget runs an action you've already set up on the device — so the device needs at least one command on its **Commands & States** tab. Devices with no commands won't appear to choose from (you'll see *"No controllable devices in this organization"*). Set the command up first — see [Setting up a command](https://docs.chirpwireless.io/devices/commands/creating-commands.md) — then link the widget to it.

## How do I add a Control widget?

Every Control widget is added the same way; only the look-and-feel options differ by type.

1. Open the dashboard in **edit mode** and tap **Add widget** → **Control**.
2. On the **Datasource** tab (*"Control configuration"*), choose the **Source** (Device) and the **Device**, then pick the **Device metric** — the reading that shows the device's current state. Tap **Next**.
3. On the **Appearance** tab, give it a **Widget name** and choose a **Widget type** (below). Fill in that type's options and tap **Save**.

## Which control type should I pick?

| Type                                                                                                         | Great for                               | What it sends                          |
| ------------------------------------------------------------------------------------------------------------ | --------------------------------------- | -------------------------------------- |
| [Switch](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/switch.md)                   | A simple on/off you flip back and forth | An on or off command as you toggle     |
| [Button](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/button.md)                   | A one-tap action (run, restart, open)   | One command per tap                    |
| [Simple Slider](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/slider-simple.md)     | Sliding to a value, like brightness     | A command value as you slide           |
| [Circular Slider](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/slider-circular.md) | A round dial, like a knob               | A command value as you turn it         |
| [Vertical Slider](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/slider-vertical.md) | An upright slider you raise and lower   | A command value as you slide           |
| [Input](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/input.md)                     | Typing an exact number                  | A command value when you tap **Apply** |

Choose **Slider** as the widget type first, then pick one of three **Slider type** options: **Simple**, **Circular** or **Vertical**.

## How does a Control widget behave?

* **Tap to control.** Using the control sends the command the same way the device's States tab does — same checks, same history.
* **Stays in sync.** It reads the **Device metric** and shows the real state, so it's never just guessing based on your last tap.
* **Greys out when it can't.** If the device is offline or a state isn't fully set up, the control shows as unavailable instead of sending into thin air.

## See also

* [Controlling Your Devices](https://docs.chirpwireless.io/devices/commands.md) — set up the commands a Control widget uses
* [Setting up a command](https://docs.chirpwireless.io/devices/commands/creating-commands.md)
* The six control types: [Switch](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/switch.md) · [Button](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/button.md) · [Simple Slider](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/slider-simple.md) · [Circular Slider](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/slider-circular.md) · [Vertical Slider](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/slider-vertical.md) · [Input](https://docs.chirpwireless.io/dashboards/adding-widgets/control-widget/input.md)
