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
先断后通
reset
2秒 {"reset":"2000"}
3秒 {"reset":"3000"}
5秒 {"reset":"5000"}
先通后断
point
2秒 {"point":"2000"}
3秒 {"point":"3000"}
5秒 {"point":"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
按钮1被按下 btn1


状态保持 keep

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 先断后通 reset 默认
先通后断 point
1
0
time1 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000 默认
8秒 8000
10秒 10000
15秒 15000
20秒 20000
offline 1
0
不理会 no

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
V57
p15.20260106.v57
id.1598 277.75 KB 2026-01-06 10:30:42
id.1619 277.75 KB 2026-01-06 11:21:50
V56
p15.20251010.v56
id.1317 268.46 KB 2025-10-10 21:21:51
id.1319 276.03 KB 2025-10-10 21:22:30
V55
p15.20250823.v55
id.1238 293.27 KB 2025-08-23 16:10:59
id.1239 293.27 KB 2025-08-23 16:11:45
V54
p15.20250627.v54
id.1145 297.77 KB 2025-06-27 17:09:50
id.1146 297.77 KB 2025-06-27 17:10:21
V53
p15.20250102.v53
id.931 282.63 KB 2025-01-02 16:42:27
id.932 282.63 KB 2025-01-02 16:43:32
V52
p15.20241230.v52
id.924 282.58 KB 2024-12-30 16:45:54
id.925 282.58 KB 2024-12-30 16:46:14
V51
p15.20240920.v51
id.712 276.37 KB 2024-09-20 16:56:56
V50
p15.20240904.v50
id.685 270.77 KB 2024-09-04 18:23:55
V49
p15.20240726.v49
id.597 271.82 KB 2024-07-26 16:10:54
V48
p15.20240715.v48
id.545 270.99 KB 2024-07-15 17:13:17