detect_environment_trends
Identify temperature, humidity, and VPD trends over recent days to anticipate environmental changes and receive alerts for significant shifts.
Instructions
Detect linear trends in temperature, humidity, and VPD over a look-back window.
Args: device_id: The AC Infinity device code (from discover_devices) days: Number of days to look back. Default: 7. Must be 1–30.
Returns: JSON with per-metric trend reports: slope (change/hour), direction, 7-day projection, and alert flag.
Note: The AC Infinity history API returns a maximum of ~1257 records per day regardless of page_size. For longer windows the data may be sparse.
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": "detect_environment_trends"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | ||
| days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |