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"}
监听遥控键码
learn
开始 {"learn":"1"}
结束 {"learn":"0"}

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
遥控器 rf1
键码 rf_key

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
rfaction1 状态反转 reverse
先断后通 reset
先通后断 point
禁用 disable
rftime1 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
V16
p30.20260104.v16
id.1563 277.8 KB 2026-01-04 10:02:45
id.1564 277.8 KB 2026-01-04 10:18:16
id.1682 277.27 KB 2026-01-24 10:53:16
V15
p30.20251202.v15
id.1405 285.1 KB 2025-12-02 14:48:35
id.1406 285.9 KB 2025-12-02 14:52:04
V14
p30.20251014.v14
id.1342 273.6 KB 2025-10-14 11:07:08
id.1343 273.96 KB 2025-10-14 11:07:30
V13
p30.20250804.v13
id.1193 289.03 KB 2025-08-04 16:15:46
id.1194 289.4 KB 2025-08-04 16:17:18
V12
p30.20250102.v12
id.936 277.23 KB 2025-01-02 21:17:15
id.937 277.23 KB 2025-01-02 21:18:00
V11
p30.20241126.v11
id.851 274.02 KB 2024-11-26 21:53:13
id.854 274.01 KB 2024-11-26 21:57:07
V10
p30.20241013.v10
id.748 270.91 KB 2024-10-13 14:21:45
id.753 270.91 KB 2024-10-13 14:24:09
V9
p30.20241008.v9
id.734 270.9 KB 2024-10-08 16:13:45
id.735 270.9 KB 2024-10-08 16:14:37
V8
p30.20240904.v8
id.680 269.07 KB 2024-09-04 18:01:47
id.681 269.07 KB 2024-09-04 18:02:04
V7
p30.20240819.v7
id.658 270.09 KB 2024-08-19 11:30:32
id.659 270.09 KB 2024-08-19 11:32:41