Next Article in Journal
Compensation of the Current Imbalance of an Interleaved DC–DC Buck Converter, Sensorless Online Solution Based on Offline Fuzzy Identification and Post-Linearization
Next Article in Special Issue
Designing the Optimal Configuration of a Small Power System for Autonomous Power Supply of Weather Station Equipment
Previous Article in Journal
Subcooling Effect on PCM Solidification: A Thermostat-like Approach to Thermal Energy Storage
Previous Article in Special Issue
Intelligent Prediction of Transformer Loss for Low Voltage Recovery in Distribution Network with Unbalanced Load
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Integrating Smart Energy Management System with Internet of Things and Cloud Computing for Efficient Demand Side Management in Smart Grids

1
Department of Electrical Engineering, Superior University, Lahore 54000, Pakistan
2
Department of Computer Science & Information Technology, Government College Women University, Sialkot 51310, Pakistan
3
Gujranwala Electric Power Company (GEPCO), Gujranwala 52250, Pakistan
4
FinEST Center for Smart Cities, 12616 Tallinn, Estonia
5
Department of Electrical Power Engineering & Mechatronics, Tallinn University of Technology, 19086 Tallinn, Estonia
*
Authors to whom correspondence should be addressed.
Energies 2023, 16(12), 4835; https://doi.org/10.3390/en16124835
Submission received: 15 May 2023 / Revised: 4 June 2023 / Accepted: 9 June 2023 / Published: 20 June 2023

Abstract

:
The increasing price of and demand for energy have prompted several organizations to develop intelligent strategies for energy tracking, control, and conservation. Demand side management is a critical strategy for averting substantial supply disruptions and improving energy efficiency. A vital part of demand side management is a smart energy management system that can aid in cutting expenditures while still satisfying energy needs; produce customers’ energy consumption patterns; and react to energy-saving algorithms and directives. The Internet of Things is an emerging technology that can be employed to effectively manage energy usage in industrial, commercial, and residential sectors in the smart environment. This paper presents a smart energy management system for smart environments that integrates the Energy Controller and IoT middleware module for efficient demand side management. Each device is connected to an energy controller, which is the inculcation of numerous sensors and actuators with an IoT object, collects the data of energy consumption from each smart device through various time-slots that are designed to optimize the energy consumption of air conditioning systems based on ambient temperature conditions and operational dynamics of buildings and then communicate it to a centralized middleware module (cloud server) for management, processing, and further analysis. Since air conditioning systems contribute more than 50% of the electricity consumption in Pakistan, for validation of the proposed system, the air conditioning units have been taken as a proof of concept. The presented approach offers several advantages over traditional controllers by leveraging real-time monitoring, advanced algorithms, and user-friendly interfaces. The evaluation process involves comparing electricity consumption before and after the installation of the SEMS. The proposed system is tested and implemented in four buildings. The results demonstrate significant energy savings ranging from 15% to 49% and highlight the significant benefits of the system. The smart energy management system offers real-time monitoring, better control over the air conditioning systems, cost savings, environmental benefits, and longer equipment life. The ultimate goal is to provide a practical solution for reducing energy consumption in buildings, which can contribute to sustainable and efficient use of energy resources and goes beyond simpler controllers to address the specific needs of energy management in buildings.

1. Introduction

The traditional electric grid (TEG) is a network of power generating stations, transmission lines, and distribution systems that are used to generate, transmit, and distribute electricity. However, with the increasing demand for energy and the need for a more efficient and reliable power supply, there has been a shift towards the development of smart grids (SG) [1]. According to a report published by International Energy Agency (IEA), a 30% increase in worldwide energy demand will be observed during 2017 and 2040 [2]. Another report of IEA revealed that the monthly electricity demand in Pakistan in FY 2019–2020 was around 120,000 GWh, and it is estimated to increase to around 200,000 GWh by FY 2024–2025 [3]. Further, there is a significant gap between the demand and supply of electricity in Pakistan, which results in frequent power outages or load shedding. The duration of load shedding varies depending on the region and time of year, but it can range from a few hours to more than 12 h per day. Developing nations such as Pakistan frequently struggle with issues including poor infrastructure, minimal access to power, and extreme poverty. Therefore, the effective use of power may improve access to electricity, lessen the strain on the nation’s limited resources, and accelerate economic growth [4,5,6] For instance, SG installation can help to lower energy losses, increase power supply dependability, and lower the price of electricity [7], This may be accomplished by taking a number of steps, such as installing smart meters (SMs), which can aid with monitoring and limiting power consumption, and using renewable energy sources (RES), which may reduce the nation’s reliance on fossil fuels [8]. The adaptability and stability of the power supply can also be improved with the inclusion of an energy storage system (ESS) [9,10,11].
A smart grid (SG) is an improved electric infrastructure that controls, regulates, and optimizes the usage of power using digital technology. In order to increase the effectiveness, dependability, and flexibility of the electricity supply, it involves the inculcation/integration of several technologies, including SMs, RES, and ESS [12]. Demand-side management (DSM) and energy conservation (EC) strategies are also made possible by SG, which can help to lower the demand for power and encourage the effective use of energy. The Energy Management System (EMS) is a crucial component of DSM [13]. Figure 1 displays a representation of the SG, which is composed of multiple power sources, transmission lines, RES, EMSs, and a central control center [12].
Demand-side management (DSM) and smart-energy-management-systems (SEMS) are related ideas in the field of energy management (EM). Monitoring, managing, and energy conservation in an organization, facility, or industrial process are all parts of EM. The goal of EM is to save on expenses, maximize efficacy, and decrease energy usage while maintaining a comfortable and productive atmosphere [14]. Energy managers can employ demand-side management (DSM) and smart EM systems (SEMS) as two critical tools to accomplish these objectives [13,14]. Real-time (RT) data on energy use are gathered by SEMS, processed, and analyzed to reveal useful information on how and where to make changes. SEMS employs cutting-edge technologies, including automation and sensors, to maximize energy efficiency (EE) and minimize waste [15]. DSM, on the other hand, is a collection of methods and tactics that put emphasis on controlling energy demand by scheduling consumption for off-peak times, modifying temperature setpoints, and controlling lighting and other equipment. SEMS may be used as a tool to implement DSM techniques; hence the two concepts are closely connected. Energy managers can consider EM holistically when SEMS and DSM are used together [16]. SEMS offers RT data on energy use, enabling managers to spot areas of inefficiency and waste. It is therefore possible to put DSM methods into practice to lower energy consumption at peak periods, when energy is most expensive and carbon intensive [17].
Demand-side management is a strategy that focuses on reducing the overall demand for energy by encouraging the efficient use of energy. It involves a range of measures, such as EC, and demand-side response, which aim to decrease electricity demand and enhance its efficiency [18]. This can be achieved through various measures, such as RT monitoring and control of all electrical appliances, promoting energy-efficient technologies, encouraging the usage of RES, and providing incentives for EC. Energy conservation, on the other hand, refers to the practice of reducing the use of energy through various measures. EC can help reduce the maximum demand of electrical distribution networks and enhance the efficacy of the electricity supply [19]. The implementation of DSM/EC strategies can provide a cost-effective means to attain energy security and independence, particularly in developing nations where a complete overhaul of infrastructure from TEG to modern SG may not be a feasible alternative due to its substantial cost [13]. Energy efficiency represents the most economical approach to cater to the expanding energy demands, while also constituting a fundamental component of sustainable development, in line with the United Nations Sustainable Development Goals (SDGs) agenda [20,21] DSM plays a significant role in accomplishing this objective by enabling the monitoring and control of loads, thereby facilitating improved EE. Furthermore, DSM and EC can help reduce the strain on the country’s limited resources, improve access to electricity, and promote economic growth. DSM in SG must take advantage of the latest/smart technologies such as the Internet of Things (IoT) to achieve better efficacy and reliability in SG environments [15]. Figure 2 shows various DSM techniques [13].
The IoT encompasses a network of interconnected physical devices, including vehicles, buildings, and objects, equipped with sensors, software, and other technologies to facilitate data collection and exchange. The evolution of the IoT has provided numerous benefits to the electric grid. With IoT-enabled SEMS, we can more efficiently track and control the energy utilization in our homes, buildings, and cities. The primary advantage of IoT-based SEMS is their ability to automate certain processes. For example, a smart thermostat can automatically regulate the temperature in a home or building based on the time of day, the number of people present, and other factors. Implementing IoT technologies can lead to EE by reducing energy consumption, thereby resulting in cost savings associated with heating and cooling expenses. Another benefit is to provide RT information on energy usage. This can help individuals and organizations make more informed decisions about how to use energy more efficiently. By automating processes, providing RT information, and enhancing the resilience and reliability of the TEG, these systems can help us use energy more efficiently and sustainably [22,23,24,25,26].
If energy consumption in homes utilizes efficiently, energy can be conserved, sustainability can be enhanced and carbon emissions can be minimized to a noteworthy level [27,28]. Buildings in the United States contribute to a significant portion of energy consumption, accounting for around 40% of total energy usage and 75% of electricity consumption. Heating, Ventilation and Air Conditioning (HVAC) systems are a significant contributor to this energy usage, accounting for around 30% of the energy consumption in commercial buildings and 50% in residential buildings [29]. In UAE, HVAC contributes almost 60% of energy consumption [30], whereas in Pakistan it contributes almost 49% [13]. As buildings and HVAC consume a lot of power in the electric grid, efforts to reduce their load can have a significant impact on the total demand of national electric grid; consequently, significant priority in energy conservation (EC) may be given to the HVAC and buildings. The presented study emphasizes the importance of control and surveillance in the DSM component of the SG while offering the RT deployment of an IoT-based SEMS. The work incorporates SMs for monitoring, command, control and efficient data processing, as well as IoT middleware modules. The presented system is deployed at different locations, allowing users to monitor, control and send commands to various electrical appliances such as HVAC systems.
The main contributions of this research work are as follows:
Development of a multilayered architecture for EMS: This study proposes a comprehensive multilayered architecture that enables effective monitoring and control of electrical appliances.
Integration of ECON and middleware module for efficient EM: The architecture incorporates inculcation of ECON and a middleware module to enhance the EM capabilities that further employs optimization algorithms and load control techniques alongside the EMS.
Performance evaluation of the EMS in multiple locations: The presented EMS is deployed and evaluated in various locations to assess its performance and effectiveness. The study validates the applicability and scalability of the EMS.
Real-time energy savings: One of the primary objectives of the study is to achieve significant energy savings in RT. By implementing the proposed EMS and leveraging its advanced features, the study demonstrates the potential for substantial energy reduction without compromising the comfort or functionality of the monitored systems.

