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
power1 0 关闭电源开关
1 打开电源开关

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
1路状态保持
power1
1路保持关(用户开3秒后自动关闭) {"power1":"{"keep":"0","revert":"3"}"}
1路保持开(用户关3秒后自动打开) {"power1":"{"keep":"1","revert":"3"}"}
1路先通后断
point1
1s {"point1":"1000"}
2s {"point1":"2000"}
3s {"point1":"3000"}
1路先断后通
reset1
1s {"reset1":"1000"}
2s {"reset1":"2000"}
3s {"reset1":"3000"}

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

按钮1被按下

状态保持 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 状态反转 reverse
先断后通 reset
先通后断 point
禁用 dis
time1 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
led 长灭 0
长亮 1
与线路一致 rs
与线路相反 rr

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
V26
p10.20260106.v26
id.1594 277.74 KB 2026-01-06 10:30:39
id.1618 277.74 KB 2026-01-06 11:21:16
V25
p10.20251010.v25
id.1315 268.46 KB 2025-10-10 21:18:20
id.1316 268.46 KB 2025-10-10 21:19:08
V24
p10.20250624.v24
id.1102 297.77 KB 2025-06-24 16:40:59
id.1105 297.77 KB 2025-06-24 16:45:10
V23
p10.20250103.v23
id.938 282.72 KB 2025-01-03 17:11:05
id.939 282.72 KB 2025-01-03 17:11:10
V22
p10.20241212.v22
id.895 280.15 KB 2024-12-12 10:53:06
id.897 280.15 KB 2024-12-12 11:56:33
V21
p10.20240927.v21
id.716 276.41 KB 2024-09-27 10:24:40
id.779 276.44 KB 2024-11-01 14:59:41
V20
p10.20240904.v20
id.682 270.8 KB 2024-09-04 18:21:20
优化内存
p10.20240715.v19
id.537 271.05 KB 2024-07-15 17:11:49
增加运行模式
p10.20240615.v18
id.482 280.53 KB 2024-06-15 17:15:53
私有化支持
p10.20240516.v16
id.462 341.94 KB 2024-05-16 20:41:49