A Xiaomi-backed action-camera maker found a more durable business in the ordinary room: affordable home surveillance, smarter alerts, and a cloud subscription.