The solution is based on the fact that the switched on light bulb will heats up.
I will flip on the switch 1 for a few minutes, then flip it off and flip the switch 2. Then i will open the door. If the light is on, then the switch 2 is controls the light. If the light is off, i will touch the light bulb, if it hot then the switch 1 is controls the light, if cold - switch 3.