enable_advance_automation
Enables a disabled advance automation by reading the current state first and toggling only if needed. Use dry_run to preview without executing.
Instructions
Enable a previously disabled Advance Automation.
Reads current state before toggling — no-ops if already enabled. Defaults to dry_run=True — set dry_run=False to execute.
IMPORTANT: The AC Infinity API uses a toggle endpoint (updateGroupsIsOn). This tool reads the current enabled state first and only calls the API if the automation is currently disabled, ensuring the toggle results in enabled.
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, dry_run, sent.
On failure returns {"error": "..."}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device_id": "<device_id>",
"automation_id": "<automation_id>"
},
"name": "enable_advance_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | ||
| automation_id | Yes | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |