From the apartment to the smart city