I want to turn on a switch every 10 minutes but only let it run for 5 minutes and then repeat. Can it be done with a single automation?
Yes use a time pattern trigger and a delay, or two time pattern triggers.
tried that before, probably did something wrong, but I solved it with an automation that ran /10 minutes calling a script that ran a switch for 2 minutes