Comprehensive Garage Automation for Door States, Notifications, Alerts, Lighting, and Auto-Close/Open
🚀 Version 2026.05.26.12c
- ADDED: Extensive Auto-Close Notifications and Action Buttons. (see Features for more info)
📖 Community Discussion, Help, and Details... https://community.home-assistant.io/t/smart-garage-control-doors-lighting-and-alerts/967636
source_url: https://gist.github.com/Ltek/f58bbbde02471437ef863c334572a320
Important Note: this made to work with garage doors that report as Covers entities.
**FEATURES**
🚪 Monitors all 5 garage door states - open, opening, closed, closing, stopped
📢 Notifications per door state with configurable title, message, icon, color, and interruption level (iOS/Android)
📢 Notification Action Buttons - Bypass Toggle, Close Now, Custom Action for Open, Repeat, Alert, and Stopped. Bypass button logic on those notifications to toggle the auto-close bypass entity directly from the notification.
🔁 Repeat notifications per state with configurable delay and max repeat count
🚨 Alert notifications when door opens during restricted schedules or when a monitored entity is in a specific state
🛡️ Notification bypass - suppress alerts by entity state or time schedule
⚙️ Custom actions for each door state, alert, and lighting trigger
⏱️ Auto-close default timer - 24/7, no schedule required
with a configurable warning delay, so users get a heads-up before the door auto-closes.
📅 Door Schedules to automatically open or close at specific days/times
💡 Independant Indoor and Outdoor lighting controls - lights, triggers, brightness, color temp, disable schedule, and timer bypass
🔦 Lighting triggers include door states (opening, open, closing, stopped, closed) and additional entities (motion sensors, switches, locks, covers)
⏲️ Light Off Timer resets on every new trigger - works correctly with motion sensors and mode:restart
🐛 Debug notifications to Persistent UI with per-trigger-type filtering and optional variable dump
I just looked and see the garage_door_entity variable defined in the variables section. I thought garage_door_entity is available as a variable in templates. Is there something else I’m missing?
variables:
# GARAGE DOOR ENTITY (STANDALONE)
garage_door_entity: !input garage_door_entity
I don’t know what you mean by that… only trigger_variables can be used in triggers. All other variables are loaded after the automation’s trigger fires.
The value of the input garage_door_entity is not dynamic. Once the automation is created from the blueprint it’s a static entity ID.
The bottom line is:
If you are using a value from an input in a template in a trigger, that variable needs to be set up in a trigger_variables block. Variables set up in the normal variables block are not available to triggers.
I fixed a few bugs and released 13d a sec ago. I didnt use trigger variables as it seems that the code works fine without it… at least so far. If I should change to use them cool, but when I tried today I just got errors so gave up.
I tested a bunch on the current release of 13d, seems to work fine for all door events/states for me
of course I was… its the main trigger… the garage door. It had to be working… 1/ I was getting mobile notifications 2/ the zwave lights were being turned on. Both only controlled from that blueprint/automation.
I meant by ‘main trigger’ that it is the most used/needed and the primary reason for the automation/blueprint. For 2 days the automation has been 100% working as a ‘variable’. Triggered 4 times today for garage door open/closed and a few times for the lighting triggers
We are talking about only the variable inside your triggers. Nothing else, this is where your confusion lies.
The only variables that work inside any template in any trigger, is variables provided by trigger_variables. So to reiterate, this exact trigger does nothing:
AH… following you now.
Thx for the help. I did think trigger: template was kind of a shortcut (maybe optimization) on processing inputs and guess I can use it correctly now!