Get patterns and extremes
get_trendsExplains how a room behaved over a window and, for each subject, whether the building or the way the room is used accounts for it. Carries the share of time each subject stayed inside its band, the band itself, the standout days, and the split by weekday against the hours the room is meant to be in use. Worth showing rather than listing: the shares are a chart, the weekdays are a chart, and the diagnosis is the sentence that goes under them. How to read the fields: shares count only the hours the room is meant to be in use, except humidity, which counts every hour (humidity_basis all_hours). A subject's delta_pts is its share in this window minus its share in the window of the same length just before, in percentage points (null when either side has no hours). diagnosis compares the subject's share in hours the room was in use with hours it stood empty, 80 % counting as fine: verdict fine_both (fine either way), use_load (poor only in use), poor_both (poor either way) or empty_only (poor only empty), and owner names who usually acts on that pattern, the same word for every subject: nobody, ventilation, building or schedule. For sound or light, use_load means the room's use, not its ventilation. Each record has all_time (since the sensor has been in this room) and period (inside the window asked for). 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": "get_trends"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of the window, YYYY-MM-DD, inclusive. Defaults to today. | |
| from | No | First day of the window, YYYY-MM-DD, inclusive. Defaults to six days back, so with neither from nor to the window is the last seven days including today. | |
| room_id | Yes | The room id, as returned by list_rooms. |