voxel.devices.power

Control the power outlet of a device by powering on, off, or rebooting. This is not a safe reboot, so be sure to shutdown the operating system beforehand.

Parameters

device_id (required)
Numeric Voxel device id, available from voxel.devices.list
power_action (required)
Action to perform on power outlet of a device. One of: on, off, reboot.

Example Response

<rsp stat="ok"/>

Notes

None

Method Specific Error Codes

100: Unknown device
The device_id passed in can't be matched to a valid device.
201: Device action failed (reason)
An error occurred while performing an action on a device. A reason may be specified in parenthesis.