delete_advance_automation
Delete an advance automation from your device. Use dry run to preview the deletion action.
Instructions
Delete an Advance Automation from a device.
If the automation is currently enabled, it is disabled first before deletion. Defaults to dry_run=True — set dry_run=False to delete.
Args: device_id: The AC Infinity device code (from discover_devices). automation_id: The automation_id from list_advance_automations. dry_run: If True (default), returns the action plan without executing.
Returns:
JSON with action, automation_name, automation_id, was_enabled, dry_run, sent.
On failure returns {"error": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | ||
| automation_id | Yes | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |