Smart building and smart home