switch_poe_cycle
Power-cycle a wedged PoE camera: turn its switch port off, wait, then back on. Specify a port number or camera name; protected ports and dry-run are honored.
Instructions
MUTATES: power-cycle one PoE camera (off, wait off_seconds, on, wait for power). Resolve a PORT_MAP camera name or port number. Refuses non-PoE (NOT_POE_PORT), protected (PROTECTED_PORT), an already-off port (ALREADY_OFF) and a second concurrent cycle (CYCLE_IN_PROGRESS). If it cannot restore power it reports CYCLE_INCOMPLETE/POWER_NOT_RESTORED naming the port that may be UNPOWERED. Requires both write gates; honours EASYSMART_DRY_RUN (returns both planned forms, sends nothing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| off_seconds | No | ||
| port_or_name | 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. |