Τhe building automation control is a crucial factor for improving buildings energy efficiency and management, as well as improving the electricity grid's reliability indices. This paper presents the methodology, describes the necessary technology requirements and presents the decentralized building automation novel algorithm for Efficient demand side management in a building. All these are applied in an experimental university microgrid and the results are presented in terms of energy saving in kWh, money in € and working hours.