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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"controller_id": "<controller_id>",
"port": "<port>",
"on_minutes": "<on_minutes>",
"off_minutes": "<off_minutes>"
},
"name": "set_port_cycle"
}
}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 |