The door gear is driven by the gear segment. The door gear has a square hole in it and the square shaft on the door is glued in this hole. The most common failure of this accessory is the square shaft on the bottom of the door brakes off. When this happens you can usually get the square shaft out of the gear, but the door will have to be replaced. Doors are available, but they may not be red. Later production doors are brown.
The solenoid pushes the man out of the house, which also causes the door to open. When the power is shut off the spring pulls the man back in the house, which closes the door. Some versions of this accessory have a bulb tat shines through a hole in the base causing the lamp to look like it is lit up.