简体   繁体   中英

Problem with StatusReport trait in Smart Home Actions

I have a Security System with traits action.devices.traits.ArmDisarm and action.devices.traits.StatusReport and some other sensors: WaterLeak Sensor , Door Sensor...

I report some errors about other devices with StatusReport state. For example: when the door sensor detects that the door is open, the security system must give deviceOpen error.

When I say, "Is my security system ok?" , my server's response to the query intent is the JSON below, but Google Assistant says that he couldn't reach my action ( Unexpected error happened ).

Is there anything wrong with this response?

{
  "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
      }
    }
  }
}

In Firebase Console there are no errors.

Logs in Firebase Console

Your response to the query intent looks right, but there might be an error in other parts of the process. You can follow the Troubleshooting Guide to see how your failed intent is counted in the Smart Home metrics and what are the details on your logs. (Firebase logs only gives info about your server. The logging mentioned in the guide (Google Cloud Logging) is a different and more comprehensive for the intent handling)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM