πŸš— Smart Garage - Control Doors, Lighting, and Alerts

Posted Version 2026.01.28.22d

- Fix: Light Off Timer logic, really this time I hope!
- New: Debug notification

POSTED… Version 2026.02.22.26c

- New: Outdoor Light Controls section (independent of Indoor Light Controls)    
- Fix: mode:restart now correctly resets the timer on every new trigger (motion, door state, entity)
- Fix: Custom Action execution syntax (all states) - now uses correct `choose/default: !input` pattern

ok. just followed this communication. what shall I do to make this running? I have a button for open-stop-close-stop-open… and a binary sensor, that returns open or closed state.

You’d need to make a template cover by combining those entities. You should ask how to do that in a separate thread

Using your blueprint and the auto-close does not work. I am testing my garage door and entered 1 min to auto-close delay and my door stays open. The option is enabled. All other notifications (open, opening, closing, closed) are working correctly in the blueprint.

What am I missing?

I updated the blueprint, you are welcome to try it. I’m testing it today also. I found a bug in the logic so I’m 99% sure its fixed

Thank you Ltek! The auto-close feature is now working correctly.

1 Like
πŸš€ Version 2026.04.20.3c
- Added: Auto-Close Bypass entity logic
πŸš€ Version 2026.05.26.12c

- ADDED: Extensive Auto-Close Notifications and Action Buttons. (see Features for more info)

Hello. I updated your blueprint to the latest version and now the auto close is not working again. In April I had the same issue and you updated the blueprint which fixed the problem. The latest update broke the auto close feature. The door does not close at the specified delay time. Please fix this. Your blueprint is really awesome.

Thank you.

Strange, I use it every day, on 2 separate garages and it auto closes for sure... frustrates my kids/wife sometimes when they forget to enable the bypass.

I just copied over the YAML again from the one on my system. Same version #. Try that and let me know.

You are welcome to post the YAML config you use and I can look at it.

Hi,

I started from scratch and reentered all my info in the blueprint. Everything works from what I have set except the actual auto-close of the garage door after 20 minutes. I get the notification that the door is about to close after 18 minutes. I get the notification the door is either open or closed after a 5 second delay. This is very strange. I have attached the YAML code as you suggested. I would greatly appreciate if you can point out what I am doing wrong. Thank you.

alias: Peter's Garage Door Alert
description: ""
use_blueprint:
  path: Ltek/smart-garage-ltek.yaml
  input:
    garage_door_entity: cover.peters_garage_door
    alert_enable_notification: true
    alert_days:
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
      - sun
    alert_start_time: "23:00:00"
    alert_notify_devices:
      - 9bac878053995069a858573b9fbf2d90
    open_duration_before_alert:
      hours: 0
      minutes: 0
      seconds: 10
      days: 0
    open_friendly_name: Peter's Garage Door
    open_notify_devices:
      - 9bac878053995069a858573b9fbf2d90
    open_time_between_repeats:
      hours: 0
      minutes: 5
      seconds: 0
      days: 0
    closed_enable_notification: true
    closed_duration_before_alert:
      hours: 0
      minutes: 0
      seconds: 5
      days: 0
    closed_friendly_name: Peter's Garage Door
    closed_notify_devices:
      - 9bac878053995069a858573b9fbf2d90
    closed_repeat_notification: true
    closed_time_between_repeats:
      hours: 0
      minutes: 5
      seconds: 0
      days: 0
    stopped_friendly_name: Peter's Garage Door
    stopped_notify_devices:
      - 9bac878053995069a858573b9fbf2d90
    stopped_time_between_repeats:
      hours: 0
      minutes: 2
      seconds: 0
      days: 0
    stopped_notification_interruption: critical
    autoclose_default_enabled: true
    autoclose_default_delay:
      hours: 0
      minutes: 20
      seconds: 0
      days: 0
    autoclose_notify_enabled: true
    autoclose_notify_delay:
      hours: 0
      minutes: 18
      seconds: 0
      days: 0
    autoclose_notify_devices:
      - 9bac878053995069a858573b9fbf2d90
    autoclose_notify_title: ⏱️ Peter's Garage Door Closing Soon

the blueprint is very complex so I use AI to troubleshoot. If you have AI connected via an MCP you can ask it to review your traces, that will provide the best way to troubleshoot but this looks like it might be what is happening in your system...

Root Cause: The trigger_open repeat loop is perpetually restarting the automation via mode: restart, preventing trigger_autoclose from ever completing.

Here's the exact sequence of events:

  1. Door opens β†’ after 10 seconds (open_duration_before_alert), trigger_open fires.
  2. The sequence sends an open notification, then waits up to 10 minutes for a button tap (continue_on_timeout: true).
  3. It then enters the open repeat notification loop β€” because open_repeat_notification defaults to true and Peter never set it, and open_max_repeat_count defaults to 0 (unlimited). This loop runs indefinitely while the door is open, cycling every 5 minutes + 10-minute wait.
  4. At 18 minutes, trigger_autoclose_notify fires β†’ mode: restart kills the running sequence and sends the warning notification. :white_check_mark: This is why the warning notification is working.
  5. At 20 minutes, trigger_autoclose fires β†’ mode: restart kills that sequence and should close the door... but since the door is still open, trigger_open (with its 10-second for:) fires almost immediately right after, restarting into the repeat loop again and never reaching the close action.

The fix: is to add the below YAML to your config...

yaml

open_repeat_notification: false

Or if you wants repeat notifications, set a reasonable open_max_repeat_count (e.g., 2) so the loop actually ends before the 20-minute auto-close fires, allowing trigger_autoclose to run uncontested.

I attempted your suggestion and sadly it did not work. I even disabled the repeat notification with the same result. Afterwards, I created a new automation and just entered only my door entity and enabled a 1 minute delay (did not to wait long) for auto close. No notifications were set. Still the garage will not close after 1 minute. I did notice the automation fired after 1 minute but nothing happened. Perhaps with the added auto close notifications you recently made perhaps had an effect. Have you tested your own garage doors if they indeed auto close at the specified delay time?

id: '1780668612714'
alias: Peter's Garage
description: ''
use_blueprint:
  path: Ltek/smart-garage-ltek.yaml
  input:
    garage_door_entity: cover.peters_garage_door
    autoclose_default_delay:
      hours: 0
      minutes: 1
      seconds: 0
      days: 0
    autoclose_default_enabled: true

I reproduced the problem and pretty sure its fixed. It only occurred when a bypass entity field was empty. try the update

πŸš€ Version 2026.06.05.13c

- FIXED: Auto-Close did not work when bypass entity field was empty.

Thank you for fixing the issue. Your blueprint is working perfectly!

1 Like