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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | ||
| days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |