Next Article in Journal
A Comparative Study of Machine Learning-Based Methods for Global Horizontal Irradiance Forecasting
Next Article in Special Issue
Elastic Energy Management Algorithm Using IoT Technology for Devices with Smart Appliance Functionality for Applications in Smart-Grid
Previous Article in Journal
Towards the Hydrogen Economy—A Review of the Parameters That Influence the Efficiency of Alkaline Water Electrolyzers
Previous Article in Special Issue
Assessing Insider Attacks and Privacy Leakage in Managed IoT Systems for Residential Prosumers
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Real-Time Electricity Scheduling for Home Energy Management System Using the Internet of Energy

by
Bilal Naji Alhasnawi
1,*,
Basil H. Jasim
1,
Pierluigi Siano
2 and
Josep M. Guerrero
3,*
1
Electrical Engineering Department, Basrah University, Basrah 61001, Iraq
2
Department of Management & Innovation Systems, University of Salerno Via Giovanni Paolo II, 132, 84084 Fisciano, Italy
3
Center for Research on Microgrid (CROM), Energy Technology Department, University of Aalborg, 9220 Aalborg, Denmark
*
Authors to whom correspondence should be addressed.
Energies 2021, 14(11), 3191; https://doi.org/10.3390/en14113191
Submission received: 22 February 2021 / Revised: 14 April 2021 / Accepted: 24 May 2021 / Published: 29 May 2021
(This article belongs to the Special Issue Advances and Trends in Smart Energy Communities)

Abstract

:
This paper presents a novel scheduling scheme for the real-time home energy management systems based on Internet of Energy (IoE). The scheme is a multi-agent method that considers two chief purposes including user satisfaction and energy consumption cost. The scheme is designed under environment of microgrid. The user impact in terms of energy cost savings is generally significant in terms of system efficiency. That is why domestic users are involved in the management of domestic appliances. The optimization algorithms are based on an improved version of the rainfall algorithm and the salp swarm algorithm. In this paper, the Time of Use (ToU) model is proposed to define the rates for shoulder-peak and on-peak hours. A two-level communication system connects the microgrid system, implemented in MATLAB, to the cloud server. The local communication level utilizes IP/TCP and MQTT and is used as a protocol for the global communication level. The scheduling controller proposed in this study succeeded the energy saving of 25.3% by using the salp swarm algorithm and saving of 31.335% by using the rainfall algorithm.

1. Introduction

The intelligent micro grid is an important field for the Internet of Energy that aims to provide reliable information transmission by means of intelligent installations and to re-evaluate, manage accurately and make scientific decisions on the intelligent microgrid via intelligent devices.
The Internet of Energy (IoE) is the next step and advancement of today’s internet, where objects and things are embedded with communication and computation capabilities. The Internet of Energy (IoE) appliances can be seamlessly assimilated to the internet at various levels. The IoE provides the foundation for intelligent cities services such as intelligent transportation, intelligent health, intelligent grid, intelligent surveillance, intelligent home, and so forth. One of the biggest systems of the IoE is an intelligent grid, which is nothing but a conventional grid augmented with the integration of renewable energy and communication technologies. The IoE based intelligent devices can be embedded into the intelligent grid via all of its main parts, such as production, supply, communication, and use [1]. Due to the population growth in communities, the energy needs for this century are increasing quite rapidly. Societies depend heavily on the efficient and resilient delivery of electricity for national security, economy, and health care. The normal electric grids are static and unreliable in order to meet consumer demands accordingly. The smart grid is the next generation of grid that is able to transfigure the modes of electricity output, control, and distribution. The microgrid can improve the lives of the next generation of people, as intelligent grid users are very involved and can participate in the system, as they form priorities and demands settings. Therefore, different countries have begun implementing intelligent grid systems for communities. The market of a traditional grid is national and centralized, where an intelligent grid market is decentralized and ignores boundaries [2].
In order to ensure an intelligent grid and to enhance the IoE integration, continuous communication is necessary. In terms of output, market, distribution, transmission, and customer the intelligent grid is more effective than a conventional grid [1,3,4]. The conventional grids have limited power generation, and a large number of small power producers are in the intelligent grid. A conventional grid transmission includes large power lines and pipelines with a smart grid that offers small transmission and compensation for local supply, thereby making the smart grid significantly more efficient than the conventional grid. Consumers of a smart grid are very active and participate in a system in the form of priorities and demands set. The national and centralized market for a conventional grid is fragmented and the borders are ignored. A smart grid consists of billions of intelligent devices, sensors, intelligent meters, and many other communication networks, be they private or public [5,6].
Demand response (DR) strategies provide economic, effective and secure solutions in relation to energy management. EMS on the DR decentralized residential or housing microgrid offers the most cost-effective demand profile, so that load control will help the house owners have less discomfort [7]. However, installing a collocated roof generator and the variability of home appliances in the operation of the storage system can make it difficult to manage the energy of a building process. This is more demanding as it is quite difficult to estimate renewable real-time generation and also since the energy price in the day ahead is different from the real-time energy price. Stochastic optimization may address these uncertainties, but it also requires appropriate random parameter probabilistic estimates. For domestic energy management, the real-time optimization portfolio is therefore required, which can provide an optimal solution in the abrupt change in energy generation and the price of market energy. To fulfil the abovementioned requirement, this paper elucidates a real-time optimization system for synergetic source load storage dispatch in an intelligent home or an intelligent residential microgrid.

2. Literature Review of Theoretical Background

