A device for dehumidifying a closed vehicle headlamp housing includes a box with an opening connecting the inside of the box with the inside of the closed housing, and an opening connecting the inside of the box with the outside of the closed housing. The device further includes a shutter for alternatively opening the opening or sealingly closing it, an actuation module configured such that the shutter closes the opening when it is activated, and a heating element for emitting heat when the actuation module is activated.