From Energy Efficient Buildings to Smart Cities: