Design and Implementation of the E-Switch for a Smart Home
Abstract
:1. Introduction
- Design and implementation of an e-Switch, based on a non-reactive approach to implement the SH concept, to optimize the use of installed household lighting networks. Controlling and monitoring each of the lights in the home locally or remotely in a more consciously and rationally way. This approach offers the user security and confidence when leaving home.
- Integration of IoT and a cloud environment to automate, control and monitor smart switches. Moreover, the data obtained by the platform are collected and stored for later analysis. Then, the platform is suitable and ready to offer information that can be used in artificial intelligence models for several purposes, such as reducing electrical energy consumption through the detection of patterns, searching for anomalies in the habits of the residents, among others.
2. Related Work
3. Design and Implementation of the E-Switch
3.1. Platform Scope and Objectives
3.1.1. Robustness
3.1.2. Interoperability
3.1.3. Security
3.1.4. Costs
3.2. Platform Architecture
3.2.1. Iot Component
3.2.2. Cloud Service
3.2.3. Mobile Application
- Home—This section shows the list of switches that the user has added so far. In the first instance, the user will not have any device, so it is necessary to add it. The list shows the devices with a specific name which is selected by the user, as well as their connection status (Connected or Offline), see Figure 5a.
- Add—Add a device to the Home section. The switch must be placed in pairing mode according to the user manual and enter the network’s password of the network to which the user wants to connect the device. Once the device is found, an identifying name is placed on it and displayed in the Home section, see Figure 5b.
- Profile—Account administration, change username, password, email, delete account and sign out, see Figure 5c.
- On/Off—It allows control and monitoring of the device. If the switch is turned on or off manually from the premises, it is reflected in this section. In addition, in this section, we add options to increase user comfort, allowing them to edit the name or delete the device, see Figure 6a.
- Schedule—In this section, it is possible to establish synchronization times for turning the switches on and off at a specific date and time, see Figure 6b.
- Timer—In this section, the switch can be turned on or off automatically for a specified time, see Figure 6c.
3.2.4. Register Container
4. Results
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Gram-Hanssen, K.; Darby, S.J. “Home is where the smart is”? Evaluating smart home research and approaches against the concept of home. Energy Res. Soc. Sci. 2018, 37, 94–101. [Google Scholar] [CrossRef]
- Pan, J.; McElhannon, J. Future Edge Cloud and Edge Computing for Internet of Things Applications. IEEE Internet Things J. 2018, 5, 439–449. [Google Scholar] [CrossRef]
- Petrolo, R.; Mitton, N.; Soldatos, J.; Hauswirth, M.; Schiele, G. Integrating wireless sensor networks within a city cloud. In Proceeding of the 2014 Eleventh Annual IEEE International Conference on Sensing, Communication and Networking Workshops (SECON Workshops), Singapore, 30 June–3 July 2014. [Google Scholar]
- Elkhodr, M.; Shahrestani, S.; Cheung, H. Emerging Wireless Technologies in the Internet of Things: A Comparative Study. Int. J. Wirel. Mob. Netw. 2016, 8, 67–82. [Google Scholar] [CrossRef]
- Hui, T.K.L.; Sherratt, R.S.; Sánchez, D.D. Major requirements for building Smart Homes in Smart Cities based on Internet of Things technologies. Futur. Gener. Comput. Syst. 2017, 76, 358–369. [Google Scholar] [CrossRef] [Green Version]
- Botta, A.; De Donato, W.; Persico, V.; Pescapé, A. Integration of Cloud computing and Internet of Things: A survey. Futur. Gener. Comput. Syst. 2016, 56, 684–700. [Google Scholar] [CrossRef]
- Javed, A.; Larijani, H.; Ahmadinia, A.; Gibson, D. Smart Random Neural Network Controller for HVAC Using Cloud Computing Technology. IEEE Trans. Ind. Inf. 2017, 13, 351–360. [Google Scholar] [CrossRef] [Green Version]
- INEGI, Encuesta Nacional Sobre Consumo de Energéticos en Viviendas Particulares (ENCEVI) Descripción de la Base de Datos. 2018. Available online: https://www.inegi.org.mx/contenidos/programas/encevi/2018/doc/encevi_2018_fd.pdf (accessed on 18 March 2021).
- INEGI, Encuesta Nacional sobre Consumo de Energéticos en Viviendas Particulares ENCEVI 2018 Presentación de Resultados. 2018. Available online: https://www.inegi.org.mx/contenidos/programas/encevi/2018/doc/encevi2018_presentacion_resultados.pdf (accessed on 18 March 2021).
- Kumar, A.; Kumar, V. Energy Audit of an Engineering College Building for Energy Cost Reduction and Power Conservation. Int. J. Recent Trends Eng. Res. 2020, 6, 11–14. [Google Scholar] [CrossRef]
- INEGI, Primera Encuesta Nacional Sobre Consumo de Energeticos en Viviendas Particulares (ENCEVI). 2018. Available online: https://www.inegi.org.mx/contenidos/saladeprensa/boletines/2018/EstSociodemo/ENCEVI2018.pdf (accessed on 18 March 2021).
- Amri, Y.; Setiawan, M.A. Improving Smart Home Concept with the Internet of Things Concept Using RaspberryPi and NodeMCU. IOP Conf. Ser. Mater. Sci. Eng. 2018, 325, 012021. [Google Scholar] [CrossRef]
- Park, H. Human Comfort-Based-Home Energy Management for Demand Response Participation. Energies 2020, 13, 2463. [Google Scholar] [CrossRef]
- Bhatnagar, H.V.; Kumar, P.; Rawat, S.; Choudhury, T. Implementation model of Wi-Fi based Smart Home System. In Proceeding of the 2018 International Conference on Advances in Computing and Communication Engineering (ICACCE), Paris, France, 22–23 June 2018. [Google Scholar]
- Al-Kuwari, M.; Ramadan, A.; Ismael, Y.; Al-Sughair, L.; Gastli, A.; Benammar, M. Smart-home automation using IoT-based sensing and monitoring platform. In Proceedings of the 2018 IEEE 12th International Conference on Compatibility, Power Electronics and Power Engineering (CPE-POWERENG 2018), Doha, Qatar, 10–12 April 2018. [Google Scholar]
- Kim, S.; Park, M.; Lee, S.; Kim, J. Data Analysis of IoT Devices. Electronics 2020, 8, 1215. [Google Scholar] [CrossRef]
- Faisal, S.; Paul, A.; Rehman, A.; Hong, W.H.; Seo, H. IoT-Based Intelligent Modeling of Smart Home Environment for Fire Prevention and Safety. J. Sens. Actuator Netw. 2018, 7, 11. [Google Scholar]
- Fang, Y.; Lim, Y.; Ooi, S.E.; Zhou, C.; Tan, Y. Study of Human Thermal Comfort for Cyber–Physical Human Centric System in Smart Homes. Sensors 2020, 20, 372. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Gautam, S.; Dah-Chuan, D.; Xiao, W.; Lu, Y. Realisation of RPS from electrical home appliances in a smart home energy management system. IET Smart Grid 2020, 3, 11–21. [Google Scholar] [CrossRef]
- Mendula, M. Interaction and Behaviour Evaluation for Smart Homes: Data Collection and Analytics in the ScaledHome Project. In Proceedings of the 23rd International ACM Conference on Modeling, Analysis and Simulation of Wireless and Mobile Systems, Alicante, Spain, 16–20 November 2020. [Google Scholar]
- Alghayadh, F.; Debnath, D. A Hybrid Intrusion Detection System for Smart Home Security. In Proceedings of the 2020 IEEE International Conference on Electro Information Technology (EIT), Chicago, IL, USA, 31 July–1 August 2020. [Google Scholar]
- Bhamidi, L.; Sivasubramani, S. Optimal Sizing of Smart Home Renewable Energy Resources and Battery Under Prosumer-Based Energy Management. IEEE Syst. J. 2021, 15, 105–113. [Google Scholar] [CrossRef]
- Sarker, E.; Seyedmahmoudian, M.; Jamei, E.; Horan, B.; Stojcevski, A. Optimal management of home loads with renewable energy integration and demand response strategy. Energy 2020, 210, 118602. [Google Scholar] [CrossRef]
- Fan, W.; Liu, N.; Zhang, J. An Event-Triggered Online Energy Management Algorithm of Smart Home: Lyapunov Optimization Approach. Energies 2016, 9, 381. [Google Scholar] [CrossRef] [Green Version]
- Sanchez-Comas, A.; Synnes, K.; Hallberg, J. Hardware for recognition of human activities: A review of smart home and AAL related technologies. Sensors 2020, 20, 4227. [Google Scholar] [CrossRef]
- Singh, H.; Pallagani, V.; Khandelwal, V.; Venkanna, U. IoT based smart home automation system using sensor node. In Proceedings of the 2018 4th International Conference on Recent Advances in Information Technology (RAIT), Dhanbad, India, 15–17 March 2018. [Google Scholar]
- Kodali, R.K.; Mahesh, K.S. A low cost implementation of MQTT using ESP8266. In Proceedings of the 2nd International Conference on Contemporary Computing and Informatics (IC3I), Greater Noida, India, 14–17 December 2016. [Google Scholar]
- Oh, J. IoT-based smart plug for residential energy conservation: An empirical study based on 15 months’ monitoring. Energies 2020, 13, 4035. [Google Scholar] [CrossRef]
- Eldib, M.; Philips, W.; Aghajan, H. Discovering human activities from binary data in smart homes. Sensors 2020, 20, 2513. [Google Scholar] [CrossRef]
- Popa, D.; Pop, F.; Serbanescu, C.; Castiglione, A. Deep learning model for home automation and energy reduction in a smart home environment platform. Neural Comput. Appl. 2019, 31, 1317–1337. [Google Scholar] [CrossRef]
- Gorjani, O.M.; Proto, A.; Vanus, J.; Bilik, P. Indirect recognition of predefined human activities. Sensors 2020, 20, 1–18. [Google Scholar]
- Köckemann, U.; Alirezaie, M.; Renoux, J.; Tsiftes, N.; Ahmed, M.U.; Morberg, D.; Lindén, M.; Loutfi, A. Open-source data collection and data sets for activity recognition in smart homes. Sensors 2020, 20, 879. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Jivani, F.D.; Malvankar, M.; Shankarmani, R. A Voice Controlled Smart Home Solution with a Centralized Management Framework Implemented Using AI and NLP. In Proceedings of the 2018 International Conference on Current Trends towards Converging Technologies (ICCTCT), Coimbatore, India, 1–3 March 2018. [Google Scholar]
- Zinner, T.; Wamser, F.; Leopold, H.; Dobre, C.; Mavromoustakis, C.X.; Garcia, N.M. Matching Requirements for Ambient Assisted Living and Enhanced Living Environments with Networking Technologies, 1st ed.; Elsevier Inc.: Amsterdam, The Netherlands, 2017. [Google Scholar]
- Aloi, G.; Caliciuri, G.; Fortino, G.; Gravina, R.; Pace, P.; Russo, W.; Savaglio, C. Enabling IoT interoperability through opportunistic smartphone-based mobile gateways. J. Netw. Comput. Appl. 2017, 81, 74–84. [Google Scholar] [CrossRef]
- Derhamy, H.; Eliasson, J.; Delsing, J. IoT Interoperability—On-Demand and Low Latency Transparent Multiprotocol Translator. IEEE Internet Things J. 2017, 4, 1754–1763. [Google Scholar] [CrossRef]
- Yacchirema Vargas, D.C. Arquitectura de Interoperabilidad de Dispositivos Fisicos para el Internet de las Cosas (IoT); Universidad Politécnica de Valencia: Valencia, Spain, 2019. [Google Scholar]
- Firebase, Firebase Data Processing and Security Terms. 2020. Available online: https://firebase.google.com/terms/data-processing-terms (accessed on 18 March 2021).
- Ammi, M.; Alarabi, S.; Benkhelifa, E. Customized blockchain-based architecture for secure smart home for lightweight IoT. Inf. Process. Manag. 2021, 58, 102482. [Google Scholar] [CrossRef]
- INEGI, Estadística a Propósito del día Mundial del Internet Datos Nacionales. 2020. Available online: https://www.inegi.org.mx/contenidos/saladeprensa/aproposito/2020/EAP_Internet20.pdf (accessed on 18 March 2021).
- Rakesh, P.; Srinivas, B.N. Intelligent home automation system using GPRS a smart switch to connect and disconnect electrical devices at home by using internet. Indian J. Public Health Res. Dev. 2018, 9, 1615–1617. [Google Scholar] [CrossRef]
- Sonoff, Sonoff TX Series. 2020. Available online: https://sonoff.tech/product/wifi-smart-wall-swithes/tx-series (accessed on 18 March 2021).
- Firebase, Firebase Docs. 2020. Available online: https://firebase.google.com/docs (accessed on 18 March 2021).
- Ohyver, M.; Moniaga, J.V.; Sungkawa, I.; Subagyo, B.E.; Chandra, I.A. The comparison firebase realtime database and MySQL database performance using wilcoxon signed-rank test. Procedia Comput. Sci. 2019, 157, 396–405. [Google Scholar] [CrossRef]
- Sharma, A.K.; Saini, L.M. IoT based Diagnosing Myocardial Infarction through Firebase Web Application. In Proceedings of the 2019 3rd International conference on Electronics, Communication and Aerospace Technology (ICECA), Coimbatore, India, 12–14 June 2019. [Google Scholar]
Lumen (lm) | Incandescent (W) | CFL (W) | LED (W) |
---|---|---|---|
250 | 25 | 4–9 | 3 |
450 | 40 | 9–13 | 4–5 |
800 | 60 | 13–15 | 6–8 |
1100 | 75 | 18–25 | 9–13 |
1600 | 100 | 23–30 | 16–20 |
2000 | 125 | 30–40 | 20–25 |
2600 | 150 | 30–55 | 25–28 |
Lux (lx) | Area (m) | Lumen (lm) | Incandescent (W) | CFL (W) | LED (W) | |
---|---|---|---|---|---|---|
Bedroom | 150 | 9 | 1350 | 100 | 25 | 15 |
Bathroom | 100 | 3.5 | 350 | 40 | 9 | 5 |
Portico | 100 | 2 | 200 | 25 | 5 | 3 |
Kitchen | 200 | 8 | 1600 | 100 | 25 | 15 |
DL room | 300 | 9 | 2700 | 150 | 42 | 23 |
Total | 415 | 106 | 61 |
Area | Switch | Channel | State | Date | Time |
---|---|---|---|---|---|
Bedroom | e-Switch-B | Channel1 | TRUE | 9 June 2020 | 20:06:56 |
Bedroom | e-Switch-B | Channel1 | FALSE | 9 June 2020 | 23:00:11 |
Portico | s-Switch-P | Channel1 | TRUE | 9 June 2020 | 20:15:02 |
Portico | e-Switch-P | Channel1 | FALSE | 6 September 2020 | 23:31:02 |
Living Room | e-Switch-L | Channel2 | TRUE | 9 June 2020 | 20:16:49 |
Living Room | e-Switch-L | Channel2 | FALSE | 9 June 2020 | 21:11:46 |
Living Room | e-Switch-L | Channel2 | TRUE | 9 June 2020 | 21:51:16 |
Living Room | e-Switch-L | Channel2 | FALSE | 9 June 2020 | 21:57:12 |
Living Room | e-Switch-L | Channel2 | TRUE | 9 June 2020 | 22:30:22 |
Living Room | e-Switch-L | Channel2 | FALSE | 9 June 2020 | 22:31:03 |
Living Room | e-Switch-L | Channel2 | TRUE | 9 June 2020 | 22:45:02 |
Living Room | e-Switch-L | Channel2 | FALSE | 9 June 2020 | 22:56:53 |
Dining Room | e-Switch-D | Channel3 | TRUE | 9 June 2020 | 20:16:50 |
Dining Room | e-Switch-D | Channel3 | FALSE | 9 June 2020 | 21:11:47 |
Dining Room | e-Switch-D | Channel3 | TRUE | 9 June 2020 | 22:30:22 |
Dining Room | e-Switch-D | Channel3 | FALSE | 9 June 2020 | 22:31:03 |
Dining Room | e-Switch-D | Channel3 | TRUE | 9 June 2020 | 22:45:02 |
Dining Room | e-Switch-D | Channel3 | FALSE | 9 June 2020 | 22:56:54 |
⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ |
Bedroom | e-Switch-B | Channel1 | TRUE | 12 June 2020 | 9:20:18 |
Bedroom | e-Switch-B | Channel1 | FALSE | 12 June 2020 | 22:41:09 |
Bedroom | e-Switch-B | Channel1 | TRUE | 12 June 2020 | 23:24:56 |
Bedroom | e-Switch-B | Channel1 | FALSE | 12 June 2020 | 23:29:42 |
Portico | e-Switch-P | Channel1 | TRUE | 12 June 2020 | 18:59:31 |
Portico | e-Switch-P | Channel1 | FALSE | 12 June 2020 | 23:24:19 |
Living Room | e-Switch-L | Channel2 | TRUE | 12 June 2020 | 18:20:11 |
Living Room | e-Switch-L | Channel2 | FALSE | 12 June 2020 | 23:08:45 |
Dining Room | e-Switch-D | Channel3 | TRUE | 12 June 2020 | 18:19:14 |
Dining Room | e-Switch-D | Channel3 | FALSE | 12 June 2020 | 23:10:41 |
Area | Average Time Turn on Per Day (h) | Average Times the Bulb Turns on Per Day | Average Power Consumption Per Day (Wh) | Total Power Consumption (Wh) |
---|---|---|---|---|
Bedroom | 3.22 | 3 | 32.17 | 2959.70 |
Portico | 4.03 | 2 | 40.33 | 3710.43 |
Living Room | 3.77 | 2 | 37.69 | 3467.04 |
Dining Room | 3.46 | 2 | 34.59 | 3182.58 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
García-Vázquez, F.; Guerrero-Osuna, H.A.; Ornelas-Vargas, G.; Carrasco-Navarro, R.; Luque-Vega, L.F.; Lopez-Neri, E. Design and Implementation of the E-Switch for a Smart Home. Sensors 2021, 21, 3811. https://doi.org/10.3390/s21113811
García-Vázquez F, Guerrero-Osuna HA, Ornelas-Vargas G, Carrasco-Navarro R, Luque-Vega LF, Lopez-Neri E. Design and Implementation of the E-Switch for a Smart Home. Sensors. 2021; 21(11):3811. https://doi.org/10.3390/s21113811
Chicago/Turabian StyleGarcía-Vázquez, Fabian, Héctor A. Guerrero-Osuna, Gerardo Ornelas-Vargas, Rocío Carrasco-Navarro, Luis F. Luque-Vega, and Emmanuel Lopez-Neri. 2021. "Design and Implementation of the E-Switch for a Smart Home" Sensors 21, no. 11: 3811. https://doi.org/10.3390/s21113811