A device for receiving a portafilter suitable for pressure extraction of coffee, comprising a) a receiving unit which is suitable for receiving a portafilter suitable for pressure extraction of coffee by rotating the portafilter in a first rotational direction about an axis of rotation of the portafilter ; b) a substantially flat switching ring which is rotatably mounted on a part of the receiving unit and has first recesses (6, 6', 6") which are each suitable for form-fittingly receiving a respective cam of a portafilter suitable for pressure extraction of coffee, wherein the switching ring has a structural element; c) a movable or immovable locking element , characterized in that i) the locking element is adapted to move towards the structural element of the switching ring and to move away from the structural element of the switching ring , wherein a locking element moved towards the structural element of the switching ring is adapted to prevent rotation of a portafilter received in the receiving unit in a second rotational direction about an axis of rotation of the portafilter which is opposite to the first rotational direction ; and/or ii) the structural element is adapted to move towards the locking element of the device and to move away from the locking element of the device, wherein a structural element moved towards the locking element is adapted to prevent rotation of a portafilter received in the receiving unit in a second rotational direction about an axis of rotation of the portafilter which is opposite to the first rotational direction . a) a receiving unit which is suitable for receiving a portafilter suitable for pressure extraction of coffee by rotating the portafilter in a first rotational direction about an axis of rotation of the portafilter ; b) a substantially flat switching ring which is rotatably mounted on a part of the receiving unit and has first recesses (6, 6', 6") which are each suitable for form-fittingly receiving a respective cam of a portafilter suitable for pressure extraction of coffee, wherein the switching ring has a structural element; c) a movable or immovable locking element , characterized in that i) the locking element is adapted to move towards the structural element of the switching ring and to move away from the structural element of the switching ring , wherein a locking element moved towards the structural element of the switching ring is adapted to prevent rotation of a portafilter received in the receiving unit in a second rotational direction about an axis of rotation of the portafilter which is opposite to the first rotational direction ; and/or ii) the structural element is adapted to move towards the locking element of the device and to move away from the locking element of the device, wherein a structural element moved towards the locking element is adapted to prevent rotation of a portafilter received in the receiving unit in a second rotational direction about an axis of rotation of the portafilter which is opposite to the first rotational direction . i) the locking element is adapted to move towards the structural element of the switching ring and to move away from the structural element of the switching ring , wherein a locking element moved towards the structural element of the switching ring is adapted to prevent rotation of a portafilter received in the receiving unit in a second rotational direction about an axis of rotation of the portafilter which is opposite to the first rotational direction ; and/or ii) the structural element is adapted to move towards the locking element of the device and to move away from the locking element of the device, wherein a structural element moved towards the locking element is adapted to prevent rotation of a portafilter received in the receiving unit in a second rotational direction about an axis of rotation of the portafilter which is opposite to the first rotational direction . <EOS>