Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/01/25 (UTC).
[null,null,["Dernière mise à jour le 2025/01/25 (UTC)."],[[["The Humidity Schema applies to devices with humidity sensors and uses the `sdm.devices.traits.Humidity` trait."],["It provides a single field, `ambientHumidityPercent`, representing the humidity percentage measured at the device."],["You can retrieve the current humidity using a GET request to the device's endpoint, which returns the humidity percentage within the `sdm.devices.traits.Humidity` trait."],["There are no specific commands to control humidity through this trait."]]],["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"]]