with control switch for setting opening and re-closing time