首页 > 解决方案 > 智能家居操作中 StatusReport 特征的问题

问题描述

我有一个带有特征action.devices.traits.ArmDisarmaction.devices.traits.StatusReport和其他一些传感器的安全系统:WaterLeak SensorDoor 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 控制台中没有错误。

登录 Firebase 控制台

标签: google-smart-home

解决方案


推荐阅读