Agile solutions for energy management and automation