In this paper, the authors create a home automation system i.e. a home which will act as an intelligent agent. Voice commands are given as an input by the user. An android application is created for this purpose. This application consists of a list of rooms, room-switches and the operations which are to be performed. They are using the current system time and weather conditions. Datasets are built for analysis purpose and then stored in the switch history table. They perform data mining on the switch history table.