google-smart-home - 智能家居操作中 StatusReport 特征的问题
问题描述
我有一个带有特征action.devices.traits.ArmDisarm和action.devices.traits.StatusReport和其他一些传感器的安全系统:WaterLeak Sensor,Door Sensor ...
我使用StatusReport状态报告有关其他设备的一些错误。例如:当门传感器检测到门打开时,安防系统必须deviceOpen
报错。
当我说:“我的安全系统还好吗?” ,我的服务器对查询意图的响应是下面的 JSON,但 Google 助理说他无法执行我的操作(发生意外错误)。
这个回复有什么问题吗?
{
"requestId": "10417064006786362499",
"payload": {
"devices": {
"3rL3QL7Kq2HrQjs53Y7o": {
"isArmed": true,
"currentStatusReport": [
{
"blocking": true,
"deviceTarget": "4BCIpzBWpgLA24mMI7r2",
"priority": 0,
"statusCode": "deviceOpen"
},
{
"blocking": true,
"deviceTarget": "MxRCd6ERRSWzYzyNTE8S",
"priority": 0,
"statusCode": "waterLeakDetected"
}
],
"status": "EXCEPTIONS",
"online": true
}
}
}
}
在 Firebase 控制台中没有错误。
解决方案
推荐阅读
- node.js - 从 S3 读取 ZIP 存档,并将未压缩版本写入新存储桶
- vue.js - 如何从 vue 中的特定 getter 中检索数据?
- python - 带有字典默认值的 typing.NamedTuple
- node.js - 部署“react-admin”应用程序时,Heroku 服务器因“JavaScript 堆内存不足”而崩溃
- c# - 将 C# 对象转换为 IOpenApiAny
- jsf - “主题”必须以 ';' 结尾 分隔符
- iot - 为什么 MQTT 和 CoAP 的有效载荷大小不同?
- flutter - Flutter StatefulWidget 导致多个 HTTP 重新请求
- java - 使用 simpledateformat 解析 6 位毫秒的字符串日期
- client-server - 我如何知道一个库是服务器端库还是客户端库?