Mazda Welcome Illumination Kit

Has anyone found a good way of getting something like this to work only when the doors are open and turn off when you close the doors? I know on the Protege5 it was as simple as splicing into a wire that was under the dash.
 
Back