In this guide, I’m going to show you how to create status notifications to let you know when your garage door is opening, opened, closing, or closed.

For reference, I am using a MyQ Chamberlain wifi device that paired with my “dumb” garage door opener. Here’s what it looks like:

We earn a commission if you make a purchase, at no additional cost to you.
09/03/2024 09:10 pm GMT

It’s super cheap and has worked perfectly for me over the last 9 months of heavy usage. I open/close the garage door multiple times a day from the app manually and have a separate automation to close my garage at 8pm everynight. It occassionaly does display a “disconnected” message in the HA Logbook, but it has never once failed on me and I’ve never had to reinstall/reconfigure it.

I’ve seen many posts where people are curious if they should purchase the MyQ garage door opener to use with Home Assistant. Probably because when they did their research, some people had reported issues. Like I said, I’ve never had issues, but for ~$30, I have been extremely happy with my purchase so far.

Anyway, this guide will work on all smart garage door openers.

I created this cool automation as a way to “double-check” that whenever I open or close the door, I can confirm that the operation completed successfully. Especially useful when I trigger it away from home.


Install MyQ in Home Assistant

If you don’t already have a smart garage door opener and would like to purchase a MyQ, I have a handy How To Configure MyQ in Home Assistant guide you can follow.

If yours is already integrated, then you can just continue following along.


Garage Door Status Automation

This automation uses Triggers and Trigger ID’s. Triggers are a relatively new addition to the Home Assistant Automations section and can be extremely powerful. With triggers, I’ve been able to reduce the number of automations I have by 50% simply by combining multiple automations into 1 automation.

I recommend this video to learn more about triggers. Even if you have zero experience with using triggers or trigger ID in an automation – this script can simply be copied into an automation YAML. The only thing that needs changing is the entity ID and device you want to notify.

alias: 'Garage: Status Notifications'
description: ''
trigger:
  - platform: state
    entity_id: cover.garage_door
    id: closing
    from: open
    to: closing
  - platform: state
    entity_id: cover.garage_door
    id: closed
    from: closing
    to: closed
  - platform: state
    entity_id: cover.garage_door
    id: opening
    from: closed
    to: opening
  - platform: state
    entity_id: cover.garage_door
    id: open
    from: opening
    to: open
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: opening
        sequence:
          - service: notify.mobile_app_pixel_5_danny
            data:
              message: Garage door opening...
      - conditions:
          - condition: trigger
            id: open
        sequence:
          - service: notify.mobile_app_pixel_5_danny
            data:
              message: Garage door open!
      - conditions:
          - condition: trigger
            id: closing
        sequence:
          - service: notify.mobile_app_pixel_5_danny
            data:
              message: Garage door closing...
      - conditions:
          - condition: trigger
            id: closed
        sequence:
          - service: notify.mobile_app_pixel_5_danny
            data:
              message: Garage door closed!
    default: []
mode: single

How To Create the “Garage Door Status” Automation

Log into Home Assistant. Then click the Configuration tab > Automations. Then, create a new empty automation.

In the top right corner, click the 3 dots > Edit in YAML. Then simply paste in the code above.

You can create this from the UI by referencing my code, but like I said, you can basically just and paste this in and change the entity ID and device you want to notify.


How It Works

Your garage door entity should have several states: Opening, Opened, Closing, and Closed.

To confirm, go to Configuration > Entities and search for the entity (cover.garage_door). Click it, then click the settings in the top right corner and view the history timeline. It should tell you all of the available states.

You can also go to Developer Tools > States and filter by entity. Then, toggle the garage door open & closed to verify it changes to all 4 states:


My Favorite Home Assistant Devices

Below are some of the Home Assistant-compatible devices I personally use in my home. I highly recommend each of them.

The full list of all Home Assistant compatible & recommended devices I use can be found on my Equipment List page.

Similar Posts

6 Comments

  1. Thank you for this. It is very helpful. Is it possible to use Home Assistant to open and close the door through an automation, script, or scene. I have mine connected and I can open/close it using the card on Lovelace, but don’t know how to do it otherwise. It only shows up as an entity, not a device.

    1. Definitely possible. Set Trigger Type to “Time” and pick a time, and under Actions, set Action Type to “Device”, choose the garage door, and set the Action to Open or Close.

      You could also set the Action Type to “Call Service” and for the service use cover.close_cover and then choose the garage door entity.

  2. Unfortunately, my garage door does not show up in the device list. It only appears as an Entity.

    1. What about the 2nd option to call service? There is an option to choose an entity.

  3. YES! The second option worked. Thank you so much!

Leave a Reply

Your email address will not be published. Required fields are marked *