Set port power
set_port_powerSet the power level (0-10) a controller port uses when on or off. Pass only the values you want to change, leaving other settings untouched.
Instructions
Set the power levels (0-10) a port uses in its on and/or off state. Applies to every mode;
in On mode on_power is the running level. Pass only the values you want to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port number as printed on the controller (1-based). | |
| on_power | No | Power level used while the port is 'on'. | |
| off_power | No | Power level used while the port is 'off'. | |
| controller_id | Yes | Controller id (`id` from list_controllers). | |
| user_authorized | No | Must be true. Set only after the user explicitly approved this exact change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| port | Yes | ||
| changed | Yes | API keys that were written, in API units. | |
| controller_id | Yes |