Submitted:
05 June 2023
Posted:
05 June 2023
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Background
3. OpenHab Platform
3.1. Persistence
3.2. REST API
3.3. Functionalities
- Rule Engine: The openHAB platform provides a powerful rule engine that allows for the automation of various actions based on the status of different devices and sensors. For example, if a motion sensor is triggered, the rule engine can automatically turn on the lights in the room.
- User Interface: The platform provides a user-friendly web interface that can be used to monitor and control different devices and sensors. The interface can be accessed from a web browser or mobile app.
- Integration with Third-party Services: The platform can be easily integrated with third-party services such as IFTTT, Amazon Alexa and Google Assistant. This allows for voice control and other advanced functionalities.
- Flexibility: The openHAB platform is highly flexible and can be customized to meet the needs of different applications. It provides support for various protocols such as MQTT, Z-Wave, ZigBee and others.
- Add-ons: The platform provides a wide range of add-ons that can be used to extend its functionalities. These add-ons include bindings for different devices and sensors, as well as user interfaces and rule templates.
3.4. Security Features
4. Description of the Testbed
5. Basic Testing
6. Results
6.1. Wireless Interfaces:
- The Z-Wave interface demonstrated a range of up to 30 meters in an open space environment, with successful transmission of motion sensor data to the Z-Wave controller at distances up to 25 meters.
- The ZigBee interface demonstrated a range of up to 50 meters in an open space environment, with successful transmission of temperature sensor data to the ZigBee coordinator at distances up to 40 meters.
- The WiFi and 4G-LTE interfaces showed high reliability, with a packet delivery success rate of 99% for both interfaces.
- The IR interface demonstrated reliable transmission and reception of commands between the remote control and IR receiver within a range of 10 meters.
6.2. Case Study: A Day in the Testbed:

