Set port schedule
set_port_scheduleSet a daily on/off schedule for a controller port, supporting overnight windows like 18:00–06:00. Disable either time by omitting it, and optionally activate Schedule mode.
Instructions
Configure Schedule mode: on at start, off at end (controller local time). A window
crossing midnight (e.g. 18:00 → 06:00) is allowed. Null disables that edge (API value 65535).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Daily off time HH:MM, or null to disable. | |
| port | Yes | Port number as printed on the controller (1-based). | |
| start | Yes | Daily on time HH:MM, or null to disable. | |
| activate | No | Also switch the port into Schedule mode. | |
| 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 |