温度架构

Nest Thermostat 

sdm.devices.traits.Temperature

此特征属于具有温度测量传感器的任何设备。

字段

字段 说明 数据类型
ambientTemperatureCelsius 在设备上测量的温度(以摄氏度为单位)。 number
示例:23.0

示例 GET 请求和响应

请求

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

响应

{
  "name" : "enterprises/project-id/devices/device-id",
  "traits" : {
    "sdm.devices.traits.Temperature" : {
      "ambientTemperatureCelsius" : 23.0
    }
  }
}

命令

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

错误

请参阅 API 错误代码参考,了解 API 错误代码的完整列表。