Next Article in Journal
The Impact of the Organizational Culture on Hotel Outsourcing and Sustainable Performance an Empirical Application in the Egyptian Hotel Sector
Next Article in Special Issue
Chemical and Leaching Behavior of Construction and Demolition Wastes and Recycled Aggregates
Previous Article in Journal
Cultural Influences on Fruit and Vegetable Food-Wasting Behavior in the European Union
Previous Article in Special Issue
Variability of Seismic Loading over the Surface of a Concrete Slab in Interaction with the Subsoil
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Smart Energy Management as a Service over a Cloud Computing Platform for Nanogrid Appliances

by
Bilal Naji Alhasnawi
1,*,
Basil H. Jasim
1,
Maria Dolores Esteban
2,* and
Josep M. Guerrero
3
1
Electrical Engineering Department, University of Basrah, Basrah 61001, Iraq
2
Civil Engineering Department, Hydraulics, Energy and Environment/ProfesorAranguren3, Universidad Politécnca de Madrid (UPM), CP 28040 Madrid, Spain
3
Center for Research on Microgrids (CROM), Department of Energy Technology, Aalborg University, 9220 Aalborg, Denmark
*
Authors to whom correspondence should be addressed.
Sustainability 2020, 12(22), 9686; https://0-doi-org.brum.beds.ac.uk/10.3390/su12229686
Submission received: 28 September 2020 / Revised: 13 November 2020 / Accepted: 18 November 2020 / Published: 20 November 2020
(This article belongs to the Special Issue Sustainable Construction and Building Materials for Environment)

Abstract

:
There will be a dearth of electrical energy in the world in the future due to exponential increase in electrical energy demand of rapidly growing world population. With the development of Internet of Things (IoT), more smart appliances will be integrated into homes in smart cities that actively participate in the electricity market by demand response programs to efficiently manage energy in order to meet this increasing energy demand. Thus, with this incitement, the energy management strategy using a price-based demand response program is developed for IoT-enabled residential buildings. We propose a new EMS for smart homes for IoT-enabled residential building smart devices by scheduling to minimize cost of electricity, alleviate peak-to-average ratio, correct power factor, automatic protective appliances, and maximize user comfort. In this method, every home appliance is interfaced with an IoT entity (a data acquisition module) with a specific IP address, which results in a wide wireless system of devices. There are two components of the proposed system: software and hardware. The hardware is composed of a base station unit (BSU) and many terminal units (TUs). The software comprises Wi-Fi network programming as well as system protocol. In this study, a message queue telemetry transportation (MQTT) broker was installed on the boards of BSU and TU. In this paper, we present a low-cost platform for the monitoring and helping decision making about different areas in a neighboring community for efficient management and maintenance, using information and communication technologies. The findings of the experiments demonstrated the feasibility and viability of the proposed method for energy management in various modes. The proposed method increases effective energy utilization, which in turn increases the sustainability of IoT-enabled homes in smart cities. The proposed strategy automatically responds to power factor correction, to protective home appliances, and to price-based demand response programs to combat the major problem of the demand response programs, which is the limitation of consumer’s knowledge to respond upon receiving demand response signals. The schedule controller proposed in this paper achieved an energy saving of 6.347 kWh real power per day, this paper achieved saving 7.282 kWh apparent power per day, and the proposed algorithm in our paper saved $2.3228388 per day.

1. Introduction

Internet of Things (IoT) is a paradigm that bridges a variety of real, digital, and virtual devices through information networks into smart environments and spans across domains such as energy, transportation, cities, etc. [1]. An important and rapidly growing application of the IoT is the smart grid/nanogrid. The smart grid/nanogrid is an important domain of the Internet of Things (IoT), which aims to achieve reliable information transmission through smart facilities (e.g., smart meters) and realize real-time control, accurate management, and scientific decision-making of the smart grid/nanogrid by smart devices [2]. The smart grid seeks to increase performance, dependability, and protection via automation and advanced technologies of communication [3,4].
In the nanogrid, the capacity to make self-decisions is one of the most essential features that businesses create and deliver to customers. To enable the self-decision-making ability in a nanogrid, utilities developed effective and viable demand response (DR) mechanisms for electrical energy management/demand side management (DSM).
In a nanogrid, DSM refers to programs and innovations that enable the end customers to optimize their energy of electrical consumption, while enhancing the stability and efficiency of the compromises in the conventional nanogrid grid. The first important move to participate in DR programs/DSM at a nanogrid is to monitor fine grain electrical energy in the realistic areas of interest consumed by each major electrical unit. For example, a smart home energy management system (EMS), which is connected to the nanogrid via advanced metering infrastructure (AMI), can be used in DSM/e-energy management, using smart plug-ins which connect to an AMI power supply smart meter and keep track of energy consumption for each major app [5].
The home energy management system (HEMS) is a core feature of the smart grid. The HEMS aims at lowering energy cost to customers and enhancing comfort levels of customers while ensuring grid reliability [6]. In addition, the physical quantities determined by (HEMS) exhibit broader range, greater frequency, and improved grain size than earlier when backed by the advanced metering infrastructure (AMI) technology [7].
Worldwide adoption of HEMSs, which recognize and communicate electricity consumption data through invasive smart plug deployments, leads to modern, user-focused, DSM-based IoT applications. It is based on a central cloud architecture model that generates large quantities of data that must be distributed, saved, and processed in powerful cloud computing in smart homes in the nanogrid. IoT devices are deployed. Cloud-centered analytics of data science, cloud analytics, is focused on the non-restrictive or not always accessible network connectivity/internet, typically inappropriate for the nanogrid’s user-centric latency-oriented IoT applications for smart home services [8]. In comparison with cloud analysis, where data collected and transmitted through IoT terminals to the cloud are handled via centralized cloud-centric analysis, fog analysis is an advanced technique devoted to and used for the analysis of the data that must be processed immediately for analytical, interpretable, and accurate data in IoT sources. Compared with cloud analysis, fog analysis is extended. This means that for latency-sensitive user-focused IoT application in intelligent homes, artificial intelligent models are trained in cloud analysis and then deployed on-site on IoT ends, as edge analysis at the edge of internet and edge analytics, which immediately support analytical, interpretable, and real-time operative data insights at IoT sources are required.
In applications of energy management, wireless sensor networks (WSNs) play a major part, rendering smart grids open to homes. Wireless connectivity also has certain benefits over wired communication, such as low-cost setups and quick access to remote or inaccessible places. Today there are many smart home wireless communication technologies: Infrared, Home RF, ZigBee, Z-wave, Wi-Fi, Bluetooth, etc. [9].
The effective usage of electricity in smart homes saves resources, boosts efficiency, and ultimately lowers carbon footprint. Therefore, for smart homes and intelligent cities, the necessity of smart management of energy is growing. Nonetheless, the absence of low cost, simple to use and low-maintenance technologies has reduced a widespread implementation of such setups to some degree [10].
In particular, daily and seasonal changes in energy output and demand profiles, significant energy storage costs, and the responsive balance between grid stability and flexibility are among the most troublesome aspects, due to a large number of technical and economic problems associated with the high rate of penetration into the electrical grid [11].
To deal with such issues, suitable energy management systems have been discussed in the technical literature [12,13,14]. Monitoring and optimizing of power flow are the main functions of EMSs. These systems allow consumers to be actively engaged on the energy market at the end-user level. On the other hand, they provide support to a grid operator in terms of optimized decisions, for example implementing demand side management schemes [15,16].
Energy management systems are also useful for the industrial and commercial sectors when it comes to intelligent homes where various types of device elements (e.g., software algorithms, hardware elements, network links, and sensors) collaborate together to provide different services supporting the human lifestyle [11]. A framework for energy management should display unique features that are useful to the end-user. Besides providing a commodity and an advantage, it should easily fit into a home appliance setup, it should require a smooth set-up and a minimal amount of cabling, and it should not be bulky. Therefore, it is also important to examine how to incorporate and integrate them more effectively into an intelligent household, apart from research into the practical aspects of energy management systems (e.g., how they are described, configured, and which technique they use) for their real-world implementation. The IoT paradigm is currently the preferred approach to this goal.
For latency sensitive user centric IoT applications in DSM, edge analytics are required to ensure the immediate analysis, interpretation, and real-time operating information processed and detected by an IoT system in the IoT sources and are collaborated with the cloud analytics. Additionally, much attention remains to be paid in conducting and applying fog-cloud analytics in smart homes, as examples, for demand-side management in a nanogrid. Therefore this work develops and implements a prototype of intelligent analytical power meters, intelligent algorithms for smart home demand side management.

2. Knowledge and Objectives