2. Literature Review

A smart energy management system covers three areas: wireless sensor network (WSN), smart appliances, and EMS. The EMS requires a robust communication channel for the transmission of data related to power usage and the power consumption pattern during peak hours. This communication channel is developed using wireless sensor network techniques. The architecture of EMS is explained in [31,32]. The ZigBee module is used to connect with the sensor modes. During peak load hours, the system tracks device usage statistics and communicates control signals to end nodes. However, over time, when new sensors are implemented in the network, the lifetime of the WSN network decreases. Moreover, Han et al. in [33] discussed the mechanism in which the ZigBee protocol for WSN is used, which is vital for communication and tracking purposes. However, the data processed and accumulated in this method exclusively for the server of the residential units may result in loss of data in the event of any discrepancy. Besides, to achieve two-way communication between sensor and control systems of household devices, the ZigBee protocol is interfaced with the Internet Protocol stack. For interfacing between ZigBee and Internet Protocol stack, a link is needed to fill the gap from the connection of the digital device to numerous homes.
The WSN networks which are mentioned above were expanded to wider ranges in the IoT framework; the end devices were remotely controlled utilizing the GSM/GPRS networks described in [34,35]. IoT technologies are used to monitor and control the method of HVAC systems. In this way, HVAC energy usage is regulated and explained in [36,37]. This research work proposes an optimal EM approach for HVAC systems in commercial buildings with thermal energy-storage using the strategy of model-predictive-control. The proposed approach uses a model predictive control algorithm to optimize the HVAC operation. A defined structure of smart home services design is implemented for user interface with several house displays, as summarized in [38]. In this analysis, a centralized controller monitors all the active devices in homes with the help of sensors and it is responsible for accumulating all the energy consumption and telemetry for homeowners. In a large community, a centralized regional broker unit is established to accommodate the different home network appliances; for instance, security cameras. This paper [39] proposes a smart control strategy for HVAC system in commercial buildings that can maintain the indoor air quality and thermal comfort while minimizing the energy consumption. The proposed approach uses an energy scheduler with comfort constraints (DES-CC) and a dynamic energy scheduler with a comfort constraints relaxation (DES-CCR) algorithm to find the optimal setpoints for temperature [40]. This paper proposes an approach for reducing peak power demand in residential HVAC systems by integrating HVAC management and optimal scheduling of smart appliances. The focus is on implementing a smart thermostat scheduling technique to achieve community-wide peak load reduction [41]. The proposed method is based on a mixed-integer linear programming model which accommodates the users’ preferences, electricity pricing and the thermal dynamics of the building. This paper [42] proposes an energy-saving control approach for HVAC systems in commercial buildings using a hybrid model predictive control and artificial neural network. The proposed approach uses an artificial neural network to model a predictive control algorithm to optimize the HVAC operation in RT and achieve the desired indoor temperature. The authors of [43] present the development of an EMS, LoBEMS, that integrates IoT components to optimize building efficiency, resulting in a 20% energy saving by controlling Air Conditioning (AC), lighting, and monitoring systems. This paper [44] proposes an EM strategy for HVAC systems in commercial buildings using model predictive control and weather forecasting. The proposed strategy utilizes a model predictive control algorithm to optimize the HVAC operation in RT. The proposed approach aims to reduce the ultimate electricity demand while maintaining the indoor thermal comfort within a predefined range. For monitoring of the household devices [38], two types of protocol are used alternately: one is Message Queuing Telemetry Transport Protocol (MQTT) and the second is Hypertext Transfer Protocol (HTTP). Big Data is extremely influential when organizing and examining a sheer amount of data gathered through household sensor networks, but the framework of the new suggested design is incapable of integrating the Big Data. The importance of a SG in managing electricity usage, as well as proposals for IoT-based SEMS that will generate consumer load profiles to be remotely accessed by utility companies has been discussed in [12,13]. They proposed a SEMS that monitors energy consumption, uploads data to the cloud, and provides load profiles through a web portal for effective DSM. The authors of [15] discuss the need for smart metering systems to track energy consumption, enable smart equipment control, and integrate users and networks for improved EE. They propose a cost-effective SM with IoT capabilities and demonstrates its effectiveness in real-life environments.
However, the researchers in [45] recommended IoT-based DC-driven homes and the development of the distribution network developed on the DC infastructure that can incorporate the data of all residential DC loads in a community. The DC power system is the appropriate replacement for the AC power system, but inefficient formalized protocols and regulations were the main hurdles to the implementation of a smart DC power system. However, these challenges can be overcome by IoT, which can provide a more reliable and efficient energy distribution of DC-powered technologies.
In the framework of providing telemetry on EM, In-Home Energy Displays [46] are used to provide several opportunities to monitor and control energy consumption and cost. Automatic meter reading (AMR) is used in the proposed design to record usage data and to communicate these data to the datacenter for assessment and payment. The smart home system based on the atmospheric condition can choose the correct user interface, such as TV, smartphone, tablets and computers, accordingly. However, a standard user interface is absent in this architecture, which could satisfy multiple monitor displays. A proposed EMS architecture using communication from power lines was addressed in [47]. Realtime information from the home appliances is obtained for tracking and monitoring purposes with the help of EMS, thereby allowing its customers to be aware of their power consumption status using smart meter data. With the help of this information, consumers can control their devices remotely. The suggested architecture is built in such a way that it is designed on HTTP protocol but it is not compatible to assist MQTT, which is a vital ingredient for the scaling of the system to compensate multiple community areas. A centralized gateway controller in [48] is implemented with a management system that could control all the operation plans of nodes connected in the home network of residential areas. This gateway controller is dependent on weather conditions. The information on power usage is then fed to the internet via Extensible Markup Language (XML) which encrypts information in both human-readable and machine-readable formats. Because XML files appear to be big on data transmission for both client and server, sending such large files across the network would pose major bandwidth challenges for the architecture [48].
Moreover, a cost modeling scheme was introduced by the researchers in [49] to utilize the EM system to its full potential, which aims to reduce the consumer’s energy expenses. Factors such as electricity generation capacity at the regional level, highest electricity demand hours and tariffs dependent on the consumer demand were considered for the application’s RT pricing for each scenario, as compared with no EM approach, the application was recorded to reduce energy costs. For sustainable and effective solutions, EMS can be used. Using accredited EMS [50], long-term savings of over 20% can be achieved. Another study showed that Home-Energy-Management-System (HEMS) would theoretically minimize power usage, with reasonable discomfort, by almost 20% [51]. The work [30] revealed the importance of SEMS by utilizing IoT and Big Data technologies to monitor energy. The authors present a SEMS for smart homes, where devices are connected via an IoT mesh network, collecting energy consumption data for centralized processing and analysis. The proposed system employs Big Data analytics and Business Intelligence software to manage energy consumption effectively, with HVAC units as a case study for validation. The research work in [52] presents the development and validation of ‘EnerMon’, an IoT LoRa system based on edge computing, for monitoring power consumption. It provides RT information and descriptive analytics to identify energy waste over time. Prakash et al. [53] emphasizes the importance of demand-side energy management to address the growing concerns of increased power appliance usage and the imbalance between demand and supply. The system incorporates cost optimization algorithms, sensory information, ZigBee communication and an IoT environment for data analytics storage. In another work [54], the authors highlight the need for the framework to control and track electricity utilization due to the increasing number of household appliances. They propose an IoT-enabled SM that provides device-level energy consumption data, aiding consumers in managing energy effectively. The research work [55] focuses on creating an innovative ICT ecosystem tailored for school environments to raise awareness among young people and promote EE. Karthick et al. [56] presents the proposal for a Commercial-Building-Energy-Management-System (CBEMS) by utilizing IoT-based Smart-Compact-Energy meters (SCEMs) to monitor and control energy usage and power quality in commercial buildings. Soliman et al. [57] proposed a supervisory EMS for a hybrid battery/PV/tidal/wind sources integrated in a DC-microgrid energy storage system. Sahri et al. [58] presented an EMS for a hybrid RES in a microgrid-based network. Another study [59] explores the potential of automated Demand Response through SG technologies to improve the comparing capacity of distribution systems and enhance grid stability, as evidenced by European case studies. The work in [60] provides a comprehensive review of the energy-internet (EI) inculcated with SG, highlighting its concepts, challenges, and future directions, including utility energy services, DSM, and potential improvements for sustainable operation and management. These studies [57,58,59,60] contribute to the field by addressing specific EM challenges. However, they differ from our research, which focuses on the inculcation/integration of IoT and cloud computing for DSM in buildings. Energy-saving behavior has been identified as a potential strategy for DSM for developing economies, with the literature suggesting that it can minimize the energy demand up to 21.9%. Now, consumers can become more efficient and control their electricity consumption to a greater extent by using the new suggested architecture.
The following research gaps are identified in the field of SEMS:
Insufficient Integration with Cloud: Many previous research works lack integration with cloud platforms, which limits their ability to efficiently manage and analyze large volumes of data. This gap highlights the need for systems that seamlessly connect with cloud-based solutions to enhance data management and analysis capabilities.
Optimization Algorithms: Many existing studies lack comprehensive and efficient optimization algorithms for EM. There is a need for advanced algorithms that can effectively optimize energy consumption while considering the ambient temperature conditions and operational dynamics of buildings.
Load Control: The ability to control and manage loads effectively is a significant research gap. Previous works may not adequately address load control strategies, which are crucial for optimizing energy usage, reducing peak demand and achieving overall energy savings.
Practical Application in Multiple Locations: While some references focus on individual buildings or locations, there is a lack of emphasis on practical implementation in multiple locations or a larger-scale context. Extending the application and testing of SEMS to multiple locations is necessary to assess scalability, interoperability, and overall system performance.
Real-Time Energy Savings: Many existing systems may not fully leverage RT data with load control strategies to achieve optimal energy savings. RT monitoring, analysis, and adaptive control mechanisms are essential for continuously optimizing energy consumption and adapting to dynamic conditions in RT.
By addressing these research gaps in a comprehensive manner, this work builds upon previous research works [12,30] to integrate advanced optimization algorithms, incorporate effective load control strategies, demonstrate practical application in multiple locations, and enable real-time energy savings. In doing so, this work presents a single integrated approach that encompasses all the mentioned functionalities and contributes to the development of efficient, scalable, and practical SEMS. Table 1 compares the various SEMS with the presented work, that clearly displays the contributions and significance of the work.
The suggested design work is expected to initiate exciting opportunities in IoT-based SEMS. The findings of a case study show that overall energy usage in a building can be minimized. The program enables users to track and manage devices remotely through a user-friendly mobile application interface.

