# Click Action

By default, clicking on a device tile will perform the tile's main 'action'. For some tiles such as lights this will send a toggle (on/off) command. Other tiles will first prompt you to send the on/off command.

You can configure what happens when you click on a tile by editing the device and selecting 'click action' option

![](/files/NNAMjVYxA3SdLUadPksj)![](/files/qHPXLBYo78KOeIbxgwSo)

### Click action options

* Toggle - sends the on/off (or equivalent) command to the hub
* Prompt - opens a dialog with both ON and OFF buttons to confirm which one you want to send
* Require PIN - will prompt you with a PIN before you can send any command to the hub for this device; see the [Broken mention](broken://pages/vr8GTiz4rb814tYmo9K3)section for more details
* Read Only - nothing will happen when you click on the tile

### Apply To...

Before you change the click action for a device, you'll get this prompt which lets you apply this 'click action' to:

* **This Device** - will only apply the click action to this device
* **All \<Lights>** - will apply the click action to all devices of the same device type (ie: lights)
* **All Devices** - will apply the click action to all devices

![](/files/6ObOBfkB4wUVE9oA5fD2)


---

# 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://joe-page-software.gitbook.io/hubitat-dashboard/features/click-action.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.