7. Further Work
- Expansion of Sensor Types: Additional sensors, such as gas sensors or sound sensors, could be added to further expand the capabilities of the testbed and enable more complex scenarios [31].
- Integration with Machine Learning Techniques: Machine learning techniques, such as anomaly detection or predictive analytics, could be used to analyze the data collected from the testbed and derive insights that could be used to optimize the performance of the system. Several studies have shown the potential of machine learning in smart building energy management [32]. By applying these techniques to the data collected by the testbed, we can develop more accurate and efficient algorithms for controlling heating, ventilation and air conditioning systems, as well as other building systems.
- Real-world Testing: While the basic testing presented in this paper provides a solid foundation, more extensive testing and field trials (at least one year) in additional real-world scenarios could provide valuable insights into the system's performance [33].
- Security Testing: As IoT systems become more prevalent, security becomes an increasingly important concern and the use of open-source platforms can introduce unique security challenges. As highlighted in the survey conducted by [34], security is a key aspect of IoT platforms and is often prioritized in open-source solutions due to the high degree of community involvement and code transparency. In this work, we have addressed these security concerns by adopting the open-source platform openHAB and implementing various security features, such as authentication and encryption protocols. However, we also acknowledge that the adoption of open-source tools and libraries can introduce potential challenges and pitfalls. Future work could involve conducting security testing to identify potential vulnerabilities and mitigate them [35,36].
- ntegration with Cloud Services: Integrating the testbed with cloud services, such as Amazon Web Services or Microsoft Azure, could further enhance the capabilities of the system and enable more complex scenarios [37].
8. Conclusions
Supplementary Materials
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Smadi, A.A.; Ajao, B.T.; Johnson, B.K.; Lei, H.; Chakhchoukh, Y.; Abu Al-Haija, Q. A Comprehensive Survey on Cyber-Physical Smart Grid Testbed Architectures: Requirements and Challenges. Electronics (Basel) 2021, 10. [Google Scholar] [CrossRef]
- Han, J.; Choi, C.; Park, W.; Lee, I.; Kim, S. Smart Home Energy Management System Including Renewable Energy Based on ZigBee and PLC. IEEE Transactions on Consumer Electronics 2014, 60, 198–202. [Google Scholar] [CrossRef]
- Kontaxis, D.; Tsoulos, G.; Athanasiadou, G.; Giannakis, G. Wireless Sensor Networks for Building Information Modeling. Telecom 2022, 3, 118–134. [Google Scholar] [CrossRef]
- Tekler, Z.D.; Low, R.; Yuen, C.; Blessing, L. Plug-Mate: An IoT-Based Occupancy-Driven Plug Load Management System in Smart Buildings. Build Environ 2022, 223, 109472. [Google Scholar] [CrossRef]
- Zhuang, D.; Gan, V.J.L.; Duygu Tekler, Z.; Chong, A.; Tian, S.; Shi, X. Data-Driven Predictive Control for Smart HVAC System in IoT-Integrated Buildings with Time-Series Forecasting and Reinforcement Learning. Appl Energy 2023, 338, 120936. [Google Scholar] [CrossRef]
- Sunhare, P.; Chowdhary, R.R.; Chattopadhyay, M.K. Internet of Things and Data Mining: An Application Oriented Survey. Journal of King Saud University - Computer and Information Sciences 2022, 34, 3569–3590. [Google Scholar] [CrossRef]
- Al-Ali, A.R.; Zualkernan, I.A.; Rashid, M.; Gupta, R.; Alikarar, M. A Smart Home Energy Management System Using IoT and Big Data Analytics Approach. IEEE Transactions on Consumer Electronics 2017, 63, 426–434. [Google Scholar] [CrossRef]
- Zhu, L.; Li, M.; Zhang, Z.; Du, X.; Guizani, M. Big Data Mining of Users’ Energy Consumption Patterns in the Wireless Smart Grid. IEEE Wirel Commun 2018, 25, 84–89. [Google Scholar] [CrossRef]
- Mathew, A.; Roy, A.; Mathew, J. Intelligent Residential Energy Management System Using Deep Reinforcement Learning. IEEE Syst J 2020, 14, 5362–5372. [Google Scholar] [CrossRef]
- Smirek, L.G.Z. and D.Z. Towards Universally Usable Smart Homes-How Can Myui, Urc and Openhab Contribute to an Adaptive User Interface Platform. IARIA 2014.
- Babun, L.; Denney, K.; Celik, Z.B.; McDaniel, P.; Uluagac, A.S. A Survey on IoT Platforms: Communication, Security, and Privacy Perspectives. Computer Networks 2021, 192, 108040. [Google Scholar] [CrossRef]
- Muthuramalingam, S.; Bharathi, A.; Rakesh kumar, S.; Gayathri, N.; Sathiyaraj, R.; Balamurugan, B. IoT Based Intelligent Transportation System (IoT-ITS) for Global Perspective: A Case Study. In; 2019; pp. 279–300.
- Bhuiyan, M.N.; Rahman, M.M.; Billah, M.M.; Saha, D. Internet of Things (IoT): A Review of Its Enabling Technologies in Healthcare Applications, Standards Protocols, Security, and Market Opportunities. IEEE Internet Things J 2021, 8, 10474–10498. [Google Scholar] [CrossRef]
- Schoonmaker, S. Number of Internet of Things (IoT) Devices Worldwide from 2019 to 2025 (in Billions). Retrieved from Https://Www.Statista.Com/Statistics/471264/Iot-Number-of-Connected-Devices-Worldwide/; 2021.
- Al-Sarawi, S.; Anbar, M.; Alieyan, K.; Alzubaidi, M. Internet of Things (IoT) Communication Protocols: Review. In Proceedings of the 2017 8th International Conference on Information Technology (ICIT); IEEE, May 2017; pp. 685–690. [Google Scholar]
- Karunarathne, G.G.K.W.M.S.I.R.; Kulawansa, K.A.D.T.; Firdhous, M.F.M. Wireless Communication Technologies in Internet of Things: A Critical Evaluation. In Proceedings of the 2018 International Conference on Intelligent and Innovative Computing Applications (ICONIC); IEEE, December 2018; pp. 1–5. [Google Scholar]
- Hassebo, A.; Obaidat, M.; Ali, M.A. Commercial 4G LTE Cellular Networks for Supporting Emerging IoT Applications. In Proceedings of the 2018 Advances in Science and Engineering Technology International Conferences (ASET); IEEE, February 2018; pp. 1–6. [Google Scholar]
- Tekler, Z.D.; Chong, A. Occupancy Prediction Using Deep Learning Approaches across Multiple Space Types: A Minimum Sensing Strategy. Build Environ 2022, 226, 109689. [Google Scholar] [CrossRef]
- Abdelmoneem, R.M.; Shaaban, E.; Benslimane, A. A Survey on Multi-Sensor Fusion Techniques in IoT for Healthcare. In Proceedings of the 2018 13th International Conference on Computer Engineering and Systems (ICCES); IEEE, December 2018; pp. 157–162. [Google Scholar]
- Low, R.; Tekler, Z.D.; Cheah, L. Predicting Commercial Vehicle Parking Duration Using Generative Adversarial Multiple Imputation Networks. Transportation Research Record: Journal of the Transportation Research Board 2020, 2674, 820–831. [Google Scholar] [CrossRef]
- Gunge, V.S. , and P.S.Y. Smart Home Automation: A Literature Review. Int J Comput Appl. 2016, 975.8887.
- Abdelouahid, R.A.; Debauche, O.; Marzak, A. Internet of Things: A New Interoperable IoT Platform. Application to a Smart Building. Procedia Comput Sci 2021, 191, 511–517. [Google Scholar] [CrossRef]
- Edu, J.S.; Such, J.M.; Suarez-Tangil, G. Smart Home Personal Assistants. ACM Comput Surv 2021, 53, 1–36. [Google Scholar] [CrossRef]
- Elkholy, M.H. and S.T. and L.M.E. and E.A. and A.N.S. and G.T.S. Design and Implementation of a Real-Time Smart Home Management System Considering Energy Saving. Sustainability 2022, 14. [Google Scholar] [CrossRef]
- Lea, R.; Blackstock, M. City Hub: A Cloud-Based IoT Platform for Smart Cities. In Proceedings of the 2014 IEEE 6th International Conference on Cloud Computing Technology and Science; IEEE, December 2014; pp. 799–804. [Google Scholar]
- Sowah, R.A.; Boahene, D.E.; Owoh, D.C.; Addo, R.; Mills, G.A.; Owusu-Banahene, W.; Buah, G.; Sarkodie-Mensah, B. Design of a Secure Wireless Home Automation System with an Open Home Automation Bus (OpenHAB 2) Framework. J Sens 2020, 2020, 1–22. [Google Scholar] [CrossRef]
- Tamilselvi, V.; Sribalaji, S.; Vigneshwaran, P.; Vinu, P.; GeethaRamani, J. IoT Based Health Monitoring System. In Proceedings of the 2020 6th International Conference on Advanced Computing and Communication Systems (ICACCS); IEEE, March 2020; pp. 386–389. [Google Scholar]
- 28. SYNERGIES - Coordinating Energy-Efficiency and Demand Response Actions in the Building Sector. Available: Https://Synergies-Project.Eu/. EU Horizon 2020 SYNERGIES project 2020.
- Wang, X.; Mao, X.; Khodaei, H. A Multi-Objective Home Energy Management System Based on Internet of Things and Optimization Algorithms. Journal of Building Engineering 2021, 33, 101603. [Google Scholar] [CrossRef]
- Wang, Q.; Zhu, X.; Ni, Y.; Gu, L.; Zhu, H. Blockchain for the IoT and Industrial IoT: A Review. Internet of Things 2020, 10, 100081. [Google Scholar] [CrossRef]
- Gubbi, J.; Buyya, R.; Marusic, S.; Palaniswami, M. Internet of Things (IoT): A Vision, Architectural Elements, and Future Directions. Future Generation Computer Systems 2013, 29, 1645–1660. [Google Scholar] [CrossRef]
- Yu, L.; Qin, S.; Zhang, M.; Shen, C.; Jiang, T.; Guan, X. A Review of Deep Reinforcement Learning for Smart Building Energy Management. IEEE Internet Things J 2021, 8, 12046–12063. [Google Scholar] [CrossRef]
- Nolan, K.E.; Kelly, M.Y.; Nolan, M.; Brady, J.; Guibene, W. Techniques for Resilient Real-World IoT. In Proceedings of the 2016 International Wireless Communications and Mobile Computing Conference (IWCMC); IEEE, September 2016; pp. 222–226. [Google Scholar]
- Soldatos, J., C. M., S.R., & R.D. The Internet-of-Things Open Source Ecosystem in 2021. 2020.
- Roman, R.; Zhou, J.; Lopez, J. On the Features and Challenges of Security and Privacy in Distributed Internet of Things. Computer Networks 2013, 57, 2266–2279. [Google Scholar] [CrossRef]
- Navas, R.E.; Le Bouder, H.; Cuppens, N.; Cuppens, F.; Papadopoulos, G.Z. Demo: Do Not Trust Your Neighbors! A Small IoT Platform Illustrating a Man-in-the-Middle Attack. In; 2018; pp. 120–125.
- Wan, J.; Chen, M.; Xia, F.; Di, L.; Zhou, K. From Machine-to-Machine Communications towards Cyber-Physical Systems. Computer Science and Information Systems 2013, 10, 1105–1128. [Google Scholar] [CrossRef]
- Djenouri, D.; Laidi, R.; Djenouri, Y.; Balasingham, I. Machine Learning for Smart Building Applications. ACM Comput Surv 2020, 52, 1–36. [Google Scholar] [CrossRef]
- Shelby, Z. and H.K. and B.C. The Constrained Application Protocol (CoAP). No. Rfc7252. 2014.


