Learn the product definition (object model), which can help you more accurately and flexibly call the interface to access the device.
Product definition

2.1 State property

The status attribute is the basic material model of the product, which determines the function of the product.
By issuing commands, human operations can change these status attributes;
If it is a sensor class or a product with sampling function, the environment will also change the device status attribute.
Property Options Value Description
power 1 打开电源开关
0 关闭电源开关

2.2 Device command

The device supports the following commands, and can send these commands to the device through the interface.
When private (Broker, gateway, etc. in any way), the command sending method is different, but the content is the same.
System command(All products support)
Name Content Description
网络信息 {"system":"network"} View the current network information of the device: network type, signal strength, IP address, etc.
Soft reboot {"system":"restart"} Restart the device and try to maintain the current state as much as possible
Hard reboot {"system":"reboot"} Restart the device, abandon the current state
Commands of this product
Command Name Content Description
先通后断
point
1秒 {"point":"1000"}
2秒 {"point":"2000"}
3秒 {"point":"3000"}
5秒 {"point":"5000"}
先断后通
reset
1秒 {"reset":"1000"}
2秒 {"reset":"2000"}
3秒 {"reset":"3000"}
5秒 {"reset":"5000"}

2.2 Trigger event

When the device property status value changes because of the following two reasons:
1. Self-state changes (such as the value of a sensor changes);
2. Human operation (pressed the device button)
After the event is triggered, the platform will carry the current status parameter of the device, and report the message in real time,
The specific mechanism is described in "Section 5: Message push"
Public event(All products support)
Name Content Description
Power on {"name":"boot","state":{Current attribute value}} Device power on, cloud registration after trigger, report with the current status (the value of each function attribute)
This product event
Event Name Description
按钮被按下 btn1

2.3 Configuration item

All configuration items are saved in the Flash of the device, because Flash has a write limit,
So the platform does not open the interface to modify the configuration of the device in batch, you can modify the configuration item in the console.
All configuration items have default values, such as do not understand the meaning of the configuration item, do not modify it randomly;
Modifying the configuration item can only be successfully sent and saved when the device is online, and does not require a restart of the device.
Configuration item
Configuration item Name Content Description
relay1 1 打开电源开关
0 关闭电源开关
action1 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time1 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000

Attachment. Firmware list

The principle of firmware update is compatibility upgrade, that is, the new firmware version will retain the original functions and commands.
If the current firmware can meet the business requirements, you can not upgrade the latest version of the firmware.
Last 10
Version ID Size Release date Description
V35
p1.20251011.v35
id.1323 275.38 KB 2025-10-11 15:52:23
id.1325 275.38 KB 2025-10-11 15:54:15
id.1616 275.4 KB 2026-01-06 10:46:09
id.1687 275.4 KB 2026-01-26 19:17:55
V34
p1.20250910.v34
id.1266 274.15 KB 2025-09-10 10:23:50
id.1297 274.15 KB 2025-09-28 17:44:05
id.1298 274.15 KB 2025-09-28 17:44:10
id.1299 274.14 KB 2025-09-28 17:45:59
V33
p1.20250702.v33
id.1158 309.26 KB 2025-07-02 11:01:34
id.1159 309.25 KB 2025-07-02 11:01:59
id.1160 309.19 KB 2025-07-02 11:01:59
id.1161 309.19 KB 2025-07-02 11:01:59
V32
p1.20250624.v32
id.1114 309.13 KB 2025-06-24 18:17:29
id.1119 309.13 KB 2025-06-24 18:30:38
id.1120 309.06 KB 2025-06-24 18:30:43
id.1121 309.05 KB 2025-06-24 18:30:44
V31
p1.20250525.v31
id.1058 308.32 KB 2025-05-25 17:52:56
id.1059 308.32 KB 2025-05-25 17:53:45
id.1060 308.25 KB 2025-05-25 17:53:46
id.1061 308.25 KB 2025-05-25 17:53:47
V30
p1.20250213.v30
id.956 290.92 KB 2025-02-13 16:07:36
id.957 290.92 KB 2025-02-13 16:09:10
id.958 290.83 KB 2025-02-13 16:09:11
id.959 290.83 KB 2025-02-13 16:09:12
V29
p1.20240904.v29
id.686 282.76 KB 2024-09-04 18:34:19
id.692 282.76 KB 2024-09-04 18:48:00
id.693 282.7 KB 2024-09-04 18:48:25
id.694 282.7 KB 2024-09-04 18:48:28
V28
p1.20240728.v28
id.610 283.69 KB 2024-07-28 15:43:50
id.614 283.54 KB 2024-07-28 15:48:15
id.615 283.48 KB 2024-07-28 15:49:49
优化内存
p1.20240715.v27
id.550 282.86 KB 2024-07-15 17:41:13
id.551 282.81 KB 2024-07-15 17:45:29
增加运行模式
p1.20240702.v26
id.517 284.54 KB 2024-07-02 16:59:12
id.518 284.65 KB 2024-07-02 17:00:12