1.1. Supportable device types and functions
Smart device category
Name | Function | Type |
---|---|---|
Light | Open, close | DEVICE_TYPE_LAMP |
Switch | Open, close | DEVICE_TYPE_SWITCH |
Socket | Open, close | DEVICE_TYPE_SOCKECT |
Progress curtain (accurately obtain the moving position) | Open, close, Pause, Control Adjust Progress | DEVICE_TYPE_CURTAINS |
Progressless curtain (cannot obtain moving position) | Open, close, Pause | DEVICE_TYPE_CURTAINS_NO_POSITION |
Dreamy curtain (adjustable angle, curtain progress) | Open, close, Pause, Blind progress, Angle | DEVICE_TYPE_CURTAIN_ANGLE |
There is a real-time brightness dimming light | Open, close,Adjust Brightness (Brightness value displayed on the interface) | DEVICE_TYPE_DIMMER |
No real-time brightness dimming light | Open, close,Adjust Brightness (Brightness value not displayed on the interface) | DEVICE_TYPE_DIMMER_2 |
RGB light | Open, close, Saturation Plus, Saturation Minus, Brightness Plus, Brightness Minus Mode Switch (Monochrome Mode, Color Mode) Red, orange, yellow, green, blue-green, blue, purple, pink |
type : DEVICE_TYPE_LAMP subType : DEVICE_SUB_LAMP_TYPE_COLOR_RGB |
Color temperature lamp | Open, close, Color Temperature Plus, Color Temperature Minus, Color Temperature Brightness Plus, Color Temperature Brightness Minus | type : DEVICE_TYPE_LAMP subType :DEVICE_SUB_LAMP_TYPE_COLOR_CW |
RGB color temperature lamp | Open, close, Color Temperature Plus, Color Temperature Minus, Color Temperature Brightness Plus, Color Temperature Brightness Minus Mode Switch (Monochrome Mode, Color Mode, Color Temperature Mode) Brightness up, brightness down, saturation up, saturation down |
type : DEVICE_TYPE_LAMP subType :DEVICE_SUB_LAMP_TYPE_COLOR_RGBCW |
Smart air conditioner | Open, close, Lower temperature, Raise temperature Mode Switch (Cooling, Heating, Airflow, Dehumidification, Automatic, Manual, Comfort, Sleep、) Wind Speed Switch (Silent wind, automatic wind, low-speed wind, medium-speed wind, high-speed wind, up and down wind, left and right wind, sleep wind) Wind direction switch (up and down sweeping wind, left and right sweeping wind, circular wind) |
DEVICE_TYPE_AIRCONDITION |
Infrared air conditioner | Open, close, Lower temperature, Raise temperature Low-speed wind, medium-speed wind, high-speed wind Cooling mode, Heating mode, Dehumidifying mode, Automatic mode, Airflow mode Stop sweeping wind, up and down sweeping wind, left and right sweeping wind |
type : DEVICE_TYPE_AIRCONDITION subType : DEVICE_SUB_TYPE_IR |
Air purifier | Open, close, Automatic Mode, Sleep Mode, Manual Mode Low-speed wind mode, medium-speed wind mode, high-speed wind mode |
DEVICE_TYPE_AIRPURIFIER |
Window opener | Open, close, Pause | DEVICE_TYPE_WINDOW_CONTROLER |
Thermocouple controller | Open, close、Increase temperature, Decrease temperature Mode switching (cooling, heating, air supply, dehumidification, automatic, manual, comfortable, sleep) |
DEVICE_TYPE_HEATER |
Television | Open, close | DEVICE_TYPE_TV |
Set-top box | Open, close | DEVICE_TYPE_STB |
Cat's eye | Open, close | DEVICE_TYPE_CAT_CAMERA |
Camera | Open, close | DEVICE_TYPE_CAMERA |
Projector | Open, close | DEVICE_TYPE_PROJECT |
Extractor fan | Open, close | DEVICE_TYPE_PULL_FAN |
Fan | Open, close、Start shaking head, Stop shaking head, Wind speed, Fan light switch Mode Switch (Sleep, Auto, Normal, Natural) |
DEVICE_TYPE_FAN |
robot arm | Open, close | DEVICE_TYPE_MACHINE_ARM |
fresh air | Open, close Mode Switch (Automatic Mode, Sleep Mode) Wind Speed Switch (Low-speed wind, Medium-speed wind, High-speed wind) |
DEVICE_TYPE_FRESH_AIR |
Underfloor heating | Open, close、Increase Temperature, Decrease Temperature, Automatic Mode, Manual Mode, Sleep Mode | DEVICE_TYPE_FLOOR_HEATING |
Clothes hanger | Open, close,Rise, Fall, Pause, Turn on the light, Turn off the light, |
Drying on, Drying off, Air drying on, Air drying off, Sterilization on, Sterilization off | DEVICE_TYPE_CLOTHES_HANGER |
| Robotic vacuum cleaner | Open, close, Cleaning Mode, Automatic Mode, Strong Mode, Silent Mode、
Recharge mode, standard mode
Clean switch on, off| DEVICE_TYPE_SWEEPER_MACHINE |
For devices without subtypes, there is no need to set deviceSubType during initialization
Sensor class
Name | Function | Type |
---|---|---|
Thermometer sensor | Display temperature | DEVICE_TYPE_TEMPERATURE_SENSOR |
Humidity sensor | Display humidity | DEVICE_TYPE_HUMIDITY_SENSOR |
Temperature and humidity integrated sensor | Display temperature and humidity | DEVICE_TYPE_TEMP_HUMIDITY_SENSOR |
Emergency button | Current status, battery display, history records | DEVICE_TYPE_SOS_SENSOR |
Infrared intrusion detection sensor | Current status, battery display, history records | DEVICE_TYPE_INFRARED_SENSOR |
Magnetic sensor for doors and windows | Current status, battery display, history records | DEVICE_TYPE_MAGNETIC_WINDOW |
Water immersion sensor | Current status | DEVICE_TYPE_WATER_SENSOR |
Flammable gas sensor | Current status, battery display, history records | DEVICE_TYPE_FLAMMABLE_GAS |
Carbon Monoxide Monitor | Current status | DEVICE_TYPE_CO_SENSOR |
Carbon dioxide monitor | Carbon dioxide concentration | DEVICE_TYPE_CO2_SENSOR |
PM2.5 detector | PM2.5 value | DEVICE_TYPE_AIR_PM_25_SENSOR |
Smoke sensor | Current status, historical records | DEVICE_TYPE_SMOKER_SENSOR |
Universal sensor | Display specific values | DEVICE_TYPE_MULTIFUNCTIONAL_SENSOR |
Universal sensor only displays different data states