3. System Model

The presented SEMS design includes hardware components composed of ECON which inculcate current and temperature sensors, a Data Acquisition (DA) System on Chip (SOC) microcontroller, relays and System software components that further include web-application and a cloud-based-IoT middle ware module. They are explained in the next subsections. First, we present multilayered Architecture of SEMS.
Table 1. The comparison of various SEMS, with a specific focus on analyzing their features and functionalities.
Table 1. The comparison of various SEMS, with a specific focus on analyzing their features and functionalities.
ReferenceIWC *Data Management and AnalysisUser Interface and ControlReal-Time Implementation and PracticalityES *
DC&P *OA *UFI *RM *LC *RTS&T *PAIML *
[12]
[15]
[30]
[31]
[32]
[33]
[34]
[37]
[38]
[39]
[37]
[41]
[42]
[43]
[53]
[54]
[55]
[56]
TW *
IWC: Integration with Cloud; DC&P: Data Collection and Processing; OA: Optimization Algorithms; UFI: User-Friendly Interface; RM: Remote Monitoring; LC: Load Control; RTS and T: Real-Time Scenarios and Testing; PAIML: Practical Application in Multiple Locations; ES: Energy Savings; TW: This Work.

3.1. Multilayered Architecture of SEMS

Based on Cloud Computing and IoT, we present multi-layered generic architecture of SEMS. The layers are defined as follows:
The bottom layer, Energy Monitoring and Data Collection (EMDC), comprises actuators, sensors, and other smart devices that capture data. It is responsible for data collection and monitoring. The Energy Control (ECN) layer is responsible for data collection from the integrated sensors and transmitting that to the actuators to act based on the commands received from the cloud (middleware module). EMDC and ECN layers can be located in various places, such as homes, factories, or cities, and can be used for different purposes, such as monitoring energy consumption, controlling temperature, or detecting motion. The third layer is the communication layer that provides connectivity between devices and enables bidirectional communication of data and commands between cloud (middleware module) and SEMS via IP/TCP protocol. This layer includes internet gateways and DA systems that collect raw data from smart sensors and convert it from analog to digital format. These three layers are applied at the consumer end. Cloud layer (CL) offers the infrastructure for data storage and processing, data analytics and execution of EC directives. The application layer is where data are processed and analyzed to provide insights and make decisions. It may be a web portal or mobile application. The topmost 2 layers are applied at the remote end.
Figure 3a shows the five-layered generic IoT architecture of SEMS, whereas Figure 3b displays the block diagram of the presented SEMS. It comprised ECON, ESP 32 [61] as a microcontroller (MCU), DA and bidirectional communications, a middleware module for efficient EM and a client application module.

