If all the wiring looks in good condition i recommend replacing the interior lamp control module.
Car interior light delay unit.
When the door closes and the dome light would normally turn off the dome light dimmer module takes control and holds the dome light on for a few seconds the delay feature.
Look for any ground wires to the interior light circuits to see if they are loose.
It provides modern car functionality to the dome light by slowly dimming the light after 20 seconds when the door is closed and slowly increasing the light intensity when the door is opened.
Interior roof light with a philips bluevision w5w light it s allot brighter and whiter.
By activating the manual switch or opening the door q2 turns on for an instant in order to lead the output to the high level.
Dome light dimmer is a smart circuit that adds several modern features to the basic dome light.
Check the next pictures.
The light goes on.
This circuit may be used to automatically switch off an interior car light with a time delay of 15 seconds or 3 minutes.
This delay gives you the time to gather the seat belts find the ignition slot with the key etc.
The black wire of the light unit connects to the white black wire of the car light.
The light is controlled by a manual and a door switch.
Car 12v light delay off i can send eagle files xxxxx brd or xxxxx sch via e mail.
The red wire of the light delay connects to the red wire of the car light.