sprut_get_history
Retrieve historical telemetry and statistics for a SprutHub accessory characteristic by ID, with optional service, characteristic, time window, and record limit filters.
Instructions
Retrieve historical telemetry data and statistics for sensor or accessory characteristics.
Args: accessory_id: ID of the accessory. service_id: Optional Service ID (sId). characteristic_id: Optional Characteristic ID (cId). days: Optional time window in days (e.g. 7). hours: Optional time window in hours (e.g. 24). limit: Optional maximum number of records to retrieve.
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": {
"accessory_id": "<accessory_id>"
},
"name": "sprut_get_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| hours | No | ||
| limit | No | ||
| service_id | No | ||
| accessory_id | Yes | ||
| characteristic_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |