switch_set_bedtime_end_time
Sets the daily morning time when bedtime ends so a device can be used again; use hour=0 and minute=0 to disable the limit.
Instructions
Set the time in the morning from which a device can be used again, for every day.
Use it for the end of bedtime (05:00 to 09:00), or hour=0 and minute=0 to turn it off. The evening alarm is set with switch_set_bedtime_alarm, a bedtime for single weekdays with switch_set_day_restrictions. Returns a confirmation.
Times outside 05:00 to 09:00 are rejected with the reason. 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>",
"hour": "<hour>"
},
"name": "switch_set_bedtime_end_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hour | Yes | Hour when bedtime ends and the device can be used again (5-9). Use 0 with minute=0 to disable. | |
| minute | No | Minute when bedtime ends (0-59). | |
| device_id | Yes | The unique device ID. Use switch_list_devices to find it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |