Climate
The Climate integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] allows you to control and monitor HVAC (heating, ventilating, and air conditioning) devices and thermostats.
Building block integration
This climate is a building block integration that cannot be added to your Home Assistant directly but is used and provided by other integrations.
A building block integration differs from the typical integration that connects to a device or service. Instead, other integrations that do integrate a device or service into Home Assistant use this climate building block to provide entities, services, and other functionality that you can use in your automations or dashboards.
If one of your integrations features this building block, this page documents the functionality the climate building block offers.
Climate states
A climate entity can have the following states, depending on the specific climate device and its capabilities. Each item shows the label you see in the Home Assistant interface, followed by the state as Home Assistant stores it. If you write templates or edit automations in YAML, use the stored state.
-
Off (
off): The device is turned off. -
Heat (
heat): The device is set to heat to a target temperature. -
Cool (
cool): The device is set to cool to a target temperature. -
Heat/Cool (
heat_cool): The device is set to heat/cool to a target temperature range. -
Auto (
auto): The device is set to a schedule, learned behavior, AI. -
Dry (
dry): The device is set to dry/humidity mode. -
Fan only (
fan_only): The device only has the fan on. No heating or cooling is taking place. -
Unavailable (
unavailable): The entity is currently unavailable. -
Unknown (
unknown): The state is not yet known.
Attributes
A climate entity has the attributes below. Which ones appear depends on the features the device supports. State attributes show what the device is doing right now. Capability attributes describe what the device can do.
State attributes
-
hvac_action: What the device is doing right now. One ofcooling,defrosting,drying,fan,heating,idle,off, orpreheating. Only shown when the integration reports it. -
current_temperature: The current temperature reported by the entity. It may come from the device or a separate sensor. -
temperature: The target temperature. Only available when the device supports a single target temperature. -
target_temp_low: The lower target temperature. Only available when the device supports a target temperature range. -
target_temp_high: The upper target temperature. Only available when the device supports a target temperature range. -
current_humidity: The current humidity measured by the device. Only shown when the device reports it. -
humidity: The target humidity. Only available when the device supports a target humidity. -
fan_mode: The current fan setting. The built-in values areon,off,auto,low,medium,high,top,middle,focus, anddiffuse, and integrations can add their own. Only available when the device supports fan modes. -
preset_mode: The active preset. The built-in values arenone,eco,away,boost,comfort,home,sleep, andactivity, and integrations can add their own. Only available when the device supports presets. -
swing_mode: The current swing setting. Only available when the device supports swing. -
swing_horizontal_mode: The current horizontal swing setting. Only available when the device supports horizontal swing.
Capability attributes
-
temperature_unit: The unit used by all temperature attributes, as set in your Home Assistant unit system. -
min_temp: The lowest target temperature you can set. -
max_temp: The highest target temperature you can set. -
target_temp_step: The step size of the target temperature. Only shown when the integration provides it. -
min_humidity: The lowest target humidity you can set. Only available when the device supports a target humidity. -
max_humidity: The highest target humidity you can set. Only available when the device supports a target humidity. -
target_humidity_step: The step size of the target humidity. Only available when the device supports a target humidity and the integration provides it. -
hvac_modes: The modes the device supports. These are the states listed in Climate states, exceptunavailableandunknown. -
fan_modes: The fan settings the device supports. Only available when the device supports fan modes. -
preset_modes: The presets the device supports. Only available when the device supports presets. -
swing_modes: The swing settings the device supports. Only available when the device supports swing. -
swing_horizontal_modes: The horizontal swing settings the device supports. Only available when the device supports horizontal swing.
List of triggers
The Climate integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following triggers. Each link below opens a dedicated page with examples, fields, and a step-by-step UI walkthrough.
-
Thermostat mode changed (
climate.hvac_mode_changed) Triggers when the mode of one or more thermostats changes. -
Thermostat started cooling (
climate.started_cooling) Triggers when one or more thermostats start cooling. -
Thermostat started drying (
climate.started_drying) Triggers when one or more thermostats start drying. -
Thermostat started heating (
climate.started_heating) Triggers when one or more thermostats start heating. -
Thermostat target humidity changed (
climate.target_humidity_changed) Triggers when the humidity setpoint of one or more thermostats changes. -
Thermostat target humidity crossed threshold (
climate.target_humidity_crossed_threshold) Triggers when the humidity setpoint of one or more thermostats crosses a threshold. -
Thermostat target temperature changed (
climate.target_temperature_changed) Triggers when the temperature setpoint of one or more thermostats changes. -
Thermostat target temperature crossed threshold (
climate.target_temperature_crossed_threshold) Triggers when the temperature setpoint of one or more thermostats crosses a threshold. -
Thermostat turned off (
climate.turned_off) Triggers when one or more thermostats turn off. -
Thermostat turned on (
climate.turned_on) Triggers when one or more thermostats turn on, regardless of the mode.
For an overview of every trigger across all integrations, see the triggers reference.
List of conditions
The Climate integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following conditions. Each link below opens a dedicated page with examples, fields, and a step-by-step UI walkthrough.
-
Thermostat is cooling (
climate.is_cooling) Tests if one or more thermostats are cooling. -
Thermostat is drying (
climate.is_drying) Tests if one or more thermostats are drying. -
Thermostat is heating (
climate.is_heating) Tests if one or more thermostats are heating. -
Thermostat HVAC mode (
climate.is_hvac_mode) Tests if one or more thermostats are set to a specific HVAC mode. -
Thermostat is off (
climate.is_off) Tests if one or more thermostats are off. -
Thermostat is on (
climate.is_on) Tests if one or more thermostats are on. -
Thermostat target humidity (
climate.is_target_humidity) Tests the target humidity of one or more thermostats. -
Thermostat target temperature (
climate.is_target_temperature) Tests the target temperature of one or more thermostats.
For an overview of every condition across all integrations, see the conditions reference.
List of actions
The Climate integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following actions. Each link below opens a dedicated page with examples, parameters, and a step-by-step UI walkthrough.
-
Set thermostat fan mode (
climate.set_fan_mode) Sets the fan mode of a climate device. -
Set thermostat target humidity (
climate.set_humidity) Sets the target humidity of a climate device. -
Set thermostat HVAC mode (
climate.set_hvac_mode) Sets the HVAC mode of a climate device. -
Set thermostat preset mode (
climate.set_preset_mode) Sets the preset mode of a climate device. -
Set thermostat horizontal swing mode (
climate.set_swing_horizontal_mode) Sets the horizontal swing mode of a climate device. -
Set thermostat swing mode (
climate.set_swing_mode) Sets the swing mode of a climate device. -
Set thermostat target temperature (
climate.set_temperature) Sets the target temperature of a climate device. -
Toggle thermostat (
climate.toggle) Toggles a climate device on or off. -
Turn off thermostat (
climate.turn_off) Turns off a climate device. -
Turn on thermostat (
climate.turn_on) Turns on a climate device.
For an overview of every action across all integrations, see the actions reference.