English
English
简体中文
Contact Us
Register
Log In
Language
English
English
简体中文
Contact Us
Log In
Register
Go to main website
App Develop

App Development

Tuya provides multiple mobile app development methods such as no-code or IoT App SDK development to maximize the monetization of IoT apps.
layoutIndex

Function Definition

Last Updated on : 2021-08-13 09:01:27download

This topic describes the function definition process of the air conditioner mate. It is the first step in product development. Product functions are devided into standard functions and cloud functions.

Standard functions

The commonly used and standard functions under this category.

Standard DP List

DP ID Name Identifier Data Transmission Type DP Type DP Attributes
1 Switch 1 switch_1 Send and report bool
2 Switch 1 countdown countdown_1 Send and report value Value range: 0 to 86400; Interval:1; Multiple: 0; Unit: s.
3 Increase power add_ele Send and report value Value range: 0 to 50000; Interval: 100; Multiple: 3; Unit: kwh.
4 Current current cur_current Report only value Value range: 0 to 30000; Interval: 1; Multiple: 0; Unit: mA
5 Current power cur_power Report only value Value range: 0 to 80000; Interval: 1; Multiple: 1. Unit: w.
6 Current voltage cur_voltage Report only value Value range: 0 to 5000; Interval: 1; Multiple: 1. Unit: v.
7 Production test result bit test_bit report only value Value range: 0 to 5. Interval: 1. Multiple: 0.
8 Voltage calibration coefficient voltage_oe report only value Value range: 0 to 1000000; Interval: 1; Multiple: 0.
9 Current calibration coefficient electric_coe report only value Value range: 0 to 1000000; Interval: 1; Multiple: 0.
10 Power calibration coefficient power_coe report only value Value range: 0 to 1000000; Interval: 1; Multiple: 0.
11 Electricity calibration coefficient electricity_coe report only value Value range: 0 to 1000000; Interval: 1. Multiple: 0.
12 Fault alarm fault Report only fault Fault value: ov_cr, ov_vol, ov_pwr, ls_cr, ls_vol, ls_pow.
13 Switch switch_led Send and report bool
14 Remote control id remote_id Send and report string
15 Working mode mode Send and report Enumeration type Enumeration value cold, warm, auto, air, dehumid.
16 Target temperature target_temp Send and report Enumerated type Value range: 0 to 100. Spacing: 1. Multiple: 1.
17 Wind speed gear fan_level Send and report string Enumeration value: auto, low, middle, and high.
18 Infrared switch infared_sw Send and report Boolean
19 Infrared learning code study_code Report only RAW type
20 Release of infrared learning parameters key_study Release only RAW type
21 Device control control Send and report Enumeration type Enumeration value: send_ir, study, study_exit, and study_key.
22 Single code ID key_id Send and report Numerical type Value range: 1 to 9999. Interval: 1. Multiple: 1.
Note: The above functions are required.

DP details

1. Switch (required): DP ID 1

2. Countdown (required): DP ID 2

Switch countdown, numerical DP, Wi-Fi communication protocol support time range is 0 to 24 hours.

3. Electricity metering: DP ID 3 to 12

  1. Increasing power: the power consumption of the device, each time the “incremental” is reported.

  2. Current current, voltage, power: the real-time parameters of the equipment, in order to reduce the interference of data reporting, when a certain change threshold is exceeded, the current real-time value will be reported.

  3. Calibration coefficient: mainly used for calibration of measurement data.

  4. Fault alarm: including the reporting of various fault values ​​such as over-power.

4. Air conditioning function (required): DP ID 13 to 17

  1. Switch to control the air conditioner switch.
  2. The remote control id matches the remote control id of the air conditioner.
  3. Working mode: cooling, heating, automatic air supply, dehumidification.
  4. Target temperature: Value range: 0 to 100; spacing: 1; multiple: 1.
  5. Wind speed gear: automatic, low wind, medium wind, and high wind.

5. Infrared remote control function (required): DP ID 18 to 22

  1. Infrared switch: remote control on and off instructions.
  2. Infrared learning code: send infrared code content.
  3. Infrared learning parameter issuance: receiving and sending instruction content.
  4. Equipment control: send infrared, study, exit study, infrared code encoding.
  5. Single code ID: infrared code ID.

Cloud function

Turn on the “timing” function, you can set the repeat timing from Monday to Sunday, timing switch equipment, and will automatically switch the time according to the season.
Function Definition