In Reference [8], the authors present a system of optimization models for the optimal planning of intelligent house Renewable Energy Resource (RER) and batteries. In the first phase of optimization, which has an objective function of the renewable energy resource and battery life-cycles minimization, the optimal size problem of the renewable energy resource and batteries is suggested. With the help of multi-object domestic energy management, the intelligent home problems of daily energy operation are formulated in the second stage. The authors in Reference [9] present a smart energy management system for intelligent homes with intelligent appliances. The proposed system schedules schedulable loads that take into account the operative complexities of uncontrolled loads and the renewable resource non schedulable conduct. The resources are optimally sized using game theory. In Reference [10] the authors proposed a day-to-day multi-objective optimization model for ToU price based energy management system, integrated with the other generation from built-in photovoltaic systems (BIPV) to maximize the economy and comfort of the occupant by providing a synergetic supply to the source of the storage. In Reference [11], the authors proposed an interdisciplinary approach incorporating machine learning, optimized architecture, and data structure design to create an internal energy management system that can fulfill real-life needs. In Reference [12], the authors suggested a stochastic system for demand response framework, given the uncertainties concerning the availability of electric vehicles and the production of renewable energy (HEM). The simulation results verified, while guaranteeing the satisfaction of the residents with respect to the technological limits of the electrical and household batteries and electric equipment, that the consumer costs can be minimized by taking into account different demand response programs (DRPs).
A new strategy is suggested in Reference [13] to resolve an issue of demand optimization of the provided uncertainties of must-run loads and electricity costs. A new, embedded PSO-based approach for resolving stochastic optimization problems was proposed in an embedded system to reduce the calculation burden. This could be used as a stochastic programing model and a two-point estimation method. In Reference [14] the authors suggested a collaborative grid optimization model to plan residential MGs and to deliver demand-side management support. The complex constraints of the various intelligent home devices are applied to the demand-side management load shifting process. Three different cases were analyzed to assess the feasibility of the proposed template for economic and environmental objectives. In Reference [15] the authors developed a risk-based optimization algorithm for the risk assessment of solar energy and the energy price insecurity.
In Reference [16] the authors proposed new and more practical analytic models in four scenarios for assessing peaking demand. The suggested method is based on assumption, in a quasi-random method for arrivals or electricity demands, of a finite amount of equipment in the region under study. In Reference [17] the authors implemented a distributed load shifting algorithm in demand management with an emphasis on the problem of planning for residential intelligent machines. The customer’s frustration is minimized by the sparse load shifting approach. The authors proposed in Reference [18] a cloud-based multi-agent (MAS) residential smart grid community network. The suggested multi agent system (MAS) is made up of microgrid agents and intelligent household agents, with the goal of relieving RMG’s top load and minimizing smart home energy costs. In Reference [19] the authors proposed architecture for peer-to-peer control of the insular microgrid framework. The multi-cap and multi-agent algorithms and design, where several goals are accomplished, achieve this P2P architecture. The agent with communication and calculation capabilities that adapt to multiplayer monitoring can run these processes simultaneously. The authors investigated effective DSM methods in Reference [20] to minimize the energy consumption from a grid. They analyze the energy use trends, price of electricity, weather and other characteristics of users to determine the best way to monitor charge level. They suggest an energy storage genetic algorithm and game-theory-based energy management methods. In Reference [21], the researchers presented a fog-based internet of things framework for trans active energy management framework. In Reference [22], the authors introduced, developed and implemented an architectural structure for an IoT and cloud EMS producing the user load profile to be accessed from a company or by the consumer on a remote basis. Companies should monitor and disseminate their incentives and allow customers to adjust their energy usage with the user load profiles.
The authors developed and implemented a multi-agent system for active network administration for their distribution network in Reference [23]. The goal is to give the distribution network operator (DNO) transaction in the distribution system operator (DSO) sector a dynamic framework, which is relevant and useful. In Reference [24] the authors proposed a novel agent-based framework for combining residential and industrial flexibility capacity. This approach suggests the alignment of the sensitive strategy for industrial and residential aggregators to include a central demand response provider. In Reference [25], the authors presented a multi-target problem whose resolution occurs with an evolutionary algorithm and task management method. The multi-target problem calls for real-time response to demand (RTP). Two goals existed: daily energy costs and user in satisfaction, decreased by both. In Reference [26] the researchers proposed an adaptive management method of energy for microgrid modes. A hybrid structure that includes an electrical grid, photovoltaics, and batteries is used to satisfy demand as energy sources in the consumer home. The system proposed allows organized operation of distributed energy resources to provide the active and additional power needed whenever necessary.
In Reference [27] the authors proposed an EMS for smart households. Each home computer is connected to the IoT object through a single IP address that results in a wide network of appliances using a mesh wireless system. In Reference [28], a novel binary search algorithm (BBSA) was implemented to control energy management in real time. The BBSA gives the optimum scheduling schedule for home appliances to minimize a demand for total loads, and schedules the running of house equipment at particular times during the day. A novel energy internet system for management of micro grid has been proposed in Reference [29]. The platform proposed is based on a versatile, scalable IoT structure incorporating DERs. In Reference [30], the authors suggested a new approach called demand response as a service, based on an algorithm of Q-learning. In Reference [31] a new energy management framework was introduced by the authors to be introduced as a fog platform. The implementation of the Fog Computing platform achieves flexibility, connectivity, interoperability, real-time, privacy, and EMS criteria. In Reference [32] the researchers presented a Home-Management Self-Learning (SHM) on a MAS platform which used Internet of Things (IoT) principles to implement the communication and interaction between agents. In Reference [33], the authors proposed a new knowledge-based multiphysics energy control strategy for electric hybrid busses, emphasizing thermal security as well as on-board lithium-ion battery degradation. Innovation is used to achieve smart balance over conflicting objectives and almost optimize a power distribution by means of an accelerated iterative concordance, by introducing a soft actor-critical deep reinforcement learning method. In Reference [34] the researchers suggested a novel robust control method for renewable energy sources. However, the energy management for a multi-agent system governed microgrid in the Internet of Energy was not investigated. In Reference [35], the authors proposed a new energy management-based machine learning method for an electric hybrid bus with an emphasis on thermal security and the degradation of the lithium-ion batteries structure. In Reference [36], researchers proposed a novel energy management for a grid connected mode and an island mode using an adaptive neuro fuzzy interface system. However, the energy management for a MAS governed microgrid in an Internet of Energy was not investigated.

Paper Contribution

In this article, a novel real-time electricity scheduling for smart energy management system using the IoE is proposed that employs: scalability, adaptability, interoperability, and connectivity between devices over cloud platforms.
The contributions of this paper are:
  • This research proposed a new rainfall algorithm, and a salp swarm algorithm based real-time optimum schedule controller for home EMS to energy savings and limit home peak-demand in the household.
  • A further contribution of this study is the proposal of a Multi Agent System for microgrid representation that integrates IoE appliances for energy management inside the smart home. However, the proposed MAS uses the strong Internet penetration of object appliances in households for EMS solutions. This is the most important addition through this article
  • The two-layer hierarchical communications architecture, based on the MQTT protocol and using a cloud server called ThingSpeak, is applied to realize global and local communication required for neighborhood devices.

3. Proposed System Description

Here, the researchers considered that the DGs consisted of the communication and control agents in the Internet of Energy realm, as described in Figure 1. The physical components of a general microgrid included the inverter-interfaced distributed generator, dynamic and static loads and the diesel generators. It was noted that the DGs in the microgrid were controlled by a framework, wherein every DG was managed by one MAS agent. The MAS agents communicate by the Local Area Network (LAN) and can access the internet for remotely controlling the microgrid via the cloud servers. In the Internet of Energy, every distributed generator/microgrid was managed by various stakeholders, and their controllers on the MAS/agents differed from MG components. It was expected that the number of distributed generator and MG agents could be changed online, hence, a remote, flexible and distributed control and implementation framework was necessary. Figure 1 presents the suggested structure.
The smart grid would need an effective measuring and communication system in order to continuously track the power and cost profile and regularly quantify power losses. There are several stages of data processing.
This work contains Measurement Units (MU) for every distribution network bus. MU is MATLAB modeling. The power and cost information is sent to the control center regularly at a fixed time. The control center is designed as a virtual data management and analysis platform. One approach to communication relating to the device topology proposed is considered. The case takes a Cloud approach, which sends its measured data directly to the Cloud by any MU connected to a corresponding feeder bus as illustrated in Figure 1.

3.1. Classification of Smart Appliances

