set_vpd_automation
Enable VPD automation on a port by setting a target VPD value. Uses built-in temperature and humidity sensors to maintain the desired VPD.
Instructions
Enable VPD automation on a port using the built-in temperature and humidity sensors.
Switches the port to VPD mode (atType=8) and sets the VPD target. Uses read-before-write. Defaults to dry_run=True — set dry_run=False to write to the device.
Args: device_id: Device code from discover_devices (e.g. "C58ZA"). port: 1-based port number. target_vpd: Target VPD in kPa, range 0.1–3.0. Typical ranges by stage: seedling/clones 0.8–1.2, veg 1.0–1.5, early_flower 1.0–1.8, mid_flower 1.2–2.0, late_flower 1.2–1.8. dry_run: If True (default), returns the payload that would be sent without writing.
Returns:
JSON with action, device_id, port, target_vpd_kpa, dry_run,
controller_type, sent, and payload (when dry_run=True).
On failure returns {"error": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | ||
| port | Yes | ||
| target_vpd | Yes | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |