I agree that computercraft is probably the easiest way to go. But if you don't want to for any reason, I think a timer and state cell combination would be your next best bet. Dire uses that type of setup in a few of his videos, but I can't tell you the details of how to do it off hand...