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
metering 打开 1
关闭 0
energy None
voltage None
current None
apparent_power None
active_power None
power_factor None

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"}
查询
query
今日用电量 {"query":"today"}
统计电量 {"query":"amount"}
总用电量 {"query":"total"}
过去3天用电量 {"query":"days"}
过去6小时用电量 {"query":"hours"}
清除
clear
全部 {"clear":"all"}
今日用电量 {"clear":"today"}
统计电量 {"clear":"amount"}
总用电量 {"clear":"total"}
过去3天用电量 {"clear":"days"}
过去6小时用电量 {"clear":"hours"}

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

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
metering_interval 5秒 5
10秒 10
20秒 20
30秒 30
60秒 60
metering_boot 开机后马上开始 1
通过命令开始 0
high_power_time 不触发 0
1秒 1
2秒 2
3秒 3
high_power_value 3kW 3000
2.5kW 2500
2kW 2000
1.5kW 1500
1kW 1000
high_power_action none
断开 0
low_power_time 不触发 0
1秒 1
10秒 10
30秒 30
1m 60
2m 120
3m 180
5m 300
low_power_value 1w 1
2w 2
3w 3
4w 4
5w 5
10w 10
15w 15
20w 20
low_power_action none
断开 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
p45.20251028.v12
id.1360 284.82 KB 2025-11-01 09:55:25
id.1361 284.77 KB 2025-11-01 09:55:27
id.1362 284.77 KB 2025-11-01 09:55:31
V11
p45.20250918.v11
id.1282 286.14 KB 2025-09-18 14:41:07
id.1283 286.09 KB 2025-09-18 14:41:23
id.1284 286.09 KB 2025-09-18 14:41:24
V10
p45.20250823.v10
id.1226 305.11 KB 2025-08-23 10:02:36
id.1231 305.08 KB 2025-08-23 10:07:49
id.1232 305.08 KB 2025-08-23 10:08:01
V9
p45.20250818.v9
id.1217 304.7 KB 2025-08-18 16:26:59
id.1218 304.66 KB 2025-08-18 16:27:24
id.1219 304.66 KB 2025-08-18 16:27:25
V8
p45.20250624.v8
id.1117 309.14 KB 2025-06-24 18:18:49
id.1139 309.06 KB 2025-06-24 19:06:21
id.1141 309.06 KB 2025-06-24 19:07:08
V7
p45.20250609.v7
id.1078 308.52 KB 2025-06-09 11:35:06
id.1079 308.44 KB 2025-06-09 11:36:30
id.1080 308.44 KB 2025-06-09 11:36:31
V6
p45.20250318.v6
id.986 290.69 KB 2025-03-18 20:25:54
id.987 290.65 KB 2025-03-18 20:29:56
id.988 290.65 KB 2025-03-18 20:29:57
V5
p45.20241013.v5
id.745 290.83 KB 2024-10-13 13:18:35
id.963 290.83 KB 2025-02-17 10:48:57
V4
p45.20240726.v4
id.593 284.86 KB 2024-07-26 09:56:02
优化计量,增加运行模式
p45.20240624.v3
id.510 284.29 KB 2024-06-24 15:46:39