In response to the pace of domestic electricity liberalization, the electricity trading market has become the latest trend. Therefore, expanding the AIoT(Artificial Intelligence and Internet of Things) energy management system into a decentralized energy management and dispatching system, and developing and integrating power-saving control and grid interaction functions into the energy management system is a top priority. This technology can automatically unload or reduce non-essential air conditioners and lighting equipment, and apply machine learning algorithms to predict power consumption models, dynamically adjust refrigerators, air conditioners, and lighting parameters to reduce power consumption during peak period, improve energy saving efficiency. Strengthen the added value of the energy management system and accelerate commercial promotion, and keep up with the latest international development trends.