Flexibility and plug-and-play for renewable energy