3.2. Hardware Components

Hardware components include: ECON, which inculcates current and temperature sensors; DA-SOC microcontroller; and relays.
The ACS712 [62] is a linear current sensor based on the Hall effect that has a sensitivity of 185 mV/A and can measure DC or AC currents up to 30 A. It is appropriate for precise current measurement in a range of applications because it has a low offset voltage of 20 mV and a low noise level of 20 mV rms. It is a simple to integrate with ESP32 MCU since it offers an analogue output that is able to access the ESP32s ADC inputs directly. The DS18B20 [63] is a digital temperature sensor that is connected using the OneWire protocol. The ESP32 is a powerful Wi-Fi+BT MCU that can be used for a wide variety of applications. It is designed to be scalable and adaptive, making it suitable for DA and other IoT applications. Depending on the signal received from the cloud server, a relay is utilized to either switch on or off by opening or closing of the connections of any appliances. Table 2 provides the specification of ESP-32.

3.3. Software Components

Software components include a cloud-based IoT middleware module [64] and web application [65]. The middleware module acts as a bridge for software applications to implement communication between ECON and consumers. It acts as a connective tissue to provide the communication channel between digital devices and the middleware. DA-SoC constantly communicates the information of power consumption details to the middleware module via the MQTT protocol. It requires a very flexible and scalable data repository to store user-related details such as energy consumption, temperature, and device status. Based on temperature and per-device power usage, the collected data are filtered and categorized. Power usage trends are analyzed and predicted through these data in the form of a graph, charts and reports. This allows each consumer to see their pattern of power consumption. Consequently, the consumer/facility manager can turn the system on/off based on such information through a command. In addition, the tool will allow consumers/community managers to see the trend of energy usage as per their specific needs. These reports and graphs are provided to the client application via the HTTP protocol.
The interfaces of the front-end mobile users were created using a cross-platform Integrated Development Environment (IDE) [65]. The benefit of using such a platform is that it makes use of common languages for web creation. The cross-platform function is guaranteed for the application, which means one application can be used for the various digital networks and there is no requirement for re-implementation. The software uses two forms of verification for activation of the connection: a standard combination of username and passwords. Upon the verification of the user, an Application Programing Interface (API) key is assigned to validate the operations. The API key is changed for every session and this key can be altered at any time. So, when the user logged out of his session, the API key is changed. Additionally, it needs a special parameter called a secret key to perform assigning entitlement. An API key is a unique identifier that is used to validate a programmer, consumer, or project. The API key changes regularly (monthly or yearly) and is supposed to be a secret known only to the client and the server. A pattern is illustrated in Figure 4 to display the sequence of the flow of data: two ways from household digital appliances to the user networks.
A web application helps users to communicate with the portal and to monitor home appliances remotely using IoT protocol. Figure 5 displays the main application that includes all possible choices, such as adding a place (shown as Figure 5a), tracking building appliances (Figure 5b), sensors information (Figure 5c), statistics on room temperature, current, voltage and power (Figure 5d) and obtaining RT controls (Figure 5e).

3.4. Flow Chart of Presented SEMS

The algorithm is a set of steps followed to read the data from various sensors, control the load based on the commands received and showing the data at consumer API.
It starts with the initialization, which initiates the communication between sensors and MCU. It also sets an energy consumption interval of 1 millisecond.
The second process is the energy calculation, which reads the current, voltage and temperature data from the sensors, calculates the cumulative power (kW) and communicates it to the DA-SoC, which is an ESP32 MCU utilizing a MQTT protocol. The middleware module acts as a bridge for software applications to implement communication between ECON and consumers. The first two steps are carried out every 30 s.
It stores and provides the RT data to the consumer via an API which is integrated with the middleware module via HTTP protocol. ESP32 capacitates the bidirectional communication with ECON and the middleware module. It also aids in the execution of EC directives/commands from ECN layer that is processed at the cloud layer.
Moreover, it also provides various reports/analytics such as sensor values, consumption statistics and device status.
Figure 6 illustrates the flow chart of presented SEMS, composed of five layers: DA-SoC, middleware module and consumer application.

4. Results and Discussion

