I will try with timer helper. You can start timer when automation 1 triggers and set condition to run second automation when timer change from running to idle.
I don’t claim that this will work.
Or better to say create trigger that will trigger second automation when timer change from active to idle.
So the timer (5 minutes) is triggered by automation X, and for automation Y to run, I want the timer to still be running. If the timer goes to idle/5 minutes have passed. Then I do not want to run automation Y.
How do I go about creating the timer and consequently the automation.
I have trouble understanding sarcasm but you want to trigger automation x if automation y was triggered before 5 minutes.
I don’t know will this work, but test it out, if you wish.
Create timer helper call it as you wish and set it up for 5 minutes.
Create automation y and add call service timer to start a timer when automation triggers something.
Create automation x and trigger that automation by timer going from active to idle. Timer will change from active to idle only when automation y has been triggered.
Mari,
I must not understand exactly what you are trying to do. My solution is basically, Turn off the automation(s) you don’t want to trigger and turn them back on when you do.
So I think you are almost stating what I want to to achieve.
I want the automation X to only run if automation y triggered 5 minutes or less.
So for example, If automation y triggered at 8.00pm I only what to trigger automation X if I press a button and it is 8.05pm or less. If it is past 8.05pm then do nothing.
…
So now I created a timer helper. Now I’m struggling on using if and if not statements. Can they be used in GUI automation. Or do I need to code in yaml
It would help to provide a more concrete example. But it is as easy as this:
In automation X, start the timer helper with a duration of 5 mins.
In automation Y, add a condition to check if the timer is running or not.
There were no buttons, time condition or any else in beginning. I really don’t know how all that came out.
Why don’t you start like a man will do.
Create simple automation to turn on light. When the light is turn on call timer helper.
Create second automation to turn another light on, but in this automation use timer helper as a trigger to turn another light on.
If it works make it more complex adding other conditions to it.
Yep it was as simple as that.
Well I didn’t know helpers existed before this post. So after figuring that out it was simple enough.
Thanks for the help!