The energy transition in Germany is entering a new phase: In addition to the pure production of green electricity, system integration is now becoming increasingly important. To this end, Fraunhofer IOSB-AST is developing self-learning energy management systems as well as cybersecurity solutions and researching new open district hub ecosystems using and adapting open middleware and automatic learning methods. In projects in North Rhine-Westphalia (Bochum, Jülich) and Bavaria (Zusmarshausen), new energy management solutions for neighborhoods are being developed together with renowned real estate companies, the Open District Hub e.V. association and numerous Fraunhofer institutes.