Backup settings
backup_settingsSave a controller's complete configuration, including port modes, automation rules, and alarms, to a local JSON file before making changes. Restore this backup later to undo any modifications.
Instructions
Save the complete configuration of a controller (every port's mode settings, the controller record, all Advance Automation rules and alarms) to a local JSON file. Nothing on the device changes. Do this before any set_* call; restore_settings undoes changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional tag for the file name. | |
| controller_id | Yes | Controller id (`id` from list_controllers). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| label | No | ||
| ports | Yes | ||
| backup_id | Yes | Use this id with restore_settings / compare_backup. | |
| created_at | Yes | ||
| controller_id | Yes | ||
| controller_name | Yes | ||
| automation_rules | Yes |