PiKVM
Manage PiKVM operations.
| Attribute | Type | Required | Default | Description |
|---|---|---|---|---|
cmd | const | Yes | pikvm | Command name. |
name | string | Yes | Unique identifier for the teststep. | |
options | OptionsObject | No | Additional command options. | |
parameters | PiKVMOptions | Yes | Parameters for the pikvm command. |
PiKVM Options
| Attribute | Type | Required | Default | Description |
|---|---|---|---|---|
command | string | Yes (must be one of: image, screenshot, keyboard, atx) | Operation to perform via the PiKVM interface. | |
host | string | Yes | Hostname or IP address of the PiKVM (format: “https://hostname”). | |
auth | object | Yes (must include username and password) | Authentication details for the PiKVM API. | |
image | object | Conditionally required when command is image | Image configuration. Contains a path property with the image file path to upload and mount. | |
keyboard | object | Conditionally required when command is keyboard | Keyboard input configuration. Use either the keys (array of key sequences) or text (string) property. With keys, delay sets the pause after each key as a duration such as 500ms or 1s (default 500ms). | |
atx | object | Conditionally required when command is atx | ATX power control, see PiKVM ATX Power. |
The screenshot opens the PiKVM’s video stream itself, so no browser has to show it. It fails if the PiKVM gets no picture from the DUT within 10 seconds.
PiKVM ATX Power
Switches the DUT’s power through the PiKVM’s ATX board. The board must be wired to the DUT’s front panel header, including the power LED. Set exactly one of action and button.
| Attribute | Type | Required | Default | Description |
|---|---|---|---|---|
action | string | One of action or button | Power state to reach: on, off (short press, the operating system shuts down), off_hard (long press) or reset_hard (reset button). | |
button | string | One of action or button | Button to click: power, power_long or reset. | |
wait | boolean | No | false | Wait until the PiKVM has finished the press. |
The PiKVM reads the power LED before an action: it presses for on only while the LED is off, and for off, off_hard and reset_hard only while it is on. The step succeeds in both cases, so check the DUT’s state in a later step. A button always presses. Without a wired power LED, the PiKVM always reads “off”: on then turns a running DUT off, and the other actions press nothing.
PiKVM Examples
Image mounting:
Screenshot:
Keyboard input:
or
ATX power, switching the DUT on and waiting for the press:
or a long press of the power button, whatever the power LED shows: