Smart Homes and Smart Buildings