The Reasearch explores the integration of Edge AI into energy systems for real-time optimization and decision-making processes. It aims to develop a framework that makes it possible to leverage edge devices as a solution for energy distribution, consumption, efficiency and possibly generation. The research has a focal point on sustainability, with hopes at improving the reliability of renewable energy systems, reducing energy wastage, and enhancing system stability. The thesis will evaluate how AI can be used to facilitate predictive analytics, demand-side management, and adaptive control in energy networks, fostering a more resilient and sustainable energy ecosystem.