# Device Virtual Power

To enable Virtual Power support for the device, the following steps have to be completed:

* [ ] Add the Option VPSUPPORT=1
* [ ] Define an INPUT with
  * [ ] DeviceIndex 0
  * [ ] Type `SYSTEM`
  * [ ] Tag `CONFIGURE_PANEL_STATUS`
  * [ ] Inherit `SPAD_VIRTUAL_POWER`
  * [ ] OPTION `UI_TYPE=3 CUSTOM_TYPE=POWER`
  * [ ] (in Alpha < 0.9.12.38) `WIDTH=20 HEIGHT=20`

This will add the SPAD.neXt standard power-configuration button to the device UI, and the device will be treated like any other device that supports virtual power.

Example

`0,INPUT,0,CONFIGURE_PANEL_STATUS,SYSTEM,SPAD_VIRTUAL_POWER,UI_TYPE=3,CUSTOM_TYPE=POWER`


---

# 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.spadnext.com/extending-and-apis/serial-connection/virtual-power.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.