HVAC contributes a significant portion of electricity consumption in buildings and the residential sector, so in an effort to reduce energy consumption and promote sustainability, our focus is on HVAC load, as it was found to be accountable for 60% of overall energy consumption in the buildings. The electricity consumption of each building has been calculated using a conventional approach. To this end, the electricity consumption of each electric appliance in 04 buildings was listed and it was found that AC contributes almost 60% of the electricity consumption in each building, as shown in Figure 7.
We offer an EC approach while focusing on the temperature difference in a 24 h period, especially in countries such as Pakistan. To this end, we present a set of eight time slots (TSs) that have been designed to optimize energy consumption in four buildings. The eight TSs have been designed to consider the ambient temperature conditions and operational dynamics of the buildings. Each TS is designed to optimize the energy consumption of AC systems. Details of each TS are provided below and shown in Figure 8 and Table 3.
Night Aware Intelligence (TS1): It is designed to optimize energy consumption during the night when the outside temperature is cooler. It adjusts the thermostat settings to maintain thermal comfort while minimizing energy consumption.
Morning Soft Start (TS2): It is designed to gradually start cooling in the morning when outside temperatures are generally moderate. This helps to save energy while maintaining thermal comfort.
Start of Business Automation (TS3): It synchronizes and enables the power-up of AC systems at the start of business hours. This saves at least 5% energy consumption.
Thermal Comfort Dynamic Lock (TS4): It locks the allowable thermostat settings with a human thermal comfort zone to ensure comfort while maximizing energy savings.
Peak Ambient Temperature Compensation (TS5): It disables the thermostat lock feature during the hottest time of the day (12:00 to 15:00) to compensate for sudden spikes in ambient temperature to maintain thermal comfort.
Close of Business Coasting (TS6): It allows for the coasting of AC systems towards the close of business hours to facilitate ventilation while saving energy.
Close of Business Automation (TS7): It executes shut down of unnecessary AC systems at the close of business hours and saves at least 5% energy consumption.
Evening Slow Down (TS8): It tapers off the energy consumption during the evening as the outside temperature cools off. This is achieved by optimizing the thermostat settings.
The case study was developed on multiple HVAC units in four different office buildings. Each AC unit has ECON, which collects details about power usage and the environmental situation regularly and then transmits this information to the middleware module. A time and sensors-based algorithm, as shown in Figure 9, is presented based on eight TSs. It is executed at the IoT layer and processed at the ECN layer.
For the validation of the proposed system, it is essential to acquire the data of electricity consumption before and after the proposed system installation. The aim of this investigation is to collect electrical energy utilization under ordinary (conventional) conditions and to equate these details with the final findings of a case (EMS) in which the proposed system is being utilized. For this purpose, the electricity bill issued by LESCO (Lahore Electric Supply Company) is used to calculate monthly, daily and hourly-based electricity consumption. In this scenario, consumers are carrying out everyday activities without taking care of their energy usage and without the support of the presented system.
The electricity consumption of each TS is recorded after the installation of the presented system, and a comparison has been made for both cases, i.e., under normal conditions (conventional) and after implementation of the EMS. The results of the comparison and EC percentage of each TS are shown in Figure 10 and Figure 11, respectively.
It has been observed that percentage of energy conservation is maximum during the Close of Business Automation, i.e., TS7 due to shut down of all unnecessary AC units and its minimum during the Peak Ambient Temperature Compensation, i.e., TS5 due to sudden spike in ambient temperature and disabling of thermostat lock to maintain thermal comfort. Percentage of energy conservation during Evening Slow Down (TS8), Night Aware Intelligence (TS1), Close of Business Costing (TS6) and Morning Soft Start (TS2) is 41%, 37%, 35% and 26%, respectively whereas during Start of Business Automation (TS3) and Thermal Comfort Dynamic Lock (TS4) percentage of energy conservation is 14% and 11%, respectively.
Data analytics provided by the IoT middleware module allow us to derive deeper information out of data obtained from the SEMS to give a realistic view of energy usage. In this case study, the collected dataset is reviewed to explain the trends of power consumption in different TSs and to aid in the identification of EC techniques that can assist users in minimizing their energy consumption.
The dataset of electricity consumption of four buildings is collected and analyzed. The total electricity units consumed are compared with before and after installation of the presented system, which clearly shows that power consumption in different buildings is reduced significantly, as stated in Table 4.
The implementation of these strategies resulted in significant energy savings, which can have a positive impact on the environment by reducing greenhouse gas emissions and can also result in cost savings for the building owners. There are several benefits of the presented SEMS, as follows.
Real-time Monitoring: The SEMS enables RT monitoring of electrical appliances through its multilayered architecture. By integrating sensors, actuators and communication protocols, the system continuously collects and analyzes energy consumption data from the HVAC units. This RT monitoring capability allows users to have a comprehensive understanding of their energy usage patterns to optimize energy consumption.
Better Control: The SEMS provides effective control over electrical appliances by incorporating the ECON and middleware module. These components enable intelligent scheduling and load control strategies based on the received commands. By optimizing the operation of various HVAC appliances, the system ensures efficient utilization of energy resources, minimizes peak load demand, and maintains a balance between energy conservation and user comfort.
Cost Savings: Through the system’s optimization algorithms and load control strategies, the SEMS helps achieve significant cost savings in energy consumption. By identifying and managing energy-consuming devices efficiently, the SEMS can reduce electricity bills by avoiding unnecessary energy usage during peak tariff hours. The intelligent scheduling of appliances will also allow users to take advantage of off-peak electricity rates, maximizing cost savings.
Environmental Benefits: By optimizing energy consumption and load control, the SEMS contributes to environmental sustainability. Consequently, the system will reduce the overall energy demand, leading to decrease in greenhouse gas emissions and environmental impact. The intelligent management of appliances ensures that energy resources are utilized in an efficient and sustainable manner, promoting a greener and more eco-friendly approach to energy consumption.
Improved Comfort: The SEMS enhances user comfort by intelligently managing and controlling appliances. By considering ambient temperature conditions and operational dynamics of buildings, the system can contribute to the provision of a comfortable living environment.
Longer Equipment Life: The SEMS helps prolong the lifespan of HVAC system by implementing load control strategies. By preventing excessive load demand and optimizing the operation of appliances, the system reduces the strain on equipment, minimizing wear and tear. This leads to improved equipment reliability, lower maintenance costs and a longer lifespan. Figure 12 summarizes the numerous benefits of SEMS.

5. Conclusions

This research highlights the significance of implementing advanced technologies such as cloud computing and IoT in the domain of DSM for SG. The integration of cloud computing and IoT enables the development of a SEMS that effectively optimizes EE in buildings. The SEMS enables effective DSM strategies by utilizing RT data from various IoT devices as well as cloud-based analytics and control techniques, which further enables effective energy consumption patterns analysis and the implementation of energy-saving techniques. In this study, we developed the SEMS that integrates ECON and IoT middleware module to manage energy consumption in four buildings. By integrating sensors, actuators and communication protocols, the presented system continuously collects and analyzes energy consumption data from the HVAC units. It provides valuable insights into energy consumption patterns and enables users to track and manage devices remotely through a user-friendly mobile application. Notably, we focused on collecting energy consumption data from AC units through various TS that are designed to regulate the energy consumption of AC systems based on ambient temperature conditions and operational dynamics of buildings. The presented approach offers several advantages over traditional controllers by providing RT monitoring, incorporating effective load control strategies, demonstrating practical application in multiple location and a user-friendly interface and enabling RT energy savings. The presented system was tested and implemented, and the results demonstrated its effectiveness in terms of electrical energy savings ranging from 15% to 49. This system can be applied to various sectors to reduce energy consumption, increase EE, and lower energy costs. By optimizing the energy consumption of AC systems while maintaining thermal comfort for building occupants, we can contribute towards promoting sustainability and reducing our carbon footprint. The presented SEMS can be extended to other appliances in the building and can help reduce energy costs and promote sustainability.
However, there are still opportunities for improvement of SEMS, including standardizing communication protocols, revising safety regulations, enabling plug and play functionality, managing big data, recalculating billing metrics and enhancing TEG infrastructure, particularly in underdeveloped nations. It is important to acknowledge these limitations, as they provide insight into the challenges associated with implementing and utilizing the SEMS. Future SEMS can leverage IoT-based smart energy meters, deep learning, machine learning, and advanced techniques for better power quality, efficient distribution and optimal system configurations. Addressing these limitations through ongoing research, technological advancements, and user engagement strategies will contribute to the continued improvement and effectiveness of the SEMS in real-world scenarios.
Despite these limitations, the presented research showcases the effectiveness of the SEMS in achieving EE goals and highlights its potential for wider implementation. The results obtained contribute to the body of knowledge in the field of DSM for SG and provide a foundation for further advancements in smart EM and sustainability efforts.

Author Contributions