The tasks for user usability have diversified, as possible clever computer users are in homes such as TVs, washing machines, boilers, cooling and heating equipment, as well as lighting framework. There are two important types of appliances: the shiftable equipment is de-signed and managed by EMS over time ( T = 24 ). Suppose a set of manageable devices is represented as D 𝓂 , 𝓃 and 𝒹 𝓂 = 1 , , D 𝓂 , 𝓃 for 𝓃 N for every customer [37]:
𝓂 , 𝓃 = 𝒹 𝓂 D 𝓂 D 𝓂 , 𝓃
where 𝓂 , 𝓃 is appliances load and D 𝓂 , 𝓃 is appliances set. Nonshiftable devices cannot be shifted to hours of off-peak for minimize cost, i.e., the consumption of power profiles of devices such as the refrigerator, light, and TV. A nonshiftable device of the customer 𝓃 N is identified as:
𝓃 𝓂 , 𝓃 = 𝒹 𝓃 𝓂 D 𝓃 𝓂 D 𝓃 𝓂 , 𝓃
Community electricity is produced from RES in the form of community microgrids. The goal of the optimization model is to plan limited energy resource for appliances according to their needs for periods and electricity costs. Electrical appliances work under the electricity tariff 24 h ahead of time of use. Where, 𝓃 , 𝓽 is a total consumption of power profile of customers 𝓃 N in 𝓽 T slot time.
𝒹 𝓃 = 𝓂 , 𝓃 + 𝓃 𝓂 , 𝓃
𝒹 𝓃 , 𝓽 = 𝓽 = 1 T 𝒹 𝓃 , 𝓽
where, T is a total power of all customers.
T = 𝓃 N 𝓽 T 𝒹 D 𝒹 𝓃 , 𝓽                             𝓽 T
Each consumer has a separate power consumption schedule that decreases bills and demand peak in a different time frame every day. The peak-to-average (PAR) ratio is calculated by the combined power profiles [37].
p e a k = m a x T
a v g = 1 T 𝓃 = 1 N 𝓽 = 1 T 𝓃 , 𝓽                                                         𝓽 T
P A R = p e a k a v g

3.2. Problem Formulation

To minimize the objective function of cost of devices in individual and community consumer:
m i n P 𝓃 = 𝓃 N 𝓽 T 𝓆 Q 𝒹 D ( α 𝓆 𝒹 𝓃 , 𝓽 × 𝓆 𝒹 𝓃 , 𝓽 × P 𝓃 , 𝓽 β 𝓇 𝓃 , 𝓽 × S 𝓇 𝓃 , 𝓽 × P 𝓇 𝓃 , 𝓽 + γ P 𝓃 , 𝓽 × L L 𝓃 , 𝓽 × P P 𝓃 , 𝓽 )
where, γ P 𝓃 , 𝓽 is the decision flexible, N is the total amount of users, T is the time, Q is the type of load, D is the total number of devices, α 𝓆 𝒹 𝓃 , 𝓽 is the decision variable for the appliances, P 𝓃 , 𝓽 is the electricity, S 𝓇 𝓃 , 𝓽 is the decision variable for energy, L L 𝓃 , 𝓽 is the electricity storage at time 𝓽 , 𝓆 𝒹 𝓃 , 𝓽 is the power profile of the house devices.

3.2.1. Preference of Operation Period

The binary matrix is utilized for a ready-to-use factor. This requires the ready-to-use slot 𝓌 𝓆 𝒹 𝓃 , 𝓽 to run the devices over time. Home users tend to operate a computer more often throughout the day, and then substitute it with more devices.
P 1 : α 𝓆 𝒹 𝓃 , 𝓽 = α 𝓆 𝒹 𝓃 , 𝓽 × 𝓌 𝓆 𝒹 𝓃 , 𝓽

3.2.2. Variable Decision

Constraint P 2 is the decision variable of the device ON /OFF. Constraints P 3 is decision variable of user for self generation power. If β 𝓇 𝓃 , 𝓽 = 1 , user is a prosumer and β 𝓇 𝓃 , 𝓽 = 0 for user is a consumer. Consumers purchase electricity from the neighborhood microgrid or power grid.
P 2 : α 𝓆 𝒹 𝓃 , 𝓽 { 0 , 1 }                       𝓆 ,   𝓽 T
P 3 : β 𝓇 𝓃 , 𝓽 { 0 , 1 }                       𝓆 ,   𝓽 T
P 4 : γ P 𝓃 , 𝓽 { 0 , 1 }                       𝓆 ,   𝓽 T

3.2.3. Devices Task

For the measurement of energy profiles, it is mandatory to know the working life of intelligent devices.   𝓽 𝓆 𝒹 is the operation time of d t h devices in the T slot time in P 5 . α 𝓆 𝒹 𝓃 , 𝓽 is the decision variable to turn ON/OFF the device. The constraints P 5 and P 6 are continuous times to accomplish a task and it has to remain ON at time T , until it has finished a task. For instance, once a washing machine begins to work, it runs continuously until the final time limit is set, P 6 is formulated. 𝓽 𝓈 is the devices starting time [37].
P 5 : 𝓽 = 1 T α 𝓆 𝒹 𝓃 , 𝓽 = 𝓽 𝓆 𝒹                                                                               𝓆 ,   𝓽 T
P 6 : 𝓽 = 𝓽 𝓈 𝓽 𝓈 + 𝓽 𝓆 𝒹 1 α 𝓆 𝒹 𝓃 , 𝓽 = 𝓽 𝓆 𝒹                                                               𝓆 ,   𝓽 T

3.2.4. Devices Priority

When another system completes the service cycle, the appliance will start running. A dryer will not operate until the laundry has completed its operating cycle. 𝓈 𝓲 is the group of these kind of loads. The decision variable selects the devices of each group for each time span.
P 7 : 𝒹 𝓈 𝓲 α 𝓆 𝒹 𝓃 , 𝓽 = 1                                       𝓆 ,   𝓽 T

3.3. Price

The price signal is received from the group micro grid. A utility grid is optional for our study, the energy volume for export and import from the community. The dynamic-pricing system is used for electronic transactions from the grid. The prices are believed to be accepted and cannot be updated after publication. The pricing system can be freely chosen by the customers. The costs of the same load will differ at different times in one day. The electricity is consistently low and expensive to obtain from the grid at night and vice-versa. The energy price depends on the energy used and the time per day the energy is used.
P 𝓃 , 𝓽 = { P 𝓇 = 0.3 P 𝒷 = 0.7 P > P 𝒷 > P 𝓇 i f     𝓇 𝓈 𝒶 = 1 i f   𝓈 𝒶 = 1 O . W }
where P 𝓃 , 𝓽 is the electricity tariff, P 𝓇 and P 𝒷 are electricity prices from the community micro grid and P is a utility grid purchase.

4. Proposed Internet of Energy Communication Platform