In ref. [17], hybrid meta-heuristic techniques for scheduling of appliances are proposed. The main point of designing a hybrid technique is a balance of exploration and exploitation. In order to achieve this balanced hybrid of optimal stopping rule (OSR) with genetic algorithm (GA), teaching learning based optimization (TLBO) and the Firey algorithm (FA) are proposed. The objective of this research is to reduce energy consumption and minimize waiting time along with peak-to-average ratio and cost as optimized parameters. MATLAB simulation has been conducted while considering user priorities, and RTP for heterogeneous homes. The limitation of the proposed methodology is the use of a limited number of appliances. This proposed scheme has not considered the effect of HVAC, which is the major energy consumer in the residential sector.
A hybrid technique uses two optimization approaches of bacterial foraging algorithm (BFA) and GA [18] with the objective of reducing cost and peak to average ratio (PAR). PAR is one of the important performance metrics used to evaluate how peak electricity consumption affects the system. There are a variety of appliances that require either high voltage or low voltage. DSM persuades the electricity consumer to shift the high voltage required appliances to the low peak hours so that less energy is consumed during peak hours. However, most of the schedulers often result in the increase of PAR, as they increase the load during low peak hours. The proposed algorithm used the fitness function of cost reduction, but it also minimizes peak to average ratio (PAR) using day ahead real time price (RTP).
A novel air conditioning system [19] was developed for better demand response by shifting the load in order to balance the power of the smart grid. The proposed system used two demand response strategies named the demand-side bidding (DSB) strategy and demand as frequency-controlled reserve (DFR) strategy. The objective of the study was cost and energy saving while considering a building in Hong Kong with the synthetic dynamic price for RTP. The proposed system only works for the office building. Simulations are performed for the 40-story building using EnergyPlus by comparing the conventional air conditioning approach and proposing an approach that a results in reduction in cost and energy use.
In ref. [20] paper, a fuzzy logic rule-based algorithm is developed along with wireless sensors integration. A wireless programmable thermostat is simulated in MATLAB GUI. The proposed system uses outdoor temperature, load demand, electricity price, and user occupancy parameters in real-time to reduce the thermostat set points for better energy utilization in heating/cooling systems. Performance metrics are demand response participation, energy consumption, and occupants user comfort. The center of gravity (COG) method is used for defuzzication, whereas membership functions of parameters are defined as a triangular shape. As the output parameter decides how much load reduction should be done, the defuzzied value reveals by how much value an initialized set point will change. The objective of the research is to reduce energy consumption while having the best indoor temperature, but user comfort is sacrificed.
In ref. [21], an energy consumption management approach considers household users, in which each house consists of two types of requests or demands: (i) essential and (ii) flexible, where flexible demands are further delay-sensitive and delay-tolerant. To optimize energy for both delay-sensitive and delay-tolerant demands, a new centralized algorithm is presented for scheduling. This approach also aims to reduce the aggregated electricity bill and delay of the flexible demands for achieving the optimum power decisions. The authors design a cost-efficient demand-side day-ahead bidding process and RTP mechanisms by using fractional programming methods in [22].
Article [23] formulated the finite time horizon by considering the 30 min time-slot and modeled mixed-integer non-linear programming using RTP tariff for scheduling. The proposed scheme schedules the electrical and thermal appliances of a smart home. This scheme reduces 22.2% cost for peak price and 11.7% for normal price scheme while shifting the peak load on the thermal resources. Authors in [24] proposed linear programming based optimal scheduling technique to minimize the electricity cost while focusing on energy storage. The discussed technique saved 20.39% average cost and reduced 21.6% average peak load.
In ref. [25] authors proposed a dynamic choice artificial neural network (DCANN). This model is used for day-ahead price forecasting. This model is a combination of supervised and unsupervised learning, which deactivates the bad samples and search optimal inputs for a model to learn. In ref. [26], authors proposed an energy efficient delivery system (ECDS) to analyze the performance of D2D delivery. D2D is robust and efficient. It does not need any knowledge of content distribution, device mobility, and user demand. ECDS is used to minimize the energy consumption of smart cities. This system achieves the optimal solution for a random and dynamic environment. ECDS only performed a few logical operations by utilizing local information of each device to make decisions. After getting information through the green communication system about the usage of different devices, The smart grid can easily forecast the load of power consumption of consumers. In ref. [27], the authors described the local energy market (LEM) concept with an operational auction mechanism. Private blockchain is used for a small size community that determined the prices, based on agents’ order in a decentralized way. Agents participate in a market for short term electricity trading. Photo voltaic (PV) panels are used to produce electricity. A market is designed for a small community in which consumers and prosumers are acting as agents. The authors also forecast the prices of electricity according to the consumption and generation of electricity.
In ref. [28], the author has applied the differential development algorithm which limits the cost of home appliances to users and electricity. On the other hand, the impact of more bill payments on low energy use impacted lower power usage users. In ref. [29], the researchers proposed a home-energy management system, which offers usage particulars of individual product use and enables customers to decide. There is, however, no method for automating the function of the appliance. In ref. [30] the author used harmony search-echo state networks algorithms, particle swarm optimization, and recursive least squares to tune ESN for better prediction. Similar work is reported in [31], where the grey wolf optimization algorithm is used to tune fuzzy control system parameters in order to reduce computational cost.
The researchers in [10] measured the performance of the EMS by taking into account data on power use, room temperature, ambient temperature, and customer use profile before and post EMS setup implementation. Considerable power decreases are said to be accomplished by adjusting the TV use pattern, eliminating standby power usage and modifying the refrigerator capabilities on the basis of the above stated restrictions. In ref. [32], the researchers used algorithms for optimized real-time scheduling devised to adjust the peak window and reduce general energy usage by prioritizing devices. In ref. [33], the authors concentrated on more complex circumstances, where power and electricity costs for electrical appliances operations with the overall grid charge are not shiftable, and renewable energy production is uncertain. The artificial neural network was used in [34] to change the weights for the agglomeration in order to adjust the prediction intervals using the genetic algorithm and the simulated ringing algorithms. This will reduce the uncertainties and disruptions with the prediction. The researchers in [35] implemented a protocol to maximize the WSN by means of a design for a smart home. This design consists of two settings, external and internal, interacting by means of an access point. The home of the consumer can be managed with a smartphone any time and from anywhere. For the deployment and deferent validation checks, the SQLite database framework was utilized. An IoT technology for smart housing monitoring and surveillance has been introduced in [36]. In other terms, it enables users to access and manage devices by means of touch or voice commands, including the protection net. App Inventor and Android Studio have created this program. In ref. [37] for IoT devices in the intelligent grid, a fog-based architecture is created. The goal of this work is to provide the IoT smart grid with latency-sensitive monitoring, localization awareness, and smart control. In order to extend computing to the edge of the network, a novel fog based architecture is further developed. The experimental analysis reveals the efficiency over other equivalents of their proposed model.
Chilipirea et al. [38] suggested a way of developing IoT models which promote, in a home safety mechanism, the creation of strong energy-efficient setups. The model overlapped the features of the devise to conserve and momentarily deactivate some of the energy. In ref. [39], the authors used an algorithm of optimization on embedded devices but did not explain the algorithm specifics. Additionally, only rule-based EMSs or short-term controllers were introduced. For example, some works implemented very simple on/off device switching functionalities based either on the hour of the day and the presence of users [40] or on a user-selected power consumption limit [41]. In ref. [42], a shedding algorithm and a design of an intelligent home energy management system is suggested. The work was focused on grid management, domestic sources of renewable energy, wireless connectivity between household appliances, a control mechanism, and a home management mechanism. In ref. [43], the authors present an EMS platform of buildings that are based on a distributed agent. The cloud-based architecture that permits data collection, control of devices, and the definition of energy management systems as cloud-based services is presented in [44].
The researchers in [45] demonstrated a smart mechanism for energy-efficient IoT-based households having a cooling system. The heat dissemination in the kitchen region and virtual model of flow was exhibited. When a person exits or reaches the kitchen, the mechanism remotely regulates heating/cooling and illumination.
In ref. [46], the authors showed that they considered fog cloud computing as the Open Fog reference architectural smart home system. The simulation system has not, however, been tested in a realistic environment; the analysis lacked a functional evaluation. Furthermore, the study lacked proof of the analytical capabilities with which AI is trained in cloud analytics and deployed on-site in IoT end devices as edge analytical systems for user-centered IoT applications in intelligent homes. The authors in [47] sought to build a multi-layer cloud architectural model that enables efficient operations/interactions on heterogeneous IoT appliances from various IoT smart houses. In order to support the protection and privacy conservation during the interaction/operation of heterogeneous IoT devices, an ontology-based security service architecture was developed and utilized. In ref. [48], the authors propose a home administration self-learning system that consists of (1) an EMS, (2) a DSM system, and (3). For real-time operation of a smart house, the three parts of the house management system were created and incorporated. The unified, integrated domestic management system involves price forecasts, price clusters, and the power alerting system capabilities for the management of intelligent domestic electricity.
The EMS depends on MQTT, is driven by business intelligence (BI) and analytics, and utilizes big data. The method has been tested using HVAC for the simulation of small residential region structures. A control technique for digital power factor correction (PFC), centered on the speed of the digital signal processor, has been proposed in [49] to address the issue of restricted frequency of switching. A microcontroller was utilized in [50] for regulating switch capacitors for PFC near single-phase electric appliances. Depending on the load, the power factor has various limitations. A new methodology for learning-based optimization (TLBO) was explored, more intricate PFC decision algorithm was scrutinized and a cloud-driven data warehouse for electronic parameters was examined in [51].
In brief, the introduction of the platform for energy management raises the significant challenges stated below:
(1)
Output, interactivity, and interoperability in heterogeneous appliances within an energy management platform.
(2)
Capacity to tailor the adaptability, services, and scalability of the energy management program to different kinds of houses, buildings, and devices.
(3)
Costs of the energy management framework, hardware, and software stack deployment.
To address the above-mentioned challenges, a novel platform for energy management system is proposed that employs interoperability, adaptability, scalability, and connectivity between smart appliances over the cloud computing platform.
The key contributions are summed up here:
  • We formulate the energy management and sharing economy problem and present the optimal approach to tackle this problem based on cloud computing.
  • We propose a cost and imported electricity minimization scheme to make the environment greener.
  • Another contribution of this paper is the proposal of a MAS for micro-grid representation that integrates IoT devices for energy management inside the buildings. The proposed MAS was developed for low-performance hardware, such as single-board computers. This helps agents to be installed in inexpensive and sufficiently compact hardware in the building’s electrical switchboard. The proposed MAS, however, utilizes strong IoT device penetration to conduct energy management solutions within buildings. This is the most critical addition by this work.
  • A communication protocol based on IoT and proven specifications such as MQTT, which allows the system to be flexible, is proposed in this study. Furthermore, analytics and business intelligence (BI) are provided in the proposed system, offering a profound insight on the data gathered by visualizing dashboards and reporting. In addition, the usage of data storage technologies based on Big Data enables system scalability at the national level, offering energy efficiency systems for both household owners and utilities companies.
  • The appliances presented in this paper capitalize on the developments in information and communication technology (ICT) to build a new telemetry methodology and remote power factor correction. This method is versatile and flexible so as to respond to multiple loads, adjusting the capacitance stages and power factor correction unit settings effectively.
  • A hierarchical two-layered communication architecture, which is founded on MQTT protocol and utilizes a cloud based server named Node Red, is implemented to realize local and global communications required for neighborhood appliance controllers.
  • A cloud-based platform is developed to store data and share energy among smart users.

3. Methodology

This section describes the modelling methodology for proposed energy management system. Energy management is a key objective in this paper to minimize the electricity cost and automate the protection of devices by appliance scheduling and correct power factor. The proposed framework using Wi-Fi technology for the smart community energy systems is illustrated in Figure 1.
The home energy management is a service platform for consumers to monitor and control demand side management effectively. It comprises house devices linked by an integrated device network with consumer comfort as preference. The framework can be used for the control of energy use by various forms of community houses.
At its heart, IoT is an extensive-ranging system of everyday detailed objects connected to the internet, capable of identifying themselves and informing data to objects on an internet network. In our study, IoT is used as a web server for WiFi clients, which are represented by terminal units (TUs), using the BSU (Raspberry Pi3), and all appliances and sensors are connected to these TUs. All home parameters could be related to the Internet to develop IoT structures via this topology. The proposed framework of Raspberry Pi3 and WeMos-D1 was constructed for the MQTT (message queue telemetry transportation) broker. As the portal for the IoT services, the MQTT broker monitored and managed the smart home devices. The advantage of the Internet portal is that the home devices are handled from anywhere in the world. Figure 1 displays the proposed nanogrid system.

3.1. Smart Device Classification

The tasks of consumer usability have been achieved, as future consumers of intelligent devices have been diverse in houses such as launders, boilers, dish washers, fridges, TVs, heating, and lighting systems. There are two key types of devices below: The shiftable devices are controlled and scheduled over scheduling periods times by the energy management system ( T = 24 ). These machines are scheduled to reduce the energy bill from one slot to other time slot. Shiftable equipment has a particular load profile in which versatile delays occur in the stable period of consumption. For example, the washing machine, vacuum cleaner, dishwasher, and dryer, and so on. Suppose the handling system collection is denoted as D 𝓂 , 𝓃 and 𝒹 𝓂 = 1 , , D 𝓂 , 𝓃 for 𝓃 N for each user [52].
𝓂 , 𝓃 = 𝒹 𝓂 D 𝓂 D 𝓂 , 𝓃
where 𝓂 , 𝓃 is manageable devices load profile and D 𝓂 , 𝓃 is the manageable devices set.
During operating times T , the energy usage of non-shiftable devices is constant. Unchanging equipment cannot be moved to full time for scheduling and cost savings. Electrical energy consumer profiles include lamps, ventilators, refrigerators, television, etc. Let us define a group of user nonshiftable devices as:
𝓷 𝓶 , 𝓷 = 𝓭 𝓷 𝓶 D 𝓷 𝓶 D 𝓷 𝓶 , 𝓷
The aspiration of an optimization model is to schedule a limited resource of energy for operation of devices based on their period preference and cost of electricity. The devices are operating based on 24 h ahead Time of Uses (ToU) electricity tariff. Here, 𝓃 , 𝓉   is total power consumption of users 𝓃 N in 𝓉 T time slot.
The optimization model aims at estimating the limited energy resource for the service of equipment on the basis of their choice for time and electricity costs. Electrical equipment works under the tariff on energy 24 h ahead of time (TOU). Here, 𝓃 , 𝓉 is the total individual power consumption profile of user 𝓃 N in 𝓉 T time slot.
𝓭 𝓷 = 𝓶 , 𝓷 + 𝓷 𝓶 , 𝓷
𝓭 𝓷 , 𝓽 = 𝓽 = 1 T 𝓭 𝓷 , 𝓽
In community of N user, T   is the total combined power profile of all customers in community. Let denote 𝓃 , 𝓉   be a power profile of user 𝓃 N at time 𝓉 T ,
T = 𝓷 N 𝓽 T 𝓭 D 𝓭 𝓷 , 𝓽 𝓽 T
In order to minimize the facts and different demand peaks in other periods of the day, each customer has their own energy consumption schedule. For evaluating the peak to average (PAR) ratio [52], a combined power profile is used. This is the characteristic shape of all machine demand. In Equations (6)–(8), PAR is defined. Calculate the peak and average load levels in this regard first.
p e a k = m a x T
a v g = 1 T 𝓷 = 1 N 𝓽 = 1 T 𝓷 , 𝓽   𝓽 T
P A R = p e a k a v g

3.2. Formulation of Problem

The objective function minimizes the running costs for the devices in individual and community users. The community users have preferences with regard to their idle modes of operating. Equation (9) objective function and constraints in equations below [52].
m i n P 𝓷 = 𝓷 N 𝓽 T 𝓺 Q 𝓭 D ( α 𝓺 𝓭 𝓷 , 𝓽 × 𝓺 𝓭 𝓷 , 𝓽 × P 𝓷 , 𝓽 β 𝓻 𝓷 , 𝓽 × S 𝓻 𝓷 , 𝓽 × P 𝓻 𝓷 , 𝓽 + γ P 𝓷 , 𝓽 × L L 𝓷 , 𝓽 × P P 𝓷 , 𝓽 )
where, γ P 𝓃 , 𝓉 is the decision variable for energy storage, N is the total users number, T is a time, Q is load type, D is the total devices number, α 𝓆 𝒹 𝓃 , 𝓉 is the decision variable for devices scheduling, P 𝓃 , 𝓉   is electricity cost with respect to time 𝓉 , S 𝓻 𝓃 , 𝓉 is the decision variable for energy, L L 𝓃 , 𝓉 is electricity storage at time 𝓉 , and 𝓆 𝒹 𝓃 , 𝓉   is the power profile of home load devices with respect to time 𝓉 ,

3.2.1. Period Preference of Operation

