Stay organized with collectionsSave and categorize content based on your preferences.
Atraitin the SDM API comprisesfields,commands, andevents.
Fields
Fields are values with common data types, such as a number or a string. For example, a field
might contain a the current mode or the ambient humidity of a Google Nest Thermostat.
Traits and fields can be viewed with aGETcall to the desired API endpoint:
Thesdm.devices.types.device-typereturned by the SDM API should not be used
to deduce or infer functionality of the actual device it is assigned to. There is no guarantee
that a device type will remain stable for a specific device as more features are added to the SDM
API. Instead, use the returned traits for the device.
parentRelations
TheparentRelationsobject represents the parent resource of the current resource,
either a structure or room. Display name corresponds to thecustomNamefield of theInfo traitfor devices with a structure parent or theRoomInfo traitfor devices with a
room parent.
Commands
Commands are requests associated with a trait. For example, changing the current mode or
temperature setpoint on a Google Nest Thermostat.
Most responses to a command are a simple success or failure. See the individual trait guides for
specific command usage examples.
Events
Events are asynchronous and managed by Google Cloud Pub/Sub in a single topic per
Project ID.
Events are sent by default for any change in the value of a trait field. They can also be sent in
response to specific device actions or changes in resource assignments. SeeEventsfor more information.
[[["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 Smart Device Management API allows you to interact with Nest devices through traits, commands, and events.\u003c/p\u003e\n"],["\u003cp\u003eTraits represent device capabilities and their associated data, such as temperature or humidity, and are categorized by device type like Thermostat or Camera.\u003c/p\u003e\n"],["\u003cp\u003eCommands are used to control devices, for instance, changing the thermostat mode, while events provide asynchronous notifications about device state changes.\u003c/p\u003e\n"],["\u003cp\u003eYou can access device information and traits through a GET request to the specified API endpoint using the device ID.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Cloud Pub/Sub manages events and delivers them to a dedicated topic for each project ID, allowing you to stay updated on device activity.\u003c/p\u003e\n"]]],[],null,[]]