device.type
:power-plug
- Models: Mi Smart Socket Plug, Aqara Plug
- Model identifiers:
chuangmi.plug.v1
,chuangmi.plug.v2
,chuangmi.plug.m1
,lumi.plug
Similar to the more generic type power-switch
but represents a power
plug that can be connected to a socket. Always has the capability
power-channels
and can support more than one channel.
Supports the capabilities power-load
and power-usage
.
power
, array with the power state of all channelspowerChannelNAME
, where NAME is the channel with the first letter uppercase, boolean indicating if the channel is powered or not
The channels this device supports.
Get the powered on state of all channels as an object with keys for each channel.
Get if the given channel is powered on.
Switch the power state of the given channel.