RoomInfo 架构

sdm.structures.traits.RoomInfo

此特征属于用于提供房间相关信息的任何聊天室。

字段

字段 说明 数据类型
customName 自定义聊天室名称。

对应于 Google Home 应用中的名称。

string
示例:“主卧室”

示例 GET 请求和响应

请求

GET /enterprises/project-id/structures/structure-id/rooms/room-id

响应

{
  "name" : "enterprises/project-id/structures/structure-id/rooms/room-id",
  "traits" : {
    "sdm.structures.traits.RoomInfo" : {
      "customName" : "Master Bedroom"
    }
  }
}

命令

没有适用于此特征的命令。

错误数

如需查看 API 错误代码的完整列表,请参阅 API 错误代码参考