switch_set_timer_mode
Set the playtime limit mode for a device: DAILY for one shared daily limit or EACH_DAY_OF_THE_WEEK for separate per-day limits before configuring restrictions.
Instructions
Choose between one limit for every day (DAILY) and one per weekday (EACH_DAY_OF_THE_WEEK).
Use it before switch_set_day_restrictions, which only takes effect in EACH_DAY_OF_THE_WEEK mode; in DAILY mode switch_set_daily_playtime_limit sets the limit. switch_get_device shows the current mode. Returns a confirmation.
Returns "Error: Device '' not found. ..." for an unknown device_id. Returns "Error: Not authenticated. ..." without a session token and "Error: Authentication failed. ..." when it expired; then log in again with switch_get_login_url.
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": {
"device_id": "<device_id>",
"mode": "<mode>"
},
"name": "switch_set_timer_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Timer mode: 'DAILY' for a single limit for all days, or 'EACH_DAY_OF_THE_WEEK' for per-day limits. | |
| device_id | Yes | The unique device ID. Use switch_list_devices to find it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |