This paper proposes a fuzzy-based energy management strategy (EMS) to maximize the self-consumption from a PV installation with an energy storage system (ESS) for the residential sector adapted to the Ecuadorian electricity market. The EMS includes two control levels: Energy management at the end-user level (Fuzzy-based EMS and optimized by genetic Algorithm) and Energy management at the distribution grid level (Fuzzy-based EMS). Both strategies aim to maximize the use of the energy generated at home (taking into account the local solar generation profile), fulfilling the loads’ demand and injecting the energy surplus into the main grid to be economically compensated. Additionally, this paper presents economical modeling according to the electricity market in Ecuador. The main results showed a cost reduction in the electricity bill up to 83.64% from the base case (residential consumption without a PV system). In the scenario of a community electricity market (still not contemplated under the Ecuadorian electricity law), the potential economic savings may be more than double compared to the exact case but only with a self-consumption system.