Function Definition

Last Updated on : 2022-06-21 02:32:25download

Function definition is the first step in product development. It consists of standard function, custom function, and cloud function.

Standard Functions

Standard function indicates the common functions.

DP ID Data point Identifier Data transmission type DP type DP property
1 Switch switch_1 Send/report boolean Valid values: {0, 1}
2 Switch 2 switch_2 Send/report boolean Valid values: {0, 1}
3 Switch 3 switch_3 Send/report boolean Valid values: {0, 1}
4 Switch 4 switch_4 Send/report boolean Valid values: {0, 1}
5 Switch 5 switch_5 Send/report boolean Valid values: {0, 1}
6 Switch 6 switch_6 Send/report boolean Valid values: {0, 1}
7 USB switch1 switch_usb1 Send/report boolean Valid values: {0, 1}
8 USB switch switch_usb1 Send/report boolean Valid values: {0, 1}
9 Countdown of switch 1 countdown_1 Send/report Integer The value ranges from 0 to 86,400, with a pitch of 1 and a scale of 0. Unit: s.
Note: The value ranges from 0 to 4,320 for Zigbee.
10 Countdown of switch 2 countdown_2 Send/report Integer The value ranges from 0 to 86,400, with a pitch of 1 and a scale of 0. Unit: s.
Note: The value ranges from 0 to 4,320 for Zigbee.
11 Countdown of switch 3 countdown_3 Send/report Integer The value ranges from 0 to 86,400, with a pitch of 1 and a scale of 0. Unit: s.
Note: The value ranges from 0 to 4,320 for Zigbee.
12 Countdown of switch 4 countdown_4 Send/report Integer The value ranges from 0 to 86,400, with a pitch of 1 and a scale of 0. Unit: s.
Note: The value ranges from 0 to 4,320 for Zigbee.
13 Countdown of switch 5 countdown_5 Send/report Integer The value ranges from 0 to 86,400, with a pitch of 1 and a scale of 0. Unit: s.
Note: The value ranges from 0 to 4,320 for Zigbee.
14 Countdown of switch 6 countdown_6 Send/report Integer The value ranges from 0 to 86,400, with a pitch of 1 and a scale of 0. Unit: s.
Note: The value ranges from 0 to 4,320 for Zigbee.
15 USB 1 countdown countdown_5 Send/report Integer The value ranges from 0 to 86,400, with a pitch of 1 and a scale of 0. Unit: s.
Note: The value ranges from 0 to 4,320 for Zigbee.
16 USB 2 countdown countdown_6 Send/report Integer The value ranges from 0 to 86,400, with a pitch of 1 and a scale of 0. Unit: s.
Note: The value ranges from 0 to 4,320 for Zigbee.
17 Battery capacity up add_ele Send/report Integer The value ranges from 0 to 1,000, with a pitch of 1 and a scale of 0.
18 Actual current cur_current Report only Integer The value ranges from 0 to 30,000, with a pitch of 1 and a scale of 0. Unit: mA.
19 Actual power cur_power Report only Integer The value ranges from 0 to 50,000, with a pitch of 1 and a scale of 1. Unit: w.
20 Actual voltage cur_voltage Report only Integer The value ranges from 0 to 1,000, with a pitch of 1 and a scale of 1. Unit: v.
21 Production test results test_bit Report only Integer The value ranges from 0 to 5, with a pitch of 1 and a scale of 0. Unit:
22 Power statistics calibration voltage_coe Report only Integer The value ranges from 0 to 1000,000, with a pitch of 1 and a scale of 0.
23 Power statistics calibration electric_coe Report only Integer The value ranges from 0 to 1000,000, with a pitch of 1 and a scale of 0.
24 Power calibration factor power_coe Report only Integer The value ranges from 0 to 1000,000, with a pitch of 1 and a scale of 0.
25 Power statistics calibration electricity_coe Report only Integer The value ranges from 0 to 1000,000, with a pitch of 1 and a scale of 0.
26 Fault alarm fault Report only Fault Fault value ov_cr, ov_vol, ov_pwr, ls_cr, ls_vol, ls_pow.
27 Scenario light switch switch_led Send/report boolean -
28 Scenario light mode work_mode Send/report Enum The values include white, color, scene, and music.
29 Brightness bright_value Send/report Integer The value ranges from 10 to 1,000, with a pitch of 1 and a scale of 0.
30 Color temperature temp_value Send/report Integer The value ranges from 0 to 1,000, with a pitch of 1 and a scale of 0.
31 Colored light colour_data Send/report String -
32 Scene mode scene_data Send/report String -
33 Left time countdown Send/report Integer The value ranges from 0 to 86400, with a pitch of 1 and a scale of 0. Unit:s.
34 Dimming control_data Send only String -
35 Power status setting relay_status Send/report Enum Enum value: off, on, and memory.

Custom functions

You can customize functions that are not supported by standard function. Data point (DP) is the abstract representation of function, and each function can be defined by different function types.

Function Definition

Cloud functions

  • Cloud Function: It supports cloud timing and jumping page.
  • Cloud Timing: You can configure the cloud timing function in the Panel Studio. You can set the timer and weekly schedule. Embedded hardware development is not required to achieve this function.
  • Jumping Page: With a link, users can navigate to another page, such as the online store and user guide.

Related documents

You can complete the product definition according to the page guide and product requirements. See more details: