using thermal mass for heating and cooling smarter homes