switch_set_poe
Enable or disable PoE on one TP-Link Easy Smart switch port, preserving existing priority and power limit, with gated write confirmation and verification.
Instructions
MUTATES PoE on one port. Reads the live PoE page, re-sends the port's current priority and power limit, and changes only on/off, then verifies (WRITE_VERIFY_FAILED if priority/limit were clobbered). Refuses a non-PoE port (NOT_POE_PORT) or a protected port (PROTECTED_PORT). Requires EASYSMART_ALLOW_WRITES=true and confirm_write=true; otherwise no network call. Honours EASYSMART_DRY_RUN (returns the exact form, sends nothing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| enabled | Yes | ||
| confirm_write | No | Must be the JSON boolean true to authorise this mutating write. A string such as "true"/"1"/"yes" does NOT count and the write is refused with no network call; re-send with the boolean confirm_write=true after confirming the change with the operator. |