Dishwasher comprising: a washing chamber in which dishing goods are packed in one or more baskets; a water circulation system; a heat pump system comprising a compressor, a first condenser, a second condenser and an evaporator connected by pipes suitable for a working medium circulating in the heat pump system, said heat pump system is switchable between a first configuration, used during a dishing phase, in which the compressor is connected to the first condenser arranged to heat the dishing water and the evaporator arranged to cool ambient air from the exterior of the washing chamber, characterized by a second configuration, used during a drying phase, in which the evaporator is arranged to cool humid air from the washing chamber to condensate water from the air and the compressor is connected to the second condenser arranged to heat the dehumidified air, wherein a first and a second valve are arranged to switch the heat pump system between the first and second configuration, said first valve is arranged to direct the working medium from the compressor to either the first or the second condenser, and the second valve is arranged to direct the working medium either from the first or second condenser to the evaporator, said dishwasher furthermore comprising a first passage leading ambient air from the exterior of the washing chamber past the evaporator during operation according to the first configuration, a fan arranged to generate a flow or air through the first passage past the evaporator arranged at least partly in the first passage, and a second passage arranged to lead humid air from the washing chamber past the evaporator during operation in the second configuration to condensate the humid air and dehumidify the air before it is returned to the washing chamber wherein the first and the second passage extend through a common section in which the evaporator and fan are arranged, and a first and a second air passage valves are arranged to open and /or close the first passage and the second passage, whereby the air passage valves (55, 56) are controlled by a control unit. a washing chamber in which dishing goods are packed in one or more baskets; a water circulation system; a heat pump system comprising a compressor, a first condenser, a second condenser and an evaporator connected by pipes suitable for a working medium circulating in the heat pump system, said heat pump system is switchable between a first configuration, used during a dishing phase, in which the compressor is connected to the first condenser arranged to heat the dishing water and the evaporator arranged to cool ambient air from the exterior of the washing chamber, characterized by a second configuration, used during a drying phase, in which the evaporator is arranged to cool humid air from the washing chamber to condensate water from the air and the compressor is connected to the second condenser arranged to heat the dehumidified air, wherein a first and a second valve are arranged to switch the heat pump system between the first and second configuration, said first valve is arranged to direct the working medium from the compressor to either the first or the second condenser, and the second valve is arranged to direct the working medium either from the first or second condenser to the evaporator, said dishwasher furthermore comprising a first passage leading ambient air from the exterior of the washing chamber past the evaporator during operation according to the first configuration, a fan arranged to generate a flow or air through the first passage past the evaporator arranged at least partly in the first passage, and a second passage arranged to lead humid air from the washing chamber past the evaporator during operation in the second configuration to condensate the humid air and dehumidify the air before it is returned to the washing chamber wherein the first and the second passage extend through a common section in which the evaporator and fan are arranged, and a first and a second air passage valves are arranged to open and /or close the first passage and the second passage, whereby the air passage valves (55, 56) are controlled by a control unit.