set_switch_state
Turn smart devices on or off by specifying state and device name or index. Control lights and switches in your Domoticz home automation system.
Instructions
Set a switch or light to On or Off.
Args: state: Must be 'On' or 'Off'. idx: Device index. name: Device name (case-insensitive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| idx | No | ||
| name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |