I’m completely new to HA and I’m having trouble with an automation for my garage light automation. Here’s the idea: Come home, open garage, garage lights turn on, close garage door, garage is door is closed for 1 minute turn off the garage lights. This part works fine.
I often work in the garage with the lights on, obviously, so if someone were to open the garage to leave the house in their car, the garage door would close 1 minute later the lights would turn off. Is there a way I can put a ‘if the garage light was already on for 5+ minutes’ stop the automation’? See below for my current automation.
i m not sure to understand ,
but i often call a script in my automations.
in scripts i put condition so, if the condition is false it stop the script but not the automation. (elif)