I once saw a clever setup where the guy used a motion sensing light switch to control his battery charger.

It would only charge the battery while he was in the garage. Once he left it would shut off.