| Sensor/Actuator | Qty | Manufacturer / Technology | Units | Range | Accuracy | |
| Motion | 7 | Aeotec | Z-Wave | - | 5m | - |
| Bitron | ZigBee | - | ~5m | - | ||
| Tuya | ZigBee | - | 12m | - | ||
| Temperature | 8 | Aeotec | Z-Wave | °C/°F | -10°C to 50°C 14°F to 122°F |
±1.6°C ±3°F |
| Lupus | ZigBee | -10°C to 50°C | ±0.3°C | |||
| Tuya | ZigBee | -10°C to 60°C | N/A | |||
| Govee | Wi-Fi | -20°C to 60°C -4°F to 140°F |
±0.3°C ±0.54°F |
|||
| Luminance | 4 | Aeotec | Z-Wave | LUX | 0 LUX to 30000 LUX | N/A |
| Tuya | ZigBee | LUX | 0 LUX to 1000 LUX | N/A | ||
| Humidity | 5 | Aeotec | Z-Wave | RH | 20%RH to 80%RH | ±6%RH (at 25°C/77°F) |
| Tuya | ZigBee | 10%RH to 100%RH | N/A | |||
| Govee | Wi-Fi | 10%RH to 100%RH | ±3%RH | |||
| Vibration | 2 | Aeotec | Z-Wave | - | - | - |
| UV | 2 | Aeotec | Z-Wave | LUX | 0 LUX to 30000 LUX | N/A |
| Energy Consumption | 4 | Aeotec | Z-Wave | Watt | 0W to 2300W | ±3W (≤300W) ±1%(>300W) |
| Qubino | Z-Wave | 0W to 12800W | ±2W | |||
| Fibaro | Z-Wave | 0W to 2500W | N/A | |||
| Xiaomi | Wi-Fi | 0W to 1800W | N/A | |||
| IR bridge (for IR-enabled devices) |
5 | Intesis | Wi-Fi | - | - | - |
| Nedis | Wi-Fi | - | - | - | ||
| MCO Home | Z-Wave | - | - | - | ||
| Remotec | Z-Wave | - | - | - | ||
| Alternative Internet connection | 1 | Teltonika | 4G-LTE | - | - | - |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 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 (http://creativecommons.org/licenses/by/4.0/).