Set switch actions
set_switch_actionsSet a switch's On and Off action URLs or script paths, with explicit confirmation required to prevent unintended changes.
Instructions
Configure switch On Action and Off Action URLs or scripts. Preferred: idx. Requires confirm=True.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idx | No | Numeric Domoticz idx; preferred over name when known | |
| name | No | Case-insensitive Domoticz entity name | |
| confirm | No | Explicitly confirm this high-impact operation | |
| on_action | No | On action URL or script:// path, or empty string to clear (omit or pass null to leave unchanged) | |
| off_action | No | Off action URL or script:// path, or empty string to clear (omit or pass null to leave unchanged) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional Domoticz response title | |
| result | Yes | Configured switch actions | |
| status | Yes | Status returned by Domoticz, normally OK |