This work proposes an approach, based on a fundamental coordination mechanism from nature, namely stigmergy. The proposed meta-heuristic is utilized to distributively calculate global schedules for a population of customers provided with intelligent devices. These schedules maximize renewable energy sources utilization. Furthermore, this approach is adapted and utilized as a coordination mechanism of autonomous customers to modify their consumption behavior in a real-time optimization context