[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-29 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003esdm.devices.traits.Temperature\u003c/code\u003e trait applies to devices with temperature sensors and provides the current temperature in Celsius.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eambientTemperatureCelsius\u003c/code\u003e field represents the device's measured temperature in degrees Celsius.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve a device's temperature by sending a GET request to its resource endpoint, which includes the \u003ccode\u003esdm.devices.traits.Temperature\u003c/code\u003e trait in the response if available.\u003c/p\u003e\n"],["\u003cp\u003eThis trait is read-only, meaning there are no commands to control or modify the temperature.\u003c/p\u003e\n"]]],["The `Temperature` trait, found in devices with temperature sensors, provides the `ambientTemperatureCelsius` field. This field reports the temperature in degrees Celsius measured at the device, as a number (e.g., 23.0). A GET request to a device's endpoint retrieves a response, including the device's name and its `Temperature` trait with the current `ambientTemperatureCelsius` reading. No commands are available for this trait, and API errors are listed in a separate reference.\n"],null,["\u003cbr /\u003e\n\nTemperature Schema\n\n[Nest Thermostat](/nest/device-access/api/thermostat)\n\n`sdm.devices.traits.Temperature`\n\nThis trait belongs to any device that has a sensor to measure temperature.\n\n\u003cbr /\u003e\n\nFields\n\n\n| Field | Description | Data Type |\n|-----------------------------|---------------------------------------------------------|------------------------|\n| `ambientTemperatureCelsius` | Temperature in degrees Celsius, measured at the device. | `number` Example: 23.0 |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nSample GET request and response \n\nRequest \n\n```\nGET /enterprises/project-id/devices/device-id\n```\n\nResponse \n\n {\n \"name\" : \"enterprises/project-id/devices/device-id\",\n \"traits\" : {\n \"sdm.devices.traits.Temperature\" : {\n \"ambientTemperatureCelsius\" : 23.0\n }\n }\n }\n\n\u003cbr /\u003e\n\nCommands\n\nThere are no commands available for this trait.\n\n\nErrors\n\nSee the [API Error Code Reference](/nest/device-access/reference/errors/api) for\nthe full list of API error codes.\n\n\u003cbr /\u003e"]]