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