Conceptualization, M.U.S. and M.S.; methodology, M.U.S., M.S. and M.R.U.; software, M.U.S.; validation, M.S. and M.H.T.B.; formal analysis, M.H.T.B. and P.S.G.; investigation, M.U.S. and N.S.; resources, M.S. and M.R.U.; data curation, M.H.T.B. and K.D.; writing—original draft preparation, M.U.S. and M.R.U.; writing—review and editing, N.S., P.S.G. and M.S.; visualization, P.S.G. and K.D.; supervision, M.R.U. and N.S.; project administration, N.S. and P.S.G.; funding acquisition, N.S. and P.S.G. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by Estonian research council grants PSG739 and European Commission through the H2020 project Finest Twins grant No. 856602.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Saidani Neffati, O.; Sengan, S.; Thangavelu, K.D.; Dilip Kumar, S.; Setiawan, R.; Elangovan, M.; Mani, D.; Velayutham, P. Migrating from Traditional Grid to Smart Grid in Smart Cities Promoted in Developing Country. Sustain. Energy Technol. Assess. 2021, 45, 101125. [Google Scholar] [CrossRef]
  2. IEA. World Energy Outlook 2017; Flagship Report; IEA: Paris, France, 2017. [Google Scholar]
  3. International Energy Agency Monthly Electricity Demand in Pakistan in FY 2019–2020 and Estimated for FY 2024–2025. Available online: https://www.iea.org/data-and-statistics/charts/monthly-electricity-demand-in-pakistan-in-fy-2019-2020-and-estimated-for-fy-2024-2025 (accessed on 30 April 2023).
  4. Overview of Pakistan: WorldBank. Available online: https://www.worldbank.org/en/country/pakistan/overview (accessed on 30 April 2023).
  5. Rafique, M.M.; Rehman, S. National Energy Scenario of Pakistan—Current Status, Future Alternatives, and Institutional Infrastructure: An Overview. Renew. Sustain. Energy Rev. 2017, 69, 156–167. [Google Scholar] [CrossRef]
  6. Raza, M.A.; Khatri, K.L.; Israr, A.; Ul Haque, M.I.; Ahmed, M.; Rafique, K.; Saand, A.S. Energy Demand and Production Forecasting in Pakistan. Energy Strateg. Rev. 2022, 39, 100788. [Google Scholar] [CrossRef]
  7. Tuballa, M.L.; Abundo, M.L. A Review of the Development of Smart Grid Technologies. Renew. Sustain. Energy Rev. 2016, 59, 710–725. [Google Scholar] [CrossRef]
  8. Shabbir, N.; Kutt, L.; Astapov, V.; Jawad, M.; Allik, A.; Husev, O. Battery Size Optimization with Customer PV Installations and Domestic Load Profile. IEEE Access 2022, 10, 13012–13025. [Google Scholar] [CrossRef]
  9. Shabbir, N.; Kütt, L.; Raja, H.A.; Jawad, M.; Allik, A. Techno-Economic Analysis and Energy Forecasting Study of Domestic and Commercial Photovoltaic System Installations in Estonia. Energy 2022, 253, 124156. [Google Scholar] [CrossRef]
  10. Shabbir, N.; Kütt, L.; Daniel, K.; Astapov, V.; Raja, H.A.; Iqbal, M.N.; Husev, O. Feasibility Investigation for Residential Battery Sizing Considering EV Charging Demand. Sustainability 2022, 14, 1079. [Google Scholar] [CrossRef]
  11. Shabbir, N.; Kutt, L.; Astapov, V.; Husev, O.; Ahmadiahangar, R.; Wen, F.; Kull, K. Congestion Control Strategies for Increased Renewable Penetration of Photovoltaic in LV Distribution Networks. Energy Rep. 2022, 8, 217–223. [Google Scholar] [CrossRef]
  12. Hashmi, S.A.; Ali, C.F.; Zafar, S. Internet of Things and Cloud Computing-Based Energy Management System for Demand Side Management in Smart Grid. Int. J. Energy Res. 2021, 45, 1007–1022. [Google Scholar] [CrossRef]
  13. Saleem, M.U.; Usman, M.R.; Usman, M.A.; Politis, C. Design, Deployment and Performance Evaluation of an IoT Based Smart Energy Management System for Demand Side Management in Smart Grid. IEEE Access 2022, 10, 15261–15278. [Google Scholar] [CrossRef]
  14. Saleem, M.U.; Usman, M.R.; Shakir, M. Design, Implementation, and Deployment of an IoT Based Smart Energy Management System. IEEE Access 2021, 9, 59649–59664. [Google Scholar] [CrossRef]
  15. Avancini, D.B.; Rodrigues, J.J.P.C.; Rabêlo, R.A.L.; Das, A.K.; Kozlov, S.; Solic, P. A New IoT-Based Smart Energy Meter for Smart Grids. Int. J. Energy Res. 2021, 45, 189–202. [Google Scholar] [CrossRef]
  16. Elamin, W.E.; Shaaban, M.F. New Real-Time Demand-Side Management Approach for Energy Management Systems. IET Smart Grid 2019, 2, 183–191. [Google Scholar] [CrossRef]
  17. Sarker, E.; Halder, P.; Seyedmahmoudian, M.; Jamei, E.; Horan, B.; Mekhilef, S.; Stojcevski, A. Progress on the Demand Side Management in Smart Grid and Optimization Approaches. Int. J. Energy Res. 2021, 45, 36–64. [Google Scholar] [CrossRef]
  18. Palensky, P.; Dietrich, D. Demand Side Management: Demand Response, Intelligent Energy Systems, and Smart Loads. IEEE Trans. Ind. Inform. 2011, 7, 381–388. [Google Scholar] [CrossRef] [Green Version]
  19. Khan, I. Energy-Saving Behaviour as a Demand-Side Management Strategy in the Developing World: The Case of Bangladesh. Int. J. Energy Environ. Eng. 2019, 10, 493–510. [Google Scholar] [CrossRef] [Green Version]
  20. Ferri, N. United Nations: Transforming Our World: The 2030 Agenda for Sustainable Development; Publisher UNDP: Bishkek, Kyrgyzstan, 2015. [Google Scholar]
  21. Fatih Birol IEA-Energy Efficiency Report. 2021. Available online: https://www.iea.org/reports/energy-efficiency-2021 (accessed on 30 April 2023).
  22. Marques, G.; Roque Ferreira, C.; Pitarma, R. A System Based on the Internet of Things for Real-Time Particle Monitoring in Buildings. Int. J. Environ. Res. Public Health 2018, 15, 821. [Google Scholar] [CrossRef] [Green Version]
  23. Paredes-Valverde, M.A.; Alor-Hernández, G.; García-Alcaráz, J.L.; Salas-Zárate, M.d.P.; Colombo-Mendoza, L.O.; Sánchez-Cervantes, J.L. IntelliHome: An Internet of Things-based System for Electrical Energy Saving in Smart Home Environment. Comput. Intell. 2019, 36, 203–224. [Google Scholar] [CrossRef]
  24. Pan, J.; Jain, R.; Paul, S.; Vu, T.; Saifullah, A.; Sha, M. An Internet of Things Framework for Smart Energy in Buildings: Designs, Prototype, and Experiments. IEEE Internet Things J. 2015, 2, 527–537. [Google Scholar] [CrossRef] [Green Version]
  25. Motlagh, N.H.; Mohammadrezaei, M.; Hunt, J.; Zakeri, B. Internet of Things (IoT) and the Energy Sector. Energies 2020, 13, 494. [Google Scholar]
  26. Sethi, P.; Sarangi, S.R. Internet of Things: Architectures, Protocols, and Applications. J. Electr. Comput. Eng. 2017, 2017, 9324035. [Google Scholar] [CrossRef] [Green Version]
  27. Pincher, C. Rigorous New Targets for Green Building Revolution. Available online: https://www.gov.uk/government/news/rigorous-new-targets-for-green-building-revolution (accessed on 30 April 2023).
  28. Engg, E.C. Benefits of Energy Efficiency. Available online: https://www.unido.org/sites/default/files/2009-02/Module12_0.pdf (accessed on 30 April 2023).
  29. Energy Information Administration (EIA) Annual Energy Outlook. 2023. Available online: https://www.eia.gov/outlooks/aeo/ (accessed on 30 April 2023).
  30. 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 Trans. Consum. Electron. 2017, 63, 426–434. [Google Scholar] [CrossRef]
  31. Abo-Zahhad, M.; Ahmed, S.M.; Farrag, M.; Ahmed, M.; Abo-Zahhad, M.; Ahmed, S.M.; Ahmed, M.F.A.; Ali, A. Design and Implementation of Building Energy Monitoring and Management System Based on Wireless Sensor Networks. In Proceedings of the 2015 Tenth International Conference on Computer Engineering & Systems (ICCES), Cairo, Egypt, 23–24 December 2015. [Google Scholar] [CrossRef]
  32. Byun, J.; Hong, I.; Kang, B.; Park, S. Implementation of an Adaptive Intelligent Home Energy Management System Using a Wireless Ad-Hoc and Sensor Network. In Proceedings of the 20th International Conference on Computer Communications and Networks (ICCCN), Lahaina, HI, USA, 31 July–4 August 2011. [Google Scholar]
  33. Han, J.; Choi, C.S.; Park, W.K.; Lee, I.; Kim, S.H. Smart Home Energy Management System Including Renewable Energy Based on ZigBee and PLC. IEEE Trans. Consum. Electron. 2014, 60, 198–202. [Google Scholar] [CrossRef]
  34. Wang, J.; Huang, J.; Chen, W.; Liu, J.; Xu, D. Design of IoT-Based Energy Efficiency Management System for Building Ceramics Production Line. In Proceedings of the 2016 IEEE 11th Conference on Industrial Electronics and Applications, Hefei, China, 5–7 June 2016; pp. 912–917. [Google Scholar]
  35. Gao, M.; Shaoliangshan; Huixiaowei; Sunqingwei. The System of Wireless Smart House Based on GSM and ZigBee. In Proceedings of the 2010 International Conference on Intelligent Computation Technology and Automation, Changsha, China, 11–12 May 2010; Volume 3, pp. 1017–1020. [Google Scholar]
  36. Serra, J.; Pubill, D.; Antonopoulos, A.; Verikoukis, C. Smart HVAC Control in IoT: Energy Consumption Minimization with User Comfort Constraints. Sci. World J. 2014, 2014, 161874. [Google Scholar] [CrossRef] [Green Version]
  37. Lee, T.; Jeon, S.; Kang, D.; Park, L.W.; Park, S. Design and Implementation of Intelligent HVAC System Based on IoT and Bigdata Platform. In Proceedings of the 2017 IEEE International Conference on Consumer Electronics (ICCE), Las Vegas, NV, USA, 8–10 January 2017; pp. 398–399. [Google Scholar]
  38. Lee, Y.T.; Hsiao, W.H.; Huang, C.M.; Chou, S.C.T. An Integrated Cloud-Based Smart Home Management System with Community Hierarchy. IEEE Trans. Consum. Electron. 2016, 62, 1–9. [Google Scholar] [CrossRef]
  39. Ghofrani, A.; Nazemi, S.D.; Jafari, M.A. HVAC Load Synchronization in Smart Building Communities. Sustain. Cities Soc. 2019, 51, 101741. [Google Scholar] [CrossRef]
  40. Fong, K.F.; Hanby, V.I.; Chow, T.T. HVAC System Optimization for Energy Management by Evolutionary Programming. Energy Build. 2006, 38, 220–231. [Google Scholar] [CrossRef]
  41. Uddin, F.; Hassan, K.M.N.; Biswas, S. Peak load minimization in smart grid by optimal coordinated ON–OFF scheduling of air conditioning compressors. Sustain. Energy Grids Netw. 2021, 28, 100545. [Google Scholar] [CrossRef]
  42. Du, Y.; Zandi, H.; Kotevska, O.; Kurte, K.; Munk, J.; Amasyali, K.; Mckee, E.; Li, F. Intelligent Multi-Zone Residential HVAC Control Strategy Based on Deep Reinforcement Learning. Appl. Energy 2021, 281, 116117. [Google Scholar] [CrossRef]
  43. Mataloto, B.; Ferreira, J.C.; Cruz, N. Lobems—IoT for Building and Energy Management Systems. Electronics 2019, 8, 763. [Google Scholar] [CrossRef] [Green Version]
  44. Hakimi, S.M. A novel intelligent control of HVAC system in smart microgrid. J. Electr. Syst. Inf. Technol. 2017, 4, 299–309. [Google Scholar] [CrossRef]
  45. Rodriguez-Diaz, E.; Vasquez, J.C.; Guerrero, J.M. Intelligent DC Homes in Future Sustainable Energy Systems: When Efficiency and Intelligence Work Together. IEEE Consum. Electron. Mag. 2016, 5, 74–80. [Google Scholar] [CrossRef] [Green Version]
  46. Kim, D.S.; Son, S.Y.; Lee, J. Developments of the In-Home Display Systems for Residential Energy Monitoring. IEEE Trans. Consum. Electron. 2013, 59, 492–498. [Google Scholar] [CrossRef]
  47. Son, Y.S.; Pulkkinen, T.; Moon, K.D.; Kim, C. Home Energy Management System Based on Power Line Communication. IEEE Trans. Consum. Electron. 2010, 56, 1380–1386. [Google Scholar] [CrossRef]
  48. Kushiro, N.; Suzuki, S.; Nakata, M.; Takahara, H.; Inoue, M. Integrated Residential Gateway Controller for Home Energy Management System. IEEE Trans. Consum. Electron. 2003, 49, 629–636. [Google Scholar] [CrossRef]
  49. Erol-Kantarci, M.; Mouftah, H.T. Wireless Sensor Networks for Cost-Efficient Residential Energy Management in the Smart Grid. IEEE Trans. Smart Grid 2011, 2, 314–325. [Google Scholar] [CrossRef]
  50. Fiedler, T.; Mircea, P.M. Energy Management Systems According to the ISO 50001 Standard—Challenges and Benefits. In Proceedings of the 2012 International Conference on Applied and Theoretical Electricity (ICATE), Craiova, Romania, 25–27 October 2012. [Google Scholar]
  51. Dittawit, K.; Aagesen, F.A. Home Energy Management System for Electricity Cost Savings and Comfort Preservation. In Proceedings of the 2014 IEEE Fourth International Conference on Consumer Electronics Berlin (ICCE—Berlin), Berlin, Germany, 7–10 September 2015; pp. 309–313. [Google Scholar]
  52. Santos, D.; Ferreira, J.C. IoT Power Monitoring System for Smart Environments. Sustainability 2019, 11, 5355. [Google Scholar] [CrossRef] [Green Version]
  53. Pawar, P.; Vittal, K.P. Design and Development of Advanced Smart Energy Management System Integrated with IoT Framework in Smart Grid Environment. J. Energy Storage 2019, 25, 100846. [Google Scholar] [CrossRef]
  54. Muralidhara, S.; Hegde, N.; Rekha, P.M. An Internet of Things-Based Smart Energy Meter for Monitoring Device-Level Consumption of Energy. Comput. Electr. Eng. 2020, 87, 106772. [Google Scholar] [CrossRef]
  55. Amaxilatis, D.; Akrivopoulos, O.; Mylonas, G.; Chatzigiannakis, I. An IoT-Based Solution for Monitoring a Fleet of Educational Buildings Focusing on Energy Efficiency. Sensors 2017, 17, 2296. [Google Scholar] [CrossRef] [Green Version]
  56. Karthick, T.; Charles Raja, S.; Jeslin Drusila Nesamalar, J.; Chandrasekaran, K. Design of IoT Based Smart Compact Energy Meter for Monitoring and Controlling the Usage of Energy and Power Quality Issues with Demand Side Management for a Commercial Building. Sustain. Energy Grids Netw. 2021, 26, 100454. [Google Scholar] [CrossRef]
  57. Soliman, M.S.; Belkhier, Y.; Ullah, N.; Achour, A.; Alharbi, Y.M.; Al Alahmadi, A.A.; Abeida, H.; Khraisat, Y.S.H. Supervisory Energy Management of a Hybrid Battery/PV/Tidal/Wind Sources Integrated in DC-Microgrid Energy Storage System. Energy Rep. 2021, 7, 7728–7740. [Google Scholar] [CrossRef]
  58. Sahri, Y.; Belkhier, Y.; Tamalouzt, S.; Ullah, N.; Shaw, R.N.; Chowdhury, M.S.; Techato, K. Energy Management System for Hybrid PV/Wind/Battery/Fuel Cell in Microgrid-Based Hydrogen and Economical Hybrid Battery/Super Capacitor Energy Storage. Energies 2021, 14, 5722. [Google Scholar] [CrossRef]
  59. Corinaldesi, C.; Fleischhacker, A.; Lang, L.; Radl, J.; Schwabeneder, D.; Lettner, G. European Case Studies for Impact of Market-Driven Flexibility Management in Distribution Systems. In Proceedings of the 2019 IEEE International Conference on Communications, Control, and Computing Technologies for Smart Grids (SmartGridComm), Beijing, China, 21–23 October 2019. [Google Scholar]
  60. Parvin, K.; Hannan, M.A.; Hui Mun, L.; Hossain Lipu, M.S.; Abdolrasol, M.G.M.; Jern Ker, P.; Muttaqi, K.M.; Dong, Z.Y. The Future Energy Internet for Utility Energy Service and Demand-Side Management in Smart Grid: Current Practices, Challenges and Future Directions. Sustain. Energy Technol. Assess. 2022, 53, 102648. [Google Scholar] [CrossRef]
  61. Esp32-S2-Wrover & Esp32-S2-Wrover-I. Available online: https://www.espressif.com/sites/default/files/documentation/esp32-s2-wrover_esp32-s2-wrover-i_datasheet_en.pdf (accessed on 30 April 2023).
  62. Allegro ACS712 Pdf, ACS712 Description, ACS712 Datasheets, ACS712 View. ALLDATASHEET. Available online: https://pdf1.alldatasheet.com/datasheet-pdf/view/174116/ALLEGRO/ACS712.html (accessed on 24 April 2023).
  63. Maxim Integrated Datasheet DS18B20. Maxim Integr. 2015. Available online: https://www.analog.com/media/en/technical-documentation/data-sheets/ds18b20.pdf (accessed on 30 April 2023).
  64. An Open Source MQTT v3.1 Broker. Available online: https://mosquitto.org/ (accessed on 30 April 2023).
  65. Apache Cordova. Available online: https://cordova.apache.org/ (accessed on 30 April 2023).
