Stay organized with collections
Save and categorize content based on your preferences.
Humidity Schema
Nest Thermostat
sdm.devices.traits.Humidity
This trait belongs to any device that has a sensor to measure humidity.
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.Humidity
" : {
"ambientHumidityPercent" : 35.0
}
}
}
Commands
There are no commands available for this trait.
Errors
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."],[],["The `sdm.devices.traits.Humidity` trait represents a device's humidity sensor. It has one field, `ambientHumidityPercent`, which indicates the percentage of humidity measured at the device, represented as a number. A GET request to the device's endpoint returns the `ambientHumidityPercent` within the `traits` field, showing the current humidity. No commands are available for this trait, only read information. Any errors can be found in the API error code.\n"]]