The willing factor of devices operation, the binary matrix, is used. This provides the time to run the devices in a t time slot with the desired 𝓌 𝓆 𝒹 𝓃 , 𝓉 . Therefore, home users tend to run some equipment more during one day and substitute it with other equipment. These devices work according to the preference for the operating period.
P 1 : α 𝓺 𝓭 𝓷 , 𝓽 = α 𝓺 𝓭 𝓷 , 𝓽 × 𝔀 𝓺 𝓭 𝓷 , 𝓽

3.2.2. Variable Decision

The constraint P 2 is decision variable of devices OFF and ON. When the decision variable is 1, the device is ON, and when it is 0, the device is OFF. The constraint P 3 is the decision variable of the user for self generation energy. When β 𝓇 𝓃 , 𝓉 = 1 , the user is a prosumer, and β 𝓇 𝓃 , 𝓉 = 0 for user is a consumer. The consumer buys the energy from the community microgrid or from the utility grid [52].
P 2 : α 𝓺 𝓭 𝓷 , 𝓽 { 0 , 1 } 𝓺 ,   𝓽 T
P 3 : β 𝓻 𝓷 , 𝓽 { 0 , 1 } 𝓺 ,   𝓽 T
P 4 : γ P 𝓷 , 𝓽 { 0 , 1 } 𝓺 ,   𝓽 T

3.2.3. Task Completion of Devices

In the power profile calculation, the intelligent devices must be conscious of energy usage and working life, and various running times of various home load devices.   𝓉 𝓆 𝒹   is the operation time of d t h devices in T time slot in P 5 . α 𝓆 𝒹 𝓃 , 𝓉 is the decision variable to turn OFF or ON the device. The constraints P 5 and P 6 are continuous time to accomplish the task, and it has to remain ON at time T , until it finishes the task. It gives the start time and end time of devices. For example, if the washing machine starts to run, it will continue to function until the final time allocation. For the continuous operation of a particular system in the appropriate time slot, P 6   is formulated. 𝓉 𝓈 is the device’s starting time.
P 5 : 𝓽 = 1 T α 𝓺 𝓭 𝓷 , 𝓽 = 𝓽 𝓺 𝓭 𝓺 ,   𝓽 T
P 6 : 𝓽 = 𝓽 𝓼 𝓽 𝓼 + 𝓽 𝓺 𝓭 1 α 𝓺 𝓭 𝓷 , 𝓽 = 𝓽 𝓺 𝓭 𝓺 ,   𝓽 T

3.2.4. Sequence Priority of Devices

When another device completes the operating period, the device will begin operation. Unless the washing machine is operationally calibrated, a dryer machine will not operate. 𝓈 𝒾 is group of these kind of loads. In each time period, the decision variable chooses the single devices of each party.
P 7 : 𝓭 𝓼 𝓲 α 𝓺 𝓭 𝓷 , 𝓽 = 1 𝓺 ,   𝓽 T

3.3. The Price

The price signal is obtained from microgrid community. Our function optionally covers the power grid and the quantity of electricity for community level imports and exports. For the procurement of power from the community grid, a dynamic price system is used. It is meant to be known, and cannot change the price of electricity after the announcement. The costs, rates, time of use (ToU) and real time pricing (RTPs) are the basis for these prices. Consumers can choose the price scheme free of charge. At different times in a day, the cost of the same load can differ. Electricity in the neighborhood microgrid is cheap in the daytime and costly to buy from the power grid, or vice versa at night. The energy price depends on energy use and energy use time in one day.
P 𝓷 , 𝓽 = { P 𝓻 = 0.3 P 𝓫 = 0.7 P 𝓰 > P 𝓫 > P 𝓻 i f     𝓻 𝓼 𝓪 = 1 i f   𝓫 𝓪 = 1 O . W }
where P 𝓃 , 𝓉 is electricity tariff, P 𝓇 and P 𝒷 are the electricity price from community nanogrid, and P is the electricity purchase from utility grid.
The flow chart of proposed methodology is shown in Figure 2.

4. Proposed Internet of Energy Communication Platform

Constructing an energy-management distributed Internet of Energy (IoE) base is a demanding job. The tasks that the platform must perform are: (1) the integration of the microgrid tools in the communication system and (2) interconnected devices with the IoE cloud for control and monitoring. The proposed IoE communication network consists of four separate layers for carrying out these activities, as depicted in Figure 3. A description of every layer is given below.
(a)
A things layer that incorporates accessible hardware for controlling/sensing the status of the thing.
(b)
Layer of network that describe the networks and protocols utilized for linking the thing.
(c)
Layer of service producing and handling the resources as necessary. This layer depends on the technology of middleware that offers messaging and routing cover to back run time switching between RR, and publishes and advocates communication patterns to assimilate MG services and features in IoE.
(d)
IoE application cloud layer: The top of the design is this layer, which is responsible for data stowage and analytics. The application layer includes custom MG applications which utilize the data of things.
The HEM has to administer the proposed algorithm by assimilating historical data along with the user input preferences. Hence, a decision has to be made speedily. Furthermore, the state action pair and user inclinations change swiftly during the day and the HEMaaS platform has to offer service in a timely way [53]. Thus, in this study, a Linux based fast microcontroller called Raspberry Pi3 has been utilized. Raspberry Pi3 runs the proposed algorithm by utilizing python programming language.
The web-driven Node-Red programming model has been selected to employ the controlling setup of HEMaaS platforms.
In this research, the BSU and its home appliances communicate via Wi-Fi using a low-power, lightweight, and secure protocol. The MQTT [54] protocol is optimized for a high latency or non-deployable network. MQTT provides network data protection on three levels. It uses a broker in which customers who subscribe to a particular topic publish messages. The topics are described inside the home as a hierarchy of devices [(Room)/(Device)/D1/RaspberryPi]. This pattern was used by the Mosquito [55] broker. The broker supports username and password protection, X.2 certification, and client identifier for HEM network corroboration, and thus intrusion can be prevented. For more details, it is presumed that every microcontroller board of TUs is identified through the single name, and Figure 4 is deployed for the topics.

5. Architecture Proposed Communication

5.1. MQTT Knowledge

The MQTT is the lightweight protocol that uses a network bandwidth with the fixed header of 2 bytes effectively. MQTT operates on the transmission control protocol (TCP) and ensures messages are sent from the node into the server.
There are three key player in MQTT messaging: the MQTT broker, the MQTT publisher, and the MQTT subscriber. The subscriber and publisher of MQTT are not directly connected and are not usually operating concurrently by an IP address. The MQTT Broker is a network gateway that receives, filters, prioritizes, and distributes messages from publishers from up to thousands of simultana-connected MQTT subscribers. The MQTT broker is responsible for customer authorization and the initialization process for communication. For publishing info, MQTT publishers use custom themes to subscribe to clients. MQTT protocol does not allow metadata marking. MQTT topic management can then present metadata for the message load and become considerable in order to attach meaningful attributes to the subject. MQTT is a string with a multi-level, multi-attribute, hierarchical structure. A forward slash in the theme tree separates each stage [56]. These subjects can be updated for routing information. The initialization of connection by exchanging control packet between broker and clients is shown in Figure 5a. The check packets for Link, CONNAC, PUBLISH, PUBACK, SUBACK, SUBSCRIBE, etc., contain specifics of the transmission, theme, and payload quality of service (QoS). The components of the MQTT contact are illustrated in Figure 5b.

5.2. Proposed Architecture Design Specifications

Figure 6 provides an overview of the proposed hierarchical platform for intelligent building with a physical layer, control layer, and cyber layer. The proposed hybrid platform consists of two communication layers. The smart building devices publish, in their first layer (local layer) for event/measurement reporting, MQTT message to the Building MQTT Clients (BMC), and subscribed for the control/protection intent of BMC published MQTT messages. The second (global) layer consists of BMC-cloud interactions via HTTP POST/GET requests. Each system is fitted with a Wi-Fi module in the proposed architecture, connects to a local portal, and regularly publishes measures on a specially specified theme. The BMC covers all topics and publishes the measurements obtained on a cloud channel. The cloud’s aggregated data can be obtained through the Node-Red cloud interface, which operates an algorithm for the allocation of devices. The algorithm’s results are passed via the BMC from the cloud to the appliances. In the event of a partial communication breakdown in any stage (local or global), the proposed architecture provides resilience. In other words, the BMC is intended to act as a local control (backup controller) for building devices in the event of high network latency or communication connections breakdown. In the results section of this paper, this BMC feature is indicated in a case scenario.

6. Hardware Design of Proposed System

The system hardware comprises one BSU, a wide range of terminal lights (TU), air conditioner, freezer, refrigerator, fans, water level sensors, etc. The following details:

6.1. Base Station Unit

The base station unit (BSU) plays a key part in the proposed system. The BSU hardware comprises a Raspberry Pi3 board. The BSU is in charge of evaluating and diffusing the terminal unit’s data to the web page of the owner. In order to create the Wi-Fi link to which terminals will connect, the BSU needs to be configured in the point of access mode. The Mosquito, an open-source message broker that uses the MQTT protocol, is built in BSU. MQTT provides a lightweight (2 Byte Fixed Header) message management technique using a publishing/subscription model. The internal BSU building for the use of the device is shown in Figure 7.

6.2. The Terminal Units

The Terminal Unit (TU) represents a sub-unit of the wireless sensor network (WSN) setup. Every TU contains a processor, sensor, power module, and wireless communication. TU is a system in charge of gauging water level, current, humidity, temperature, and voltage, as per the sensor content in the node.
The TU controller is a Wemos-D1 board that is in charge of collecting and processing sensor data and conveying acquired information to the BSU. Figure 8 depicts the internal setup of a TU.

7. Correction of Power Factor