The decentralized controller of a smart MG helps in managing the system operating conditions if there is some disturbance. Furthermore, the IoT technology can be used for communicating between the appliances present in smart homes, central controller or power management centers. The researchers proposed the IoT platform for collecting the data, monitoring, managing and controlling the microgrid. All appliances and energy resources were integrated and connected in this platform. The proposed Internet of Energy communication platform is presented in Figure 2.
It is a demanding job to develop a demand response based IoE base. The role of the platform is to (1) incorporate the micro-grid tools into the communications system and (2) link to the IoE cloud in order to track and manage the devices. The IoE communications network proposed is composed of 4 different layers, as defined in Figure 2.
(a)
Agent Layer:
The device or perception layer was referred to as the layer of different components [38]. Various IoT users are included in the device layer, which is comprised of smart electric vehicles, smart homes, and transportation systems, along with DGs such as FCs, MTs and the WTs. Additionally, this layer supported different kinds of sensors for measuring the real-time environmental and physical state of the components and the actuators needed for adjusting them. Hence, WSNs and WSANs were seen to be an inseparable component of this layer.
(b)
IoT platform layer:
The IoT platform layer is the sensors layer. Moreover, this layer funds different kinds of sensors to monitor the physical condition of a connected agent and to adjust to them in real-time. WirelessSensor and Actor-Network (WSAN) and Wireless-Sensor-Networks (WSNs) are the two pieces of the sheet that are inseparable. WSNs can be described as a number of sensors that are used to sense the environmental conditions and transmit them through a wireless network to other appliances.
(c)
Network layer:
A networks layer can assemble the data from a cloud and perception layers and then transfer it to the upper-layers for extra processing. It can transmit the data to other smart appliances for distributed functions present on the component edges. A few communication technologies that are used in different areas include WIFI, Bluetooth, Z-Wave, 3G/4G, Zigbee, LoRa, UMB, and cellular networks. These devices provide a wireless communication facility and can be used in various applications.
(d)
Layer of processing data:
A data processing layer is defined as the layer which allows processing a huge volume of data which was assembled from lower-layer with the help of powerful processors [38].
(e)
Layer of cloud:
The cloud layer stores historical data from distributed energy resources (DERs) for the purpose of global tracking. One of the features required for Internet of Energy applications and services is to store historical data [39]. The IoE cloud layer includes virtualized servers. In addition, an application interface has been introduced with preserved historical data for each DER. A vast volume of data can be saved and maintained in the historical archive, which is supported by the application interface to the cloud infrastructure.

4.1. Platform of ThingSpeak

The ThingSpeak is an open-source IoT application (IoT) and an Application Programing Interface (API) that allows the storage and recovery of data through internet or by Local Area Network through the HTTP and MQTT protocol [40].
To operate, ThingSpeak inherits the following elements:
  • Received Signal Strength Indicator (RSSI) channels: A collection of N R C ThingSpeak channels for the upload of RSSI data by target devices. N R C is a device parameter to be chosen for the platform installation time.
The data submitted to RSSI channel include the IoT appliances ID, number of detected APs N R S S I D . The device ID is compulsory, the other data pieces may be missed if there are no technical capabilities in the IoT device. Each channel is replicated with the ID of the unit.
  • An algorithm-based Thing Speak Analysis, with the execution of data uploaded from devices on RSSI channels.
Three MATLAB variables store RSSI data in the applications [40]:
  • RSSI MAP dimension matrix N R P × N A P , where N R P is the number of point of reference and N A P the number of access points. The entry R S S I _ M A P i , j is set on relation to P N U L L lower than the recipient sensitivity threshold for the generic A P   i not detected in the generic R P   j ;
  • Dimensional RP MAP matrix of size N R P × 3 , with the j-th reference point coordinates in the j-th reference points.
  • A N R P length vector access point ID, which stores each access point MAC adress, in the same order as the RSSI MAP matrix rows.
The algorithm k Nearest Neighbor (kNN), the algorithm k is actually implemented on the platform [40].
x ^ = n = 1 k x n k y ^ = n = 1 k y n k p ^ k N N = n = 1 k p n k z ^ = n = 1 k z n k
W k N N is an extension of k N N .
p ^ W k N N = n = 1 k w ( m n ) p n n = 1 k w ( m n )
w ( . ) is usually defined as a special case of W k N N .
There are two choices for similarity tests at the moment for ThingSpeak:
  • Inverse Minkowski distance as:
    m ( S T , S i ) = ( l = 1 N A P | S l , T S l , i | p ) 1 p                               p 1
  • Correlation coefficient squared value R ( S T S i ) , as:
    R ( S T , S i ) = l = 1 N A P ( S l , T S T ) ( S l , i S i ) l = 1 N A P ( S l , T S T ) 2 l = 1 N A P ( S l , i S i ) 2

Procedure of Thing Speak

The process for setting and deploying the ThingSpeak platform provides for three steps, given that WiFi hardware is already mounted within the field of interest: (1) environmental scan, (2) configuration on the server-side, and (3) configuration on the device side.

4.2. Proposed Communication Architecture

4.2.1. The MQTT Knowledge

The MQTT is a lightweight protocol. The MQTT is operational in the TCP and ensures that all messages are forwarded from agent to server.
Three major players, i.e., A MQTT protocol includes MQTT Publisher, MQTT Broker, and a MQTT subscriber. MQTT’s subscribing and publishing companies have indirect connections and no IP address at the same time. An MQTT broker takes care of the customer authorization and initialization process necessary for communication. To publish the information, the MQTT publishers utilize custom themes for catering to their clients. The MQTT protocol did not use a Metadata marking. Thereafter, the MQTT topic management presents the metadata for a message load. MQTT is known as a string with the hierarchical structure of multi-attributes and multi-levels. Every stage can be separated from the forward slash in a theme tree [41]. For routing data derivation, all subjects can be modified. Following the exchange of control packets among clients and brokers, Figure 3a presents the link initialization. Check packets for CONNAC, Connect, PUBACK, PUBLISH, SUBSCRIBE, SUBACK, etc., were shown to include specific instructions concerning the subject, transmission and payload service quality (QoS). Figure 3b presents all components of the MQTT contact.

4.2.2. Proposed Architecture

The hierarchical system provided for intelligent homes with a control-layer and cyber-layer is presented in Figure 4. Two communication layers were included in the hybrid system. It was seen that in the Layer 1 (local layer), the appliances in the smart building transmitted the MQTT messages to a Building MQTT Client (BMC) and reported the measurement and subscribed to the MQTT message that were published via MQTT Client for protection/control purpose. A connection between the Cloud and BMC using HTTP POST/GET requests was seen in Layer 2 (which is the global layer). Any appliance in this architecture had Wi Fi unit connected to the local gate way. Thus, the values of a committed and pre-defined subject could be published regularly [42,43]. The BMC then subscribes to the various topics and transmits the values obtained to the cloud channel. A MATLAB cloud interface, which implements the built algorithm for allocating appliances, is available to access all cloud data. The algorithm results are then transferred with BMC from a cloud to intelligent devices that control them. The researchers found that when communication in any layer fails, the suggested architecture is robust (either local or global). Hence, the BMC was so designed that during any communication link failure or high latency noted in the network, it could operate as a local controller for all appliances in building. This function of BMC was highlighted in the Section 5.

