Stay organized with collections
Save and categorize content based on your preferences.
Connectivity Schema
Nest Thermostat
sdm.devices.traits.Connectivity
This trait belongs to any device that has connectivity information.
Fields
Sample GET request and response
Request
GET /enterprises/ project-id
/devices/ device-id
Response
{
"name" : "enterprises/ project-id
/devices/ device-id
",
"traits" : {
" sdm.devices.traits.Connectivity
" : {
"status" : "ONLINE"
}
}
}
Commands
There are no commands available for this trait.
Errors
The following error code(s) may be returned in relation to this trait:
See the API Error Code Reference
for
the full list of API error codes.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-25 UTC."],[[["\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\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\n| Field | Description | Data Type |\n|----------|-----------------------------|--------------------------------------|\n| `status` | Device connectivity status. | `string` Values: \"OFFLINE\", \"ONLINE\" |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n#### Sample GET request and response\n\n### Request\n\n```\nGET /enterprises/project-id/devices/device-id\n```\n\n### Response\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--------\n\nThere are no commands available for this trait.\n\n\nErrors\n------\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"]]