The ratio of active power (kW) to apparent power (kVA) consumed by an electrical load is known as the power factor (PF) [57]. It may also be understood as ratio of real power use against the total provided power. An inadequate power factor leads to several issues like higher kVA rating of the electricals, higher conductor requirements, relatively ineffective voltage regulation, and higher copper loss, among others. The power factor of a system may be improved using numerous methods like the use of a static capacitor or a synchronous condenser; however, these techniques are either not cost-effective or are inefficient. To overcome these shortcomings, this algorithm based on reactive power was formulated. This algorithm is relatively inexpensive and much more efficient compared to the other techniques. A capacitor is connected to the circuit to have the power factor approach unity to the best possible extent. Capacitor use should be determined based on the reactive power requirement—kVAR. An automatic power factor controller enhances the PF when it falls below a specified threshold. There is a steady increase in energy requirement where both industry and domestic loads are being increasingly inductive. Electrical loads of an inductive nature are the primary reason for a reduced power factor [58]. This section presents a new method to correct the power factor depending on the reactive power method. The mathematical expression for PF is stated in Figure 9.
c o s = R P A P = P F
The benefits of improving power factor can be defined from the equations below:
R P = I × V × cos
I = P V × cos
A P = R P cos
where RP is the Real Power, AP is the Apparent Power, PF is the Power Factor, I is the Current, V is the Voltage, and RAP is the Reactive Power
In the nonsinusoidal system, the Equation (18) changes into Equation (22):
P F = R P A P = R P R P 2 + R A P 2 + D 2
Even without reactive power, the power factor remains below 1, due to its non-sinusoidal deforming power. The cancelation of reactive power does not necessarily increase the power factor of the sinusoidal device. It is likely that the deformation power will increase further by reducing the reactive power. In non-sinusoidal mode, the power factor can sometimes even worsen if condensers are added [49]:
ρ = R A P R P
τ = D R P 2 + R A P 2
Equation (22) turns into Equation (23), where cos ζ is a notation given by Equation (26):
P F = R P A P = R P R P 2 + R A P 2 × R P 2 + R A P 2 R P 2 + R A P 2 + D 2 = cos × cos ζ
cos ζ = R P 2 + R A P 2 R P 2 + R A P 2 + D 2 < 1
The power factor expression is rewritable as Equation (27):
P F = 1 1 + ρ 2 × 1 1 + τ 2
The definition of the power factor in a non-sinusoidal system does not express the degree of power used available in network, as harmonic sources are not the network generators, but non-linear receivers.
Two power factor values have been described and calculated in the non-sinusoidal mode: the power factor for the basic component (fundamental 50/60 Hz or DPF) and the total PF (true/total power factor):
D P F = cos 1 = R P 1 A P 1
P F = R P A P = R P I × V
The total power factor involves the effect of harmonics on apparent power and active power offers information on how effectively the active power is used by the client.
Depending on current and voltage distortions variables, an expression may be defined for total power factor in a non-sinusoidal system. To do this, there are written expressions of apparent power and active power. The active power in the non-sinusoidal system is generated by the number of active powers, which each partly coincide with each harmonic, producing two parts, the fundamental active power and a harmonic active power [49].
R P = h = 1 I h × V h × cos ( h β h ) = h = 1 I h × V h × cos h = P 1 + P h
R P 1 = I 1 × V 1 × cos 1
R P h = h = 1 I h × V h × cos h
The apparent power of an electrical dipole is defined by the voltage and current RMS value, as AP in Equation (33) is indicated. Similarly, the apparent power of the non-sinusoidal system is capable of decomposing itself into the fundamental apparent power of Equation AP1 (34) and Equation (35) harmonic apparent (residual apparent) power of SN. The key obvious power—AP1 and its RP1 and RAP1 components—is of great concern, since they interfere in the circuit’s circulation of power. The apparent power can be expressed in the non-sinusoidal mode in accordance with the voltage RMS and the current RMS values accordingly in Equation (36):
A P = V × I
A P 1 = V 1 × I 1
A P 1 2 = R P 1 2 + R A P 1 2
A P 2 = ( I × V ) 2 = ( V 1 2 + V h 2 ) × ( I 1 2 + I h 2 ) = S 1 2 + S h 2
k d 1 = T H D I = I h I 1 = h 1 I h 2 I 1 2 ,   k d V = T H D V = V h V 1 = h 1 V h 2 V 1 2
where (THDV) is total harmonic distortion factor for voltage and (THDI) is the total harmonic distortion factor for current, both defined below:
P F = R P A P = R P 1 + R P h A P 1 2 + A P N 2 = R P 1 A P 1 × ( 1 + R P h R P 1 ) × D P F 1 + ( A P N A P 1 ) 2 = ( 1 + R P h R P 1 ) × D P F 1 + T H D I 2 + T H D V 2 + ( T H D I + T H D V ) 2
For T H D I > 40 % and T H D V < 5 % , the Equation (39) shows the relation between fundamental power factor and total power factor:
P F = 1 1 + T H D I 2 × D P F = I 1 I × cos 1
The power factor fundamental is nearly at 1, but the overall power factor can be 0.5–0.6 for certain modern devices such as switching power supplies or speed changing equipment. The power factor fundamental and total power factor must be calculated in order to prevent non-compliant situations [49].
Equation (40) shows the arithmetic apparent power:
A P a = x A , B , C A P x = A P A + A P B + A P C = x A , B , C R P x 2 + R A P x 2
where, A P A , B , C , R P A , B , C , and   R A P A , B , C , show active power, apparent power, and reactive power on a phase.
Geometrical apparent power can be written as:
A P g = R P 2 + R A P 2
R P = x A , B , C R P x = R P A + R P B + R P C
R A P = x A , B , C R A P x = R A P A + R A P B + R A P C
However, it can also be written in the form of Equation (44):
A P g = | R P A + R P B + R P C + j × ( R A P A + R A P B + R A P C ) | = | R P + j × R A P |
P F a = R P A P a = R P A + R P B + R P C A P A + A P B + A P C
P F g = R P A P g = R P A + R P B + R P C | A P A _ + A P B _ + A P C _ |
where,
A P A _ = R P A + j × R A P A   ;   A P B _ = R P B + j × R A P B ;   A P C _ = R P C + j × R A P C
R A P A = R P A 2 + R A P A 2 + D A 2 ;   R A P B = R P B 2 + R A P B 2 + D B 2 ;   R A P C = R P C 2 + R A P C 2 + D C 2
The apparent arithmetic power is:
A P a = A P A + A P B + A P C
where geometrical apparent power is given in (48), and its components are given in (49):
A P g = R P 2 + R A P 2 + D 2
R P = R P A + R P B + R P C ,   R A P = R A P A + R A P B + R A P C ,   D = D A + D B + D C
The term equal apparent power is used to describe an apparent intensity in the case of an unbalanced load. In the same way as we have an obvious capacity for balance loads, this is connected to losses in power lines and transformers. Compared to Equation (52), an equivalent current I e and an equivalent phase voltage V e can be defined in Equation (53):
A P = 3 × V × I
A P e = 3 × V e × I e
The equivalent voltage is given by Equation (54) for a three phase circuit with a neutral conductor:
V e = V a 2 + V b 2 + V c 2 3
The equivalent voltage can be calculated with Equation (55) for a three-phase circuit without a neutral conductor:
V e = V A B 2 + V B C 2 + V C A 2 9
The RMS value of the equivalent current is evaluated according to the RMS values of the currents, I A , I B , and I C in Equation (56):
I e = I A 2 + I B 2 + I C 2 3
For the particular case of a balanced and linear load, we have V e = V, I e = I A = I B = I C , and the apparent power is written according to Equation (57):
A P e = A P = 3 × V × I
Equivalent power-factor results in Equation (58):
P F e = R P A P e
The automated power factor correction (APFC) system proposed in the study relies on a microcontroller-based system to control capacitor control. This work uses a system comprising of three capacitors for the APFC system, and a series connection between the microcontroller and the capacitors. The intent is to have the microcontroller determine the system PF, voltage, and current levels. Subsequently, the microcontroller should compute the number of capacitors required to achieve the desired power factor level. The primary components comprising the system are capacitors, microcontroller, interfacing devices (voltage, current, and PF), contactors, and relays.
The system uses a 220 V supply and uses a potential transformer (PT) to step down the voltage to 9 V and then the AC supply is converted to less than 5 volts to provide a signal appropriate for the microcontroller. A current transformer (CT) is attached to the load to determine the current. The CT output is fed to the current sensing circuit, and the output feeds to the analogue input of the microcontroller. Subsequently, the microcontroller computes the PF and switches the capacitors required for the circuit. Circuit parameters like voltage, current, apparent power, and real power are shown on a web page. The schematic of proposed APFC system is illustrated in Figure 10.

7.1. Voltage Measurement

The potential transformer (PT), as depicted in Figure 11b, converts the 220 V input to 9 V. Since the microcontroller accepts an analogue input in the 0–5 V range, it is essential to step down the 9 V output of the transformer in this range.
The RMS voltage reading is required to determine the apparent and real power values and, therefore, the power factor. An AC/AC power transformer may be utilized for this purpose. The transformer steps down the high voltage, and then a conditioning circuit is employed to adapt the PT output signal. The positive peak value for a 9 V signal is +12.727 V, while the negative peak is −12.727 V. The conditioning circuit should be able to change the transformer output within a 0–5 V signal range, i.e., the positive peak should not exceed 5 volts, while the negative peak should be higher than 0 volts.
The PT output waveform is sinusoidal, and a voltage divider attached across the transformer terminals is used to scale down the voltage. Furthermore, the signal shift is achieved using the addition of one more voltage divider connected to the power source of the microcontroller. The output should be in the 0 V to 5 V reference range required for the analogue-to-digital converter (ADC). The circuit diagram for the voltage sensing circuit is depicted in Figure 11.
The PT output is scaled using the two resistors R1 and R2 that form the voltage divider. The circuit output is smoothened using C1, which removes the ripples from the output. The 2.5 V signal is achieved across R3 and R4, which act as voltage dividers.
P O V   =     R 1 ( R 2   +   R 1 )   ×   P I V =   10 k ( 10 k   +   100 k ) ×   12.72 =   1.156   V
where POV is the peak output voltage, PIV is the peak input voltage
P P V = 2 × P O V = 2 × 1.156 = 2.312   V  
where PPV is the peak to peak voltage.
Resistors R3 and R4 had a resistance of 470 k ohm and facilitated the voltage signal shift. The other microcontroller also uses a supply of 5 V, and the resulting sinusoidal waveform is
P o s i t i v e   p e a k   =   R M V 2   +   P P V 2 =   5 2 + 2.312 2 = 3.656   V
where RMV is the reference microcontroller voltage
N e g a t i v e   p e a k   =   R M V 2   P P V 2 =   5 2 2.312 2 = 1.344   V
Using Equations (61) and (62), it can be seen that the positive peak voltage is 3.65 V, while the negative peak is 1.344 V, both of which are in the acceptable voltage range of the microcontroller.

7.2. Current Measurement

Using a current transformer with microcontrollers requires current transformer output to be scaled so that the signal is in the acceptable range for microcontroller input. The current sensing circuit diagram is depicted in Figure 12.
Resistance computation requires the CT signal to provide a signal that crosses the resistor. Since the maximum current is 100 A, the same value is selected as the CT current. The peak value of current is specified as:
P P I   =   2 ×   I = 1.41 × 100 = 141   A
where PPI is the primary peak current and I is the RMS current
Furthermore, the secondary coil peak current is given by:
S P I   =   P P I N = 141 2000 = 70   mA
where SPI is the secondary peak current and N is the number of turns.
The load resistor should have a voltage value equivalent to half of the microcontroller’s reference voltage while functioning under a peak current to increase voltage resolution.
B R   =   R M V 2 S P I =   2.5   V / 0.0707   A   =   35.36   Ω
where BR is the burden resistance.
The value of the burden resistance is kept at 33 Ω (and not 35.36 Ω), since that value is not available on a standard resistor.
P C T O   =   2 ×   I = 2 × 50   mA =   70.71   mA  
where PCTO is the peak current transformer output
P P C T O = 2   × P C T O =   2 × 70.71   mA =   141.42   mA
where PPCTO is the peak to peak current transformer output
P P V   =   P P C T O × B R =   141.42   mA   ×   33     =   4.66   V
The voltage, as measured between the peaks, is 4.66 V, which is in the operational range of the microcontroller. The voltage ripples in the output are eliminated using a capacitor ( C 1 ), and the output waveform is smoother. Resistors ( R 3 ) and ( R 4 ) form the voltage divider that is used to get the 2.5 V signal. The microcontroller has an operational voltage of 5 V, and the sinusoidal waveform has negative and positive peaks. The positive peak may be calculated using Equation (61):
P o s i t i v e   p e a k =   5 2 +   4.66 2 = 4.83   V
The negative peak is determined with Equation (62) as:
N e g a t i v e   p e a k = 5 2 4.66 2 = 0.16   V
The positive voltage peak has a value of 4.83 V, while the negative peak stands at 0.16 V, both of which are in the operational range of the microcontroller input.

7.3. Capacitor Bank

The capacitor bank comprises multiple capacitors having different capacitance values. The shunt connection provided between the capacitors provided the adequate value required for correcting the power factor. The reactive power load is a determinant of the capacitance requirement. The proposed system had capacitors having 5 µF, 10 µF, and 20 µF capacitance. Figure 13 shows complete APFC and energy monitoring system.
R A P   =   ( A P ) 2 ( R P ) 2
where RAP is reactive power in VAR, AP is apparent power in VA, and RP is real power in kW
C   =   ( R P / 2 π f   V 2 )
where C is the capacitance in Farad
R A P   =   V 2 × 2 π f C
where V is a voltage, and f is power system frequency.
R e a c t i v e   p o w e r   o f   20   μ F = 5 × 10 6 × 50 × 2 × 20 × 3.14 × 220 2 = 304   V A R
R e a c t i v e   p o w e r   o f   10   μ F = 5 × 10 6 × 50 × 2 × 10 × 3.14 × 220 2 = 152   V A R
R e a c t i v e   p o w e r   o f   5   μ F = 5 × 10 6 × 50 × 2 × 5 × 3.14 × 220 2 = 76   V A R

8. Automatic Protective System Manager

The design of the automatic protective system manager for a smart home is such that it can safeguard television, lamps, fans, refrigerator, and other home appliances from excess current, excess voltage, or drop in voltage situations. The fundamental benefit of such a system is that it can add automatic functionality to turn on and turn off appliances independently based on certain pre-determined criteria and priorities related to over-current, over-voltage, and under voltage. There is a mechanism in the system to make comparisons between actual and set values of voltage and current. The controller is designed to send the trip signal to the intended device whenever these values exceed the threshold values. In this study, the current and voltage values have been between the limits.
V < V M i n   o r   V > V M a x
V M i n < V < V M a x
I < I M i n ,   I > I M a x
where V M i n is minimum voltage, V M a x is maximum voltage, I M i n is minimum current, and I M a x is maximum current.

9. Experimental Results

To experiment and demonstrate the advantages of HEMS over a cloud as a service (HEMaaS), numerous services have been evaluated and implemented over the platform.
In this section, the outcomes of smart energy management as a service implemented with the suggested algorithm over a cloud platform to regulate appliances in a sample smart home have been presented and discussed. As elaborated in the software communication and architecture interface, there is a Raspberry-Pi3 in the main command and control unit (MCCU) organizing the Node-Red platforms. MQTT (Mosquitto) functions as a broker between subscribing home appliances and the MCCU publisher. In order to regulate the home appliances through a MQTT gateway, custom python code using proposed algorithm has been deployed on it, which runs on Raspberry Pi3. In this work, the Node-Red dashboard interface that has been designed is a simple and convenient user interface (UI) that enables a homeowner to access and interact with HEMS over a cloud as a service system. Figure 14 shows the dashboard control and the UI flow design.
During the demand response (DR) event, there are certain challenges with regards to attaining the most optimal or the best schedule for house devices, so that customer loads can be switched to reduce cost of electric power consumption through the proposed rules. As a result, specific advanced optimization procedures are needed to schedule house devices. An optimal schedule controller constitutes of three sub-components that include an optimization technique, schedule condition of customer, and design of suggested schedule controller. Based on appliance priority and customer comfort preference, each appliance is compared against a number of set points, which include power consumption, load priority, and customer preference setting on the water level of tank or the room temperature of air conditioner. Table 1 presents the load priority and the homeowner preference settings. Figure 15 demonstrates the flow of schedule controller conditions in terms of the house devices. In initial stages, data is read from all the connected devices. Thereafter, as shown in Table 1, each appliance is compared against a range of set points. If the overall power consumption is greater than the demand limit (DL), the system algorithm will turn OFF an appliance with the lowest priority starting with REF. The algorithm would further compel the loads to shift their operating time to maintain total power consumption under DL after the DR interval has elapsed.