4.3. Proposed Optimization Method

4.3.1. Salp Swarm Algorithm Based Scheduling Model

As shown in Figure 5, the salp swarm home devices planning mechanism is suggested in the work to optimally design home appliances. The action of the salp swarm algorithms is based on the navigation and foraging of the salp swarm in oceans. The key explanation for this optimization technique is its swarming activity in which all salps move and drill food together [44].
Each salp is considered as a device in energy management controller. Where the aim is to find a group of devices, namely the best swarm. The swarm of the salps moves together to find the best survival option. In our case, the best optimal point for a group of devices must be found during an interval time.
A swarm chain is salp. Then the swarm is divided into followers and a leader. It is said that the salp leading the chain is salp, while the others are also salp. The leader of salp leads the follower of salp. Taking the n-dimensional search field into account. N defines the number of optimization problem variables. Z is a double-dimensional matrix used for labeling the salp location. D is a supposed food source in a search room. In a search space, a salp target is D used to update leading position [44].
Z 𝒾 1 = D 𝒾 + 𝒶 1 ( ( 𝓇 𝓎 𝒾 𝓎 𝒾 ) 𝒶 2 + 𝓎 𝒾 ) 𝒶 3 0 Z 𝒾 1 = D 𝒾 𝒶 1 ( ( 𝓇 𝓎 𝒾 𝓎 𝒾 ) 𝒶 2 + 𝓎 𝒾 ) 𝒶 3 > 0
𝒶 1 is a balance coefficient of a exploitation and exploration.
𝓇 𝓎 𝒾 and 𝓎 𝒾 are upper bound and lower bound of search space with dimension 𝒾 . 𝒶 1 , 𝒶 2 and 𝒶 3 are random numbers. 𝒾 is search space dimenson. Z 𝒾 1 is salp leader. D 𝒾 is considered as a food source.
𝒶 1 = 2 × e ( 4 ) 2
Newton’s motion law will be used to change the follower salps’ location.
Z 𝒾 𝒿 = o 𝓽 + 0.5 × κ × 𝓽 2
where Z 𝒾 𝒿 represents the follower salp position of dimension 𝒾 . 𝓽 represent the iteration, o indicate the initial speed. The κ = f i n a l o and = Z Z o 𝓽 .

4.3.2. Rainfall Algorithm Based Scheduling Model

