Reading history
qingping_historyRetrieve Qingping sensor history for a chosen period, with per-metric min, max, average, threshold-exceedance minutes, data coverage, and optional bucketed series for charts.
Instructions
History of a Qingping sensor over a period. Returns, per metric, min / max / average / first / last value, the time of the min and max, and the minutes spent above thresholds (CO₂ > 1000 and > 1500 ppm, PM2.5 > 15 and > 35, humidity > 60 and > 70 %). With max_points > 0, also returns the series (averaged per bucket) to draw a chart. coverage gives the share of the period actually measured: an empty or partial history means "no data", not "nothing to report".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End, ISO 8601. Default: now. | |
| hours | No | The last N hours (default 24). Ignored when start is given. | |
| start | No | Start, ISO 8601 (e.g. 2026-11-06T22:00:00+01:00). | |
| device | No | Device name or MAC address. Optional when the account has a single device. | |
| metrics | No | Restrict to these metrics (e.g. ["co2","pm25"]). Default: all. | |
| max_points | No | Max number of points in the returned series (0 = summary only, default 0). |