how to stop scene

Hello. I am making a little project with vera. I have such scenes like empty home, back home, sleeping home and all of this scenes have their lua code when should it star and when should run another scene. But i want to create vocation scene and in this case i did that everything will turn off and only when motion sensor is tripped then starts back home program. But all scenes have their timers, so if it is vocation program now when it comes certain time will start for example wake up program, but i dont want this. So what to do when i start vocation program that others dont work untill motion sensor is tripped. Thanks