The rainfall algorithm is proposed in this work in order to plan home equipment optimally. The rainfall algorithm imitates rainfall behavior. Any drop of rain in the energy management controller is regarded as a device. In the deepest valley, drops are collected and the global optimal solution is found.
The particles are moving as the gradients descend and ascend in the rainfall algorithm. Figure 6 demonstrates the suggested algorithm. Rainfall optimization begins with parameters and population initialization. The words used in the suggested algorithms are: active drop, point neighbor, raindrop, explosion process, neighborhood, inactive drop, merit order list, and raindrops rank [44].
𝓃 𝓅 𝒾 𝒿 illustrate the neighbor devices 𝒿 of rain drop 𝒾 . Formula for 𝓃 𝓅 𝒾 𝒿 is illustrated in Equations (25) and (26):
|| 𝓋 𝓀 × 𝓇 || || 𝓋 𝓀 × ( A 𝒾 𝓃 𝓅 𝒾 𝒿 ||
𝓇 = 𝓇 i n i t i a l × f i t e r a t i o n
where, 𝒿 = 1, 2, 3, …, m, 𝒾 = 1, 2, 3, …, 𝓃 𝓅 and 𝓀 = 1, 2, 3, …, n, and 𝓇 is real vector.
A raindrop is said to be a single part of a population. It is a vector used to record the optimization problem variables. M is the population size, 𝒾 is used for presenting the decreased numbers. Equation (27) describes it [45].
A 𝒾 = [ Z 𝒾 , 1 , Z 𝒾 , 2 , Z 𝒾 , 3 Z 𝒾 , k , Z 𝒾 , n ] 𝒾 1 , 2 , , m
where n is variables in problem of optimization, Z 𝒾 , k illustrate k th variable used in problem of optimization. A 𝒾 is 𝒾 th number drop.
Subject used is illustrate below in (28) [45].
Z 𝒾 , k = 𝒻 ( l o w 𝓀 , u p 𝓀 )
𝒻 is used to shows function of uniform distribution. Lower and upper limits are represented as l o w 𝓀 and u p 𝓀 .
( 𝓃 𝓅 𝒾 𝒿 ) 𝒾 { 1 , 2 , , 𝓃 𝓅 } { 𝒹 } > ( 𝓃 𝓅 𝒹 𝒾 )
The explosion phase is accomplished when this drop is inactive. This approach is used to extract rain drop from the situation. The phase of explosion is Ne times. 𝓃 𝓅 𝓍 used in the explosion method to search neighbors for equation (30) [44].
𝓃 𝓅 𝓍 = 𝒸 × 𝒷 × 𝓃 𝓅
where explosion counter is given as 𝒸 , points neighbor are shows as 𝓃 𝓅 , and explosion base is illustrated as 𝒷 .
To save the raindrop ranges in an increasing order, a merit list is used. An optimization problem eliminates a raindrop from the merit list. Randomly, the raindrops are formed at first iteration. A neighborhood is allocated to each rainfall after rain drop generation and neighborhood point are also randomly generated according to objective feature restrictions. Below are such restrictions for Equations (31) and (32) to allocate neighboring points [44]:
i f   ( 𝓃 𝓅 𝒾 𝒿 ) 𝓀 > u p 𝓀         t h e n   ( 𝓃 𝓅 𝒾 𝒿 ) 𝓀 = u p 𝓀
i f   ( 𝓃 𝓅 𝒾 𝒿 ) 𝓀 < l o w 𝓀         t h e n   ( 𝓃 𝓅 𝒾 𝒿 ) 𝓀 = l o w 𝓀  
For each rain fall and its neighbors, the cost is measured. All neighborhood values are compared to raindrop values to detect the most dominant neighborhood point.

4.4. Communication System Model

The smart grid would need an effective measuring and communication system in order to continuously track the power and cost profile and regularly quantify power losses. There are several stages of data processing.
This work contains measurement units (MU) for every distribution network bus. MU is MATLAB modeling. Power and cost information is sent to the control center regularly at fixed time. The control center is designed as a virtual data management and analysis platform. One approach to communication relating to the device topology proposed is considered. The case takes a Cloud approach, which sends its measured data directly to the Cloud by any MU connected to corresponding feeder bus as illustrate in Figure 1.
The real-time data transfer among the MATLAB software package and the open source IoT framework ThingSpeak are used to model proposed communication architectures. ThingSpeak was chosen for the simulation of real time cloud communication Due to its following benefits [40]:
  • ThingSpeak Cloud IoT platform data aggregation, tracking and analysis. In the smart grid model, power profile is monitored on multiple ThingSpeak channels in real time and depicted graphically.
  • Security: The username and passwords allow user authentication while each channel is equipped with its own ID and can be accessible (seen by other users). There are two keys in each channel for the application programing interface. A randomly generated read key and write key of the API. These keys can save or retrieve information from stuff from each channel over the Internet or LAN.
  • It facilitates the double-way flow of data between the user and virtual device and allows the data and remote control to be exchanged in real time. The MATLAB Desktop Real-time Toolbox offers a communication between the simulated feeding model and the ThingSpeak IoT platform.
  • Communication network enabling for real-time data transmission over the Internet between MATLAB and ThingSpeak.
  • Allows importing, exporting, analyzing and viewing data on multiple platforms and their fields simultaneously.

5. Simulations Results

This part discusses the effect of the microgrid communication system. The microgrid will exchange information in the presence of the communications device, such as load consumption and power generation. To reduce micro grid operating costs, instead of purchasing from grid, the micro grid gets required power from neighboring microgrid instead of purchasing it from the utility grid. That mean, a communication system provides the data needed to transfer power between the microgrids. Utilizing the cost optimization algorithm in Reference [44].
In this simulation test, the outcomes of smart EMS applied with the proposed method over a cloud-platform to control devices in the microgrid are introduced and discussed. In this paper the MATLAB is a chief command and control unit organizing a ThingSpeak platform, developed in a software communication and architecture interface. MQTT functions as a broker between subscribing microgrid devices and main control unit. In this paper, the ThingSpeak platform interface that has been designed is a simple and convenient Graphical User Interface (GUI) that allows a house owner to interact and access with their home energy management as a service over the cloud system. Figure 7a shows the ThingSpeak web page to the enter user name and password of the customer, Figure 7b,c shows the ThingSpeak dash-board illustrate the results of the proposed system
For scheduling, where each house has several devices, three intelligent homes are envisaged. We considered the same energy demand for any consumer for a fair comparison of the electricity bill for three households.

5.1. Result without Corrective Method

The simulation is performed to verify the impact of the ToU signal on the electricity bill of the user. In ToU, electricity is regarded as a baseline in Reference [44]. The electricity prices are volatile and time dependent on the costs of generation and energy use. However, the costs of production are confidential in several respects. For the analysis, we therefore assume that the generation with high ToU rates will increase.
The home energy management system comprises a GUI and related software to facilitate users power consumption and total cost of the microgrid devices; their power consumption of all homes without the corrective method is implemented as displayed in Figure 8. Figure 9 shows the cost graphical user interface of proposed home energy management system without the corrective method, (a) cost profiles of the first house, (b) cost profiles of the second house, (c) cost profiles of the third house.

5.2. Result with Corrective Method

After scheduling the electric devices, the energy bill can be decreased. Additional studies are carried out to study a effect of the scheduling utilizing the algorithm of salp swarm and the algorithm of rainfall. After load shifting by scheduling, we also investigated the effect of the proposed pricing technic. Figure 10 shows power GUI of proposed home management system after implementing the SSA method, Figure 11 illustrates the power GUI of the proposed home management system after implementing the RFA algorithm. Figure 12 shows the cost GUI of the suggested home management system after implementing the SSA method, Figure 13 illustrates the cost GUI of the proposed system after implementing the RFA algorithm.

6. Results and Discussion

In the analysis, electricity emission reduction, cost-saving and PAR were used to evaluate the performing analysis of the microgrid. The time slots demanded for unmovable and changing demand are moved into the early morning time after the implementation of the energy management system, as shown in Figure 12 and Figure 13. Thus, the load profile is corrected as the customer can work with low price on time slots as shiftable, unshiftable devices. As a result, consumption energy costs have been reduced, emissions costs decreased, and the PAR upgrade was carried out. Figure 14 shows the comparison between without the suggested system and with the suggested system.
After applying the suggested scheme, it is notable that the micro grid energy cost has been reduced from 542.2977 cents (USD) to 432.7899 cents (25.3%) by using the salp swarm algorithm, as depicted in Figure 14b. Additionally, it is notable that the micro grid energy cost has been decreased from 542.2977 cents (USD) to 412.9103 cents (31.335%) by using the rainfall algorithm, as depicted in Figure 14c.

7. Conclusions

In this research, a novel optimization technique, as well as the cloud device framework has been established for the home management system. This study proposed a new communication system with a two level construction, which is suitable for microgrid management system. The suggested platform uses Transmission Control Protocol/Internet Protocol (TCP/IP) for local microgrid data exchange and as a backup communication technique among microgrid in case of a failure in the communication of cloud level. MQTT subscriber/publisher is adopted for cloud-level messaging and HTTP for interactions between a cloud-server and platform. Using the IoT and salp swarm algorithm and rainfall algorithm optimization technique, and optimal energy management scheme for microgrid is proposed in this paper. This work is the main contribution to the literature on energy management functioning and it proposes Real-Time Electricity Scheduling (RTES) for the home energy management system, which considers the errors of information prediction. Unlike the majority of the earlier home energy management system approaches that revolve around Day Ahead Electricity Scheduling (DAES). In addition, the energy management system was applied to improve the microgrid consumed energy cost, emission price, and PAR. To evaluate the performance of the suggested system models given in this paper, different tests were performed on MATLAB. The cost analysis in the results section shows how efficient the suggested distributed platform is compared to the centralized functionality of microgrid communications. The scheduling controller proposed in this study succeeded the energy saving of 25.3% by using the salp swarm algorithm and saving of 31.335% by using the rainfall algorithm.

Author Contributions

B.N.A., software, methodology, writing—original draft; B.H.J., supervision, investigation, resources; P.S., funding, and review, J.M.G., funding, supervision, editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data sharing not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Babar, M.; Tariq, M.U.; Jan, M.A. Secure and resilient demand side management engine using machine learning for IoT-enabled smart grid. Sustain. Cities Soc. 2020, 62, 102370. [Google Scholar] [CrossRef]
  2. Ahmad, T.; Zhang, H.; Yan, B. A review on renewable energy and electricity requirement forecasting models for smart grid and buildings. Sustain. Cities Soc. 2020, 55, 102052. [Google Scholar] [CrossRef]
  3. Zhou, Q.; Shahidehpour, M.; Paaso, A.; Bahramirad, S.; AlAbdulwahab, A.; Abusorrah, A. Distributed Control and Communication Strategies in Networked Microgrids. IEEE Commun. Surv. Tutor. 2020, 22, 2586–2633. [Google Scholar] [CrossRef]
  4. Alhasnawi, B.N.; Jasim, B.H.; Issa, W.; Esteban, M.D. A Novel Cooperative Controller for Inverters of Smart Hybrid AC/DC Microgrids. Appl. Sci. 2020, 10, 6120. [Google Scholar] [CrossRef]
  5. Lezama, F.; Soares, J.; Canizes, B.; Vale, Z. Flexibility management model of home appliances to support DSO requests in smart grids. Sustain. Cities Soc. 2020, 55, 102048. [Google Scholar] [CrossRef]
  6. Chen, Y.-Y.; Lin, Y.-H.; Kung, C.-C.; Chung, M.-H.; Yen, I.-H. Design and Implementation of Cloud Analytics-Assisted Smart Power Meters Considering Advanced Artificial Intelligence as Edge Analytics in Demand-Side Management for Smart Homes. Sensors 2019, 19, 2047. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Paul, S.; Padhy, N.P. Real Time Energy Management for Smart Homes. IEEE Syst. J. 2020, 1–12. [Google Scholar] [CrossRef]
  8. Bhamidi, L.; Sivasubramani, S. Optimal Sizing of Smart Home Renewable Energy Resources and Battery Under Prosumer-Based Energy Management. IEEE Syst. J. 2021, 15, 105–113. [Google Scholar] [CrossRef]
  9. Arun, S.L.; Selvan, M.P. Intelligent Residential Energy Management System for Dynamic Demand Response in Smart Buildings. IEEE Syst. J. 2018, 12, 1329–1340. [Google Scholar] [CrossRef]
  10. Wang, F.; Zhou, L.; Ren, H.; Liu, X.; Talari, S.; Shafie-Khah, M.; Catalao, J.P.S. Multi-Objective Optimization Model of Source–Load–Storage Synergetic Dispatch for a Building Energy Management System Based on TOU Price Demand Response. IEEE Trans. Ind. Appl. 2018, 54, 1017–1028. [Google Scholar] [CrossRef]
  11. Zhang, D.; Li, S.; Sun, M.; O’Neill, Z. An Optimal and Learning-Based Demand Response and Home Energy Management System. IEEE Trans. Smart Grid 2016, 7, 1790–1801. [Google Scholar] [CrossRef]
  12. Shafie-Khah, M.; Siano, P. A Stochastic Home Energy Management System Considering Satisfaction Cost and Response Fatigue. IEEE Trans. Ind. Inform. 2018, 14, 629–638. [Google Scholar] [CrossRef]
  13. Huang, Y.; Wang, L.; Guo, W.; Kang, Q.; Wu, Q. Chance Constrained Optimization in a Home Energy Management System. IEEE Trans. Smart Grid 2018, 9, 252–260. [Google Scholar] [CrossRef]
  14. Alhasnawi, B.N.; Jasim, B.H.J. A Novel Hierarchical Energy Management System Based on Optimization for Multi-Microgrid. Int. J. Electr. Eng. Inform. 2020, 12, 586–606. [Google Scholar] [CrossRef]
  15. Paul, S.; Padhy, N.P. Resilient scheduling portfolio of residential devices and plug-in eletric vehicle by minimizing conditional value at risk. IEEE Trans. Ind. Inform. 2019, 15, 1566–1578. [Google Scholar] [CrossRef]
  16. Vardakas, J.S.; Zorba, N.; Verikoukis, C.V. Power demand control scenarios for smart grid applications with finite number of appliances. Appl. Energy 2016, 162, 83–98. [Google Scholar] [CrossRef]
  17. Alhasnawi, B.N.; 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]
  18. Vagdoda, J.; Makwana, D.; Adhikaree, A.; Faika, T.; Kim, T. A Cloud-Based Multiagent System Platform for Residential Microgrids Towards Smart Grid Community. In Proceedings of the IEEE Power & Energy Society General Meeting (PESGM), Portland, OR, USA, 5–10 August 2018. [Google Scholar] [CrossRef]
  19. Wang, Y.; Nguyen, T.-L.; Xu, Y.; Tran, Q.-T.; Caire, R. Peer-to-Peer Control for Networked Microgrids: Multi-Layer and Multi-Agent Architecture Design. IEEE Trans. Smart Grid 2020, 11, 4688–4699. [Google Scholar] [CrossRef]
  20. Wang, K.; Li, H.; Maharjan, S.; Zhang, Y.; Guo, S. Green Energy Scheduling for Demand Side Management in the Smart Grid. IEEE Trans. Green Commun. Netw. 2018, 2, 596–611. [Google Scholar] [CrossRef]
  21. Moghaddam, M.H.Y.; Leon-Garcia, A. A fog-based internet of energy architecture for transactive energy management systems. IEEE Internet Things J. 2018, 5, 1055–1069. [Google Scholar] [CrossRef]
  22. Hashmi, S.A.; Ali, C.F.; Zafar, S. Internet of things and cloud computing-based energy management system for demand side management in smart grid. Int. J. Energy Res. 2021, 45, 1–16. [Google Scholar] [CrossRef]
  23. Davarzani, S.; Granell, R.; Taylor, G.A.; Pisica, I. Implementation of a novel multi-agent system for demand response management in low-voltage distribution networks. Appl. Energy 2019, 253, 113516. [Google Scholar] [CrossRef]
  24. Golmohamadi, H.; Keypour, R.; Bak-Jensen, B.; Pillai, J.R. A multi-agent based optimization of residential and industrial demand response aggregators. Int. J. Electr. Power Energy Syst. 2019, 107, 472–485. [Google Scholar] [CrossRef]
  25. Cortés-Arcos, T.; Bernal-Agustín, J.L.; Dufo-López, R.; Lujano-Rojas, J.M.; Contreras, J. Multi-objective demand response to real-time prices (RTP) using a task scheduling methodology. Energy 2017, 138, 19–31. [Google Scholar] [CrossRef]
  26. Alhasnawi, B.; Jasim, B. 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]
  27. 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]
  28. Ahmed, M.S.; Mohamed, A.; Khatib, T.; Shareef, H.; Homod, R.Z.; Ali, J.A. 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]
  29. Alhasnawi, B.N.; Jasim, B.H. A new internet of things enabled trust distributed demand side management system. Sustain. Energy Technol. Assess. 2021, 46, 101272. [Google Scholar] [CrossRef]
  30. Mahapatra, C.; Moharana, A.K.; Leung, V.C.M. Energy Management in Smart Cities Based on Internet of Things: Peak Demand Reduction and Energy Savings. Sensors 2017, 17, 2812. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  31. Al Faruque, M.A.; Vatanparvar, K. Energy Management-as-a-Service Over Fog Computing Platform. IEEE Internet Things J. 2015, 3, 161–169. [Google Scholar] [CrossRef]
  32. Li, W.; 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]
  33. Wu, J.; Wei, Z.; Li, W.; Wang, Y.; Li, Y.; Sauer, D.U. Battery Thermal- and Health-Constrained Energy Management for Hybrid Electric Bus Based on Soft Actor-Critic DRL Algorithm. IEEE Trans. Ind. Inform. 2021, 17, 3751–3761. [Google Scholar] [CrossRef]
  34. Alhasnawi, B.N.; Jasim, B.H.; Anvari-Moghaddam, A.; Blaabjerg, F. A New Robust Control Strategy for Parallel Operated Inverters in Green Energy Applications. Energies 2020, 13, 3480. [Google Scholar] [CrossRef]
  35. Wu, J.; Wei, Z.; Liu, K.; Quan, Z.; Li, Y. Battery-Involved Energy Management for Hybrid Electric Bus Based on Expert-Assistance Deep Deterministic Policy Gradient Algorithm. IEEE Trans. Veh. Technol. 2020, 69, 12786–12796. [Google Scholar] [CrossRef]
  36. Alhasnawi, B.N.; Jasim, B.H. A new energy management system of on-grid/off-grid using adaptive neuro-fuzzy inference system. J. Eng. Sci. Technol. 2020, 15, 3903–3919. [Google Scholar]
  37. 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]
  38. Seyede, Z.; Mardaneh, M.T.; Taherian-Fard, E.; Izadian, A.; Ka-vousi-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]
  39. 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. 2020, 6, 7241–7252. [Google Scholar] [CrossRef] [Green Version]
  40. De Nardis, L.; Caso, G.; Di Benedetto, M.G. ThingsLocate: A ThingSpeak-Based Indoor Positioning Platform for Academic Research on Location-Aware Internet of Things. Technologies 2019, 7, 50. [Google Scholar] [CrossRef] [Green Version]
  41. 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]
  42. Alhasnawi, B.N.; Jasim, B.H.; Esteban, M.D.; Guerrero, J.M. A Novel Smart Energy Management as a Service over a Cloud Computing Platform for Nanogrid Appliances. Sustain. J. Rec. 2020, 12, 9686. [Google Scholar] [CrossRef]
  43. Alhasnawi, B.N.; Jasim, B.H.; Esteban, M.D.; Hossain, E.; Guerrero, J.M. A New Decentralized Control Strategy of Microgrids in the Internet of Energy Paradigm. Energies 2021, 14, 2183. [Google Scholar] [CrossRef]
  44. Khalid, A.; Javaid, N.; Mateen, A.; Ilahi, M.; Saba, T.; Rehman, A. Enhanced Time-of-Use Electricity Price Rate Using Game Theory. Electronics 2019, 8, 48. [Google Scholar] [CrossRef] [Green Version]
  45. Khalid, A. Towards Energy Effciency in Smart Buildings Exploiting Dynamic Coordination among Appliances and Homes. Ph.D. Thesis, COMSATS University Islamabad, Islamabad, Pakistan, 2018. [Google Scholar]
