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.
Keywords:
utility grid; internet of things; node red; demand response; cloud platform; MQTT; nanogrid; Raspberry Pi; WeMos-D1 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.
Figure 1.
Structure of proposed nanogrid.
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 (). 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 and for for each user [52].
where is manageable devices load profile and is the manageable devices set.
During operating times , 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:
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 in 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 in time slot.
In community of user, is the total combined power profile of all customers in community. Let denote be a power profile of user at time ,
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.
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].
where, is the decision variable for energy storage, is the total users number, is a time, is load type, is the total devices number, is the decision variable for devices scheduling, is electricity cost with respect to time , is the decision variable for energy, 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.
3.2.2. Variable Decision
The constraint 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 is the decision variable of the user for self generation energy. When , the user is a prosumer, and for user is a consumer. The consumer buys the energy from the community microgrid or from the utility grid [52].
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 devices in T time slot in . is the decision variable to turn OFF or ON the device. The constraints and are continuous time to accomplish the task, and it has to remain ON at time , 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, is formulated. is the device’s starting time.
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.
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.
where is electricity tariff, and are the electricity price from community nanogrid, and is the electricity purchase from utility grid.
The flow chart of proposed methodology is shown in Figure 2.
Figure 2.
Flowchart of methodology.
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.
Figure 3.
Proposed Internet of Energy platform architecture.
- (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.
Figure 4.
An example for following the information between the web page and TU through BSU.
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.
Figure 5.
(a) Procedure of protocol MQTT, (b) topic and components of protocol MQTT.
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.
Figure 6.
Smart home proposed architecture of communication.
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.
Figure 7.
System BSU internal structure.
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.
Figure 8.
The TU structure of the proposed system.
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.
Figure 9.
The triangle of power.
The benefits of improving power factor can be defined from the equations below:
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):
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]:
Equation (22) turns into Equation (23), where is a notation given by Equation (26):
The power factor expression is rewritable as Equation (27):
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):
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].
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):
where (THDV) is total harmonic distortion factor for voltage and (THDI) is the total harmonic distortion factor for current, both defined below:
For and , the Equation (39) shows the relation between fundamental power factor and total power factor:
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:
where, , , and, show active power, apparent power, and reactive power on a phase.
Geometrical apparent power can be written as:
However, it can also be written in the form of Equation (44):
where,
The apparent arithmetic power is:
where geometrical apparent power is given in (48), and its components are given in (49):
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 and an equivalent phase voltage can be defined in Equation (53):
The equivalent voltage is given by Equation (54) for a three phase circuit with a neutral conductor:
The equivalent voltage can be calculated with Equation (55) for a three-phase circuit without a neutral conductor:
The RMS value of the equivalent current is evaluated according to the RMS values of the currents, , , and in Equation (56):
For the particular case of a balanced and linear load, we have = V, , and the apparent power is written according to Equation (57):
Equivalent power-factor results in Equation (58):
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.
Figure 10.
The proposed APFC diagram.
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.

Figure 11.
(a) Step down voltage circuit diagram, (b) the input and output signal of the circuit diagram.
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.
where POV is the peak output voltage, PIV is the peak input voltage
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
where RMV is the reference microcontroller voltage
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.
Figure 12.
(a) Step down current circuit diagram, (b) current sensing circuit diagram.
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:
where PPI is the primary peak current and I is the RMS current
Furthermore, the secondary coil peak current is given by:
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.
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.
where PCTO is the peak current transformer output
where PPCTO is the peak to peak current transformer output
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 (), and the output waveform is smoother. Resistors () and () 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):
The negative peak is determined with Equation (62) as:
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.
where RAP is reactive power in VAR, AP is apparent power in VA, and RP is real power in kW
where C is the capacitance in Farad
where V is a voltage, and is power system frequency.
Figure 13.
Complete APFC and energy monitoring system.
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.
where is minimum voltage, is maximum voltage, is minimum current, and 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.
Figure 14.
User interface design platform (Node-Red platform).
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.
Table 1.
Characteristics of load priority and power ratings.