Figure 1. Representation of the Smart Grid [12].
Figure 1. Representation of the Smart Grid [12].
Energies 16 04835 g001
Figure 2. Demand Side Management Techniques [13].
Figure 2. Demand Side Management Techniques [13].
Energies 16 04835 g002
Figure 3. (a) Five-layered generic IoT architecture of SEMS. (b) The block diagram of the presented SEMS.
Figure 3. (a) Five-layered generic IoT architecture of SEMS. (b) The block diagram of the presented SEMS.
Energies 16 04835 g003
Figure 4. Sequence diagram: two-way sequence of the flow of data from digital appliances to the user networks (modified from [30]).
Figure 4. Sequence diagram: two-way sequence of the flow of data from digital appliances to the user networks (modified from [30]).
Energies 16 04835 g004
Figure 5. Web Application Interface, (a) adding a place, (b) tracking building appliances, (c) sensors information, (d) statistics on room temperature, current, voltage and power, (e) obtaining RT controls.
Figure 5. Web Application Interface, (a) adding a place, (b) tracking building appliances, (c) sensors information, (d) statistics on room temperature, current, voltage and power, (e) obtaining RT controls.
Energies 16 04835 g005
Figure 6. Flow chart of presented SEMS, composed of 5 layers, DA-SoC, middleware module and consumer application.
Figure 6. Flow chart of presented SEMS, composed of 5 layers, DA-SoC, middleware module and consumer application.
Energies 16 04835 g006
Figure 7. Total electricity consumption of each building.
Figure 7. Total electricity consumption of each building.
Energies 16 04835 g007
Figure 8. Details of each time slot.
Figure 8. Details of each time slot.
Energies 16 04835 g008
Figure 9. Time and Sensor-based algorithm based on 8 time slots.
Figure 9. Time and Sensor-based algorithm based on 8 time slots.
Energies 16 04835 g009
Figure 10. Electricity consumption comparison of each time slot. (a) Electricity consumption comparison of Night Aware Intelligence (TS1), (b) Electricity consumption comparison of Morning Soft Start (TS2), (c) Electricity consumption comparison of Start of Business Automation (TS3), (d) Electricity consumption comparison of Thermal Comfort Dynamic Lock (TS4), (e) Electricity consumption comparison of Peak Ambient Temperature Compensation (TS5), (f) Electricity consumption comparison of Close of Business Costing (TS6), (g) Electricity consumption comparison of Close of Business Automation (TS7), (h) Electricity consumption comparison of Evening Slow Down (TS8).
Figure 10. Electricity consumption comparison of each time slot. (a) Electricity consumption comparison of Night Aware Intelligence (TS1), (b) Electricity consumption comparison of Morning Soft Start (TS2), (c) Electricity consumption comparison of Start of Business Automation (TS3), (d) Electricity consumption comparison of Thermal Comfort Dynamic Lock (TS4), (e) Electricity consumption comparison of Peak Ambient Temperature Compensation (TS5), (f) Electricity consumption comparison of Close of Business Costing (TS6), (g) Electricity consumption comparison of Close of Business Automation (TS7), (h) Electricity consumption comparison of Evening Slow Down (TS8).
Energies 16 04835 g010
Figure 11. Electricity conserved percentage in different time slots.
Figure 11. Electricity conserved percentage in different time slots.
Energies 16 04835 g011
Figure 12. Summary of the numerous benefits of SEMS.
Figure 12. Summary of the numerous benefits of SEMS.
Energies 16 04835 g012
Table 2. Characteristics of ESP32 [61].
Table 2. Characteristics of ESP32 [61].
ManufacturerTypeMemoryCPUPowerInput
Espressif Systems32-bit microcontroller4 MB flash160 MHz3.3 V DC48 pins
Table 3. Time duration of each time slot.
Table 3. Time duration of each time slot.
Time SlotsTime
FromTo
Night Aware Intelligence(TS1)0:004:00
Morning Soft Start(TS2)5:007:00
Start of Business Automation(TS3)8:009:00
Thermal Comfort Dynamic Lock(TS4)8:0018:00
Peak Ambient Temperature Compensation(TS5)12:0015:00
Close of Business Costing(TS6)17:0018:00
Close of Business Automation(TS7)18:0019:00
Evening Slow Down(TS8)19:0023:00
Table 4. Comparison of units saving before and after the installation of the proposed system.
Table 4. Comparison of units saving before and after the installation of the proposed system.
BuildingKWH ReadingUnits Saved% Saving
ConventionalEMS
Building 141,12020,80020,32049%
Building 221,08415,840524425%
Building 332,48025,600688021%
Building 414,36012,260210015%
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.

Share and Cite

MDPI and ACS Style

Saleem, M.U.; Shakir, M.; Usman, M.R.; Bajwa, M.H.T.; Shabbir, N.; Shams Ghahfarokhi, P.; Daniel, K. Integrating Smart Energy Management System with Internet of Things and Cloud Computing for Efficient Demand Side Management in Smart Grids. Energies 2023, 16, 4835. https://doi.org/10.3390/en16124835

AMA Style

Saleem MU, Shakir M, Usman MR, Bajwa MHT, Shabbir N, Shams Ghahfarokhi P, Daniel K. Integrating Smart Energy Management System with Internet of Things and Cloud Computing for Efficient Demand Side Management in Smart Grids. Energies. 2023; 16(12):4835. https://doi.org/10.3390/en16124835

Chicago/Turabian Style

Saleem, M. Usman, Mustafa Shakir, M. Rehan Usman, M. Hamza Tahir Bajwa, Noman Shabbir, Payam Shams Ghahfarokhi, and Kamran Daniel. 2023. "Integrating Smart Energy Management System with Internet of Things and Cloud Computing for Efficient Demand Side Management in Smart Grids" Energies 16, no. 12: 4835. https://doi.org/10.3390/en16124835

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop