shm Maps of differential algebras, I. A characterization up to homotopy