Connect ambient lighting

Hello I have built in an ambience lighting and connected it via terminal15. How can I connect the lighting that it only goes out when you open the driver’s door and not immediately when you turn off the ignition. The radio stays on until you open the door. Of course, it would be best if the lighting already responds when the door opens like the interior lighting.