This paper presents a methodology for energy management in a smart microgrid based on the efficiency of dispatchable generation sources and storage systems, with three different aims: elimination of power peaks; optimisation of the operation and performance of the microgrid; and reduction of energy consumption from the distribution network. The methodology is based on four steps: identification of elements of the microgrid, monitoring of the elements, characterization of the efficiency of the elements, and finally, microgrid energy management. A specific use case is shown at CEDER-CIEMAT (Centro para el Desarrollo de las Energías Renovables—Centro de Investi-gaciones Energéticas, Medioambientales y Tecnológicas), where consumption has been reduced during high tariff periods and power peaks have been eliminated, allowing an annual reduction of more than 25,000 kWh per year, which is equal to savings of more than 8500 €. It also allows the power contracted from the distribution company by CEDER (135 kW) not to be exceeded, which avoids penalties in the electricity bill.