get_device_history
Retrieve historical logs or graphs for a device by specifying sensor type (light, temp, etc.) and time range (day, month, year).
Instructions
Get history log or graph for a device. sensor_type: 'light', 'text', 'temp', 'percentage', 'counter'. time_range (for graphs): 'day', 'month', 'year'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idx | No | ||
| name | No | ||
| sensor_type | No | light | |
| time_range | No | day |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |