The sdm.devices.types.device-type returned 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.
The parentRelations object represents the parent resource of the current resource,
either a structure or room. Display name corresponds to the customName field of the
for devices with a structure parent or the
for devices with a room parent.
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 are asynchronous and managed by Google Cloud Pub/Sub in a single topic per
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. See
for more information.