# Light Control

The "Light Control" widget combines the functions of the widgets -> Switches and -> Sliders. It allows you to both toggle one or more devices between two states and set precise values on a scale.

<figure><img src="https://3489494878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9GvUpaatBiReR43XFSMg%2Fuploads%2Fl7rMZApBX7VYY95eLads%2F48E61A37-CF9D-480F-8AFC-0C89456FBFFF.png?alt=media&#x26;token=28452c52-af10-4bcf-b734-7589b37a1e3d" alt=""><figcaption><p>The "Light Control" widget with 3 connected assets</p></figcaption></figure>

## When should this widget be used?

The "Light Control" widget is specially developed for use with dimmable lights.

## Configure Widget

\[SPD]

1. Make sure you are in the "Dashboard" menu
2. Click on "Add widget"
3. Click on "Input"
4. Click on "Light Control"
5. Select the primary asset. The name of this asset will appear in the title bar of the widget.
6. Select the asset that you want to control via the switch.
7. (Optional) Give the asset a name
8. Select the setpoint
9. Select the current value
10. (Optional) Repeat the previous steps to create switches for other assets.
11. Optional: Select how much space your new widget should occupy on the dashboard.
12. Click on "Add widget"

## Operate Widget

### Overview

<div data-full-width="true"><figure><img src="https://3489494878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9GvUpaatBiReR43XFSMg%2Fuploads%2FQWRXG9RfZTW5MDPPkyde%2FC8CE51DA-4008-42A8-9DCA-2B75308F9273.png?alt=media&#x26;token=4de67cdd-bb2a-4332-8786-dde3ed407ad6" alt=""><figcaption><p>The "Light Control" widget with 3 connected assets in detail</p></figcaption></figure></div>

<table data-full-width="true"><thead><tr><th width="69.33333333333331"></th><th width="193.4000244140625"></th><th></th></tr></thead><tbody><tr><td><strong>[A]</strong></td><td>Icon</td><td>Icon of the widget</td></tr><tr><td><strong>[B]</strong></td><td>Asset Name</td><td>Title of the widget. Is influenced by the selection of the "Primary Asset."</td></tr><tr><td><strong>[C]</strong></td><td>Switch for Asset 1</td><td>Switch Asset 1 to "Off" or "On"</td></tr><tr><td><strong>[D]</strong></td><td>Switch for Asset 2</td><td>Switch Asset 2 to "Off" or "On"</td></tr><tr><td><strong>[E]</strong></td><td>Switch for Asset 3</td><td>Switch Asset 3 to "Off" or "On"</td></tr><tr><td><strong>[F]</strong></td><td>More options</td><td></td></tr><tr><td><strong>[G]</strong></td><td>Label for Asset 1</td><td></td></tr><tr><td><strong>[H]</strong></td><td>Slider for Asset 1</td><td>Set value for Asset 1</td></tr><tr><td><strong>[I]</strong></td><td>Slider for Asset 2</td><td>Set value for Asset 2</td></tr><tr><td><strong>[J]</strong></td><td>Slider for Asset 3</td><td>Set value for Asset 3</td></tr></tbody></table>

### Operate Widget

Each added individual asset is assigned its own switch **\[C]/\[D]/\[E]** and its own slider **\[H]/\[I]/\[J]**.

* Drag the slider of an asset to a desired value to adjust the asset's value.
* Click on a switch that is in the "ON" state to set this asset to "OFF".
* Click on a switch that is in the "OFF" state to set this asset to "ON".


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.buildings.ability.abb/collection/platform/live-cockpit/widgets/predefined-widgets/light-control.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
