設定結構定義

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 錯誤代碼參考資料