With Orange Time System, you can use a plugin command to make a self switch be enabled / disabled after some time. It's better than the wait command because the player can leave the map and come back, or save the game and continue playing some other day, and the timer will still work.