To open the entrance, throw an item on the block near the hopper. To close it, collect the item.