calling fan off or fan auto won't stop it from running. resumeschedule will though.
I do something similar. I have 3 virtual switches that I can turn on, which when turned on will run the fan for 1, 2, or 3 hours.
Here's what the rule machine rule looks like if that helps ya one way or another.