我在智能家居技能方面遇到了问题。发现部分似乎进展顺利,但当我尝试报告状态时,会发生以下情况。
我的智能家居技能发送此请求
{
"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": {}
}
}
而Alexa只是说
“我不太确定出了什么问题。”
我也不是。任何人都可以知道这里发生了什么。任何帮助将不胜感激。
答案 0 :(得分:0)
下游进程改变了我的json,给出了不完整的回复。我无法在任何地方的任何日志中看到这一点,所以通过利用睡眠,咖啡和辛勤工作来做到这一点。