Using a timer switch "interface"

see this for timer examples and resetting/overriding.