The embodiment of the invention relates to a
heat pump unit with an oil blockage prevention function. The
heat pump unit comprises a
refrigerant circulation loop, a heating module, a first temperature sensor, a second temperature sensor and a controller. The controller is configured to obtain the shutdown duration of the compressor under the condition that a starting
signal for the compressor is detected, obtain the environment temperature detected by the first temperature sensor and determine the oil blockage risk grade according to the shutdown duration and the environment temperature; under the condition that the oil blockage risk grade is larger than a preset threshold value, the current pressure of the
heat pump unit is determined; the target
oil temperature is calculated according to the
refrigerant saturation temperature of the current pressure; according to the target
oil temperature and the current
oil temperature detected by a second temperature sensor, target preheating duration is calculated; and the heating module is controlled to at least run for the target preheating duration so as to heat lubricating oil in the compressor. The heat pump unit can ensure that a
refrigerant is fully separated from lubricating oil, can prevent the condition of oil blockage in the compressor, and prevents the compressor from being damaged.