我正在尝试将诸如智能插头之类的虚拟设备添加到myplace.com帐户。我添加了一个设备类型为31(人员电源网关)的组成设备。我已经使用api(https://myplaceapps.docs.apiary.io/#reference/devices/manage-devices/register-a-device)来注册设备。 现在,我想通过网关连接智能插头(设备类型10035)。
这是卷曲要求
curl --request POST
-H "Content-Type: application/json"
--data ' {
"version": "2",
"proxyId": "xxxx--gateway-id xxxx",
"sequenceNumber": "1",
"addDevices": [
{
"deviceId": "xxx-fan",
"deviceType": 10035
}
]
}'
--verbose https://esp.peoplepowerco.com:8443/deviceio/mljson
响应
{"seq":"1","status":"UNKNOWN","unknown":["bond-fan"],"errorMessage":"Not registered"}