Create or change a timer
myio_set_timerCreate or update a myIO smart home timer for a set time or sunrise/sunset offset. Define weekdays or a one-day date, plus the event and target, to automate devices.
Instructions
Create (omit id; an identical existing timer is not duplicated) or change (id) a timer. Time: hour 0..23 + minute 0..59, or sunrise / sunset = "after" | "before" with hour/minute as the offset (max 4 h). Optional month (1..12) and day (1..31) for a one-day timer. days: weekday names ["Mon","Fri"] (omit = every day). event: code or name - 1 load scene (all), 2 relay ON, 3 relay OFF, 4 FET ON, 5 FET OFF, 6 group ON, 7 group OFF, 15 PCA ON, 16 PCA OFF, 8..14/17 load scene parts, 18 SG-Ready mode. param: the target id (relay/FET/group/PCA id, scene slot, SG mode 1..4). Editor level.
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": {
"event": "<event>",
"param": "<param>"
},
"name": "myio_set_timer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| day | No | ||
| days | No | ||
| hour | No | ||
| event | Yes | ||
| month | No | ||
| param | Yes | ||
| minute | No | ||
| server | No | controller name (default Ground floor) | |
| sunset | No | ||
| sunrise | No |