I have an automation when triggered, turn on a switch and start the timer countdown. Once in a while I need to stop the automation but the “delay” keeps counting down until the time is up. How do I stop the automation with timer.cancel and cancel the “delay” part as well?
Unless the delay serves a different purpose than the timer, there is no reason to have both… and a timer is better. Use the completion of timer as a second trigger, then use a Choose action to specify which actions go with which trigger.