Set the night hours of a room
set_night_windowSets when people sleep in a room, as a start and an end time that may cross midnight. A bedroom's or a hotel room's nights are judged on these hours (get_nights), its room score uses its night ranges inside them, and the sensor's light can be switched off during them. Any other room stores them and changes nothing. A room with none set uses 23:00 to 07:00, and use_default set to true clears it back to that. Requires a PitCanary account.
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": {
"room_id": "<room_id>"
},
"name": "set_night_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| night | No | The night hours. Leave this out when use_default is true. | |
| room_id | Yes | The room id, as returned by list_rooms. | |
| use_default | No | true clears the night hours, so the room uses 23:00 to 07:00 again. Send either this or night. |