Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 325 Bytes

cap-power.md

File metadata and controls

18 lines (10 loc) · 325 Bytes

Capability: Power

Id: power

This capability is for devices where the entire device can be switched on or off.

Properties

  • power - boolean indicating if the device is powered on

device.power

Read the power property of the device.

device.setPower(boolean): Promise

Switch the power of the device.