繁体   English   中英

Google Smart Home Skills上的操作:房间提示/主页图

[英]Actions on Google Smart Home Skill: Room Hint / Home Graph

https://developers.google.com/actions/smarthome/create-app#actiondevicessync上的文档提到JSON响应同步请求的roomHint字段可用于让Google自动将设备分配给正确的房间。

但是,无论我在该字段中返回什么内容,用户仍然必须手动将每个设备分配给一个房间,而我无法让Google使用此roomHint字段自动识别正确的房间

这是一个示例响应:

{
  "requestId": "500166151965294748",
  "payload": {
    "devices": [
      {
        "id": "9",
        "type": "action.devices.types.LIGHT",
        "traits": [
          "action.devices.traits.OnOff"
        ],
        "name": {
          "name": "Light"
        },
        "willReportState": false,
        "roomHint": "Attic"
      }
    ]
  }
}

目前,HomeGraph并不使用提供roomHint的值来确定此设备所在的房间。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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