The evolution of smart buildings