9.1. The Protocol of the Proposed System

After the software starts operating, the BSU receives a command from a web page, and it is forwarded by the BSU to a TU with an address. All TUs receive addresses from BSU. When the TU address matches the address received from the BSU, then it will interact with received message and execute the command present in the message. Each TU passes the specified parameters in a message and sends these parameters to the BSU with their address. The BSU passes these data to the web page after receiving sensed data from all TUs. The flowchart of the proposed BSU webpage structure is illustrated in Figure 15a. The TU flowchart is also shown in Figure 15b.

9.2. Access of Internet Web Page

In order to access the web page locally, the internet protocol (IP) used is Raspberry Pi3 IP local ports 1880 dedicated to the web-page Node-Red. The local IP is http://192.168.0.104:1880/ui. Ngrok helps convert the Raspberry Pi3 local IP address to a global IP address for page access through the internet from anywhere in the world. The web page http:/4a652641cd68.ngrok.io is accessible during Ngrok’s registration for the web page. Figure 16 shows the internet webpage in any browser, after entering and providing the username and password in the uniform resource locator (URL).

9.3. Result without Corrective Method

The HEMS comprises the GUI (graphical user interface) and related software to facilitate customers in examining individual and total cost, power consumption, voltage, and current of the home appliances; their power factor and apparent power before the proposed algorithm is implemented as displayed in Figure 17. Moreover, every home appliance can also be turned on/off manually using a push button switch available in interface of the dashboard.
The information regarding power consumption is collected in real time for 24 h without the controllers at week days in Iraq. In the case of the weekdays, the individual and the total power consumption of all the home appliances including light, water pump, refrigerator, and air conditioning system have been obtained from HEMS without use of a schedule controller as displayed in Figure 17. The proposed schedule controller that is proposed is used to decrease energy during DR events, taking into consideration many devices per hour for the weekdays.
The total consumption of real power is found to be 277.428 kWh in the case of weekdays. The total consumption of apparent power is found to be 305.416 kWh in the case of weekdays. Additionally, in Iraq, the price is $0.067 per kW/h, and the total cost is found to be $18.5877035 in the case of weekdays. The home appliance performance for energy saving is considered significant for developing better groundwork that can be used by customer.
Furthermore, every home appliance’s performance can be conveniently changed as per the requirement of the customer; for instance, the refrigerator and the air conditioning system function for 24 h on weekdays. To validate the established controller, the proposed schedule controller is compared with no schedule controller. The Appendix A contains details and data of the nanogrid before implementing the proposed correction method

9.4. Result with Corrective Method

Real data representing a residential sector in Iraq were collected to demonstrate the efficiency of the proposed algorithms. The total consumption of real power after applying the proposed algorithm is found to be 271.081 kWh in the case of weekdays. The total consumption of apparent power after applying the proposed algorithm is found to be 298.134 kWh in the case of weekdays. In Iraq, the price is $0.067 per kW/h, and the total cost after applying the proposed algorithm is found to be $16.2648647 in the case of weekdays.
Figure 18 displays the results in the case of weekdays obtained by using developed schedule controller at different time of day. In Figure 18, the proposed HEMS schedule controller can be observed. The outcomes of the schedule controller proposed in this study can significantly lessen peak hour consumption of energy on the weekdays during the DR, whose value amounts to 271.081 kWh per day. Additionally, the outcomes of the developed schedule controller can decrease the energy usage cost as well as correct the power factor value of the home loads.
This Appendix B contains details and data of the nanogrid after implementing the proposed correction method.

10. Discussion

The performance of microgrid communication and control system under various operation modes is investigated. The poor performance of the system of control is due to the limitation of MQTT TCP/IP in distributed communication mode. The MQTT communication protocol is suitable for applications with a simple structure and high data transmission. With the distributed communication system, it can be seen that the optimization system of the microgrid reduces the operating costs. The information regarding power consumption is collected in real time for 24 h without the controllers on weekdays in Iraq. In the case of the weekdays, the individual and total power consumption of all the home appliances including light, water pumps, refrigerators, and air conditioning systems have been obtained from the home energy management system without use of schedule controller. Before applying the proposed algorithm, the total consumption of real power was found to be 277.428 kWh in the case of wee days. The total consumption of apparent power before applying the proposed algorithm is found to be 305.416 kWh in the case of weekdays. The price before applying the proposed algorithm is $0.067 per kW/h, and the total cost is found to be $18.5877035 in the case of weekdays.
After applying the proposed algorithm, the total consumption of real power is found to be 271.081 kWh in the case of week days. The total consumption of apparent power after applying the proposed algorithm is found to be 298.134 kWh in the case of weekdays. In Iraq, the price is $0.067 per kW/h, and the total cost after applying the proposed algorithm is found to be $16.2648647 in the case of weekdays. By comparing applying the proposed algorithm with the traditional algorithm approximately, the schedule controller proposed in this paper achieved an energy saving of 6.347 kWh real power per day, this paper achieved saving 7.282 kWh apparent power per day, and the proposed algorithm in our paper saved $2.3228388 per day.

11. Conclusions

In this study, we have proposed a novel smart energy management employed as a service over the cloud computing platform. This study has presented the implementation of a cloud-based communication platform for appliance-level in smart neighborhood areas with the utility grid. The use of the platform of cloud computing provides the connectivity, interoperability, flexibility, and data privacy, as well as the real-time features essential for energy management. This study is the major contribution to the literature on smart home functioning and it proposes RTES (real-time electricity scheduling) for HEMS, which considers the errors of information prediction. Unlike the majority of the earlier HEMS approaches that revolve around DAES (day-ahead electricity scheduling), we proposed a real-time scheduling system that makes sure that the scheduling of every period is the soundest decision based on information prediction within the upcoming 24 h. The proposed algorithm has a hierarchical architecture with local and global communication layers based on MQTT and HTTP TCP/IP protocols for cloud interactions. The wireless communication (Wi-Fi) is set up between the TUs and the BSU controller. It is also integrated with a novel advanced self-diagnostic system to form a reliable network. Experimental results show that the RTES system gives better performance compared to DAES in terms of total electricity cost payment, and the HEMS integrated with RTES approach can quickly act when there is a sudden variation in the system inputs. The schedule controller proposed in this paper achieved an energy saving of 6.347 kWh real power per day, this paper achieved saving 7.282 kWh apparent power per day, and the proposed algorithm in our paper saved $2.3228388 per day.
The newly designed closed-loop adaptive power factor controller proposed in this paper is a very effective device to compensate for the reactive power of rapidly varying loads. The device has a large number of features that make it very promising for a wide range of industrial applications. The new design ensures the best possible compensation even when some of the switching circuit components fail. The results of the field test, so far, show that the device can provide almost unity (equal 1) power factor at the point of installation regardless of the dynamic variation of the load reactive power. Another advantage of the proposed device was that it could observe and regulate power factor correction distantly using an internet connection from anywhere in the world, enabling easy fine-tuning of the control parameters of the algorithm to possibly obtain better functioning.
Lastly, in order to access the data regarding power consumption of individual load, a reliable web portal related to an IoT environment is created. A graphical user interface (GUI) is provided with plotting of power consumption to examine every appliance’s power usage on daily basis and, further, a database is also provided for energy management, which can also be used for further analysis of the data.
The proposed algorithm results were compared with the previous schedule controller, and the presented results show that the proposed algorithm schedule controller is better than the previousw algorithm. Where the total consumption before is applied, the proposed algorithm found that real power is 277.428 kWh, apparent power is found to be 305.416 kWh, and total cost is found to be $185,877,035 in the case of weekdays. However, the total consumption of real power after applying the proposed algorithm is found to be 271.081 kWh, apparent power is found to be 298.134 kWh, and the total cost after is found to be $16.2648647 in the case of weekdays. From comparing applying the proposed algorithm with previous works, the proposed algorithm in this paper achieved an energy saving of 6.347 kWh real power per day, and saved 7.282 kWh apparent power per day, and the proposed algorithm in our paper saved $2.3228388 per day.
The results revealed that the proposed schedule controller performs better in minimizing the energy consumed by household devices during weekdays, and the power factor is improved. The results indicated that the proposed home energy management system is effective. In addition, the model can control the devices and keep total consumption of residential energy below the given demand limit.
Future extension of this work may include the integration of the LoRaWAN network with the proposed IoT architecture, because the use of the LoRaWAN technology could lead to a very promising solution, due to its good coverage capabilities (both in outdoor and in hybrid environments), whereas its most critical aspect is represented by the relatively low data throughput and duty cycle limitation.

Author Contributions

B.N.A.: writing—original draft, methodology, software, and validation; B.H.J.: supervisor, formal analysis, resources, investigation, editing, and writing—review; M.D.E.: funding, writing—review, and editing; J.M.G.: supervision, writing—review, and editing. All authors have read and agreed to the published version of the manuscript.

Funding

J. M. Guerrero is supported by VILLUM FONDEN under the VILLUM Investigator Grant (no. 25920): Center for Research on Microgrid (CROM); www.crom.et.aau.dk.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

