My problem is that when i double tap the button before the 2nd stage alarm, it turns off the first sequence only... but the second sequence proceeds to play after 5 seconds. It's like the list of actions still proceeds...
Worst part is that if I single push the button 2 times, i get duplicates of the 2nd sequence...
What I think is happening is that the delay gets scheduled, but since the button press is coming from another sub-rule, it is not cancelling this one.
As for pressing twice, yes, it will re-start the rule and the wait for 5 seconds will be scheduled a 2nd time, so it will run sound 9 twice. To avoid this, add a “Wait for event - elapsed time - 5 seconds” before the 2nd action and remove the delay.
To cancel the rule, I would try adding in the other button a “Pause Rule” action for the rule you shared, followed by an enable rule after something like 5-6 seconds. There would be multiple other ways of doing this.
hi
tnx. I'll give it a try but this method sounds convoluted . Isn't there a way to cancel the rule progression anytime? i thought that's what the "cancelable" option is for.
Yes, a cancel can be added within a rule, but in the case you are looking at, I’m not sure it would work. That said, there are always multiple ways to do things in Hubitat, so there is likely a better way!