Device usage history
iot_device_readingsA charted series for one device — consumption per day for a meter, average per hour for a thermostat — over 24h, 7d, 30d, 90d or 12m, plus the most recent raw readings. Meters report the register; the series is what was USED in each bucket.
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>"
},
"name": "iot_device_readings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | ||
| metric | No | Which metric (energy_kwh, water_gal, temperature_f, …). Defaults to the device's primary metric. | |
| device_id | Yes | The device id from iot_devices. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why the result was truncated, when it was. | |
| truncated | No | Present and true when the result was too large to return in full. Treat it as a partial answer. | |
| total_available | No | How many rows existed before truncation. |