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 1
0
power2 1
0
power3 1
0
power4 1
0
power5 1
0
power6 1
0
power7 1
0
power8 1
0
power9 1
0
power10 1
0
power11 1
0
power12 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
批量控制
batch
全开 {"batch":"{"power":1}"}
全关 {"batch":"{"power":0}"}
线路1|3|5|7|9|11开 {"batch":"{"relay":[1,3,5,7,9,11],"power":1}"}
线路1|3|5|7|9|11关 {"batch":"{"relay":[1,3,5,7,9,11],"power":0}"}
线路2|4|6|8|10|12开 {"batch":"{"relay":[2,4,6,8,10,12],"power":1}"}
线路2|4|6|8|10|12关 {"batch":"{"relay":[2,4,6,8,10,12],"power":0}"}
先通后断
point
500毫秒,全部线路 {"point":"{"interval":500}"}
1秒,线路1|3|5|7 {"point":"{"relay":[1,3,5,7],"interval":1000}"}
2秒,线路2|4|6|8 {"point":"{"relay":[2,4,6,8],"interval":2000}"}
3秒,线路9|11 {"point":"{"relay":[9,11],"interval":3000}"}
4秒,线路10|12 {"point":"{"relay":[10,12],"interval":4000}"}
先断后通
reset
500毫秒,全部线路 {"reset":"{"interval":500}"}
1秒,线路1|3|5|7 {"reset":"{"relay":[1,3,5,7],"interval":1000}"}
2秒,线路2|4|6|8 {"reset":"{"relay":[2,4,6,8],"interval":2000}"}
3秒,线路9|11 {"reset":"{"relay":[9,11],"interval":3000}"}
4秒,线路10|12 {"reset":"{"relay":[10,12],"interval":4000}"}
状态反转
reverse
线路1|2|3|4|5|6反转 {"reverse":"{"relay":[1,2,3,4,5,6]}"}
线路1|3|5|7|9|12反转 {"reverse":"{"relay":[1,3,5,7,9,12]}"}

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
Press the button btn1
线路1输入 line1
线路2输入 line2
线路3输入 line3
线路4输入 line4
线路5输入 line5
线路6输入 line6
线路7输入 line7
线路8输入 line8
线路9输入 line9
线路10输入 line10
线路11输入 line11
线路12输入 line12
状态保持 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
btn1 全断 0 默认
全通 1
禁用 disable
relay1 1
0 默认
relay2 1
0 默认
relay3 1
0 默认
relay4 1
0
relay5 1
0
relay6 1
0
relay7 1
0
relay8 1
0
relay9 1
0
relay10 1
0
relay11 1
0
relay12 1
0
mode1 轻触 0
长按 1
action1 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time1 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode2 轻触 0
长按 1
action2 状态反转 reverse 默认
先断后通 reset
先通后断 point
禁用 disable
time2 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode3 轻触 0
长按 1
action3 状态反转 reverse 默认
先断后通 reset
先通后断 point
禁用 disable
time3 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode4 轻触 0
长按 1
action4 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time4 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode5 轻触 0
长按 1
action5 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time5 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode6 轻触 0
长按 1
action6 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time6 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode7 轻触 0
长按 1
action7 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time7 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode8 轻触 0
长按 1
action8 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time8 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode9 轻触 0
长按 1
action9 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time9 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode10 轻触 0
长按 1
action10 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time10 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode11 轻触 0
长按 1
action11 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time11 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode12 轻触 0
长按 1
action12 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
12 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
filter 150
200
250
300
gap 间隔2秒 2
间隔3秒 3
间隔1秒 1
无保护 0

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
V12
p95.20250817.v12
id.1215 280.88 KB 2025-08-17 15:13:56
id.1216 280.89 KB 2025-08-17 15:15:35
V11
p95.20250702.v11
id.1150 302.57 KB 2025-07-02 10:34:22
id.1157 302.57 KB 2025-07-02 10:41:52
V10
p95.20250519.v10
id.1041 301.7 KB 2025-05-19 15:14:18
id.1042 301.7 KB 2025-05-19 15:14:37
V9
p95.20250430.v9
id.1019 284.67 KB 2025-04-30 21:56:35
id.1020 284.67 KB 2025-04-30 21:57:32
V8
p95.20250319.v8
id.990 283.36 KB 2025-03-19 16:14:17
id.991 283.36 KB 2025-03-19 16:15:14
V7
p95.20250312.v7
id.980 283.68 KB 2025-03-12 12:19:41
id.983 283.68 KB 2025-03-12 12:22:12
V6
p95.20250308.v6
id.976 283.62 KB 2025-03-08 18:57:48
id.977 283.62 KB 2025-03-08 18:59:57
V5
p95.20250123.v5
id.951 284.23 KB 2025-01-23 17:01:18
id.953 284.23 KB 2025-01-23 17:07:47
V4
p95.20241231.v4
id.929 284.23 KB 2024-12-31 09:58:48
id.930 284.16 KB 2024-12-31 09:59:08
V3
p95.20241206.v3
id.886 281.84 KB 2024-12-06 14:44:23
id.887 281.84 KB 2024-12-06 14:44:36