set_port_on
Turn a port on at full speed on AC Infinity controllers. Supports fan and on/off toggle devices; includes dry-run mode to preview the payload.
Instructions
Turn a port on at full speed (onSpead=10).
Works for fan-type and on/off toggle devices. 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. dry_run: If True (default), returns the payload that would be sent without writing.
Returns: JSON with action, device_id, port, dry_run, controller_type, sent, and payload (when dry_run=True).
When the port appears to have nothing connected (primary: ``portResistance == 65535``;
fallback for old firmware: default-named ``"Port N"`` with zero load, or a devType=18/22
device), the response also includes a ``warning`` field alerting the grower.
On failure returns ``{"error": "..."}``.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | ||
| port | Yes | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |