Get switch actions
get_switch_actionsRetrieve the On and Off Action URLs or scripts for a Domoticz switch. Use the switch idx or name to get the commands that run when it toggles.
Instructions
Get On Action and Off Action URLs or scripts for a switch. Preferred: idx. Cross-ref: set_switch_actions.
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 | |
| result | Yes | Configured switch actions | |
| status | Yes | Status returned by Domoticz, normally OK |