Battery storage in residential buildings