I am trying to figure out how to code for sequential triggers. I can think of a way to achieve it using input_booleans but figure there must be a simpler / more elegant way to do it.
What I am trying to do is:
trigger 1 occurs
automation is semi-triggered, awaiting the next trigger
then wait until second trigger occurs to perform the action as long as its conditions are met. This action must only commence if the triggers occurred in the correct order and within a predetermined time-frame.
Also, I want this to only occur when that sequence happens for the first time that day, but that part I know how to achieve, even if it isn’t the best way…
I haven’t yet worked out my exact use-case yet because I wanted to see if such a thing can be done first (without diving into AppDaemon or something)
Does anyone have anything as an example that follows a similar sort of logic?
The action of an automation rule is what is being executed when a rule fires. The action part follows the script syntax which can be used to interact with anything via services or events.