the following is my post from courtesy light topic. Should work for you, the 12v constant will come from the headlight harness, and pin 85 will connect to the neg headlight wire.
Courtesy light wiring figured out. Now hardwired to work off the door jamb switch. The switches are ground activated. Meaning when door is opened, the switch grounds to complete the circuit.
4 Pin relay
LED strips from Advance Auto
Wire and Connectors
Inside driver kick panel you will see the blue junction box shown in picture. On the right side of it there are two solid green wires plugged into the same slot. These are the door jamb switch grounds. Verified with multimeter.
Find where you want your lights, mount them and run all wires in the direction of the kick panel.
Get your relay and start connecting. Don't forget to disconnect the negative battery lead.
Pin 30 - Connect 12v constant power to this Pin. Use the Add-A-Fuse to connect to a constant 12v in the fuse box. I used the hazard light fuse.
Pin 85 - Tap into the door jamb switch grounds and run a short wire to this Pin.
Pin 86 - Jump 12v constant power from Pin 30 to this Pin.
Pin 87 - Connect your lights 12v positive line to this Pin.
Pins 86(12v constant) and 85(door switch ground) activate the relay by completing a circuit. When relay is activated Pins 30(12v constant) and 87(lights positive) connect and supply your lights with the needed power.
Ground your lights, right beside the junction box there are threaded holes already there. Just go through your junk draw and find one that fits.
Reconnect your negative battery lead.
Congrats your courtesy lights are now working off the door switches.
2008 Hyundai Accent GS 2dr/hatch (Kenwood DNX6960, MTX Sub, and various Hyundai Accessories)
2008 Hyundai Elantra SE (wife's car)
1996 Ford Bronco 351w
Let the yellow mellow!