Toggle switch
toggle_switchToggle a Domoticz device on or off using its numeric idx or case-insensitive name. Resolves the device and flips its current state.
Instructions
Toggle device. Preferred: idx. Cross-ref: set_switch_state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idx | No | Numeric Domoticz idx; preferred over name when known | |
| name | No | Case-insensitive Domoticz entity name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional Domoticz response title | |
| status | Yes | Status returned by Domoticz, normally OK |