# Device State Switch

This action can switch the current flow based on the configured device state event. Use this action to react to device specific events on your channel.

![](https://content.gitbook.com/content/tZEstFBYh3uMutlup6ku/blobs/rDm2qugUkrRgY5i1D10R/image.png)

### Settings

The action uses the following settings:

| Setting          | Description                                                                             | [Parsed](https://docs.mylinkconnect.com/actions-and-operations/dynamic-parsing) |
| ---------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| State            | The device state you want to control                                                    | :no\_entry:                                                                     |
| Custom State Key | The custom state key value you want to control when you select a custom state condition | :white\_check\_mark:                                                            |
| Criteria         | The criteria you would like to apply to the control switch.                             | :no\_entry:                                                                     |

### Remarks

This action has no remarks

### Trigger

On Condition Met. This action will trigger any child operation as the selected privacy flag meets the set criteria.

### Variables

This action does not produce any variable.

### 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://docs.mylinkconnect.com/execution#global-and-local-actions) or [Behavior level.](https://docs.mylinkconnect.com/execution#global-and-local-actions) This action is available only to [Premium Accounts](https://docs.mylinkconnect.com/basic-concepts/your-account/the-free-plan).
