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
Button pressed 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

p7.20251223.v11
id.1480 275.4 KB 2025-12-24 11:56:11
id.1482 275.38 KB 2025-12-24 15:07:22
id.1483 275.38 KB 2025-12-24 15:07:22
V10
p7.20251013.v10
id.1331 274.1 KB 2025-10-13 14:50:49
id.1332 274.1 KB 2025-10-13 14:51:28
V9
p7.20250624.v9
id.1113 309.14 KB 2025-06-24 18:15:49
id.1122 309.14 KB 2025-06-24 18:49:43
id.1123 309.06 KB 2025-06-24 18:49:44
id.1124 309.06 KB 2025-06-24 18:49:44
V8
p7.20250519.v8
id.1037 308.18 KB 2025-05-19 14:48:53
id.1038 308.18 KB 2025-05-19 14:49:22
id.1039 308.15 KB 2025-05-19 14:49:24
id.1040 308.15 KB 2025-05-19 14:49:25
V7
p7.20250225.v7
id.996 291.79 KB 2025-03-26 09:45:36
id.966 290.92 KB 2025-02-25 16:21:25
id.967 290.92 KB 2025-02-25 16:22:01
id.968 290.83 KB 2025-02-25 16:22:02
id.969 290.83 KB 2025-02-25 16:22:03
V4
p7.20240726.v4
id.626 285.86 KB 2024-08-02 20:34:31
id.596 284.86 KB 2024-07-26 09:56:12
增加运行模式
p7.20240618.v3
id.492 382.45 KB 2024-06-18 16:53:26
优化网络
p7.20240416.v2
id.410 348.08 KB 2024-04-16 20:52:40
第1版
p7.20220826.v1
id.24 346.5 KB 2022-08-26 15:56:26
id.336 338.98 KB 2024-01-11 16:43:37