List of available conditions
Conditions gate an automation. After a trigger fires, Home Assistant checks every condition, and only runs the actions if they all pass. Use them to make sure an automation only runs when it should, like only dimming the lights after sunset, or only notifying you when you're home.
Browse the full list below, or use the search box to find a specific condition by name or description. Each condition has its own page with a step-by-step UI walkthrough, examples, and a complete field reference.
New to conditions? Read about conditions in automations to learn how they fit together with triggers and actions.
Air quality
-
Carbon dioxide value
air_quality.is_co2_valueTests the carbon dioxide level of one or more entities. -
Carbon monoxide cleared
air_quality.is_co_clearedTests if one or more carbon monoxide sensors are cleared. -
Carbon monoxide detected
air_quality.is_co_detectedTests if one or more carbon monoxide sensors are detecting carbon monoxide. -
Carbon monoxide value
air_quality.is_co_valueTests the carbon monoxide level of one or more entities. -
Gas cleared
air_quality.is_gas_clearedTests if one or more gas sensors are cleared. -
Gas detected
air_quality.is_gas_detectedTests if one or more gas sensors are detecting gas. -
Nitrous oxide value
air_quality.is_n2o_valueTests the nitrous oxide level of one or more entities. -
Nitrogen dioxide value
air_quality.is_no2_valueTests the nitrogen dioxide level of one or more entities. -
Nitrogen monoxide value
air_quality.is_no_valueTests the nitrogen monoxide level of one or more entities. -
Ozone value
air_quality.is_ozone_valueTests the ozone level of one or more entities. -
PM10 value
air_quality.is_pm10_valueTests the PM10 level of one or more entities. -
PM1 value
air_quality.is_pm1_valueTests the PM1 level of one or more entities. -
PM2.5 value
air_quality.is_pm25_valueTests the PM2.5 level of one or more entities. -
PM4 value
air_quality.is_pm4_valueTests the PM4 level of one or more entities. -
Smoke cleared
air_quality.is_smoke_clearedTests if one or more smoke sensors are cleared. -
Smoke detected
air_quality.is_smoke_detectedTests if one or more smoke sensors are detecting smoke. -
Sulphur dioxide value
air_quality.is_so2_valueTests the sulphur dioxide level of one or more entities. -
Volatile organic compounds ratio value
air_quality.is_voc_ratio_valueTests the volatile organic compounds ratio of one or more entities. -
Volatile organic compounds value
air_quality.is_voc_valueTests the volatile organic compounds level of one or more entities.
Alarm control panel
-
Alarm is armed
alarm_control_panel.is_armedTests if one or more alarms are armed. -
Alarm is armed away
alarm_control_panel.is_armed_awayTests if one or more alarms are armed in away mode. -
Alarm is armed home
alarm_control_panel.is_armed_homeTests if one or more alarms are armed in home mode. -
Alarm is armed night
alarm_control_panel.is_armed_nightTests if one or more alarms are armed in night mode. -
Alarm is armed vacation
alarm_control_panel.is_armed_vacationTests if one or more alarms are armed in vacation mode. -
Alarm is disarmed
alarm_control_panel.is_disarmedTests if one or more alarms are disarmed. -
Alarm is triggered
alarm_control_panel.is_triggeredTests if one or more alarms are triggered.
Calendar
-
Calendar event is active
calendar.is_event_activeTests if one or more calendars have an active event.
Door
-
Door is closed
door.is_closedTests if one or more doors are closed. -
Door is open
door.is_openTests if one or more doors are open.
Fan
-
Fan is off
fan.is_offTests if one or more fans are off. -
Fan is on
fan.is_onTests if one or more fans are on.
Humidifier
-
Humidifier is drying
humidifier.is_dryingTests if one or more humidifiers are drying. -
Humidifier is humidifying
humidifier.is_humidifyingTests if one or more humidifiers are humidifying. -
Humidifier is in mode
humidifier.is_modeTests if one or more humidifiers are set to a specific mode. -
Humidifier is off
humidifier.is_offTests if one or more humidifiers are off. -
Humidifier is on
humidifier.is_onTests if one or more humidifiers are on. -
Humidifier target humidity
humidifier.is_target_humidityTests the target humidity of one or more humidifiers.
Humidity
-
Relative humidity
humidity.is_valueTests if a relative humidity value is above a threshold, below a threshold, or in a range of values.
Light
-
Light brightness
light.is_brightnessTests the brightness of one or more lights. -
Light is off
light.is_offTests if one or more lights are off. -
Light is on
light.is_onTests if one or more lights are on.
Temperature
-
Temperature value
temperature.is_valueTests if a temperature value is above a threshold, below a threshold, or in a range of values.
Vacuum
-
Vacuum is cleaning
vacuum.is_cleaningPasses when the vacuum cleaner is cleaning. -
Vacuum is docked
vacuum.is_dockedPasses when the vacuum cleaner is docked. -
Vacuum is encountering an error
vacuum.is_encountering_an_errorPasses when the vacuum cleaner is in an error state. -
Vacuum is paused
vacuum.is_pausedPasses when the vacuum cleaner is paused. -
Vacuum is returning
vacuum.is_returningPasses when the vacuum cleaner is returning to the dock.
Window
-
Window is closed
window.is_closedTests if one or more windows are closed. -
Window is open
window.is_openTests if one or more windows are open.