The light works when I switch it on so I know it is getting power. The ring light around the ignition switch goes on and off as it should (open and close of doors) - which would indicate to me that the door switches are operational. The sun roof works without any problem. What could be the problem here - a short?
Interior / Dome Light not working when doors are opened on 2000 Toyota Camry
A short would bring the light on all the time as the switch provides a path to ground. Does the dome light work with the roof mounted dome light in the "door position" when the door is opened on the passenger front door? If not the problem is in the lamp fixture, pop off the transparent cover and check the contacts. Exercise the door switches in the door jambs and see if it then operates the light. Perhaps remove the screw holding the switch to the dor jamb and place the wire directly to ground se if the light then works which would confirm bad switch.
There is no "door" position on the switch - wish it were that simple.