One way to build out a smart home is to buy lots of components—sensors, smart bulbs, security cameras, speakers, and whatnot—and connect them all to a hub that helps them communicate with each other and with you via your smartphone.