cancel
Showing results for 
Search instead for 
Did you mean: 

Run a routine only once and have it deactivate itself until I activate it again.

rvilloch
Community Member

I have a routine that I want to only run once if the starter condition is met, and then I want it to deactivate itself. How can I achieve this? 

I tried adding a custom command "Deactivate routine Test"  to disable the Test routine but it did nothing.

2 REPLIES 2

nickfromgoogle
Googler
Googler

Hey @rvilloch - We don't currently have functionality to deactivate a routine after it finishes running but you can try using starter suppression's suppressFor parameter to have your routine ignore a starter for a specified amount of time. Check out more details of this feature in our write scripted automations help article.

rvilloch
Community Member

Ok, thanks. I'll take a look and let you know if it helps.