Figure 15.
Diagram of the time limit for load priority controls, (a) BSU flowchart, (b) TU flowchart.
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).
Figure 16.
Web site and prompt to enter username and password after entering the URL in the browser.
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.


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.
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.


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.
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 Power | Apparent Power | Current | Voltage | Power Factor | Cost ($) |
|---|---|---|---|---|---|
| 475.86 | 614.51 | 2.83 | 217.23 | 0.77 | 0.03188262 |
| 473.84 | 554.46 | 2.55 | 217.32 | 0.85 | 0.03174728 |
| 473.02 | 535.9 | 2.47 | 217.24 | 0.88 | 0.03169234 |
| 472.39 | 527.67 | 2.43 | 216.94 | 0.9 | 0.03165013 |
| 470.14 | 523.08 | 2.41 | 216.91 | 0.9 | 0.03149938 |
| 469.15 | 520.88 | 2.4 | 217.21 | 0.9 | 0.03143305 |
| 493.4 | 540.33 | 2.49 | 217.08 | 0.91 | 0.0330578 |
| 542.63 | 582.22 | 2.69 | 216.1 | 0.93 | 0.03635621 |
| 512.8 | 557.01 | 2.57 | 216.93 | 0.92 | 0.0343576 |
| 485.92 | 518.75 | 2.42 | 217.04 | 0.91 | 0.03255664 |
| 463.84 | 515.76 | 2.2 | 216.93 | 0.9 | 0.03107728 |
| 465.45 | 517.21 | 2.39 | 216.08 | 0.9 | 0.03118515 |
| 463.21 | 515.14 | 2.38 | 217.08 | 0.9 | 0.03103507 |
| 462.49 | 515.97 | 2.38 | 216.59 | 0.9 | 0.03098683 |
| 472.62 | 1050.72 | 2.38 | 216.77 | 0.9 | 0.03166554 |
| 967.21 | 1052.07 | 4.86 | 216.01 | 0.92 | 0.06480307 |
| 961.87 | 1046.77 | 4.87 | 216.08 | 0.92 | 0.06444529 |
| 964.55 | 1050.06 | 4.85 | 216 | 0.92 | 0.06462485 |
| 961.95 | 1047.56 | 4.86 | 216 | 0.92 | 0.06445065 |
| 964.31 | 1049.73 | 4.85 | 216.02 | 0.92 | 0.06460877 |
| 961.86 | 1047.61 | 4.71 | 215.99 | 0.92 | 0.06444462 |
| 966.74 | 1052.2 | 4.86 | 216.04 | 0.92 | 0.06477158 |
| 981.54 | 1064.3 | 4.85 | 216.21 | 0.92 | 0.06576318 |
| 955.78 | 1040.44 | 4.87 | 216.21 | 0.92 | 0.06403726 |
| 964.62 | 1051.23 | 4.92 | 215.24 | 0.92 | 0.06462954 |
| 964.58 | 1050.13 | 4.83 | 216.2 | 0.92 | 0.06462686 |
| 966.7 | 1052.32 | 4.86 | 216.19 | 0.92 | 0.0647689 |
| 955.04 | 1039.34 | 4.86 | 216.22 | 0.92 | 0.06398768 |
| 963.63 | 1049.02 | 4.87 | 215.31 | 0.92 | 0.06456321 |
| 964.78 | 1045.29 | 4.83 | 216.15 | 0.92 | 0.06464026 |
| 981.09 | 1061.71 | 4.85 | 216.1 | 0.92 | 0.06573303 |
| 962.27 | 1045.93 | 4.84 | 216.09 | 0.92 | 0.06447209 |
| 960.88 | 1045.26 | 4.91 | 216.01 | 0.92 | 0.06437896 |
| 964.42 | 1048.73 | 4.84 | 216.01 | 0.92 | 0.06461614 |
| 876.99 | 996.9 | 4.84 | 206.04 | 0.88 | 0.05875833 |
| 830.9 | 989.8 | 4.85 | 204.19 | 0.84 | 0.0556703 |
| 915.9 | 1132.1 | 5.51 | 205.15 | 0.81 | 0.0613653 |
| 907.9 | 1106.9 | 5.48 | 202.08 | 0.82 | 0.0608293 |
| 858.3 | 1100.2 | 5.5 | 200.18 | 0.78 | 0.0575061 |
| 865.7 | 1123.9 | 5.54 | 203.03 | 0.77 | 0.0580019 |
| 1113.99 | 1189.65 | 5.54 | 215.96 | 0.94 | 0.07463733 |
| 1112.36 | 1190.23 | 5.51 | 216.08 | 0.94 | 0.07452812 |
| 1112.64 | 1188.96 | 5.51 | 216.1 | 0.93 | 0.07454688 |
| 1112.25 | 1180.52 | 5.51 | 216.09 | 0.94 | 0.07452075 |
| 1105.18 | 1338.99 | 5.5 | 215.24 | 0.94 | 0.07404706 |
| 1254.89 | 1355.37 | 5.48 | 218.04 | 0.94 | 0.08407763 |
| 1274.1 | 1340.56 | 6.14 | 218.04 | 0.94 | 0.0853647 |
| 1256.64 | 1339.15 | 6.22 | 218.14 | 0.94 | 0.08419488 |
| 1255.68 | 1327.72 | 6.15 | 218.08 | 0.94 | 0.08413056 |
| 1244.34 | 1336.22 | 6.14 | 216.97 | 0.94 | 0.08337078 |
| 1252.1 | 1341.24 | 6.12 | 217.86 | 0.94 | 0.0838907 |
| 1257.73 | 1342.93 | 6.13 | 217.95 | 0.94 | 0.08426791 |
| 1258.85 | 1341.32 | 6.15 | 217.98 | 0.94 | 0.08434295 |
| 1257.56 | 1336.54 | 6.16 | 218.19 | 0.94 | 0.08425652 |
| 1252.52 | 1311.77 | 6.15 | 217.9 | 0.94 | 0.08391884 |
| 1264.31 | 1303.21 | 6.13 | 218.09 | 0.94 | 0.08470877 |
| 1273.93 | 1311.18 | 6.08 | 217.89 | 0.94 | 0.08535331 |
| 1260.57 | 1311.54 | 6.07 | 218.22 | 0.94 | 0.08445819 |
| 1253.34 | 1313.08 | 6.08 | 217.94 | 0.94 | 0.08397378 |
| 1244.79 | 1302.01 | 6.08 | 217.01 | 0.94 | 0.08340093 |
| 1225.25 | 1300.72 | 6.09 | 214.8 | 0.94 | 0.08209175 |
| 1223.93 | 1317.92 | 6.06 | 214.72 | 0.94 | 0.08200331 |
| 1240.73 | 1325.66 | 6.06 | 215.8 | 0.94 | 0.08312891 |
| 1249.91 | 1312.76 | 6.11 | 215.74 | 0.94 | 0.08374397 |
| 1235.75 | 1588.17 | 6.14 | 215.72 | 0.94 | 0.08279525 |
| 1445.92 | 1586.06 | 6.09 | 217.3 | 0.91 | 0.09687664 |
| 1444.08 | 1574.44 | 7.31 | 217.22 | 0.91 | 0.09675336 |
| 1433.64 | 1585.2 | 7.3 | 216.26 | 0.91 | 0.09605388 |
| 1442.97 | 1590.21 | 7.28 | 217.18 | 0.91 | 0.09667899 |
| 1449.79 | 1594.54 | 7.3 | 217.15 | 0.91 | 0.09713593 |
| 1455.82 | 1566.92 | 7.32 | 217.15 | 0.91 | 0.09753994 |
| 1427.81 | 1586.83 | 7.34 | 216.2 | 0.91 | 0.09566327 |
| 1445.28 | 1582.66 | 7.25 | 217.25 | 0.91 | 0.09683376 |
| 1439.39 | 1580.33 | 7.3 | 217.13 | 0.91 | 0.09643913 |
| 1438.46 | 1691.55 | 7.29 | 217.07 | 0.91 | 0.09637682 |
| 1552.84 | 1702.32 | 7.28 | 217.85 | 0.92 | 0.10404028 |
| 1565.74 | 1678.32 | 7.76 | 217.73 | 0.92 | 0.10490458 |
| 1540.68 | 1691.74 | 7.82 | 216.98 | 0.92 | 0.10322556 |
| 1552.16 | 1697.29 | 7.73 | 217.87 | 0.92 | 0.10399472 |
| 1556.83 | 1689.33 | 7.76 | 217.65 | 0.92 | 0.10430761 |
| 1549.58 | 1693.78 | 7.8 | 217.7 | 0.92 | 0.10382186 |
| 1553.91 | 1693.13 | 7.76 | 217.76 | 0.92 | 0.10411197 |
| 1554.29 | 1690.47 | 7.78 | 217.65 | 0.92 | 0.10413743 |
| 1550.95 | 1679.35 | 7.78 | 217.58 | 0.92 | 0.10391365 |
| 1539.22 | 1692.8 | 7.77 | 216.66 | 0.92 | 0.10312774 |
| 1552.1 | 1684.85 | 7.75 | 217.51 | 0.94 | 0.1039907 |
| 1548 | 1692.64 | 7.78 | 216.63 | 0.94 | 0.103716 |
| 1551.62 | 1692.77 | 7.78 | 217.64 | 0.93 | 0.10395854 |
| 1552.83 | 1694.75 | 7.78 | 217.83 | 0.94 | 0.10403961 |
| 1554.7 | 1690.45 | 7.77 | 217.69 | 0.93 | 0.1041649 |
| 3932.48 | 4240.78 | 19.8 | 214.26 | 0.93 | 0.26347616 |
| 3929.95 | 4198.35 | 19.65 | 214.16 | 0.94 | 0.26330665 |
| 3928.13 | 4195.78 | 19.62 | 214.09 | 0.94 | 0.26318471 |
| 3917.61 | 4199.29 | 19.61 | 214.13 | 0.93 | 0.26247987 |
| 3925 | 4225.96 | 19.59 | 214.18 | 0.93 | 0.262975 |
| 3909.69 | 4232.41 | 19.61 | 214.24 | 0.93 | 0.26194923 |
| 3896.18 | 4235.83 | 19.66 | 214.1 | 0.93 | 0.26104406 |
| 3874.04 | 4177.75 | 19.68 | 214.12 | 0.93 | 0.25956068 |
| 3861.3 | 4221.04 | 19.71 | 214.17 | 0.93 | 0.2587071 |
| 3822.26 | 4233.46 | 19.53 | 213.26 | 0.93 | 0.25609142 |
| 3947.01 | 4221.27 | 19.64 | 215.09 | 0.93 | 0.26444967 |
| 3949.84 | 4176.28 | 19.68 | 214.98 | 0.93 | 0.26463928 |
| 3951.07 | 4225.74 | 19.64 | 213.95 | 0.93 | 0.26472169 |
| 3896.59 | 4194.09 | 19.52 | 214.89 | 0.93 | 0.26107153 |
| 3942.11 | 4211.2 | 19.66 | 214.2 | 0.93 | 0.26412137 |
| 3920.6 | 4267.04 | 19.58 | 217.98 | 0.92 | 0.2626802 |
| 1543.1 | 1692.34 | 7.76 | 218.05 | 0.91 | 0.1033877 |
| 1542.23 | 1691.09 | 7.76 | 217.89 | 0.91 | 0.10332941 |
| 1540.16 | 1688.45 | 7.77 | 217.9 | 0.91 | 0.10319072 |
| 1544.46 | 1692.02 | 7.76 | 217.98 | 0.91 | 0.10347882 |
| 1561.9 | 1705.45 | 7.75 | 218.06 | 0.91 | 0.1046473 |
| 1542.71 | 1691.91 | 7.76 | 218.13 | 0.92 | 0.10336157 |
| 1541.23 | 1690.38 | 7.82 | 217.98 | 0.91 | 0.10326241 |
| 1545.52 | 1693.06 | 7.76 | 218.11 | 0.91 | 0.10354984 |
| 1422.91 | 1553.99 | 7.75 | 217.82 | 0.91 | 0.09533497 |
| 1415.97 | 1549.91 | 7.77 | 218.09 | 0.92 | 0.09486999 |
| 1405.53 | 1540.09 | 7.13 | 218.19 | 0.91 | 0.09417051 |
| 1409.88 | 1545.11 | 7.1 | 217.91 | 0.91 | 0.09446196 |
| 1410.92 | 1545.2 | 7.07 | 218.1 | 0.91 | 0.09453164 |
| 1394.47 | 1527.83 | 7.08 | 218.13 | 0.91 | 0.09342949 |
| 1408.97 | 1544.52 | 7.08 | 217.04 | 0.91 | 0.09440099 |
| 1410.47 | 1543.41 | 7.04 | 218.03 | 0.91 | 0.09450149 |
| 1411.57 | 1545.59 | 7.08 | 218 | 0.91 | 0.09457519 |
| 1412.06 | 1545.79 | 7.08 | 217.96 | 0.91 | 0.09460802 |
| 1425.61 | 1556.59 | 7.09 | 218.15 | 0.91 | 0.09551587 |
| 1410.25 | 1544.08 | 7.09 | 218.01 | 0.92 | 0.09448675 |
| 1407.53 | 1540.91 | 7.14 | 218.03 | 0.91 | 0.09430451 |
| 1419.51 | 1552.69 | 7.08 | 217.98 | 0.91 | 0.09510717 |
| 1413.09 | 1545.91 | 7.07 | 218.12 | 0.91 | 0.09467703 |
| 1428.69 | 1567.7 | 7.12 | 218.19 | 0.91 | 0.09572223 |
| 1419.34 | 1566.29 | 7.09 | 219.63 | 0.91 | 0.09509578 |
| 1416.46 | 1568.45 | 7.15 | 219.67 | 0.91 | 0.09490282 |
| 1423.39 | 1551.44 | 7.11 | 219.53 | 0.91 | 0.09536713 |
| 1420.04 | 1562.48 | 7.11 | 219.68 | 0.91 | 0.09514268 |
| 1305.09 | 1454.53 | 7.13 | 219.61 | 0.91 | 0.08744103 |
| 1294.93 | 1441.7 | 7.12 | 218.69 | 0.9 | 0.08676031 |
| 1312.51 | 1461.87 | 6.65 | 217.55 | 0.9 | 0.08793817 |
| 1310.42 | 1457.91 | 6.63 | 218.73 | 0.9 | 0.08779814 |
| 1312.3 | 1461.17 | 6.68 | 218.62 | 0.9 | 0.0879241 |
| 1311.32 | 1458.43 | 6.67 | 218.67 | 0.9 | 0.08785844 |
| 1312.99 | 1461.2 | 6.68 | 218.5 | 0.9 | 0.08797033 |
| 1319.75 | 1466.02 | 6.67 | 218.65 | 0.9 | 0.08842325 |
| 1307.75 | 1455.26 | 6.68 | 218.52 | 0.9 | 0.08761925 |
| 1313.56 | 1461.66 | 6.71 | 218.62 | 0.9 | 0.08800852 |
| 1115.57 | 1203.99 | 6.66 | 218.67 | 0.9 | 0.07474319 |
| 1118.82 | 1206.73 | 6.68 | 217.57 | 0.93 | 0.07496094 |
| 1105.5 | 1193.45 | 5.53 | 217.35 | 0.93 | 0.0740685 |
| 1120.15 | 1209.37 | 5.55 | 216.65 | 0.93 | 0.07505005 |
| 1123.19 | 1211.81 | 5.51 | 217.76 | 0.93 | 0.07525373 |
| 1121.76 | 1210.39 | 5.55 | 217.64 | 0.93 | 0.07515792 |
| 1119.64 | 1206.98 | 5.57 | 217.58 | 0.93 | 0.07501588 |
| 1154.28 | 1238.23 | 5.56 | 216.65 | 0.93 | 0.07733676 |
| 1145.2 | 1228.32 | 5.57 | 217.61 | 0.93 | 0.0767284 |
| 1124.68 | 1213.89 | 5.69 | 216.59 | 0.93 | 0.07535356 |
| 1021.85 | 1130.16 | 5.67 | 217.84 | 0.93 | 0.06846395 |
| 1027.79 | 1134.6 | 5.57 | 219.4 | 0.9 | 0.06886193 |
| 1021.32 | 1129.81 | 5.15 | 219.65 | 0.91 | 0.06842844 |
| 1017.41 | 1124.25 | 5.17 | 219.44 | 0.9 | 0.06816647 |
| 1035.37 | 1144.55 | 5.15 | 218.54 | 0.9 | 0.06936979 |
| 1048.39 | 1167.68 | 5.14 | 220.32 | 0.9 | 0.07024213 |
| 1051.7 | 1169.89 | 5.19 | 222.54 | 0.9 | 0.0704639 |
| 1063.25 | 1178.55 | 5.25 | 222.42 | 0.9 | 0.07123775 |
| 1052.56 | 1169.41 | 5.26 | 222.57 | 0.9 | 0.07052152 |
| 1046.15 | 1164.7 | 5.3 | 222.28 | 0.9 | 0.07009205 |
| 1035.61 | 1112.85 | 5.26 | 222.18 | 0.9 | 0.06938587 |
| 1026.72 | 1114.64 | 5.24 | 220.64 | 0.91 | 0.06879024 |
| 1025.21 | 1102.33 | 5.12 | 219.48 | 0.91 | 0.06868907 |
| 1026.32 | 1105.02 | 5.1 | 219.6 | 0.91 | 0.06876344 |
| 1024.11 | 1114.29 | 5.07 | 219.55 | 0.91 | 0.06861537 |
| 1009.58 | 1114.16 | 5.08 | 219.57 | 0.91 | 0.06764186 |
| 1010.78 | 1115.02 | 5.1 | 218.46 | 0.91 | 0.06772226 |
| 1009.18 | 1112.32 | 5.1 | 218.39 | 0.91 | 0.06761506 |
| 1001.72 | 1104.84 | 5.11 | 218.47 | 0.91 | 0.06711524 |
| 1021.84 | 1123.87 | 5.09 | 217.44 | 0.91 | 0.06846328 |
| 811.5 | 944.74 | 5.08 | 218.5 | 0.91 | 0.0543705 |
| 808.09 | 940 | 5.14 | 220.07 | 0.86 | 0.05414203 |
| 829.01 | 956.48 | 4.29 | 219.25 | 0.86 | 0.05554367 |
| 807.76 | 939 | 4.29 | 220.19 | 0.87 | 0.05411992 |
| 814.7 | 947.67 | 4.34 | 219.19 | 0.86 | 0.0545849 |
| 815.49 | 948.36 | 4.28 | 220.08 | 0.86 | 0.05463783 |
| 815.98 | 947.9 | 4.31 | 220.16 | 0.86 | 0.05467066 |
| 815.18 | 947.59 | 4.31 | 220.23 | 0.86 | 0.05461706 |
| 807.18 | 937.94 | 4.3 | 220.2 | 0.86 | 0.05408106 |
| 806.47 | 937.69 | 4.3 | 219.13 | 0.86 | 0.05403349 |
| 620.84 | 687.5 | 4.28 | 220.46 | 0.86 | 0.04159628 |
| 626.57 | 691.28 | 4.28 | 220.46 | 0.9 | 0.04198019 |
| 615.48 | 681.04 | 3.12 | 219.45 | 0.91 | 0.04123716 |
| 619.47 | 686.82 | 3.14 | 220.4 | 0.9 | 0.04150449 |
| 629.17 | 692.33 | 3.1 | 219.43 | 0.9 | 0.04215439 |
| 627.31 | 691.54 | 3.12 | 220.28 | 0.91 | 0.04202977 |
| 616.4 | 681.2 | 3.16 | 219.32 | 0.91 | 0.0412988 |
| 622.37 | 688.77 | 3.14 | 220.31 | 0.9 | 0.04169879 |
| 614.38 | 679.51 | 3.11 | 219.44 | 0.9 | 0.04116346 |
| 623.93 | 689.66 | 3.13 | 220.53 | 0.9 | 0.04180331 |
| 616.59 | 686.82 | 3.1 | 219.37 | 0.9 | 0.04131153 |
| 618.45 | 679.99 | 3.13 | 219.35 | 0.9 | 0.04143615 |
| 621.69 | 683.13 | 3.11 | 220.57 | 0.9 | 0.04165323 |
| 625.49 | 681.59 | 3.12 | 220.53 | 0.9 | 0.04190783 |
| 628.66 | 689.3 | 3.12 | 218.72 | 0.9 | 0.04212022 |
| 614.86 | 679.32 | 3.14 | 218.97 | 0.91 | 0.04119562 |
| 626.61 | 690.84 | 3.15 | 220 | 0.91 | 0.04198287 |
| 636.98 | 698.13 | 3.1 | 219.94 | 0.91 | 0.04267766 |
| 624.62 | 688.26 | 3.14 | 219.76 | 0.91 | 0.04184954 |
| 614.07 | 678.67 | 3.17 | 218.94 | 0.91 | 0.04114269 |
| 384.15 | 455.64 | 3.13 | 223.98 | 0.9 | 0.02573805 |
| 391.58 | 461.35 | 3.1 | 223.77 | 0.84 | 0.02623586 |
| 383.14 | 456.86 | 2.03 | 223.92 | 0.85 | 0.02567038 |
| 383.74 | 455.51 | 2.06 | 223.98 | 0.84 | 0.02571058 |
| 383.07 | 455.13 | 2.04 | 223.79 | 0.84 | 0.02566569 |
| 380.49 | 453.14 | 2.03 | 223.81 | 0.84 | 0.02549283 |
| 378.87 | 450.3 | 2.03 | 223.12 | 0.84 | 0.02538429 |
| 380.32 | 453.3 | 2.02 | 223.67 | 0.84 | 0.02548144 |
| 381.13 | 453.65 | 2.02 | 223.9 | 0.84 | 0.02553571 |
| 380.77 | 453.53 | 2.03 | 223.8 | 0.84 | 0.02551159 |
| 390.25 | 369.56 | 2.03 | 223.05 | 0.84 | 0.02614675 |
| 385.76 | 369.88 | 2.03 | 222.99 | 0.82 | 0.02584592 |
| 381.39 | 374.14 | 1.66 | 223.09 | 0.79 | 0.02555313 |
| 381.3 | 368.87 | 1.68 | 222.01 | 0.79 | 0.0255471 |
| 378.88 | 378.29 | 1.66 | 223.02 | 0.79 | 0.02538496 |
| 189.74 | 375.58 | 1.7 | 223.14 | 0.8 | 0.01271258 |
| 188.79 | 372.36 | 1.8 | 223.17 | 0.79 | 0.01264893 |
| 189.57 | 371.96 | 1.68 | 223.35 | 0.79 | 0.01270119 |
| 188.88 | 372.59 | 1.67 | 223.28 | 0.79 | 0.01265496 |
| 189.02 | 366.63 | 1.67 | 222.13 | 0.79 | 0.01266434 |
| 188.96 | 210 | 1.67 | 223.89 | 0.79 | 0.01266032 |
| 188.12 | 210.42 | 1.65 | 223.78 | 0.89 | 0.01260404 |
| 188.23 | 209.58 | 0.94 | 222.75 | 0.89 | 0.01261141 |
| 186.42 | 207.98 | 0.94 | 222.85 | 0.9 | 0.01249014 |
| 185.71 | 207.8 | 0.94 | 223.75 | 0.9 | 0.01244257 |
| 116.84 | 208.41 | 0.93 | 223.78 | 0.89 | 0.00782828 |
| 114.4 | 210.03 | 0.93 | 222.78 | 0.9 | 0.0076648 |
| 191.1 | 215.3 | 0.93 | 233.1 | 0.89 | 0.0128037 |
| 193.3 | 215.3 | 0.94 | 231.6 | 0.9 | 0.0129511 |
| 190.98 | 216.6 | 0.94 | 232.4 | 0.89 | 0.01279566 |
| 190.9 | 217.2 | 0.93 | 234.8 | 0.89 | 0.0127903 |
| 200.99 | 216.9 | 0.93 | 235.3 | 0.95 | 0.01346633 |
| 122.6 | 128.3 | 0.55 | 236.2 | 0.95 | 0.0082142 |
| 118.7 | 124.9 | 0.54 | 234.2 | 0.95 | 0.0079529 |
| 119.3 | 127.1 | 0.55 | 230.1 | 0.95 | 0.0079931 |
| 409.4 | 584.8 | 2.7 | 217 | 0.7 | 0.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 Power | Apparent Power | Power Factor | Cost ($) |
|---|---|---|---|
| 450.198676 | 581.371807 | 0.9 | 0.02701192 |
| 448.287606 | 524.560076 | 0.91 | 0.02689726 |
| 447.511826 | 507.000946 | 0.92 | 0.02685071 |
| 446.915799 | 499.214759 | 0.9 | 0.02681495 |
| 444.787133 | 494.87228 | 0.9 | 0.02668723 |
| 443.85052 | 492.790918 | 0.9 | 0.02663103 |
| 466.79281 | 511.192053 | 0.91 | 0.02800757 |
| 513.368023 | 550.823084 | 0.93 | 0.03080208 |
| 485.146641 | 526.972564 | 0.92 | 0.0291088 |
| 459.716178 | 490.775781 | 0.91 | 0.02758297 |
| 438.826869 | 487.94702 | 0.9 | 0.02632961 |
| 440.350047 | 489.318827 | 0.9 | 0.026421 |
| 438.230842 | 487.360454 | 0.9 | 0.02629385 |
| 437.549669 | 488.145695 | 0.9 | 0.02625298 |
| 447.133396 | 994.058657 | 0.9 | 0.026828 |
| 915.052034 | 995.335856 | 0.92 | 0.05490312 |
| 910 | 990.321665 | 0.92 | 0.0546 |
| 912.535478 | 993.434248 | 0.92 | 0.05475213 |
| 910.075686 | 991.069063 | 0.92 | 0.05460454 |
| 912.30842 | 993.122044 | 0.92 | 0.05473851 |
| 909.990539 | 991.116367 | 0.92 | 0.05459943 |
| 914.607379 | 995.458846 | 0.92 | 0.05487644 |
| 928.609272 | 1006.90634 | 0.92 | 0.05571656 |
| 904.238411 | 984.333018 | 0.92 | 0.0542543 |
| 912.601703 | 994.541154 | 0.92 | 0.0547561 |
| 912.56386 | 993.500473 | 0.92 | 0.05475383 |
| 914.569536 | 995.572375 | 0.92 | 0.05487417 |
| 903.538316 | 983.292337 | 0.92 | 0.0542123 |
| 911.66509 | 992.450331 | 0.92 | 0.05469991 |
| 964.78 | 1045.29 | 0.92 | 0.0578868 |
| 981.09 | 1061.71 | 0.92 | 0.0588654 |
| 962.27 | 1045.93 | 0.92 | 0.0577362 |
| 960.88 | 1045.26 | 0.92 | 0.0576528 |
| 964.42 | 1048.73 | 0.92 | 0.0578652 |
| 876.99 | 996.9 | 0.94 | 0.0526194 |
| 830.9 | 989.8 | 0.95 | 0.049854 |
| 915.9 | 1132.1 | 0.9 | 0.054954 |
| 907.9 | 1106.9 | 0.96 | 0.054474 |
| 858.3 | 1100.2 | 0.93 | 0.051498 |
| 865.7 | 1123.9 | 0.9 | 0.051942 |
| 1113.99 | 1189.65 | 0.94 | 0.0668394 |
| 1112.36 | 1190.23 | 0.94 | 0.0667416 |
| 1112.64 | 1188.96 | 0.93 | 0.0667584 |
| 1112.25 | 1180.52 | 0.94 | 0.066735 |
| 1105.18 | 1338.99 | 0.94 | 0.0663108 |
| 1254.89 | 1355.37 | 0.94 | 0.0752934 |
| 1274.1 | 1340.56 | 0.94 | 0.076446 |
| 1256.64 | 1339.15 | 0.94 | 0.0753984 |
| 1255.68 | 1327.72 | 0.94 | 0.0753408 |
| 1244.34 | 1336.22 | 0.94 | 0.0746604 |
| 1252.1 | 1341.24 | 0.94 | 0.075126 |
| 1257.73 | 1342.93 | 0.94 | 0.0754638 |
| 1258.85 | 1341.32 | 0.94 | 0.075531 |
| 1257.56 | 1336.54 | 0.94 | 0.0754536 |
| 1252.52 | 1311.77 | 0.94 | 0.0751512 |
| 1264.31 | 1303.21 | 0.94 | 0.0758586 |
| 1273.93 | 1311.18 | 0.94 | 0.0764358 |
| 1260.57 | 1311.54 | 0.94 | 0.0756342 |
| 1324.78038 | 1387.92556 | 0.94 | 0.07948682 |
| 1315.74303 | 1376.22457 | 0.94 | 0.07894458 |
| 1295.08925 | 1374.86104 | 0.94 | 0.07770536 |
| 1293.69401 | 1393.04144 | 0.94 | 0.07762164 |
| 1311.45161 | 1401.22262 | 0.94 | 0.0786871 |
| 1321.15487 | 1387.58732 | 0.94 | 0.07926929 |
| 1306.18775 | 1678.69569 | 0.94 | 0.07837127 |
| 1528.33744 | 1676.46542 | 0.91 | 0.09170025 |
| 1526.39256 | 1664.18308 | 0.91 | 0.09158355 |
| 1433.64 | 1585.2 | 0.91 | 0.0860184 |
| 1442.97 | 1590.21 | 0.91 | 0.0865782 |
| 1449.79 | 1594.54 | 0.91 | 0.0869874 |
| 1455.82 | 1566.92 | 0.91 | 0.0873492 |
| 1427.81 | 1586.83 | 0.91 | 0.0856686 |
| 1445.28 | 1582.66 | 0.91 | 0.0867168 |
| 1439.39 | 1580.33 | 0.91 | 0.0863634 |
| 1438.46 | 1691.55 | 0.91 | 0.0863076 |
| 1552.84 | 1702.32 | 0.92 | 0.0931704 |
| 1565.74 | 1678.32 | 0.92 | 0.0939444 |
| 1540.68 | 1691.74 | 0.92 | 0.0924408 |
| 1552.16 | 1697.29 | 0.92 | 0.0931296 |
| 1556.83 | 1689.33 | 0.92 | 0.0934098 |
| 1549.58 | 1693.78 | 0.92 | 0.0929748 |
| 1553.91 | 1693.13 | 0.92 | 0.0932346 |
| 1554.29 | 1690.47 | 0.92 | 0.0932574 |
| 1550.95 | 1679.35 | 0.92 | 0.093057 |
| 1539.22 | 1692.8 | 0.92 | 0.0923532 |
| 1552.1 | 1684.85 | 0.94 | 0.093126 |
| 1548 | 1692.64 | 0.94 | 0.09288 |
| 1551.62 | 1692.77 | 0.93 | 0.0930972 |
| 1552.83 | 1694.75 | 0.94 | 0.0931698 |
| 1554.7 | 1690.45 | 0.93 | 0.093282 |
| 3634.45471 | 3919.39002 | 0.93 | 0.21806728 |
| 3634.11645 | 3880.1756 | 0.94 | 0.21804699 |
| 3634.43438 | 3877.80037 | 0.94 | 0.21806606 |
| 3629.71165 | 3881.04436 | 0.93 | 0.2177827 |
| 3634.54159 | 3905.69316 | 0.93 | 0.2180725 |
| 3634.39187 | 3911.65434 | 0.93 | 0.21806351 |
| 3634.90573 | 3914.81516 | 0.93 | 0.21809434 |
| 3640.44362 | 3861.13678 | 0.91 | 0.21842662 |
| 3648.66913 | 3901.14603 | 0.93 | 0.21892015 |
| 3647.5878 | 3912.62477 | 0.93 | 0.21885527 |
| 3647.88355 | 3901.3586 | 0.94 | 0.21887301 |
| 3650.49908 | 3859.77819 | 0.93 | 0.21902994 |
| 3651.63586 | 3905.48983 | 0.91 | 0.21909815 |
| 3601.28466 | 3876.23845 | 0.93 | 0.21607708 |
| 3643.3549 | 3892.05176 | 0.93 | 0.21860129 |
| 3623.47505 | 3943.65989 | 0.92 | 0.2174085 |
| 1543.1 | 1692.34 | 0.91 | 0.092586 |
| 1542.23 | 1691.09 | 0.91 | 0.0925338 |
| 1540.16 | 1688.45 | 0.91 | 0.0924096 |
| 1544.46 | 1692.02 | 0.91 | 0.0926676 |
| 1561.9 | 1705.45 | 0.91 | 0.093714 |
| 1542.71 | 1691.91 | 0.92 | 0.0925626 |
| 1541.23 | 1690.38 | 0.91 | 0.0924738 |
| 1462.17597 | 1601.7597 | 0.91 | 0.08773056 |
| 1346.17786 | 1470.18922 | 0.91 | 0.08077067 |
| 1339.61211 | 1466.32923 | 0.92 | 0.08037673 |
| 1329.7351 | 1457.03879 | 0.91 | 0.07978411 |
| 1333.85052 | 1461.78808 | 0.91 | 0.08003103 |
| 1334.83444 | 1461.87323 | 0.91 | 0.08009007 |
| 1319.27152 | 1445.43992 | 0.91 | 0.07915629 |
| 1332.98959 | 1461.2299 | 0.91 | 0.07997938 |
| 1334.4087 | 1460.17975 | 0.91 | 0.08006452 |
| 1335.44939 | 1462.2422 | 0.91 | 0.08012696 |
| 1335.91296 | 1462.43141 | 0.91 | 0.08015478 |
| 1348.73226 | 1472.64901 | 0.91 | 0.08092394 |
| 1334.20057 | 1460.81362 | 0.92 | 0.08005203 |
| 1331.62725 | 1457.81457 | 0.91 | 0.07989763 |
| 1342.96121 | 1468.95932 | 0.91 | 0.08057767 |
| 1336.88742 | 1462.54494 | 0.91 | 0.08021325 |
| 1351.64617 | 1483.15989 | 0.91 | 0.08109877 |
| 1342.80038 | 1481.82592 | 0.91 | 0.08056802 |
| 1340.07569 | 1483.86944 | 0.91 | 0.08040454 |
| 1346.63198 | 1467.77673 | 0.91 | 0.08079792 |
| 1343.46263 | 1478.22138 | 0.91 | 0.08060776 |
| 1234.71145 | 1376.09272 | 0.91 | 0.07408269 |
| 1225.09934 | 1363.95459 | 0.9 | 0.07350596 |
| 1241.73132 | 1383.0369 | 0.9 | 0.07450388 |
| 1239.75402 | 1379.29045 | 0.9 | 0.07438524 |
| 1241.53264 | 1382.37465 | 0.9 | 0.07449196 |
| 1240.60549 | 1379.7824 | 0.9 | 0.07443633 |
| 1242.18543 | 1382.40303 | 0.9 | 0.07453113 |
| 1248.58089 | 1386.9631 | 0.9 | 0.07491485 |
| 1237.228 | 1376.78335 | 0.9 | 0.07423368 |
| 1242.72469 | 1382.83822 | 0.9 | 0.07456348 |
| 1115.57 | 1203.99 | 0.9 | 0.0669342 |
| 1118.82 | 1206.73 | 0.93 | 0.0671292 |
| 1105.5 | 1193.45 | 0.93 | 0.06633 |
| 1120.15 | 1209.37 | 0.93 | 0.067209 |
| 1123.19 | 1211.81 | 0.93 | 0.0673914 |
| 1121.76 | 1210.39 | 0.93 | 0.0673056 |
| 1211.45048 | 1305.95236 | 0.93 | 0.07268703 |
| 1248.93096 | 1339.76486 | 0.93 | 0.07493586 |
| 1239.1064 | 1329.04224 | 0.93 | 0.07434638 |
| 1216.90376 | 1313.42898 | 0.93 | 0.07301423 |
| 1105.6417 | 1222.83312 | 0.93 | 0.0663385 |
| 1112.06878 | 1227.6372 | 0.9 | 0.06672413 |
| 1105.06824 | 1222.45442 | 0.91 | 0.06630409 |
| 1100.83762 | 1216.4385 | 0.9 | 0.06605026 |
| 1120.27034 | 1238.4031 | 0.9 | 0.06721622 |
| 1134.35798 | 1263.42976 | 0.9 | 0.06806148 |
| 1137.9394 | 1265.82098 | 0.9 | 0.06827636 |
| 1150.4365 | 1275.1911 | 0.9 | 0.06902619 |
| 1138.86992 | 1265.30162 | 0.9 | 0.0683322 |
| 1131.9343 | 1260.2054 | 0.9 | 0.06791606 |
| 1120.53002 | 1204.1037 | 0.9 | 0.0672318 |
| 1110.91104 | 1206.04048 | 0.91 | 0.06665466 |
| 1025.21 | 1102.33 | 0.91 | 0.0615126 |
| 1026.32 | 1105.02 | 0.91 | 0.0615792 |
| 1024.11 | 1114.29 | 0.91 | 0.0614466 |
| 1009.58 | 1114.16 | 0.91 | 0.0605748 |
| 1010.78 | 1115.02 | 0.91 | 0.0606468 |
| 1009.18 | 1112.32 | 0.91 | 0.0605508 |
| 1001.72 | 1104.84 | 0.91 | 0.0601032 |
| 1021.84 | 1123.87 | 0.91 | 0.0613104 |
| 811.5 | 944.74 | 0.91 | 0.04869 |
| 808.09 | 940 | 0.96 | 0.0484854 |
| 829.01 | 956.48 | 0.95 | 0.0497406 |
| 807.76 | 939 | 0.93 | 0.0484656 |
| 814.7 | 947.67 | 0.92 | 0.048882 |
| 815.49 | 948.36 | 0.9 | 0.0489294 |
| 815.98 | 947.9 | 0.93 | 0.0489588 |
| 815.18 | 947.59 | 0.91 | 0.0489108 |
| 807.18 | 937.94 | 0.94 | 0.0484308 |
| 806.47 | 937.69 | 0.9 | 0.0483882 |
| 620.84 | 687.5 | 0.96 | 0.0372504 |
| 626.57 | 691.28 | 0.9 | 0.0375942 |
| 615.48 | 681.04 | 0.91 | 0.0369288 |
| 619.47 | 686.82 | 0.9 | 0.0371682 |
| 595.241249 | 654.99527 | 0.9 | 0.03571447 |
| 593.481552 | 654.247871 | 0.91 | 0.03560889 |
| 583.159887 | 644.465468 | 0.91 | 0.03498959 |
| 588.807947 | 651.627247 | 0.9 | 0.03532848 |
| 581.248817 | 642.866604 | 0.9 | 0.03487493 |
| 590.283822 | 652.469253 | 0.9 | 0.03541703 |
| 583.339641 | 649.782403 | 0.9 | 0.03500038 |
| 585.099338 | 643.320719 | 0.9 | 0.03510596 |
| 588.164617 | 646.291391 | 0.9 | 0.03528988 |
| 591.759697 | 644.834437 | 0.9 | 0.03550558 |
| 594.758751 | 652.128666 | 0.9 | 0.03568553 |
| 581.702933 | 642.68685 | 0.91 | 0.03490218 |
| 592.8193 | 653.58562 | 0.91 | 0.03556916 |
| 602.630085 | 660.482498 | 0.91 | 0.03615781 |
| 590.936613 | 651.144749 | 0.91 | 0.0354562 |
| 580.955535 | 642.071902 | 0.91 | 0.03485733 |
| 363.434248 | 431.069063 | 0.9 | 0.02180605 |
| 370.463576 | 436.471145 | 0.94 | 0.02222781 |
| 362.478713 | 432.223273 | 0.98 | 0.02174872 |
| 363.046358 | 430.946074 | 0.91 | 0.02178278 |
| 362.412488 | 430.586566 | 0.93 | 0.02174475 |
| 359.971618 | 428.703879 | 0.97 | 0.0215983 |
| 378.87 | 450.3 | 0.92 | 0.0227322 |
| 380.32 | 453.3 | 0.91 | 0.0228192 |
| 381.13 | 453.65 | 0.95 | 0.0228678 |
| 380.77 | 453.53 | 0.91 | 0.0228462 |
| 390.25 | 369.56 | 0.92 | 0.023415 |
| 385.76 | 369.88 | 0.94 | 0.0231456 |
| 381.39 | 374.14 | 0.9 | 0.0228834 |
| 381.3 | 368.87 | 0.98 | 0.022878 |
| 378.88 | 378.29 | 0.95 | 0.0227328 |
| 189.74 | 375.58 | 0.91 | 0.0113844 |
| 188.79 | 372.36 | 0.93 | 0.0113274 |
| 189.57 | 371.96 | 0.91 | 0.0113742 |
| 188.88 | 372.59 | 0.93 | 0.0113328 |
| 189.02 | 366.63 | 0.9 | 0.0113412 |
| 188.96 | 210 | 0.9 | 0.0113376 |
| 188.12 | 210.42 | 0.96 | 0.0112872 |
| 188.23 | 209.58 | 0.92 | 0.0112938 |
| 186.42 | 207.98 | 0.9 | 0.0111852 |
| 185.71 | 207.8 | 0.9 | 0.0111426 |
| 116.84 | 208.41 | 0.96 | 0.0070104 |
| 120.9208 | 222.00171 | 0.9 | 0.00725525 |
| 201.9927 | 227.5721 | 0.94 | 0.01211956 |
| 204.3181 | 227.5721 | 0.9 | 0.01225909 |
| 201.86586 | 228.9462 | 0.92 | 0.01211195 |
| 201.7813 | 229.5804 | 0.9 | 0.01210688 |
| 212.44643 | 229.2633 | 0.95 | 0.01274679 |
| 129.5882 | 135.6131 | 0.95 | 0.00777529 |
| 125.4659 | 132.0193 | 0.95 | 0.00752795 |
| 126.1001 | 134.3447 | 0.95 | 0.00756601 |
| 432.7358 | 618.1336 | 0.91 | 0.02596415 |
References
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Shirazi, E.; Jadid, S. Optimal residential appliance scheduling under dynamic pricing scheme via HEMDAS. Energy Build. 2015, 93, 40–49. [Google Scholar] [CrossRef]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Werminski, S. Demand side management using DADR automation in the peak load reduction. Renew. Sustain. Energy Rev. 2017, 67, 998–1007. [Google Scholar] [CrossRef]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).























