The device has a compressor (1) for compression of a supplied cooling medium, and an ejector (3), arranged downstream of a condenser (2). A part of the cooling medium leaving from an outlet of the ejector is supplied to an evaporator (104). The cooling medium leaving the evaporator (104) is supplied to a suction side of the compressor. The cooling medium supplied to one inlet of the ejector unit has a lower pressure than the cooling medium leaving the outlet of the ejector, before it flows through the ejector.