Restore settings
restore_settingsRestore AC Infinity controller settings from a backup by writing saved port modes and automation rules, then re-read the device to report any remaining differences.
Instructions
Write a backup back to the device: each changed port's full mode settings and each
changed automation rule (in place, by id). The controller record (port 0) and rules that
no longer exist are skipped and reported. Afterwards the device is re-read and any
remaining differences are returned — an empty remaining_changes means fully restored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ports | No | Restore per-port mode settings. | |
| backup_id | Yes | Backup id from backup_settings. | |
| automations | No | Restore Advance Automation rules. | |
| only_changed | No | Only write ports/rules that differ from the backup. | |
| user_authorized | No | Must be true. Set only after the user explicitly approved this exact change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skipped | No | ||
| backup_id | Yes | ||
| controller_id | Yes | ||
| ports_restored | Yes | ||
| rules_restored | Yes | ||
| remaining_changes | Yes | Differences that still exist after the restore (re-read from the device). |