In order to get it to turn off when your headlights are on you may have to run 2 relays. Set up the system to work when the ignition is on and then have the 2nd relay operated by the headlight power to open the circuit turning off the DRL's.