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.
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.