This appendix contains details and data of the nanogrid before implementing the proposed correction method as shown in Table A1.
Table A1. The nanogrid data before implementing the proposed correction method.
Table A1. The nanogrid data before implementing the proposed correction method.
Real PowerApparent PowerCurrentVoltagePower FactorCost ($)
475.86614.512.83217.230.770.03188262
473.84554.462.55217.320.850.03174728
473.02535.92.47217.240.880.03169234
472.39527.672.43216.940.90.03165013
470.14523.082.41216.910.90.03149938
469.15520.882.4217.210.90.03143305
493.4540.332.49217.080.910.0330578
542.63582.222.69216.10.930.03635621
512.8557.012.57216.930.920.0343576
485.92518.752.42217.040.910.03255664
463.84515.762.2216.930.90.03107728
465.45517.212.39216.080.90.03118515
463.21515.142.38217.080.90.03103507
462.49515.972.38216.590.90.03098683
472.621050.722.38216.770.90.03166554
967.211052.074.86216.010.920.06480307
961.871046.774.87216.080.920.06444529
964.551050.064.852160.920.06462485
961.951047.564.862160.920.06445065
964.311049.734.85216.020.920.06460877
961.861047.614.71215.990.920.06444462
966.741052.24.86216.040.920.06477158
981.541064.34.85216.210.920.06576318
955.781040.444.87216.210.920.06403726
964.621051.234.92215.240.920.06462954
964.581050.134.83216.20.920.06462686
966.71052.324.86216.190.920.0647689
955.041039.344.86216.220.920.06398768
963.631049.024.87215.310.920.06456321
964.781045.294.83216.150.920.06464026
981.091061.714.85216.10.920.06573303
962.271045.934.84216.090.920.06447209
960.881045.264.91216.010.920.06437896
964.421048.734.84216.010.920.06461614
876.99996.94.84206.040.880.05875833
830.9989.84.85204.190.840.0556703
915.91132.15.51205.150.810.0613653
907.91106.95.48202.080.820.0608293
858.31100.25.5200.180.780.0575061
865.71123.95.54203.030.770.0580019
1113.991189.655.54215.960.940.07463733
1112.361190.235.51216.080.940.07452812
1112.641188.965.51216.10.930.07454688
1112.251180.525.51216.090.940.07452075
1105.181338.995.5215.240.940.07404706
1254.891355.375.48218.040.940.08407763
1274.11340.566.14218.040.940.0853647
1256.641339.156.22218.140.940.08419488
1255.681327.726.15218.080.940.08413056
1244.341336.226.14216.970.940.08337078
1252.11341.246.12217.860.940.0838907
1257.731342.936.13217.950.940.08426791
1258.851341.326.15217.980.940.08434295
1257.561336.546.16218.190.940.08425652
1252.521311.776.15217.90.940.08391884
1264.311303.216.13218.090.940.08470877
1273.931311.186.08217.890.940.08535331
1260.571311.546.07218.220.940.08445819
1253.341313.086.08217.940.940.08397378
1244.791302.016.08217.010.940.08340093
1225.251300.726.09214.80.940.08209175
1223.931317.926.06214.720.940.08200331
1240.731325.666.06215.80.940.08312891
1249.911312.766.11215.740.940.08374397
1235.751588.176.14215.720.940.08279525
1445.921586.066.09217.30.910.09687664
1444.081574.447.31217.220.910.09675336
1433.641585.27.3216.260.910.09605388
1442.971590.217.28217.180.910.09667899
1449.791594.547.3217.150.910.09713593
1455.821566.927.32217.150.910.09753994
1427.811586.837.34216.20.910.09566327
1445.281582.667.25217.250.910.09683376
1439.391580.337.3217.130.910.09643913
1438.461691.557.29217.070.910.09637682
1552.841702.327.28217.850.920.10404028
1565.741678.327.76217.730.920.10490458
1540.681691.747.82216.980.920.10322556
1552.161697.297.73217.870.920.10399472
1556.831689.337.76217.650.920.10430761
1549.581693.787.8217.70.920.10382186
1553.911693.137.76217.760.920.10411197
1554.291690.477.78217.650.920.10413743
1550.951679.357.78217.580.920.10391365
1539.221692.87.77216.660.920.10312774
1552.11684.857.75217.510.940.1039907
15481692.647.78216.630.940.103716
1551.621692.777.78217.640.930.10395854
1552.831694.757.78217.830.940.10403961
1554.71690.457.77217.690.930.1041649
3932.484240.7819.8214.260.930.26347616
3929.954198.3519.65214.160.940.26330665
3928.134195.7819.62214.090.940.26318471
3917.614199.2919.61214.130.930.26247987
39254225.9619.59214.180.930.262975
3909.694232.4119.61214.240.930.26194923
3896.184235.8319.66214.10.930.26104406
3874.044177.7519.68214.120.930.25956068
3861.34221.0419.71214.170.930.2587071
3822.264233.4619.53213.260.930.25609142
3947.014221.2719.64215.090.930.26444967
3949.844176.2819.68214.980.930.26463928
3951.074225.7419.64213.950.930.26472169
3896.594194.0919.52214.890.930.26107153
3942.114211.219.66214.20.930.26412137
3920.64267.0419.58217.980.920.2626802
1543.11692.347.76218.050.910.1033877
1542.231691.097.76217.890.910.10332941
1540.161688.457.77217.90.910.10319072
1544.461692.027.76217.980.910.10347882
1561.91705.457.75218.060.910.1046473
1542.711691.917.76218.130.920.10336157
1541.231690.387.82217.980.910.10326241
1545.521693.067.76218.110.910.10354984
1422.911553.997.75217.820.910.09533497
1415.971549.917.77218.090.920.09486999
1405.531540.097.13218.190.910.09417051
1409.881545.117.1217.910.910.09446196
1410.921545.27.07218.10.910.09453164
1394.471527.837.08218.130.910.09342949
1408.971544.527.08217.040.910.09440099
1410.471543.417.04218.030.910.09450149
1411.571545.597.082180.910.09457519
1412.061545.797.08217.960.910.09460802
1425.611556.597.09218.150.910.09551587
1410.251544.087.09218.010.920.09448675
1407.531540.917.14218.030.910.09430451
1419.511552.697.08217.980.910.09510717
1413.091545.917.07218.120.910.09467703
1428.691567.77.12218.190.910.09572223
1419.341566.297.09219.630.910.09509578
1416.461568.457.15219.670.910.09490282
1423.391551.447.11219.530.910.09536713
1420.041562.487.11219.680.910.09514268
1305.091454.537.13219.610.910.08744103
1294.931441.77.12218.690.90.08676031
1312.511461.876.65217.550.90.08793817
1310.421457.916.63218.730.90.08779814
1312.31461.176.68218.620.90.0879241
1311.321458.436.67218.670.90.08785844
1312.991461.26.68218.50.90.08797033
1319.751466.026.67218.650.90.08842325
1307.751455.266.68218.520.90.08761925
1313.561461.666.71218.620.90.08800852
1115.571203.996.66218.670.90.07474319
1118.821206.736.68217.570.930.07496094
1105.51193.455.53217.350.930.0740685
1120.151209.375.55216.650.930.07505005
1123.191211.815.51217.760.930.07525373
1121.761210.395.55217.640.930.07515792
1119.641206.985.57217.580.930.07501588
1154.281238.235.56216.650.930.07733676
1145.21228.325.57217.610.930.0767284
1124.681213.895.69216.590.930.07535356
1021.851130.165.67217.840.930.06846395
1027.791134.65.57219.40.90.06886193
1021.321129.815.15219.650.910.06842844
1017.411124.255.17219.440.90.06816647
1035.371144.555.15218.540.90.06936979
1048.391167.685.14220.320.90.07024213
1051.71169.895.19222.540.90.0704639
1063.251178.555.25222.420.90.07123775
1052.561169.415.26222.570.90.07052152
1046.151164.75.3222.280.90.07009205
1035.611112.855.26222.180.90.06938587
1026.721114.645.24220.640.910.06879024
1025.211102.335.12219.480.910.06868907
1026.321105.025.1219.60.910.06876344
1024.111114.295.07219.550.910.06861537
1009.581114.165.08219.570.910.06764186
1010.781115.025.1218.460.910.06772226
1009.181112.325.1218.390.910.06761506
1001.721104.845.11218.470.910.06711524
1021.841123.875.09217.440.910.06846328
811.5944.745.08218.50.910.0543705
808.099405.14220.070.860.05414203
829.01956.484.29219.250.860.05554367
807.769394.29220.190.870.05411992
814.7947.674.34219.190.860.0545849
815.49948.364.28220.080.860.05463783
815.98947.94.31220.160.860.05467066
815.18947.594.31220.230.860.05461706
807.18937.944.3220.20.860.05408106
806.47937.694.3219.130.860.05403349
620.84687.54.28220.460.860.04159628
626.57691.284.28220.460.90.04198019
615.48681.043.12219.450.910.04123716
619.47686.823.14220.40.90.04150449
629.17692.333.1219.430.90.04215439
627.31691.543.12220.280.910.04202977
616.4681.23.16219.320.910.0412988
622.37688.773.14220.310.90.04169879
614.38679.513.11219.440.90.04116346
623.93689.663.13220.530.90.04180331
616.59686.823.1219.370.90.04131153
618.45679.993.13219.350.90.04143615
621.69683.133.11220.570.90.04165323
625.49681.593.12220.530.90.04190783
628.66689.33.12218.720.90.04212022
614.86679.323.14218.970.910.04119562
626.61690.843.152200.910.04198287
636.98698.133.1219.940.910.04267766
624.62688.263.14219.760.910.04184954
614.07678.673.17218.940.910.04114269
384.15455.643.13223.980.90.02573805
391.58461.353.1223.770.840.02623586
383.14456.862.03223.920.850.02567038
383.74455.512.06223.980.840.02571058
383.07455.132.04223.790.840.02566569
380.49453.142.03223.810.840.02549283
378.87450.32.03223.120.840.02538429
380.32453.32.02223.670.840.02548144
381.13453.652.02223.90.840.02553571
380.77453.532.03223.80.840.02551159
390.25369.562.03223.050.840.02614675
385.76369.882.03222.990.820.02584592
381.39374.141.66223.090.790.02555313
381.3368.871.68222.010.790.0255471
378.88378.291.66223.020.790.02538496
189.74375.581.7223.140.80.01271258
188.79372.361.8223.170.790.01264893
189.57371.961.68223.350.790.01270119
188.88372.591.67223.280.790.01265496
189.02366.631.67222.130.790.01266434
188.962101.67223.890.790.01266032
188.12210.421.65223.780.890.01260404
188.23209.580.94222.750.890.01261141
186.42207.980.94222.850.90.01249014
185.71207.80.94223.750.90.01244257
116.84208.410.93223.780.890.00782828
114.4210.030.93222.780.90.0076648
191.1215.30.93233.10.890.0128037
193.3215.30.94231.60.90.0129511
190.98216.60.94232.40.890.01279566
190.9217.20.93234.80.890.0127903
200.99216.90.93235.30.950.01346633
122.6128.30.55236.20.950.0082142
118.7124.90.54234.20.950.0079529
119.3127.10.55230.10.950.0079931
409.4584.82.72170.70.0274298

Appendix B

This appendix contains details and data of the nanogrid after implementing the proposed correction method as shown in Table A2.
Table A2. The nanogrid data after implementing the proposed correction method.
Table A2. The nanogrid data after implementing the proposed correction method.
Real PowerApparent PowerPower FactorCost ($)
450.198676581.3718070.90.02701192
448.287606524.5600760.910.02689726
447.511826507.0009460.920.02685071
446.915799499.2147590.90.02681495
444.787133494.872280.90.02668723
443.85052492.7909180.90.02663103
466.79281511.1920530.910.02800757
513.368023550.8230840.930.03080208
485.146641526.9725640.920.0291088
459.716178490.7757810.910.02758297
438.826869487.947020.90.02632961
440.350047489.3188270.90.026421
438.230842487.3604540.90.02629385
437.549669488.1456950.90.02625298
447.133396994.0586570.90.026828
915.052034995.3358560.920.05490312
910990.3216650.920.0546
912.535478993.4342480.920.05475213
910.075686991.0690630.920.05460454
912.30842993.1220440.920.05473851
909.990539991.1163670.920.05459943
914.607379995.4588460.920.05487644
928.6092721006.906340.920.05571656
904.238411984.3330180.920.0542543
912.601703994.5411540.920.0547561
912.56386993.5004730.920.05475383
914.569536995.5723750.920.05487417
903.538316983.2923370.920.0542123
911.66509992.4503310.920.05469991
964.781045.290.920.0578868
981.091061.710.920.0588654
962.271045.930.920.0577362
960.881045.260.920.0576528
964.421048.730.920.0578652
876.99996.90.940.0526194
830.9989.80.950.049854
915.91132.10.90.054954
907.91106.90.960.054474
858.31100.20.930.051498
865.71123.90.90.051942
1113.991189.650.940.0668394
1112.361190.230.940.0667416
1112.641188.960.930.0667584
1112.251180.520.940.066735
1105.181338.990.940.0663108
1254.891355.370.940.0752934
1274.11340.560.940.076446
1256.641339.150.940.0753984
1255.681327.720.940.0753408
1244.341336.220.940.0746604
1252.11341.240.940.075126
1257.731342.930.940.0754638
1258.851341.320.940.075531
1257.561336.540.940.0754536
1252.521311.770.940.0751512
1264.311303.210.940.0758586
1273.931311.180.940.0764358
1260.571311.540.940.0756342
1324.780381387.925560.940.07948682
1315.743031376.224570.940.07894458
1295.089251374.861040.940.07770536
1293.694011393.041440.940.07762164
1311.451611401.222620.940.0786871
1321.154871387.587320.940.07926929
1306.187751678.695690.940.07837127
1528.337441676.465420.910.09170025
1526.392561664.183080.910.09158355
1433.641585.20.910.0860184
1442.971590.210.910.0865782
1449.791594.540.910.0869874
1455.821566.920.910.0873492
1427.811586.830.910.0856686
1445.281582.660.910.0867168
1439.391580.330.910.0863634
1438.461691.550.910.0863076
1552.841702.320.920.0931704
1565.741678.320.920.0939444
1540.681691.740.920.0924408
1552.161697.290.920.0931296
1556.831689.330.920.0934098
1549.581693.780.920.0929748
1553.911693.130.920.0932346
1554.291690.470.920.0932574
1550.951679.350.920.093057
1539.221692.80.920.0923532
1552.11684.850.940.093126
15481692.640.940.09288
1551.621692.770.930.0930972
1552.831694.750.940.0931698
1554.71690.450.930.093282
3634.454713919.390020.930.21806728
3634.116453880.17560.940.21804699
3634.434383877.800370.940.21806606
3629.711653881.044360.930.2177827
3634.541593905.693160.930.2180725
3634.391873911.654340.930.21806351
3634.905733914.815160.930.21809434
3640.443623861.136780.910.21842662
3648.669133901.146030.930.21892015
3647.58783912.624770.930.21885527
3647.883553901.35860.940.21887301
3650.499083859.778190.930.21902994
3651.635863905.489830.910.21909815
3601.284663876.238450.930.21607708
3643.35493892.051760.930.21860129
3623.475053943.659890.920.2174085
1543.11692.340.910.092586
1542.231691.090.910.0925338
1540.161688.450.910.0924096
1544.461692.020.910.0926676
1561.91705.450.910.093714
1542.711691.910.920.0925626
1541.231690.380.910.0924738
1462.175971601.75970.910.08773056
1346.177861470.189220.910.08077067
1339.612111466.329230.920.08037673
1329.73511457.038790.910.07978411
1333.850521461.788080.910.08003103
1334.834441461.873230.910.08009007
1319.271521445.439920.910.07915629
1332.989591461.22990.910.07997938
1334.40871460.179750.910.08006452
1335.449391462.24220.910.08012696
1335.912961462.431410.910.08015478
1348.732261472.649010.910.08092394
1334.200571460.813620.920.08005203
1331.627251457.814570.910.07989763
1342.961211468.959320.910.08057767
1336.887421462.544940.910.08021325
1351.646171483.159890.910.08109877
1342.800381481.825920.910.08056802
1340.075691483.869440.910.08040454
1346.631981467.776730.910.08079792
1343.462631478.221380.910.08060776
1234.711451376.092720.910.07408269
1225.099341363.954590.90.07350596
1241.731321383.03690.90.07450388
1239.754021379.290450.90.07438524
1241.532641382.374650.90.07449196
1240.605491379.78240.90.07443633
1242.185431382.403030.90.07453113
1248.580891386.96310.90.07491485
1237.2281376.783350.90.07423368
1242.724691382.838220.90.07456348
1115.571203.990.90.0669342
1118.821206.730.930.0671292
1105.51193.450.930.06633
1120.151209.370.930.067209
1123.191211.810.930.0673914
1121.761210.390.930.0673056
1211.450481305.952360.930.07268703
1248.930961339.764860.930.07493586
1239.10641329.042240.930.07434638
1216.903761313.428980.930.07301423
1105.64171222.833120.930.0663385
1112.068781227.63720.90.06672413
1105.068241222.454420.910.06630409
1100.837621216.43850.90.06605026
1120.270341238.40310.90.06721622
1134.357981263.429760.90.06806148
1137.93941265.820980.90.06827636
1150.43651275.19110.90.06902619
1138.869921265.301620.90.0683322
1131.93431260.20540.90.06791606
1120.530021204.10370.90.0672318
1110.911041206.040480.910.06665466
1025.211102.330.910.0615126
1026.321105.020.910.0615792
1024.111114.290.910.0614466
1009.581114.160.910.0605748
1010.781115.020.910.0606468
1009.181112.320.910.0605508
1001.721104.840.910.0601032
1021.841123.870.910.0613104
811.5944.740.910.04869
808.099400.960.0484854
829.01956.480.950.0497406
807.769390.930.0484656
814.7947.670.920.048882
815.49948.360.90.0489294
815.98947.90.930.0489588
815.18947.590.910.0489108
807.18937.940.940.0484308
806.47937.690.90.0483882
620.84687.50.960.0372504
626.57691.280.90.0375942
615.48681.040.910.0369288
619.47686.820.90.0371682
595.241249654.995270.90.03571447
593.481552654.2478710.910.03560889
583.159887644.4654680.910.03498959
588.807947651.6272470.90.03532848
581.248817642.8666040.90.03487493
590.283822652.4692530.90.03541703
583.339641649.7824030.90.03500038
585.099338643.3207190.90.03510596
588.164617646.2913910.90.03528988
591.759697644.8344370.90.03550558
594.758751652.1286660.90.03568553
581.702933642.686850.910.03490218
592.8193653.585620.910.03556916
602.630085660.4824980.910.03615781
590.936613651.1447490.910.0354562
580.955535642.0719020.910.03485733
363.434248431.0690630.90.02180605
370.463576436.4711450.940.02222781
362.478713432.2232730.980.02174872
363.046358430.9460740.910.02178278
362.412488430.5865660.930.02174475
359.971618428.7038790.970.0215983
378.87450.30.920.0227322
380.32453.30.910.0228192
381.13453.650.950.0228678
380.77453.530.910.0228462
390.25369.560.920.023415
385.76369.880.940.0231456
381.39374.140.90.0228834
381.3368.870.980.022878
378.88378.290.950.0227328
189.74375.580.910.0113844
188.79372.360.930.0113274
189.57371.960.910.0113742
188.88372.590.930.0113328
189.02366.630.90.0113412
188.962100.90.0113376
188.12210.420.960.0112872
188.23209.580.920.0112938
186.42207.980.90.0111852
185.71207.80.90.0111426
116.84208.410.960.0070104
120.9208222.001710.90.00725525
201.9927227.57210.940.01211956
204.3181227.57210.90.01225909
201.86586228.94620.920.01211195
201.7813229.58040.90.01210688
212.44643229.26330.950.01274679
129.5882135.61310.950.00777529
125.4659132.01930.950.00752795
126.1001134.34470.950.00756601
432.7358618.13360.910.02596415

