[[["容易理解","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.Connectivity\u003c/code\u003e trait provides information about the online/offline status of a device.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estatus\u003c/code\u003e field indicates the device's connectivity status with possible values "ONLINE" or "OFFLINE".\u003c/p\u003e\n"],["\u003cp\u003eDevices with this trait can be queried for their connectivity status using a GET request to the device's endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThere are no commands available to manipulate the connectivity status of a device using this trait.\u003c/p\u003e\n"],["\u003cp\u003eStandard API error responses, such as "Device not found", may be returned when accessing this trait's information.\u003c/p\u003e\n"]]],[],null,["\u003cbr /\u003e\n\nConnectivity Schema\n\n[Nest Thermostat](/nest/device-access/api/thermostat)\n\n`sdm.devices.traits.Connectivity`\n\nThis trait belongs to any device that has connectivity information.\n\n\u003cbr /\u003e\n\nFields\n\n\n| Field | Description | Data Type |\n|----------|-----------------------------|--------------------------------------|\n| `status` | Device connectivity status. | `string` Values: \"OFFLINE\", \"ONLINE\" |\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.Connectivity\" : {\n \"status\" : \"ONLINE\"\n }\n }\n }\n\n\u003cbr /\u003e\n\nCommands\n\nThere are no commands available for this trait.\n\n\nErrors\n\nThe following error code(s) may be returned in relation to this trait:\n\n| Error Message | RPC | Troubleshooting |\n|-------------------|-------------|--------------------------------------------------------------------------|\n| Device not found. | `NOT_FOUND` | An invalid or missing device name was specified. Specify a valid device. |\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"]]