An automation that tries to catch an event, check every X mins for Y mins, quit

I find this kind of situation that happens a lot for me. Like an error occurs, and I want to execute some code. And then if the error is still happening, repeat every minute, for the next five minutes and then execute diff code and quit.

What would the automation skeleton of this look like?

Look at the new automation/script actions.

Specifically:

1 Like

You guys are doing God’s work!

1 Like