远程控制设备通断电
统一指令:controller-event
通断器、空开、10A-86插座、16A-86插座、10A转换器插座、16A转换器插座等单路设备的通电或断电操作
向设备发送指令 服务端向设备订阅topic发送消息
{
"key1" : 0,
"key3" : 0,
"messageId" : "202201241610366046",
"type" : "event"
}
设备返回信息 设备向服务端订阅topic上报消息
{
"bssid" : "742ad7790468",
"commandName" : "controller-event",
"ip" : "192.168.0.119",
"key1" : 0,
"key3" : 0,
"keyLock" : 0,
"mac" : "b43a455bef90",
"messageId" : "202201241610366046",
"onState" : 0,
"signal" : -50,
"source" : "command",
"ssid" : "gemeopen",
"temperature" : 35.204,
"timerEnable" : 0,
"type" : "GSCW2P",
"version" : "1.0.8",
"wifiLock" : 0
}
获取设备基础信息
统一指令:info-all
查询当前设备的基础信息,如设备MAC地址、设备型号、固件版本号、当前连接的WiFi名称(ssid)、当前设备被分配的IP地址、WiFi信号强度及相关配置信息。
向设备发送指令 服务端向设备订阅topic发送消息
{
"messageId" : "202201241610366046",
"type" : "info"
}
设备返回信息 设备向服务端订阅topic上报消息
{
"bssid" : "742ad7790468",
"commandName" : "info-all",
"ip" : "192.168.0.119",
"key1" : 0,
"key3" : 0,
"keyLock" : 0,
"mac" : "b43a455bef98",
"messageId" : "202201241610366046",
"onState" : 0,
"signal" : -50,
"source" : "command",
"ssid" : "gemeopen",
"temperature" : 33.129,
"timerEnable" : 0,
"type" : "GSCW2P",
"version" : "1.0.8",
"wifiLock" : 0
}
获取设备用电信息
统一指令:info-statistic
获取设备当前的运行状态与电气数据:开关状态、瞬时电流、瞬时电压、瞬时功率、累计用电量等设备用电相关信息。
向设备发送指令 服务端向设备订阅topic发送消息
{
"messageId" : "202201241610366046",
"type" : "statistic"
}
设备返回信息 设备向服务端订阅topic上报消息
{
"commandName" : "info-statistic",
"current" : 0.003,
"energy" : 0.000,
"key1" : 0,
"key3" : 0,
"mac" : "b43a455bef90",
"messageId" : "202201241610366046",
"power" : 0.021,
"source" : "command",
"voltage" : 232.477
}