Actions on google 谷歌行动-智能家居-当智能家居设备离线时,如何使谷歌家居正确响应?
我的智能家居应用程序已经可以控制我的智能家居设备。 然而,当智能家居设备离线时,我不能让Google Home说“你的设备离线” 谷歌主页总是说“好的,打开设备名称”。 根据Google提供的document和Node.js示例,我尝试了两种错误响应:Actions on google 谷歌行动-智能家居-当智能家居设备离线时,如何使谷歌家居正确响应?,actions-on-google,google-home,google-smart-home,Actions On Google,Google Home,Google Smart Home,我的智能家居应用程序已经可以控制我的智能家居设备。 然而,当智能家居设备离线时,我不能让Google Home说“你的设备离线” 谷歌主页总是说“好的,打开设备名称”。 根据Google提供的document和Node.js示例,我尝试了两种错误响应: { "requestId": "xxxxxxx", "payload": { "commands": [{ "ids": ["456"], "status": "ERROR",
{
"requestId": "xxxxxxx",
"payload": {
"commands": [{
"ids": ["456"],
"status": "ERROR",
"errorCode": "deviceoffline"
}]
}
}
{
"requestId": "xxxxxxx",
"payload": {
"commands": [{
"ids": ["456"],
"status": "OFFLINE",
"errorCode": "deviceoffline"
}]
}
}
但两者都不起作用。
请开导我。谢谢
2017/08/02更新:
脱机状态正在处理查询,如“设备名称是否打开?”。
不使用EXEC,例如“打开设备名称”。您在JSON中遗漏了
online
参数。下面是脱机的一个示例
{
"ids": ["456"],
"status": "ERROR",
"errorCode": "deviceTurnedOff",
"online": false
}
您在JSON中遗漏了
online
参数。下面是脱机的一个示例
{
"ids": ["456"],
"status": "ERROR",
"errorCode": "deviceTurnedOff",
"online": false
}