**Control Scheme**
The Devicebit platform also provides settings for custom commands and timed control scheme to realize various timed custom control. The following part mainly introduces this function.
Step 1 Command Settings. Go to ***IOT Applications->Command Settings***, and right click on ***Add A Command.***
![](http://upload-images.jianshu.io/upload_images/5875248-e50f1ca1a048d541.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
Pic1. Add A Command
Title: The name of this command;
Device: select the controllable device;
Method Name: select Updatesensor, or customize the method by yourself;
Parameter: When this command is called, the transfer functions of this device's API address is called. Please note the format is “f=method name, p1=parameter1,p2=parameter2…”
The method names and parameters are related to the program.
Add other control commands in the same way, such as Open LED and Close LED. Click on Test, and if the hardware and program are ready, you will see a corresponding change in the controller. You will receive the successful message and the information returned by the controller.
Step 2 Control Unit Settings. ***IOT Applications -> Multi-control***. The control unit means a set of timed control command, e.g. a combination of control commands.
![](http://upload-images.jianshu.io/upload_images/5875248-d26af834d5ce1cfa.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
Pic.2 Add A Control Unit
Name: the name of this control unit;
Command: select one or a set of several commands customized in step1;
Description: the description of the control unit.
After setting up, click on Multi-Control – Test for testing.
Step 3, Control Scheme. Click on ***IOT Applications ->Control Scheme-> Add A Execution Plan*** to set up the control scheme.
![](http://upload-images.jianshu.io/upload_images/5875248-1487705c19921dda.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
Pic.3 Add A Execution Plan
Control Unit: select the control unit customized in step2;
Name: the name of the control scheme;
Timer Settings: the time to execute the control unit; just tick the time you need;
Enable: tick means On; untick means Off.
After setting up, click on ***Execute Immediately*** for testing.
The above are settings for timed custom control plan. You can realize various interesting timed control with different hardware and ideas, for example Auto-open your curtains at 7:00 am before you get up.
- DeviceBit User Manual
- Quick Start
- 1. Add A Device
- 2. Add a new sensor or controller
- 3. Data Upload Simulation
- 4. WeChat Alert
- 5. Email Alert
- 6. Data Reports
- 7. Account Settings
- 8. WeChat
- 9. Email Auto-sending
- 10. Email Report
- 11. Control Scheme
- 12. Trigger
- 13. MQTT
- 14. Modbus
- 15. Agent
- 16. Credits
- DeviceBit Open Source Tutorials
- 1. DIY WiFi Particles Monitor
- 2. DIY WiFi Particles & HCHO Monitor
- 3. DIY GPRS Particles Monitor
- 4. GPRS Particles Kit V0.1
- 5. WiFi Socket
- Applicaton Doc
- DTU Tutorial 1: Overview
- DTU Tutorial 2: Using DTU to connect JSY-149 single-phase meter to DeviceBit
- DTU Tutorial 3: Using Python+Openwrt DIY DTU & Connect DeviceBit
- DTU Tutorial 4 DIY Low-cost DeviceBit GPRS DTU
- DTU Tutorial 5: DIY Low-cost DeviceBit WIFI DTU
- DeviceBit Other Platform