Comprehensive Garage Automation for Door States, Notifications, Alerts, Lighting, and Auto-Close/Open
🚀 Version 2025.01.05.16d
– 16d fixes lighting triggers
– 15d code tweaks for schedules and ‘Stopped’ state trigger fix; should work for GDOs that report % open.
Author: LTek
📖 Community Discussion, Help, and Details... https://community.home-assistant.io/
source_url: https://gist.github.com/Ltek/
Important Note: this made to work with garage doors that report as Covers entities. Currently only tested with Konnected BlaQ. If you door only report on/close, and not a % Open, the 'Stopped' trigger will not work but all others should.
FEATURES Custom Notificatios per garage door state - open, opening, closed, closing, stopped Alert notification schedules for door state - for when door should not be opening but are Auto-close default timer - does not use schedule Three customizable door schedules - open or close at specific times Bypass schedule for open notifications Repeat notifications with configurable limits Custom actions for each door state and light trigger Lighting control based on garage door states and other triggers
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!