# Control Device State

Use this action to send channel specific commands that can modify the current channel device state.

![](https://2678899722-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-LfnLfpIpiVhXFnzmM3P%2F-LfnLgU8SpO_uiYTM6yg%2Fimage.png?alt=media\&token=3e0a3d71-ed77-42be-8ea8-f111d3c8693b)

### Settings

The action uses the following settings:

| Setting         | Description                                                                                                                                       | [Parsed](https://docs10.xenioo.com/actions-and-operations/dynamic-parsing) |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Device State    | The device state you want to set on the target device. Xenioo will automatically translate the selected state to the relevant flag for the device | :no\_entry:                                                                |
| Custom Mode Key | A custom key that you want to send to the device. Can be set only when Device State is set to Custom                                              | :white\_check\_mark:                                                       |

### Remarks

Xenioo will send the selected device state regardless of the current device state. Depending on specific device executions, you may need to choose when to send a specific state request.

Some states may not be supported on specific channels and devices. If the device or channel do not support a state the action will be ignored.

### Trigger

This action has no triggers.

### Variables

This action produces the following variables when executed:

| Variable                 | Description                                  |
| ------------------------ | -------------------------------------------- |
| device\_state\_directive | The base value for the selected device state |

### Availability

Channel specific availability follows the table below:

| Channel          | Availability     |
| ---------------- | ---------------- |
| Facebook         | Fully Available. |
| WhatsApp         | Fully Available. |
| Telegram         | Fully Available. |
| Web              | Fully Available. |
| Alexa            | Fully Available. |
| Google Assistant | Fully Available. |
| Slack            | Fully Available. |
| API              | Fully Available. |

This action can be used only at [Bot Global level](https://docs10.xenioo.com/execution#global-and-local-actions) or [Behavior level.](https://docs10.xenioo.com/execution#global-and-local-actions) This action is available only to [Premium Accounts](https://docs10.xenioo.com/basic-concepts/your-account/the-free-plan).
