Garage door

The Garage door integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides automation triggers and conditions for binary sensors with device class garage_door and covers with device class garage.

Supported entities

The Garage door integration supports the following entity types:

  • Binary sensors with device class garage_door.
  • Covers with device class garage.

Configuration

The Garage door integration does not require any configuration.

Supported functionality

The Garage door integration provides the following automation building blocks for supported garage door entities.

List of triggers

The Garage door 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.

For an overview of every trigger across all integrations, see the triggers reference.

List of conditions

The Garage door 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.

For an overview of every condition across all integrations, see the conditions reference.

Garage door automation examples

You can use these triggers and conditions to react when a garage door opens, confirm that it is closed before another automation continues, or remind yourself when it has been left open.

Tip

You don’t need to edit YAML to use these examples. Copy a YAML snippet from this page, open the automation editor in Home Assistant, and press Ctrl+V (or Cmd+V on Mac). Home Assistant automatically converts the pasted YAML into the visual editor format, whether it’s a full automation, a single trigger, a condition, or an action.

Automation: turn on the garage entry light when the garage door opens after dark

If you come home after sunset, this automation turns on the light near the garage entry as soon as the garage door opens.

  • Trigger: Garage door opened
    • Target: Garage door
  • Action: Turn on light
YAML example for turning on the garage entry light
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Turn on the garage entry light when the garage door opens after dark"
triggers:
  - trigger: garage_door.opened
    target:
      entity_id: cover.garage_door
conditions:
  - condition: numeric_state
    entity_id: sun.sun
    attribute: elevation
    below: 0
actions:
  - action: light.turn_on
    target:
      entity_id: light.garage_entry

Automation: arm the garage alarm only when the garage door has been closed for 10 minutes

If you have created a bedtime helperA helper is a virtual entity you create inside Home Assistant. It is not backed by a physical device. Helpers store values, track state, or do calculations that your automations and dashboards need. [Learn more] separately, this automation waits for that helper to turn on, then checks that the garage door has stayed closed for 10 minutes before it arms the alarm.

  • Trigger: User-created bedtime helper turns on
  • Condition: Garage door is closed
    • Target: Garage door
    • For at least: 00:10:00
  • Action: Arm alarm away
YAML example for arming the garage alarm after the door stays closed
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Arm the garage alarm only when the garage door has been closed for 10 minutes"
triggers:
  - trigger: state
    entity_id: input_boolean.bedtime_mode
    to: "on"
conditions:
  - condition: garage_door.is_closed
    target:
      entity_id: cover.garage_door
    options:
      for: "00:10:00"
actions:
  - action: alarm_control_panel.alarm_arm_away
    target:
      entity_id: alarm_control_panel.garage_alarm