Only Run within X number of minutes?

I am using the smart app Whole House Fan but I am wanting to add a small bit of code to a smart app so that it checks to make sure it can only run every 30 minutes or so…

Right now it sometimes runs within minutes back to back, opening and closing which gets annoying, can someone please help with this bit of code?

Thanks

Look at the code for the ST app “Notify me when”. There is code in there to only send a message every so many minutes. You could use that same code to limit how often the fan is started.