Apple, aiming to catch up with rivals in the smart home market, is nearing the launch of a new product category.