Added new switch type that only activates if its condition is met for a
specified period of time