我在智能家居技能方面遇到问题。发现部分似乎进展顺利,但是当我尝试报告状态时,会发生以下情况。
我的智能家居技能发送此请求
{
"directive": {
"header": {
"namespace":"Alexa",
"name":"ReportState",
"payloadVersion":"3",
"messageId":"[ID]",
"correlationToken":"[Token]"
},
"endpoint": {
"scope": {
"type":"BearerToken",
"token":"[AuthToken]"
},
"endpointId":"appliance-002",
"cookie": {}
},
"payload": {}
}
}
我退回这个
{
"context": {
"properties": [
{
"namespace":"Alexa.TemperatureSensor",
"name":"temperature",
"timeOfSample":"2018-04-08T20:44:33Z",
"uncertaintyInMilliseconds":500,
"value": {
"value":23,
"scale":"CELSIUS"
}
},
{
"namespace":"Alexa.EndpointHealth",
"name":"connectivity",
"timeOfSample":"2018-04-08T20:44:33Z",
"uncertaintyInMilliseconds":0,
"value":"OK"
}
]
},
"event": {
"header": {
"namespace":"Alexa",
"name":"StateReport",
"payloadVersion":"3",
"messageId":"[ID]",
"correlationToken":"[Token]"
},
"endpoint": {
"endpointId":"appliance-002",
"cookie": {},
"scope": {
"type":"BearerToken",
"token":"[AuthToken]"
}
},
"payload": {}
}
}
亚历克萨只是说
“我不太确定出了什么问题。”
好吧,我也不是。任何人都可以弄清楚这里发生了什么。任何帮助将非常感激。