References

  1. Wang, Y.; Nguyen, T.L.; Syed, M.H.; Xu, Y.; Guillo-Sansano, E.; Burt, G.; Tran, Q.T.; Caire, R. A Distributed Control Scheme of Microgrids in Energy Internet Paradigm and Its Multi-Site Implementation. IEEE Trans. Ind. Inform. 2020. [Google Scholar] [CrossRef] [Green Version]
  2. Zou, H.; Wang, Y.; Mao, S.; Zhang, F.; Chen, X. Distributed Online Energy Management in Interconnected Microgrids. IEEE Internet Things J. 2020, 7, 2738–2750. [Google Scholar] [CrossRef]
  3. Li, S.; Yang, J.; Song, W.; Chen, A. A Real-Time Electricity Scheduling for Residential Home Energy Management. IEEE Internet Things J. 2019, 6, 2602–2611. [Google Scholar] [CrossRef]
  4. Tajalli, S.Z.; Mardaneh, M.; Taherian-Fard, E.; Izadian, A.; Kavousi-Fard, A.; Dabbaghjamanesh, M.; Niknam, T. DoS-Resilient Distributed Optimal Scheduling in a Fog Supporting IIoT-Based Smart Microgrid. IEEE Trans. Ind. Appl. 2020, 56, 2968–2977. [Google Scholar] [CrossRef]
  5. Chen, Y.Y.; Lin, Y.H.; Kung, C.C.; Chung, M.H.; Yen, I. Design and Implementation of Cloud Analytics-Assisted Smart Power Meters Considering Advanced Artificial Intelligence as Edge Analytics in Demand-Side Management for Smart Homes. Sensors 2019, 19, 2047. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  6. Naji Alhasnawi, B.; Jasim, B.H.; Esteban, M.D. A New Robust Energy Management and Control Strategy for a Hybrid Microgrid System Based on Green Energy. Sustainability 2020, 12, 5724. [Google Scholar] [CrossRef]
  7. Alhasnawi, B.N.; Jasim, B.H. Internet of Things (IoT) for Smart Grids: A Comprehensive Review. J. Xi’an Univ. Archit. 2020, 63, 1006–7930. [Google Scholar]
  8. Khalid, A.; Aslam, S.; Aurangzeb, K.; Haider, S.I.; Ashraf, M.; Javaid, N. An Efficient Energy Management Approach Using Fog-as-a-Service for Sharing Economy in a Smart Grid. Energies 2018, 11, 3500. [Google Scholar] [CrossRef] [Green Version]
  9. Bedi, G.; Venayagamoorthy, G.K.; Singh, R.; Brooks, R.; Wang, K.C. Review of internet of things (IoT) in electric power and energy systems. IEEE Internet Things J. 2019, 5, 847–870. [Google Scholar] [CrossRef]
  10. 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]
  11. La Tona, G.; Luna, M.; Di Piazza, A.; Di Piazza, M.C. Towards the Real-World Deployment of a Smart Home EMS: A DP Implementation on the Raspberry Pi. Appl. Sci. 2019, 9, 2120. [Google Scholar] [CrossRef] [Green Version]
  12. Soares, A.; Gomes, A.; Antunes, C.H.; Oliveira, C. A Customized Evolutionary Algorithm for Multiobjective Management of Residential Energy Resources. IEEE Trans. Ind. Inform. 2017, 13, 492–501. [Google Scholar] [CrossRef]
  13. Paterakis, N.G.; Erdinç, O.; Bakirtzis, A.G.; Catalão, J.P.S. Optimal household appliances scheduling under day-ahead pricing and load-shaping demand response strategies. IEEE Trans. Ind. Inform. 2015, 11, 1509–1519. [Google Scholar] [CrossRef]
  14. Nambi, S.N.A.U.; Pournaras, E.; Venkatesha Prasad, R. Temporal Self-Regulation of Energy Demand. IEEE Trans. Ind. Inform. 2016, 12, 1196–1205. [Google Scholar] [CrossRef] [Green Version]
  15. 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]
  16. Nunna, K.H.S.V.S.; Doolla, S. Responsive End-User based Demand Side Management in Multi-Microgrid Environment. IEEE Trans. Ind. Inform. 2014, 10, 1262–1272. [Google Scholar] [CrossRef]
  17. Nadeem, Z.; Javaid, N.; Malik, A.W.; Iqbal, S. Scheduling Appliances with GA, TLBO, FA, OSR and Their Hybrids Using Chance Constrained Optimization for Smart Homes. Energies 2018, 11, 888. [Google Scholar] [CrossRef] [Green Version]
  18. Khalid, A.; Javaid, N.; Mateen, A.; Khalid, B.; Khan, Z.A.; Qasim, U. Demand Side Management using Hybrid Bacterial Foraging and Genetic Algorithm Optimization Techniques. In Proceedings of the 2016 10th International Conference on Complex, Intelligent, and Software Intensive Systems (CISIS), Fukuoka, Japan, 6–8 July 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 494–502. [Google Scholar]
  19. Yan, C.; Xue, X.; Wang, S.; Cui, B. A novel air-conditioning system for proactive power demand response to smart grid. Energy Convers. Manag. 2015, 102, 239–246. [Google Scholar] [CrossRef]
  20. Keshtkar, A.; Arzanpour, S. A fuzzy logic system for demand-side load management in residential buildings. In Proceedings of the 2014 IEEE 27th Canadian Conference on Electrical and Computer Engineering (CCECE), Toronto, ON, Canada, 4–7 May 2014; IEEE: Piscataway, NJ, USA, 2014; p. 15. [Google Scholar]
  21. Liu, Y.; Yuen, C.; Yu, R.; Zhang, Y.; Xie, S. Queuing-based energy consumption management for heterogeneous residential demands in smart grid. IEEE Trans. Smart Grid 2016, 7, 1650–1659. [Google Scholar] [CrossRef]
  22. Ma, J.; Chen, H.H.; Song, L.; Li, Y. Residential load scheduling in smart grid: A cost-efficiency perspective. IEEE Trans. Smart Grid 2016, 7, 771–784. [Google Scholar] [CrossRef]
  23. Shirazi, E.; Jadid, S. Optimal residential appliance scheduling under dynamic pricing scheme via HEMDAS. Energy Build. 2015, 93, 40–49. [Google Scholar] [CrossRef]
  24. Khalid, A.; Javaid, N.; Mateen, A.; Ilahi, M.; Saba, T.; Rehman, A. Enhanced Time-of-Use Electricity Price Rate Using Game Theory. Electronics 2019, 8, 48. [Google Scholar] [CrossRef] [Green Version]
  25. Wang, J.; Liu, F.; Song, Y.; Zhao, J. A novel model: Dynamic choice articial neural network (DCANN) for an electricity price forecasting system. Appl. Soft Comput. 2016, 48, 281–297. [Google Scholar] [CrossRef]
  26. Zhou, L.; Wu, D.; Chen, J.; Dong, Z. Greening the smart cities: Energy-efficient massive content delivery via D2D communications. IEEE Trans. Ind. Inform. 2018, 14, 1626–1634. [Google Scholar] [CrossRef]
  27. Mengelkamp, E.; Notheisen, B.; Beer, C.; Dauer, D.; Weinhardt, C. A blockchain-based smart grid: Towards sustainable local energy markets. Comput. Sci. Res. Dev. 2018, 33, 207–214. [Google Scholar] [CrossRef]
  28. Cortes-Arcos, T. Multi-objective demand response to real-time prices (RTP) using a task scheduling methodology. Energy 2017, 138, 19–31. [Google Scholar] [CrossRef]
  29. Alhasnawi, B.N.; Jasim, B.H. Adaptive Energy Management System for Smart Hybrid Microgrids. In Proceedings of the 3rd Scientific Conference of Electrical and Electronic Engineering Researches (SCEEER), Basrah, Iraq, 15–16 June 2020. [Google Scholar] [CrossRef]
  30. Saadat, J.; Moallem, P.; Koofigar, H. Training Echo State Neural Network Using Harmony Search Algorithm. Int. J. Artif. Intell. 2017, 15, 163–179. [Google Scholar] [CrossRef]
  31. Precup, R.; David, R.; Petriu, E.M. Grey Wolf Optimizer Algorithm-Based Tuning of Fuzzy Control Systems with Reduced Parametric Sensitivity. IEEE Trans. Ind. Electron. 2017, 64, 527–534. [Google Scholar] [CrossRef]
  32. Ahmed, M.S.; Mohamed, A.; Khatib, T.; Shareef, H.; Homod, R.Z.; Abd Ali, J. Real time optimal schedule controller for home energy management system using new binary backtracking search algorithm. Energy Build. 2017, 138, 215–227. [Google Scholar] [CrossRef]
  33. Werminski, S. Demand side management using DADR automation in the peak load reduction. Renew. Sustain. Energy Rev. 2017, 67, 998–1007. [Google Scholar] [CrossRef]
  34. Hosen, M.A.; Khosravi, A.; Nahavandi, S.; Creighton, D. Improving the Quality of Prediction Intervals through Optimal Aggregation. IEEE Trans. Ind. Electron. 2015, 62, 4420–4429. [Google Scholar] [CrossRef]
  35. Marzal, S.; González-Medina, R.; Salas-Puente, R.; Garcerá, G.; Figueres, E. An Embedded Internet of Energy Communication Platform for the Future Smart Microgrids Management. IEEE Internet Things J. 2019, 6, 7241–7252. [Google Scholar] [CrossRef] [Green Version]
  36. Mahapatra, C.; Moharana, A.K.; Leung, V. Energy Management in Smart Cities Based on Internet of Things: Peak Demand Reduction and Energy Savings. Sensors 2017, 17, 2812. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  37. Wang, P.; Liu, S.; Ye, F.; Chen, X. A Fog-based Architecture and Programming Model for IoT Applications in the Smart Grid. arXiv 2018, arXiv:1804.01239. [Google Scholar] [CrossRef]
  38. Sánchez, H.; González-Contreras, C.; Agudo, J.E.; Macías, M. IoT and iTV for Interconnection, Monitoring, and Automation of Common Areas of Residents. Appl. Sci. 2017, 7, 696. [Google Scholar] [CrossRef] [Green Version]
  39. Belcredi, G.; Modernell, P.; Sosa, N.; Steinfeld, L.; Silveira, F. An implementation of a home energy management platform for Smart Grid. In Proceedings of the 22015 IEEE PES Innovative Smart Grid Technologies Latin America (ISGT LATAM), Montevideo, Uruguay, 5–7 October 2015; pp. 270–274. [Google Scholar] [CrossRef]
  40. Park, S.; Choi, M.I.; Kang, B.; Park, S. Design and Implementation of Smart Energy Management System for Reducing Power Consumption Using ZigBeeWireless Communication Module. Procedia Comput. Sci. 2013, 19, 662–668. [Google Scholar] [CrossRef] [Green Version]
  41. Bhuvaneswari, S.; Satish, B.; Mahalaksmi, R. Wireless Home Energy Consumption Control based on prioritised load switching. In Proceedings of the 2015 International Conference on Smart Technologies and Management for Computing, Communication, Controls, Energy and Materials (ICSTM), Chennai, India, 6–8 May 2015; pp. 548–553. [Google Scholar] [CrossRef]
  42. Elkhorchani, H.; Grayaa, K. Novel home energy management system using wireless communication technologies for carbon emission reduction within a smart grid. J. Clean. Prod. 2016, 135, 950–962. [Google Scholar] [CrossRef]
  43. Khamphanchai, W.; Saha, A.; Rathinavel, K.; Kuzlu, M.; Pipattanasomporn, M.; Rahman, S.; Akyol, B.; Haack, J. Conceptual architecture of building energy management open source software (BEMOSS). In Proceedings of the IEEE PES Innovative Smart Grid Technologies, Europe, Istanbul, Turkey, 12–15 October 2014; pp. 1–6. [Google Scholar] [CrossRef]
  44. Li, W.T.; Yuen, C.; Hassan, N.U.; Tushar, W.; Wen, C.K.; Wood, K.L.; Hu, K.; Liu, X. Demand Response Management for Residential Smart Grid: From Theory to Practice. IEEE Access 2015, 3, 2431–2440. [Google Scholar] [CrossRef]
  45. Al Faruque, M.A.; Vatanparvar, K. Energy Management-as-a-Service over Fog Computing Platform. IEEE Internet Things J. 2016, 3, 161–169. [Google Scholar] [CrossRef]
  46. Chen, Y.D.; Zulfan Azhari, M.; Leu, J.S. Design and implementation of a power consumption management system for smart some over fog-cloud computing. In Proceedings of the 2018 3rd International Conference on Intelligent Green Building and Smart Grid (IGBSG), Yi Lan, Taiwan, 22–25 April 2018; pp. 1–5. [Google Scholar] [CrossRef]
  47. Taoa, M.; Zuo, J.; Liu, Z.; Castiglione, A.; Palmieri, F. Multi-layer cloud architectural model and ontology-based security service frame-work for IoT-based smart homes. Future Gener. Comput. Syst. 2018, 78, 1040–1051. [Google Scholar] [CrossRef]
  48. Li, W.X.; Logenthiran, T.; Phan, V.T.; Woo, W.L. Implemented IoT based self-learning home management system (SHMS) for Singapore. IEEE Internet Things J. 2018, 5, 2212–2219. [Google Scholar] [CrossRef]
  49. Coman, C.M.; Florescu, A.; Oancea, C.D. Improving the Efficiency and Sustainability of Power Systems Using Distributed Power Factor Correction Methods. Sustainability 2020, 12, 3134. [Google Scholar] [CrossRef] [Green Version]
  50. Alhasnawi, B.N.; Jasim, B.H. Automated Power Factor Correction for Smart Home. Iraqi J. Electr. Electron. Eng. 2018, 14, 30–40. [Google Scholar] [CrossRef]
  51. Cano-Ortega, A.; Sánchez-Sutil, F.; Hernandez, J.C. Power Factor Compensation Using Teaching Learning Based Optimization and Monitoring System by Cloud Data Logger. Sensors 2019, 19, 2172. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  52. Afzal, M.; Huang, Q.; Amin, W.; Umer, K.; Raza, A.; Naeem, M. Blockchain Enabled Distributed Demand Side Management in Community Energy System with Smart Homes. IEEE Access 2020, 8, 37428–37439. [Google Scholar] [CrossRef]
  53. Adam, G.K. DALI LED Driver Control System for Lighting Operations Based on Raspberry Pi and Kernel Modules. Electronics 2019, 8, 1021. [Google Scholar] [CrossRef] [Green Version]
  54. Liu, X.; Zhang, T.; Hu, N.; Zhang, P.; Zhang, Y. The method of Internet of Things access and network communication based on MQTT. Comput. Commun. 2020, 153, 169–176. [Google Scholar] [CrossRef]
  55. Raj, J.S.; Bashar, A.; Ramson, S.J. Innovative Data Communication Technologies and Application. In Lecture Notes on Data Engineering and Communications Technologies; Springer: Berlin/Heidelberg, Germany, 2019. [Google Scholar] [CrossRef]
  56. Jamborsalamati, P.; Fernandez, E.; Moghimi, M.; Hossain, M.J.; Heidari, A.; Lu, J. MQTT-Based Resource Allocation of Smart Buildings for Grid Demand Reduction Considering Unreliable Communication Links. IEEE Syst. J. 2019, 13, 3304–3315. [Google Scholar] [CrossRef]
  57. Pradhan, S.; Ghose, D.; Singh, A.K. Impact of Power Factor Correction Methods on Power Distribution Network—A Case Study. In Advances in Greener Energy Technologies; Springer: Singapore, 2020. [Google Scholar] [CrossRef]
  58. Kabir, Y.; Mohsin, Y.M.; Khan, M.M. Automated power factor correction and energy monitoring system. In Proceedings of the IEEE 2017 Second International Conference on Electrical, Computer and Communication Technologies (ICECCT), Coimbatore, India, 22–24 February 2017; IEEE: Piscataway, NJ, USA, 2017. [Google Scholar] [CrossRef]
