Set port cycle
set_port_cycleSet a controller port to alternate between on and off periods by specifying durations in minutes, with optional activation of Cycle mode.
Instructions
Configure Cycle mode: repeat on_minutes on, then off_minutes off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port number as printed on the controller (1-based). | |
| activate | No | Also switch the port into Cycle mode. | |
| on_minutes | Yes | Duration in minutes (0-1440). | |
| off_minutes | Yes | Duration in minutes (0-1440). | |
| controller_id | Yes | Controller id (`id` from list_controllers). | |
| user_authorized | No | Must be true. Set only after the user explicitly approved this exact change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| port | Yes | ||
| changed | Yes | API keys that were written, in API units. | |
| controller_id | Yes |