Ce trait appartient aux types d'appareils THERMOSTAT qui peuvent signaler des informations sur le système CVC.
Champs
Champ
Description
Type de données
status
État actuel du système CVC du thermostat.
string Valeurs : "OFF", "HEATING", "COOLING"
Timing des événements
Notez qu'un événement de changement d'état du système CVC peut ne pas être transmis en même temps que les événements de changement de mode du thermostat.
Par exemple, il peut parfois y avoir un délai avant que le mode chauffage ou climatisation d'un thermostat ne démarre afin de protéger le système CVC. Dans ce scénario, la modification du mode du thermostat peut n'envoyer initialement que des événements pour les modifications des traits ThermostatMode et ThermostatTemperatureSetpoint . La modification du trait ThermostatHvac est envoyée ultérieurement sous forme d'événement distinct une fois que le système est réellement activé. S'il n'y avait pas de délai pour allumer le système CVC, les trois événements seraient envoyés en même temps.
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/07/29 (UTC).
[null,null,["Dernière mise à jour le 2025/07/29 (UTC)."],[[["\u003cp\u003eThe \u003ccode\u003eThermostatHvac\u003c/code\u003e trait applies to THERMOSTAT devices and provides information about their heating, ventilation, and air conditioning (HVAC) status.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estatus\u003c/code\u003e field indicates the current HVAC mode of the thermostat, which can be "OFF", "HEATING", or "COOLING".\u003c/p\u003e\n"],["\u003cp\u003eEvents related to HVAC status changes might not always be delivered simultaneously with thermostat mode change events, potentially due to system protection delays.\u003c/p\u003e\n"],["\u003cp\u003eWhile you can retrieve the HVAC status using a GET request, there are no specific commands to control this trait directly.\u003c/p\u003e\n"]]],["The `ThermostatHvac` trait, applicable to THERMOSTAT devices, reports the current HVAC status, which can be \"OFF,\" \"HEATING,\" or \"COOLING.\" HVAC status change events might be delayed, occurring separately from thermostat mode or temperature setpoint changes. A GET request retrieves the device's HVAC status under the \"sdm.devices.traits.ThermostatHvac\" trait. No commands are available for this trait. Error codes are available for reference.\n"],null,["\u003cbr /\u003e\n\nThermostatHvac Schema\n=====================\n\n[Nest Thermostat](/nest/device-access/api/thermostat)\n\n`sdm.devices.traits.ThermostatHvac`\n\nThis trait belongs to device types of THERMOSTAT that can report HVAC details.\n\n\u003cbr /\u003e\n\nFields\n------\n\n\n| Field | Description | Data Type |\n|----------|----------------------------------------|----------------------------------------------|\n| `status` | Current HVAC status of the thermostat. | `string` Values: \"OFF\", \"HEATING\", \"COOLING\" |\n\n\u003cbr /\u003e\n\n### Timing of events\n\nNote that an event for a change in HVAC status may not be delivered at the same time as events\nfor a thermostat mode change.\n\nFor example, sometimes there is\n[a\ndelay in starting a thermostat's heating or cooling mode](https://support.google.com/googlenest/answer/9233450) in order to protect the HVAC\nsystem. In this scenario, changing the thermostat mode may only initially send events for\n[ThermostatMode](/nest/device-access/traits/device/thermostat-mode) and\n[ThermostatTemperatureSetpoint](/nest/device-access/traits/device/thermostat-temperature-setpoint) trait changes, with the\nThermostatHvac trait change sent later as a separate\nevent once the system actually turns on. If there was no delay in turning on the HVAC system, all\nthree events would be sent at the same time.\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.ThermostatHvac\" : {\n \"status\" : \"HEATING\"\n }\n }\n }\n\n\u003cbr /\u003e\n\nCommands\n--------\n\nThere are no commands available for this trait.\n\n\nErrors\n------\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"]]