This paper presents a study of a grid-connected hybrid energy system (HES) consisting of photovoltaic/wind/fuel cell/battery/supercapacitor (SC). The purpose of using SC with the battery is to create a hybrid energy storage system (HESS) with high energy density. To prevent overcharging of the latter, a discharge load was employed (in our case, a resistance). The objectives of this research are to operate the photovoltaic generator and the wind power generator at their maximum power points by applying the perturbation and observation (P&O) technique and the tip speed ratio (TSR) technique, respectively. On the other hand, the energy management of the proposed system aims to achieve an energy balance between the grid and the HES despite climate changes and changes in energy demand to which the system is exposed, and to lengthen the life cycle of the HESS by keeping the state of charge (SOC) within a limited range. This management is accomplished by using a classical energy management strategy. To achieve optimal power management of the proposed system, a new intelligent energy management strategy (IEMS) based on the FLC-FOPI is proposed. A comparative analysis was also conducted between the classical strategy and the proposed strategy. As for the grid-side converter, direct power control based on SOSMC technique (DPC-SOSMC) has been proposed to regulate the flow of active and reactive power according to grid demand based on HRES. To demonstrate the effectiveness of the proposed controllers, simulation results evaluating the proposed system under variable conditions are presented using the Matlab-Simulink platform.