Looking for the same thing because the 12v to the factory trailer plug (2015 Duramax) is constantly active--I don't want to risk draining the truck battery when I'm parked. Therefore, want to provide charging power to the trailer only when the engine is running (ie, key is on). Looks like I'll have to install a solenoid activated by the switched power to do the job.