How Smart Homes Work