List of available conditions

Conditions gate an automation. After a trigger reacts, 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.

General

Conditions that work with any entity, the time, or the trigger, not with one type of device only.

  • And and Tests if all of its conditions pass.
  • Not not Tests if none of its conditions pass.
  • Numeric state numeric_state Tests if the number in the state of an entity, or in one of its attributes, is above or below a limit.
  • Or or Tests if at least one of its conditions passes.
  • State state Tests if an entity, or one of its attributes, has a specific state.
  • Template template Tests if a template renders true.
  • Time time Tests if the current time is after or before a time, or if today is one of the selected days of the week.
  • Triggered by trigger Tests if a specific trigger started the automation.

Air quality

Alarm control panel

Assist Satellite

Battery

Calendar

Climate

Counter

Cover

Device automation

  • Device device Tests a condition that a device provides, such as whether a light is on.

Door

Fan

Garage door

Gate

Humidifier

Humidity

Illuminance

Lawn mower

Light

Lock

Media player

Moisture

Moon

Motion

Occupancy

Power

Remote

Schedule

Select

Siren

Sun

Switch

Temperature

Text

Timer

To-do list

Update

Vacuum

Valve

Vibration

Water heater

Window

Zone

Z-Wave