An Apple patent application revealed Thursday outlines plans for an automated smart home system that tracks individual users through their connected devices, detects common patterns and compiles events for triggering thermostats, lights, door locks and more.