A system that automatically control devices at home by detecting a person’s movements and learning his/her devices usage habits.