Summary: Low Earth orbit (LEO) satellites has been foreseen as a promising paradigm to enable reliable connectivity in the Internet of Things (IoT) enabled smart grids. Considering the limited coverage of the traditional base station (BS), in this paper, we put the edge computing servers on the LEO satellites to realize ubiquitous service coverage and wireless transmission in the power grid environment. However, the inherent high mobility of LEO satellites poses challenges in maintaining stable communication links and efficiently managing the heterogeneous network resources among a myriad of IoT devices, including those in smart grids. To address these challenges, in this paper, we propose a collaborative MEC framework leveraging the collaboration computing among LEO satellites. In the framework, we consider the dynamic nature of LEO satellite net-works and formulate an optimization problem to maximize Quality of Experience (QoE) of IoT users. Then, we adopt the Proximal Policy Optimization (PPO) algorithm to tackle this dynamic problem. Simulation results demonstrate that the proposed solution not only improves the overall performance of LEO-enabled IoT networks by reducing the latency and energy consumption of users but also significantly enhances the efficiency of heterogeneous network management.