Set port timer
set_port_timerConfigure a countdown timer for a controller port to automatically switch on or off after a set number of minutes.
Instructions
Configure a countdown timer: the port turns on (to_on) or off (to_off) after minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port number as printed on the controller (1-based). | |
| minutes | Yes | Duration in minutes (0-1440). | |
| activate | No | Also switch the port into the matching timer mode. | |
| direction | Yes | 'to_on' or 'to_off'. | |
| 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 |