Is there any other wiring or a fuse panel near it or not? I suppose if it's on it's own, you could use a voltage sensing relay and set it so it drops out sometime after the car is stopped but it wouldn't be instaneous when the engine was stopped but it wouldn't run all the time and flatten the battery either.
Bookmarks