“Alexa智能家居”;无法检索状态“0”;
我在玩Alexa智能家居的一个示例技巧——我不是在和任何真正的硬件或后端说话,只是想让信息流正常工作。我已经设置了一个简单的开关/插头/灯,只支持打开/关闭-我有帐户链接工作和技能启用。当我尝试通过电话或网络上的Alexa应用程序(启用调试)查看它时,它总是说设备没有响应,或者“检索状态失败”。我完全可以在Cloud Watch中看到如下消息 你知道为什么我会长期得到这样的回应吗 请求: "directive": { "endpoint": { "cookie": {}, "endpointId": "endpoint-003", "scope": { "token": "<<<SUPRESSING>>", "type": "BearerToken" } }, "header": { "correlationToken": "<<SHORTENED>>", "messageId": "50397414-bb9d-412f-8a2c-15669978ab64", "name": "ReportState", "namespace": "Alexa", "payloadVersion": "3" }, "payload": {} } } “指令”:{ “端点”:{ “cookie”:{}, “端点ID”:“端点-003”, “范围”:{ “token”:“问题是:我的头响应中的“name”应该是“ReportState”。“response”仅用于设置/更改值的内容 我的一般建议是始终验证三件事是好的:“Alexa智能家居”;无法检索状态“0”;,alexa,alexa-skill,smarthomeskill,Alexa,Alexa Skill,Smarthomeskill,我在玩Alexa智能家居的一个示例技巧——我不是在和任何真正的硬件或后端说话,只是想让信息流正常工作。我已经设置了一个简单的开关/插头/灯,只支持打开/关闭-我有帐户链接工作和技能启用。当我尝试通过电话或网络上的Alexa应用程序(启用调试)查看它时,它总是说设备没有响应,或者“检索状态失败”。我完全可以在Cloud Watch中看到如下消息 你知道为什么我会长期得到这样的回应吗 请求: "directive": { "endpoint":
您是否在处理后端代码中的发现请求?例如,是的。我以它为例。
{
"context": {
"properties": [
{
"name": "connectivity",
"namespace": "Alexa.EndpointHealth",
"timeOfSample": "2020-06-29T16:49:59.00Z",
"uncertaintyInMilliseconds": 0,
"value": "OK"
},
{
"name": "powerState",
"namespace": "Alexa.PowerController",
"timeOfSample": "2020-06-29T16:49:59.00Z",
"uncertaintyInMilliseconds": 0,
"value": "ON"
}
]
},
"event": {
"endpoint": {
"endpointId": "endpoint-003",
"scope": {
"token": "Alexa-access-token",
"type": "BearerToken"
}
},
"header": {
"correlationToken": "<<SHORTENED>>",
"messageId": "7a8b9a71-adda-41b8-acba-4d3855374845",
"name": "Response",
"namespace": "Alexa",
"payloadVersion": "3"
},
"payload": {}
}
}