> For the complete documentation index, see [llms.txt](https://docs.heisenware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.heisenware.com/~/changes/eYCCpn9cCBKOYnZA6a8f/building-apps/ui-widgets-and-elements/display-widgets/status-lamp.md).

# Status lamp

<figure><img src="https://3495989837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE5Ketpww1s7TauSAJrJ8%2Fuploads%2FD5MK4TR6CzAmRiKsMnVB%2FstatusLamp.gif?alt=media&amp;token=d49e9bd1-985f-41a4-a0df-71a29bb23e22" alt=""><figcaption><p>A Status Lamp</p></figcaption></figure>

The Status Lamp widget is an indicator that changes color based on a value passed from a function.

## Settings

The colors and conditions can be set and modified in the Mappings tab, where each color is associated to a value passed by a connected function output. If the value passed is not listed, the status lamp turns grey.

`String`, `bool` and all numerical data types are acceptable inputs, but each value needs to be manually assigned to a color.&#x20;

<figure><img src="https://3495989837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE5Ketpww1s7TauSAJrJ8%2Fuploads%2F7CyiuzcG8Xvrl4EiM4vF%2FstatusLampMappings.png?alt=media&amp;token=bb6ba4c6-efeb-4a40-8e77-7b3e193287d3" alt="" width="375"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.heisenware.com/~/changes/eYCCpn9cCBKOYnZA6a8f/building-apps/ui-widgets-and-elements/display-widgets/status-lamp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
