1.MultiOutlet.getStateโ
Get Current State
BDDP
Param | Value | Desc |
---|
method | MultiOutlet.getState | Get Current State |
targetDevice | <String,Necessary> | DeviceId of the MultiOutlet you use; |
token | <String,Necessary> | Net token of the MultiOutlet you use; |
BUDP
Param | Value | Desc |
---|
data.state | <List<String>,Necessary> | State of device's sockets,["closed","open"]; |
data.delays[index].on | <Integer,Necessary> | The remain time of Delay ON;Unit of minute;0 is OFF |
data.delays[index].off | <Integer,Necessary> | The remain time of Delay OFF;Unit of minute;0 is OFF |
data.version | <String,Necessary> | Firmware Version of device |
data.tz | <Integer,Necessary> | Timezone of device. -12 ~ 12 |
2.MultiOutlet.setStateโ
Set MultiOutlet's State
BDDP
Param | Value | Desc |
---|
method | MultiOutlet.setState | Set MultiOutlet's State |
targetDevice | <String,Necessary> | DeviceId of the MultiOutlet you use; |
token | <String,Necessary> | Net token of the MultiOutlet you use; |
params.chs | <Integer,Necessary> | Mask of sockets.[0x01 ~ 0xFF]; For Example: 0x0A = (1<<1 | 1<<3)) = Plug1 & Plug3 Selected, OxFF means all sockets selected |
params.state | <String,Necessary> | Set state of device.["close","open"]; |
BUDP
Param | Value | Desc |
---|
data.state | <List<String>,Necessary> | State of device's sockets,["closed","open"]; |
3.MultiOutlet.setDelayโ
Delay to turn on MultiOutlet.
BDDP
Param | Value | Desc |
---|
method | MultiOutlet.setDelay | Delay to turn on MultiOutlet. |
targetDevice | <String,Necessary> | DeviceId of the MultiOutlet you use; |
token | <String,Necessary> | Net token of the MultiOutlet you use; |
params.delays[*] | <Array,Necessary> | Delays |
params.delays[*].ch | <Integer,Optional> | Index of socket; |
params.delays[*].on | <Integer,Optional> | The time you want to Delay ON;Unit of minute;0 is cancel delay; |
params.delays[*].off | <Integer,Optional> | The time you want to Delay OFF;Unit of minute;0 is cancel delay; |
BUDP
Param | Value | Desc |
---|
data.delays[index].on | <Integer,Necessary> | The remain time of Delay ON;Unit of minute;0 is OFF |
data.delays[index].off | <Integer,Necessary> | The remain time of Delay OFF;Unit of minute;0 is OFF |
4.MultiOutlet.getSchedulesโ
Get Schedule List
BDDP
Param | Value | Desc |
---|
method | MultiOutlet.getSchedules | Get Schedule List. |
targetDevice | <String,Necessary> | DeviceId of the MultiOutlet you use; |
token | <String,Necessary> | Net token of the MultiOutlet you use; |
BUDP
Param | Value | Desc |
---|
data[index].ch | <Integer,Necessary> | Index of socket ; |
data[index].isValid | <Boolean,Necessary> | Enabled/Disabled ; |
data[index].index | <Integer,Necessary> | Index of this record ; |
data[index].on | <String,Optional> | Time to turn on; HH:mm |
data[index].off | <String,Optional> | Time to turn off; HH:mm |
data[index].week | <Integer,Necessary> | mask of effected days(Sunday to Saturday) |
5.MultiOutlet.setSchedulesโ
Set Schedule
BDDP
Param | Value | Desc |
---|
method | MultiOutlet.setSchedules | Set Schedule. |
targetDevice | <String,Necessary> | DeviceId of the MultiOutlet you use; |
token | <String,Necessary> | Net token of the MultiOutlet you use; |
params.sches | <Array<Schedule> | Map<int,Schedule>,Necessary> |
params.sches[index].ch | <Integer,Necessary> | Index of socket ; |
params.sches[index].isValid | <Boolean,Necessary> | Enabled/Disabled ; |
params.sches[index].index | <Integer,Necessary> | Index of this record ; |
params.sches[index].on | <String,Necessary> | Time to turn on; HH:mm |
params.sches[index].off | <String,Necessary> | Time to turn off; HH:mm |
params.sches[index].week | <Integer,Necessary> | mask of effected days(Sunday to Saturday) |
index from "0" to "9"
BUDP
Same as MultiOutlet.getSchedules
6.MultiOutlet.getVersionโ
Get firmware info
BDDP
Param | Value | Desc |
---|
method | MultiOutlet.getVersion | Get firmware info; |
targetDevice | <String,Necessary> | DeviceId of this device; |
token | <String,Necessary> | Net Token of this device; |
BUDP
Param | Value | Desc |
---|
data.version | <String,Necessary> | Current Version; |
data.newVersion.versionId | <String,Optional> | Id of the newest version; |
data.newVersion.versionCode | <String,Optional> | Code of the newest version; |
data.newVersion.fileSize | <String,Optional> | File Size of the newest version; |
7.MultiOutlet.startUpgradeโ
Start Upgrade
BDDP
Param | Value | Desc |
---|
method | MultiOutlet.startUpgrade | Start Upgrade |
targetDevice | <String,Necessary> | DeviceId of this device; |
token | <String,Necessary> | Net Token of this device; |
params.versionId | <String,Necessary> | Version Id you want to upgrade; |
BUDP
Param | Value | Desc |
---|
data.isStarted | <Boolean,Necessary> | Is upgrading started; |
8.Callbacksโ
You can receive it with Http Callback API or MQTT report topic
BUDP
<Same as 1.MultiOutlet.getState>