Skip to main content

Outlet

1.Outlet.getState

Get Current State

BDDP

ParamValueDesc
methodOutlet.getStateGet Current State
targetDevice<String,Necessary>DeviceId of the Outlet you use;
token<String,Necessary>Net token of the Outlet you use;

BUDP

ParamValueDesc
data.state<Boolean,Necessary>Current outlet state;true means ON and false is OFF;
data.delay.on<Integer,Necessary>The remain time of Delay ON;Unit of minute;0 is OFF
data.delay.off<Integer,Necessary>The remain time of Delay OFF;Unit of minute;0 is OFF

2.Outlet.setState

Set Outlet's State

BDDP

ParamValueDesc
methodOutlet.setStateSet Outlet's State
targetDevice<String,Necessary>DeviceId of the Outlet you use;
token<String,Necessary>Net token of the Outlet you use;
params.state<Boolean,Necessary>true means ON and false is OFF;

BUDP

Same as Outlet.getState

3.Outlet.setDelayOn

Delay to turn on outlet.

BDDP

ParamValueDesc
methodOutlet.setDelayOnDelay to turn on outlet.
targetDevice<String,Necessary>DeviceId of the Outlet you use;
token<String,Necessary>Net token of the Outlet you use;
params.time<Integer,Necessary>The time you want to Delay ON;Unit of minute;0 is cancel delay;

BUDP

Same as Outlet.getState

4.Outlet.setDelayOff

Delay to turn off outlet.

BDDP

ParamValueDesc
methodOutlet.setDelayOffDelay to turn off outlet.
targetDevice<String,Necessary>DeviceId of the Outlet you use;
token<String,Necessary>Net token of the Outlet you use;
params.time<Integer,Necessary>The time you want to Delay OFF;Unit of minute;0 is cancel delay

BUDP

Same as Outlet.getSchedules

5.Outlet.getSchedules

Get Schedule List

BDDP

ParamValueDesc
methodOutlet.getSchedulesGet Schedule List.
targetDevice<String,Necessary>DeviceId of the Outlet you use;
token<String,Necessary>Net token of the Outlet you use;

BUDP

ParamValueDesc
data.Schedules[*].index<Integer,Necessary>Index of this record ;
data.Schedules[*].onTime<String,Necessary>Time to turn on; HH:mm
data.Schedules[*].offTime<String,Necessary>Time to turn off; HH:mm
data.Schedules[*].weekMask<Integer,Necessary>mask of effected days(Sunday to Saturday)

6.Outlet.setSchedule

Set Schedule

BDDP

ParamValueDesc
methodOutlet.setScheduleSet Schedule.
targetDevice<String,Necessary>DeviceId of the Outlet you use;
token<String,Necessary>Net token of the Outlet you use;
params.index<Integer,Necessary>Index of this record ;Update it when record existed or insert it otherwise;6 records limited.
params.onTime<String,Necessary>Time to turn on; HH:mm
params.offTime<String,Necessary>Time to turn off; HH:mm
params.weekMask<Integer,Necessary>mask of effected days(Sunday to Saturday)

BUDP

ParamValueDesc

7.Outlet.getVersion

Get firmware info

BDDP

ParamValueDesc
methodOutlet.getVersionGet firmware info;
targetDevice<String,Necessary>DeviceId of this device;
token<String,Necessary>Net Token of this device;

BUDP

ParamValueDesc
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;

8.Outlet.startUpgrade

Start Upgrade

BDDP

ParamValueDesc
methodOutlet.startUpgradeStart 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

ParamValueDesc
data.isStarted<Boolean,Necessary>Is upgrading started;

9.Callbacks

You can receive it with Http Callback API or MQTT report topic

BUDP

<Same as 1.Outlet.getState>