Figure 1. Structure of proposed nanogrid.
Figure 1. Structure of proposed nanogrid.
Sustainability 12 09686 g001
Figure 2. Flowchart of methodology.
Figure 2. Flowchart of methodology.
Sustainability 12 09686 g002
Figure 3. Proposed Internet of Energy platform architecture.
Figure 3. Proposed Internet of Energy platform architecture.
Sustainability 12 09686 g003
Figure 4. An example for following the information between the web page and TU through BSU.
Figure 4. An example for following the information between the web page and TU through BSU.
Sustainability 12 09686 g004
Figure 5. (a) Procedure of protocol MQTT, (b) topic and components of protocol MQTT.
Figure 5. (a) Procedure of protocol MQTT, (b) topic and components of protocol MQTT.
Sustainability 12 09686 g005
Figure 6. Smart home proposed architecture of communication.
Figure 6. Smart home proposed architecture of communication.
Sustainability 12 09686 g006
Figure 7. System BSU internal structure.
Figure 7. System BSU internal structure.
Sustainability 12 09686 g007
Figure 8. The TU structure of the proposed system.
Figure 8. The TU structure of the proposed system.
Sustainability 12 09686 g008
Figure 9. The triangle of power.
Figure 9. The triangle of power.
Sustainability 12 09686 g009
Figure 10. The proposed APFC diagram.
Figure 10. The proposed APFC diagram.
Sustainability 12 09686 g010
Figure 11. (a) Step down voltage circuit diagram, (b) the input and output signal of the circuit diagram.
Figure 11. (a) Step down voltage circuit diagram, (b) the input and output signal of the circuit diagram.
Sustainability 12 09686 g011aSustainability 12 09686 g011b
Figure 12. (a) Step down current circuit diagram, (b) current sensing circuit diagram.
Figure 12. (a) Step down current circuit diagram, (b) current sensing circuit diagram.
Sustainability 12 09686 g012
Figure 13. Complete APFC and energy monitoring system.
Figure 13. Complete APFC and energy monitoring system.
Sustainability 12 09686 g013
Figure 14. User interface design platform (Node-Red platform).
Figure 14. User interface design platform (Node-Red platform).
Sustainability 12 09686 g014
Figure 15. Diagram of the time limit for load priority controls, (a) BSU flowchart, (b) TU flowchart.
Figure 15. Diagram of the time limit for load priority controls, (a) BSU flowchart, (b) TU flowchart.
Sustainability 12 09686 g015aSustainability 12 09686 g015b
Figure 16. Web site and prompt to enter username and password after entering the URL in the browser.
Figure 16. Web site and prompt to enter username and password after entering the URL in the browser.
Sustainability 12 09686 g016
Figure 17. Graphical user interface of proposed HEMS before implementing the proposed algorithm, (a) main page, (b) control panel, (c) real power consumption, (d) apparent power consumption, (e) current of home loads, (f) voltage of home load, (g) power factor of loads, and (h) the cost.
Figure 17. Graphical user interface of proposed HEMS before implementing the proposed algorithm, (a) main page, (b) control panel, (c) real power consumption, (d) apparent power consumption, (e) current of home loads, (f) voltage of home load, (g) power factor of loads, and (h) the cost.
Sustainability 12 09686 g017aSustainability 12 09686 g017bSustainability 12 09686 g017c
Figure 18. Graphical user interface of the proposed HEMS after implementing proposed algorithm, (a) real power consumption, (b) apparent power consumption, (c) power factor of loads, and (d) the cost.
Figure 18. Graphical user interface of the proposed HEMS after implementing proposed algorithm, (a) real power consumption, (b) apparent power consumption, (c) power factor of loads, and (d) the cost.
Sustainability 12 09686 g018aSustainability 12 09686 g018bSustainability 12 09686 g018c
Table 1. Characteristics of load priority and power ratings.
Table 1. Characteristics of load priority and power ratings.
DevicesPriority LoadEffected by under Voltage Effected by over VoltagePriority According CurrentCustomer Comfortable LifestyleMax Number
Refrigerator1yesyesMaybe24 h1
Water pump2yesyesMaybeMaybe1
Freezer3yesyesMaybe24 h1
Fluorescent Light4nonoMaybeMaybe15
Fan5nonoNo24 h6
Air conditioner 6yesyesYesTemperature of room 23–261
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Alhasnawi, B.N.; Jasim, B.H.; Esteban, M.D.; Guerrero, J.M. A Novel Smart Energy Management as a Service over a Cloud Computing Platform for Nanogrid Appliances. Sustainability 2020, 12, 9686. https://0-doi-org.brum.beds.ac.uk/10.3390/su12229686

AMA Style

Alhasnawi BN, Jasim BH, Esteban MD, Guerrero JM. A Novel Smart Energy Management as a Service over a Cloud Computing Platform for Nanogrid Appliances. Sustainability. 2020; 12(22):9686. https://0-doi-org.brum.beds.ac.uk/10.3390/su12229686

Chicago/Turabian Style

Alhasnawi, Bilal Naji, Basil H. Jasim, Maria Dolores Esteban, and Josep M. Guerrero. 2020. "A Novel Smart Energy Management as a Service over a Cloud Computing Platform for Nanogrid Appliances" Sustainability 12, no. 22: 9686. https://0-doi-org.brum.beds.ac.uk/10.3390/su12229686

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