IoT-Based Intelligent Home Control System Using Raspberry Pi and Home Assistant Platform: Design and Implementation
Keywords:
IoT; Raspberry Pi; Home Assistant; MQTT; smart home; home automation; PIR sensor; Zigbee; edge computing.Abstract
The rapid proliferation of low-cost single-board computers and wireless sensor technologies has made intelligent home automation systems accessible to individual households, small enterprises, and research laboratories alike. This paper presents the complete design, hardware integration, software configuration, and performance evaluation of an IoT-based intelligent home control system built on a Raspberry Pi 4B single-board computer running the Home Assistant (HA) open-source platform. The system integrates a heterogeneous set of sensors and actuators—including DHT22 temperature/humidity sensors, HC-SR501 passive infrared (PIR) motion detectors, BH1750 ambient light sensors, MQ-135 air quality modules, WS2812B addressable LED strips, a four-channel relay board for appliance switching, an MFRC522 RFID access control reader, and a Zigbee coordinator for mesh-networked third-party smart devices—into a unified, locally processed automation platform. All inter-device communication is handled via the MQTT lightweight messaging protocol, enabling sub-15 ms latency on the local area network. Home Assistant's YAML-based automation engine orchestrates 47 distinct automation rules covering climate control, lighting scenes, occupancy-driven switching, air quality alerts, access logging, and energy management. A web-based Lovelace dashboard and a companion mobile application provide remote monitoring and manual override capability over both LAN and WAN via a secure Nabu Casa cloud tunnel. A 30-day continuous deployment evaluation demonstrated a system uptime of 718.4 hours (99.8%), a mean MQTT message latency of 12.4 ms on LAN and 187 ms over WAN, sensor measurement accuracies within manufacturer-specified tolerances, and a peak CPU utilization of 58.3% under concurrent automation load—well within the Raspberry Pi 4B's sustained operating envelope. The paper provides a fully documented, reproducible implementation blueprint suitable for academic research, student projects, and real-world deployment.
References
[1] S. Li, L. D. Xu, and S. Zhao, "The internet of things: A survey," Inf. Syst. Front., vol. 17, no. 2, pp. 243–259, 2015.
[2] J. Ziegeldorf, O. G. Morchon, and K. Wehrle, "Privacy in the internet of things: Threats and challenges," Secur. Commun. Netw., vol. 7, no. 12, pp. 2728–2742, 2014.
[3] Home Assistant Development Team, "Home Assistant documentation," Home-assistant.io. [Online]. Available: https://www.home-assistant.io/docs/. Accessed: Feb. 2024.
[4] Raspberry Pi Foundation, "Raspberry Pi 4 Model B datasheet," raspberrypi.com, 2022.
[5] C. Wilson, T. Hargreaves, and R. Hauxwell-Baldwin, "Smart homes and their users: A systematic analysis and key challenges," Pers. Ubiquitous Comput., vol. 19, no. 2, pp. 463–476, 2015.
[6] R. K. Kodali and S. Mahesh, "A low-cost implementation of MQTT using ESP8266," in Proc. 2nd Int. Conf. Contemp. Comput. Informatics (IC3I), Noida, 2016, pp. 404–408.
[7] R. Piyare and M. Tazil, "Bluetooth based home automation system using cell phone," in Proc. IEEE 15th Int. Symp. Consumer Electron. (ISCE), Singapore, 2011, pp. 192–195.
[8] Zigbee2MQTT Contributors, "Zigbee2MQTT documentation," zigbee2mqtt.io. [Online]. Available: https://www.zigbee2mqtt.io/. Accessed: Feb. 2024.
[9] M. Siekkinen, M. Hiienkari, J. K. Nurminen, and J. Nieminen, "How low energy is bluetooth low energy? Comparative measurements with ZigBee/802.15.4," in Proc. IEEE WCNC Workshops, Paris, 2012, pp. 232–237.
[10] M. Alaa, A. A. Zaidan, B. B. Zaidan, M. Talal, and M. L. M. Kiah, "A review of smart home applications based on internet of things," J. Netw. Comput. Appl., vol. 97, pp. 48–65, 2017.
[11] A. Al-Fuqaha, M. Guizani, M. Mohammadi, M. Aledhari, and M. Ayyash, "Internet of things: A survey on enabling technologies, protocols, and applications," IEEE Commun. Surv. Tutorials, vol. 17, no. 4, pp. 2347–2376, 2015.
[12] N. Doshi, K. Bharti, and P. Sanghavi, "Smart home automation," Int. J. Innovative Res. Adv. Eng., vol. 1, no. 2, pp. 1–6, 2014.
[13] A. Celesti, M. Fazio, M. Giacobbe, A. Puliafito, and M. Villari, "Characterizing cloud federation in IoT," in Proc. 30th Int. Conf. Adv. Inf. Netw. Appl. Workshops (WAINA), Crans-Montana, 2016, pp. 93–98.