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
power13 1
0
power14 1
0
power15 1
0
power16 1
0
power17 1
0
power18 1
0
power19 1
0
power20 1
0
power21 1
0
power22 1
0
power23 1
0
power24 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开 {"batch":"{"relay":[1,3,5,7],"power":1}"}
线路1|3|5|7关 {"batch":"{"relay":[1,3,5,7],"power":0}"}
线路2|4|6|8开 {"batch":"{"relay":[2,4,6,8],"power":1}"}
线路2|4|6|8关 {"batch":"{"relay":[2,4,6,8],"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}"}
先断后通
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}"}

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
线路13输入 line13
线路14输入 line14
线路15输入 line15
线路16输入 line16
线路17输入 line17
线路18输入 line18
线路19输入 line19
线路20输入 line20
线路21输入 line21
线路22输入 line22
线路23输入 line23
线路24输入 line24
状态保持 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
relay13 1
0
relay14 1
0
relay15 1
0
relay16 1
0
relay17 1
0
relay18 1
0
relay19 1
0
relay20 1
0
relay21 1
0
relay22 1
0
relay23 1
0
relay24 1
0
offline1 1
0
不理会 n
offline2 1
0
不理会 n
offline3 1
0
不理会 n
offline4 1
0
不理会 n
offline5 1
0
不理会 n
offline6 1
0
不理会 n
offline7 1
0
不理会 n
offline8 1
0
不理会 n
offline9 1
0
不理会 n
offline10 1
0
不理会 n
offline11 1
0
不理会 n
offline12 1
0
不理会 n
offline13 1
0
不理会 n
offline14 1
0
不理会 n
offline15 1
0
不理会 n
offline16 1
0
不理会 n
offline17 1
0
不理会 n
offline18 1
0
不理会 n
offline19 1
0
不理会 n
offline20 1
0
不理会 n
offline21 1
0
不理会 n
offline22 1
0
不理会 n
offline23 1
0
不理会 n
offline24 1
0
不理会 n
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
mode13 轻触 0
长按 1
action13 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time13 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode14 轻触 0
长按 1
action14 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time14 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode15 轻触 0
长按 1
action15 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time15 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode16 轻触 0
长按 1
action16 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time16 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode17 轻触 0
长按 1
action17 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time17 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode18 轻触 0
长按 1
action18 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time18 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode19 轻触 0
长按 1
action19 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time19 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode20 轻触 0
长按 1
action20 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time20 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode21 轻触 0
长按 1
action21 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time21 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode22 轻触 0
长按 1
action22 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time22 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode23 轻触 0
长按 1
action23 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time23 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
mode24 轻触 0
长按 1
action24 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
time24 1秒 1000
2秒 2000
3秒 3000
4秒 4000
5秒 5000
gap 无保护 0
间隔1秒 1
间隔2秒 2
间隔3秒 3
filter 150
200
250
300

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
V11
p116.20251215.v11
id.1431 1.14 MB 2025-12-15 11:33:07
V10
p116.20250929.v10
id.1304 608.39 KB 2025-09-29 17:13:14
V9
p116.20250923.v9
id.1286 608.32 KB 2025-09-23 16:39:07
消息上报优化
p116.20250903.v8
id.1247 607.47 KB 2025-09-03 21:40:52
LAN优化
p116.20250806.v7
id.1199 632.68 KB 2025-08-06 22:30:43
V6
p116.20250714.v6
id.1177 635.17 KB 2025-07-14 09:55:14
V5
p116.20250710.v5
id.1172 646.98 KB 2025-07-10 18:23:23
V4
p116.20250630.v4
id.1148 647.29 KB 2025-06-30 11:46:57
V3
p116.20250606.v3
id.1073 618.24 KB 2025-06-06 19:37:09
V2
p116.20250525.v2
id.1057 617.88 KB 2025-05-25 12:32:08