I’m still learning HA but familiar with Python and Jinja. I’m trying to run an automation every two minutes, which checks when there was last motion. If it’s more than 30 minutes ago, do something. As a test, the action for now is just sending me a message.
But the condition passes (the action sends me a message) even though it returns False (when tested in developer tools). Is this my dodgy use of value_template at fault, or a quirk with how time_pattern works / wrong trigger?
Welcome to HA!
If you test the automation with the ‘EXECUTE’ button in the more-info dialog, only the action of the automation is executed.
The conditions are ignored.
Have you waited the 2 mins until it triggered?
Also in the developer tools when Services look at the bottom. Available parameters are usually listed. Clicking the fill data button will even throw the YAML in there for you.