Smart homes are moving from simple, command-based gadgets to systems that can learn and adapt to your habits.