设置架构

Nest Thermostat 

sdm.devices.traits.Settings

此特征属于任何设备,用于提供设备相关设置信息。

字段

字段 说明 数据类型
temperatureScale Google Nest Thermostat 上显示的温度单位格式。 string
值:"CELSIUS"、"FAHRENHEIT"

GET 请求和响应示例

请求

GET /enterprises/project-id/devices/device-id

响应

{
  "name" : "enterprises/project-id/devices/device-id",
  "traits" : {
    "sdm.devices.traits.Settings" : {
      "temperatureScale" : "CELSIUS"
    }
  }
}

命令

此特征没有可用的命令。

错误

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