Id: power-channels
Used for devices that support switching one or more channels off. This is used
for all devices of type switch
which are things such as power plugs and
light switches.
power
, array with the power state of all channelspowerChannelN
, where N is the channel (zero-indexed), boolean indicating if the channel is powered or not
The number of channels this device supports.
Get the powered on state of all channels as an array.
Get if the given channel is powered on.
Switch the power state of the given channel.