An AI Program to manage home automation