Having them come on when the parking lights are turned on is simply a matter of running a switching lead to the relay from the parking light circuit. You're going to need to install diodes, too, with all these extra functions. One diode per switch lead, so, one from each of the door switches, and one from the parking light circuit.
To turn the LEDs off when the headleights are turned on, you'll need another relay. The headlight circuit will be the switching circuit, Pins 85 & 86. Pin 30 will be the LED power from the first relay. Pin 87 will be blank and Pin 87a will carry power to the LEDs. This way, power in interrupted when power to the headlights is turned on.
Tuesday, January 24th, 2012 AT 7:27 PM