Consumption Units Tracking System with Home Automation & Chat
Total Page:16
File Type:pdf, Size:1020Kb
INTERNATIONAL JOURNAL OF RESEARCH ISSN NO : 2236-6124 Consumption Units Tracking System with Home Automation & Chat Bot 1Nareshkumar R. M., 2Zaiyan Khan, 3Rishikesh Varvade, 4Amol Choudhary Dr. D.Y. Patil Institute of Engineering, Management & Research, Pune - 44 [email protected] [email protected], [email protected], [email protected] Abstract: Modern houses are gradually shifting from conventional switches to centralized control system, involving wireless controlled switches. Presently, conventional wall switches located in different parts of the house makes it difficult for the user to go near them to operate. Even more it becomes more difficult for the elderly or physically challenged people to do so. Remote controlled home automation system provides a simpler solution with Mobile application technology. This project aims at giving more power to the consumer with additional improvements and enhanced features with the convenience of chatting with the smart bot. Keywords: IoT, Artificial Intelligence, Home Automation, Chatbot, Facebook, Power Consumption. 1. INTRODUCTION The aim of the project is to develop an easy to use & user friendly automation and consumption tracking system which would automate appliances and track their status at the ease of being anywhere and tracking the units consumed by the appliances in real time. The user interface is platform independent which makes it globally accessible via any internet enabled device. The system will be able to control the home appliances remotely and also monitor and track the power units consumed by them. The user interface is available as web application and mobile application (Facebook messenger). The mobile application (Facebook messenger) will be used to control the electronic appliances, while the web application can be used to check additional details like the total time for which power has been on, also the total units consumed till date, etc. The bill estimation module will enable the user to view the estimate of the bill which will be computed by the CUTS algorithm by using the power units consumed and price per unit. 2. IDENTIFY, RESEARCH & COLLECT IDEA Home Automation Using Remote Control - Current System Smart Homes Using Mobile Devices Current System These systems involve the control and automation of lighting, heating, ventilation, air conditioning, etc. WIFI is often used for remote monitoring and control. Modern systems generally consist of switches and sensors connected to a central HUB sometimes called a gateway. Analysis of usability in IOT states that by 2020 50 billion devices will be connected to the internet thereby sharing data and communicating with each other. Modern facilities have already started implementing home automation, this home automation technology is not only limited to homes, but also has its commercial applications. The major constraints faced by the commercial sectors are the cost to drive the business, majority of the cost is the result of power consumption and electrical usages. A way to track these units and to monitor the electric flow with alert system would immensely help in reducing the cost drastically. Volume 7, Issue VI, JUNE/2018 Page No:54 INTERNATIONAL JOURNAL OF RESEARCH ISSN NO : 2236-6124 Also, the current smart homes provide limited knowledge and data to the consumers, this project aims to provide the least shared but most critical data corresponding to the appliances, the ability to track and monitor the usage and also to set alarms to detect over usage are the key highlights of the project. Security vulnerability is eliminated by the use of extensive Security protocols like SSL offering a 256 bit encryption over data exchange between the software and hardware. Research into the commercial space also highlighted the issue of machine maintenance, which is another market area where the CUTS product can be used. Monitoring the running time and energy consumption of the machines can be done seamlessly using the CUTS Product. The analysis can be performed on the data and analytic overview can be viewed on the web application. The space of machine maintenance is huge and CUTS product, can be of immense use in this particular field. Machines are costly and their proper maintenance and analysis can increase their functioning life. The output of the project will help to make homes and industries more smart and move a step forward in the innovation scope of smart homes and industries. 3. STUDIES & FINDING With the IOT era, 50 billion devices are predicted to be connected to the internet by 2020 thereby exchanging data over the cloud, the home automation curve has made the homes better and smart and has also given the consumer more power. The scope for enhancement is endless and this paper aims to enhance the features of the conventional home automation systems by giving more control, features and data to the home owners and making the homes even smarter by sharing the most critical data, i.e power consumption. A. Bits and Pieces together The system is designed in such a way that it is platform independent i.e with the responsive design and RWD - Responsive Web Design concept it has the ability to adapt to any size of the device it is viewed in, this software is a web application connected to the hardware device, Raspberry Pi constantly exchanging data with each other in real time. B. UML Diagram Figure 1. System Flow Diagram – UML Volume 7, Issue VI, JUNE/2018 Page No:55 INTERNATIONAL JOURNAL OF RESEARCH ISSN NO : 2236-6124 4. IMPLEMENTATION Facebook messenger is the key element in the system as all the appliances will be controlled using Facebook messenger, reason being it is the most used chat application and is already present on most mobile phones, so the user need not download a new app for using the CUTS system. Facebook messenger has released it’s API to integrate into system. Facebook messenger chat bot API is used to integrate into the system. The following web hook events are used to integrate into the chat bot: messages, messaging_postbacks, message_deliveries, message_reads.[1] A facebook page is created which will act as the agent/assistant between the user and server. A unique token is generated for the Facebook page which is unique identification of the selected page agent. This token is used in the server to interface with the server with the page. The user will interact with the Facebook page using the Facebook messenger, the messages will go through the intermedia NodeJS server which will detect the keywords in the message, choose the appropriate reply and action and then send it to the messenger chat bot for reply to the user. The intermediate NodeJS server acts as the respondent and action performer, when the user types in a message for the page, the message is forwarded to the node server which analyses the message and scans it for the keywords. After a keyword is found, it chooses the available set of replies and actions corresponding to the keywords, the reply message is chosen and sent back to the messenger as the reply to the user’s message and the action is sent to the web server for execution. RaspberryPI 3 is the hardware used and it is interfaced with the web server, the action sent to the web server for execution is fetched with raspberry pi which in turn activates the relay device to switch on/off the electronic appliance[2][3][4]. A current sensor: INA219 is interfaced with the raspberry pi to monitor the current passing through it in real time. This current sensor is capable of computing the current and voltage passing through it. The parameters, current & voltage, are extracted in real time using python script and are sent to the database. The database is used to store the data regarding the operations and their characteristic parameters like switch on time, off time, resources used and appliance_id. These records are updated with the timestamp and are saved in the database. The saved records are used to perform analysis and present an overview in the web application user dashboard. The records are also used to compute the total power units consumed and also to generate the estimated bill. The web application acts as an interface between the user and the database, the data from the database is presented on the web application dashboard. The user can generate and view the reports dynamically. The web application allows the user to keep a track on the power consumption and also to set alerts for email and sms notifications when the power consumption reaches the threshold set by the user. The user is also able to generate estimated bill for any time period. The CUTS algorithm takes into account the following parameters to compute the unit’s consumption: voltage from INA219 current sensor, current from INA219 current sensor. The formula P=V.I is used to compute the power i.e the units consumed. Here P=Power, I=Current, V=Voltage. CUTS algorithm also considers the timestamp to generate estimated bills based on a date range selected by the user. It allows the user to select any date range to generate bill estimations dynamically. The algorithm also interfaces with the Facebook messenger and gets activated on the use of keyword “bill”. CONCLUSION Based on all the systems surveyed and their advantages and drawbacks, our project presents the features to be possessed by an idea system for residential and industrial automation with remote access and consumption tracking units system. Volume 7, Issue VI, JUNE/2018 Page No:56 INTERNATIONAL JOURNAL OF RESEARCH ISSN NO : 2236-6124 ACKNOWLEDGMENT This research was supported by our Guide Prof. Nareshkumar R. Mustary, Professor at Dr. D.Y. Patil Institute of Engineering, Management & Research, Pune - 44 who provided insight and expertise that greatly assisted the research.