Ok, now I get a better feeling what you want to do!
Hmmm, my first thoughts (and they might be totally wrong) would be to chain some automations, not only one, to work around the delay. I don’t like delays, because they get lost when you need to restart HA while the automation is running.
start switch #1 and let it run for xx minutes
triggered by the end of automation #1
turn on switch #2, same delay
triggered by the end of automation #2
If divided, the automations should be possible to run after a restart with a “homeassistant: start” trigger.
For the last two switches, I’d work with a helper, that you set yourself when going out on the patio. An
input_boolean should work. This is the
wait_for_trigger you’d set in the second last automation, so these switches are blocked, as long as you don’t turn off the
Does that make sense to you? As I said, just a few first thoughts.
Another way I could imagine, would be to work with an
input_select as the trigger for each switch. You’d have an option for each switch and trigger the next automation by changing the
start first switch
after finishing, set the `input_select` to the next option
triggered by the `input_select` change
If you’re sitting on the patio, it should change the
input_select to the next automation, that could check for the condition if you sit outside or not. This way, it would survive a restart of HA, and you can trigger it after a HA restart to work along.
These are just two ideas, let me know what you think. I’m quite sure some of the code gurus might come up with something better, but for now, let’s see what fits your needs best.