Storing Heat Energy into Batteries