This paper introduces a new switching means giving a real time optimum connection mode of domestic appliances on either the electrical grid or a photovoltaic panel (PVP) output. A fuzzy algorithm makes the decision which ensures the optimal energy-management based on PVP generation and appliances states with respect to energy-saving criteria. Validation is driven on a 1kW peak (kWp) PVP and domestic appliances of different powers installed at the Energy and Thermal Research Centre (CRTEn) in the north of Tunisia. Results confirm that energy saved during daylight is 80–90% of the PVP generated energy.