Demand Side Management for heating controls in Microgrids