Figure 1. Suggested structure.
Figure 1. Suggested structure.
Energies 14 03191 g001
Figure 2. Proposed Internet of Energy platform architecture.
Figure 2. Proposed Internet of Energy platform architecture.
Energies 14 03191 g002
Figure 3. (a) MQTT procedure, (b) MQTT topic and component.
Figure 3. (a) MQTT procedure, (b) MQTT topic and component.
Energies 14 03191 g003
Figure 4. Smart home proposed architecture of communication.
Figure 4. Smart home proposed architecture of communication.
Energies 14 03191 g004
Figure 5. Salp swarm optimization algorithm.
Figure 5. Salp swarm optimization algorithm.
Energies 14 03191 g005
Figure 6. Rainfall optimization algorithm.
Figure 6. Rainfall optimization algorithm.
Energies 14 03191 g006
Figure 7. User interface design platform (ThingSpeak platform), (a) the ThingSpeak web page to the enter username and password of the customer, (b,c) the ThingSpeak dashboard illustrate the results of the proposed system.
Figure 7. User interface design platform (ThingSpeak platform), (a) the ThingSpeak web page to the enter username and password of the customer, (b,c) the ThingSpeak dashboard illustrate the results of the proposed system.
Energies 14 03191 g007aEnergies 14 03191 g007b
Figure 8. Power GUI of the suggested home structure without corrective method: (a) load profiles of the first house; (b) load profiles of the second house; (c) load profiles of the third house.
Figure 8. Power GUI of the suggested home structure without corrective method: (a) load profiles of the first house; (b) load profiles of the second house; (c) load profiles of the third house.
Energies 14 03191 g008aEnergies 14 03191 g008b
Figure 9. Cost GUI of the suggested home structure without corrective method: (a) cost profiles of the first house; (b) cost profiles of the second house; (c) cost profiles of the third house.
Figure 9. Cost GUI of the suggested home structure without corrective method: (a) cost profiles of the first house; (b) cost profiles of the second house; (c) cost profiles of the third house.
Energies 14 03191 g009aEnergies 14 03191 g009b
Figure 10. Power GUI of the proposed system after implementing the SSA algorithm: (a) load profiles of first house; (b) load profiles of second house; (c) load profiles of third house.
Figure 10. Power GUI of the proposed system after implementing the SSA algorithm: (a) load profiles of first house; (b) load profiles of second house; (c) load profiles of third house.
Energies 14 03191 g010
Figure 11. Power GUI of the suggested home structure after implementing the RFA algorithm: (a) load profiles of first house; (b) load profiles of second house; (c) load profiles of third house.
Figure 11. Power GUI of the suggested home structure after implementing the RFA algorithm: (a) load profiles of first house; (b) load profiles of second house; (c) load profiles of third house.
Energies 14 03191 g011aEnergies 14 03191 g011b
Figure 12. Cost GUI of the suggested home structure after implementing the SSA algorithm: (a) cost profiles of first house; (b) cost profiles of second house; (c) cost profiles of third house.
Figure 12. Cost GUI of the suggested home structure after implementing the SSA algorithm: (a) cost profiles of first house; (b) cost profiles of second house; (c) cost profiles of third house.
Energies 14 03191 g012aEnergies 14 03191 g012b
Figure 13. Cost GUI of the suggested home structure after implementing the RFA algorithm: (a) cost profiles of first house; (b) cost profiles of second house; (c) cost profiles of third house.
Figure 13. Cost GUI of the suggested home structure after implementing the RFA algorithm: (a) cost profiles of first house; (b) cost profiles of second house; (c) cost profiles of third house.
Energies 14 03191 g013aEnergies 14 03191 g013b
Figure 14. Comparison between without the suggested system and with the suggested system, (a) microgrid cost, (b) improvement (%) by using salp swarm algorithm, (c) improvement (%) by using rainfall algorithm.
Figure 14. Comparison between without the suggested system and with the suggested system, (a) microgrid cost, (b) improvement (%) by using salp swarm algorithm, (c) improvement (%) by using rainfall algorithm.
Energies 14 03191 g014aEnergies 14 03191 g014b
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Alhasnawi, B.N.; Jasim, B.H.; Siano, P.; Guerrero, J.M. A Novel Real-Time Electricity Scheduling for Home Energy Management System Using the Internet of Energy. Energies 2021, 14, 3191. https://doi.org/10.3390/en14113191

AMA Style

Alhasnawi BN, Jasim BH, Siano P, Guerrero JM. A Novel Real-Time Electricity Scheduling for Home Energy Management System Using the Internet of Energy. Energies. 2021; 14(11):3191. https://doi.org/10.3390/en14113191

Chicago/Turabian Style

Alhasnawi, Bilal Naji, Basil H. Jasim, Pierluigi Siano, and Josep M. Guerrero. 2021. "A Novel Real-Time Electricity Scheduling for Home Energy Management System Using the Internet of Energy" Energies 14, no. 11: 3191. https://doi.org/10.3390/en14113191

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

Article Metrics

Back to TopTop