Energy management method and device, computer device and readable storage medium

CN123019056APending Publication Date: 2026-10-30SHENZHEN HELLO TECH ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611083000.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-21
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0003]然而,相关技术中,对于户用储能系统的能源调度策略,或按照预设的固定时间表执行,或按照用户手动输入的分时电价表执行,能源调度无法响应电网侧的变化,也难以适应家庭用电行为的变化,降低了家庭能源管理的智能性和整体碳减排潜力

Benefits of technology

[0036]本发明所提供的能源管理装置,基于电网的清洁度预测数据,确定电网的工作状态及对应的工作时段,进而生成对应的控制指令集,控制储能设备和负载设备执行与工作状态对应的负载操作。一方面,基于电网的清洁度预测数据进行能源调度,使得能源调度策略能够与电网的绿色程度同步,实现了能源调度与绿色电力的协同运行;另一方面,实现了储能加负载的协同优化,可最大化绿电使用比例,降低电费支出和碳排放。这样,实现了电网-储能-负载的三级协同控制,提升了能源调度的灵活性,能源调度既可动态响应电网侧的变化,也能够适应家庭用电行为的变化,实现了家庭用能的全局优化,提升了家庭能源管理的智能性和整体碳减排潜力。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123019056A_ABST
    Figure CN123019056A_ABST
Patent Text Reader

Abstract

The application provides an energy management method and device, a computer device and a readable storage medium. The energy management method comprises the following steps: acquiring clean degree prediction data of a power grid in a preset period; determining the working state and the corresponding working period of the power grid in different periods of the preset period according to the clean degree prediction data; generating a control instruction set of a storage device and a load device according to the working state and the working period, the control instruction set being used for adjusting the working mode of the storage device and the load device in the corresponding working period; and sending the control instruction set to the storage device and the load device, so that the storage device and the load device perform a load operation corresponding to the working state in the corresponding working period, and the load operation is used for increasing or decreasing the load power of the storage device and the load device. In this way, three-level collaborative control of the power grid, the storage device and the load device is realized, and the flexibility of energy scheduling, the intelligence of household energy management and the overall carbon emission reduction potential are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of energy management technology, and more specifically, to an energy management method and apparatus, a computer device, and a readable storage medium. Background Technology

[0002] With the global energy transition and the continued growth in household electricity demand, residential energy storage systems are gradually becoming a core infrastructure for home energy management. The core functions of residential energy storage systems include storing electrical energy and supplying power to household loads; therefore, the energy dispatch strategy of residential energy storage systems is particularly important for the intelligent management of home energy.

[0003] However, in related technologies, the energy dispatch strategy for household energy storage systems is either executed according to a preset fixed schedule or according to the time-of-use electricity price table manually entered by the user. The energy dispatch cannot respond to changes on the grid side, nor can it adapt to changes in household electricity consumption behavior, which reduces the intelligence of household energy management and the overall carbon emission reduction potential. Summary of the Invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.

[0005] Therefore, the first aspect of the present invention is to propose an energy management method.

[0006] A second aspect of the present invention is to provide an energy management device.

[0007] A third aspect of the invention is to provide a computer device.

[0008] A fourth aspect of the present invention is to provide a readable storage medium.

[0009] In view of this, according to a first aspect of the present invention, an energy management method is proposed, comprising: acquiring power grid cleanliness prediction data within a preset time period; determining the operating state of the power grid and the corresponding operating time period within different time periods of the preset time period based on the cleanliness prediction data; generating a control instruction set for an energy storage device and a load device based on the operating state and the operating time period, the control instruction set being used to adjust the operating mode of the energy storage device and the load device under the corresponding operating time period; and sending the control instruction set to the energy storage device and the load device to control the energy storage device and the load device to perform load operations corresponding to the operating state under the corresponding operating time period, the load operations being used to increase or decrease the load power of the energy storage device and the load device.

[0010] The execution subject of the energy management method provided by this invention can be a computer device, an energy management device, or something else depending on actual usage requirements; no specific limitation is made here. To more clearly describe the energy management method provided by this invention, the following description uses an energy management device as the execution subject.

[0011] Specifically, in the energy management method provided by this invention, during the energy management process, the energy management device acquires power grid cleanliness prediction data within a preset time period, and determines the power grid's operating status and corresponding operating periods within different time periods of the preset time period based on the cleanliness prediction data. On this basis, the energy management device generates a control command set for the energy storage device and the load device according to the determined operating status and operating periods. The control command set is used to adjust the operating mode of the energy storage device and the load device during the corresponding operating periods. Based on this, the energy management device then sends the control command set to the energy storage device and the load device to control them to perform load operations corresponding to the operating status during the corresponding operating periods. The load operations are used to increase or decrease the load power of the energy storage device and the load device.

[0012] The energy management method provided by this invention determines the grid's operating state and corresponding operating periods based on grid cleanliness prediction data, and then generates a corresponding control command set to control energy storage devices and load devices to perform load operations corresponding to the operating state. On the one hand, energy dispatching based on grid cleanliness prediction data enables energy dispatching strategies to synchronize with the grid's greenness, achieving coordinated operation of energy dispatching and green electricity. On the other hand, it achieves coordinated optimization of energy storage and load, maximizing the proportion of green electricity use and reducing electricity costs and carbon emissions. Thus, it achieves three-level coordinated control of the grid, energy storage, and load, improving the flexibility of energy dispatching. Energy dispatching can dynamically respond to changes on the grid side and adapt to changes in household electricity consumption behavior, achieving global optimization of household energy use and enhancing the intelligence of household energy management and overall carbon reduction potential.

[0013] In some technical solutions, optionally, the working state includes a clean state and a peak state, and the working time period includes a clean time period and a peak time period. Based on cleanliness prediction data, the working state of the power grid and the corresponding working time period in different time periods of a preset time period are determined, including: if the cleanliness prediction data obtained within a continuous first time period is all less than a first threshold, the power grid is determined to be in a clean state, and the clean time period corresponding to the clean state is determined based on the cleanliness prediction data; if the cleanliness prediction data obtained within a continuous second time period is all greater than a second threshold, the power grid is determined to be in a peak state, and the peak time period corresponding to the peak state is determined based on the cleanliness prediction data, wherein the second threshold is greater than the first threshold.

[0014] In this technical solution, the power grid's operating states include a clean state and a peak state. The working period corresponding to the clean state is the clean period, and the working period corresponding to the peak state is the peak period.

[0015] Based on this, in determining the power grid's operating status and corresponding operating periods within different time periods according to cleanliness prediction data, specifically, if the cleanliness prediction data obtained for a consecutive first duration is all less than a first threshold, the energy management device determines that the power grid is in a clean state and determines the clean period corresponding to the clean state based on the cleanliness prediction data. Conversely, if the cleanliness prediction data obtained for a consecutive second duration is all greater than a second threshold, the energy management device determines that the power grid is in a peak state and determines the peak period corresponding to the peak state based on the cleanliness prediction data. The second threshold is greater than the first threshold. In this way, by combining the magnitude and duration of the cleanliness prediction data to determine the specific operating status and operating period of the power grid, a dual-window determination mechanism for operating status and operating period is implemented. This effectively avoids false triggering caused by single-point data fluctuations and improves the accuracy of determining the operating status and operating period.

[0016] In some technical solutions, optionally, a control instruction set for the energy storage device and the load device is generated according to the working state and working period, including: in the clean state, generating a first instruction set for the energy storage device and the load device according to the clean period, the first instruction set being used to control the energy storage device and the load device to perform a load increase operation corresponding to the clean state during the clean period, the load increase operation being used to increase the load power of the energy storage device and the load device; in the peak state, generating a second instruction set for the energy storage device and the load device according to the peak period, the second instruction set being used to control the energy storage device and the load device to perform a load decrease operation corresponding to the peak state during the peak period, the load decrease operation being used to reduce the load power of the energy storage device and the load device.

[0017] In this technical solution, during the process of generating control command sets for energy storage devices and load devices based on their operating status and time periods, specifically, in clean operating conditions, the energy management device generates a first command set for the energy storage devices and load devices based on the clean operating period. This first command set controls the energy storage devices and load devices to perform load-increasing operations corresponding to the clean operating conditions during the clean operating period, increasing the load power of the energy storage devices and load devices. In peak operating conditions, the energy management device generates a second command set for the energy storage devices and load devices based on the peak operating period. This second command set controls the energy storage devices and load devices to perform load-reducing operations corresponding to the peak operating conditions during the peak operating period, decreasing the load power of the energy storage devices and load devices. In this way, by generating corresponding command sets based on the specific operating status and time periods of the power grid, and dynamically controlling the energy storage devices and load devices to perform corresponding load operations, the flexibility of energy dispatch is improved, and coordinated energy optimization of energy storage and load is achieved. This maximizes the proportion of green electricity use and reduces electricity costs and carbon emissions.

[0018] In some technical solutions, optionally, the load equipment includes at least one of the following: charging equipment, heating equipment, air conditioning equipment, lighting equipment, and cleaning equipment; the load increase operation includes at least one of the following: the energy storage equipment draws power from the grid, the charging equipment charges externally, the heating equipment performs a heating task, and the cleaning equipment performs a cleaning task; the load decrease operation includes at least one of the following: the energy storage equipment stops drawing power, the charging equipment stops charging, the operating temperature of the air conditioning equipment is increased, the lighting brightness of the lighting equipment is reduced, and the cleaning equipment stops operating.

[0019] In this technical solution, the aforementioned load equipment includes, but is not limited to: charging equipment, heating equipment, air conditioning equipment, lighting equipment, and cleaning equipment.

[0020] Based on this, the above-mentioned load-adding operations include, but are not limited to: energy storage devices drawing power from the grid, charging devices charging external devices, heating devices performing heating tasks, and cleaning devices performing cleaning tasks.

[0021] Optionally, the above-mentioned load reduction operations include, but are not limited to: stopping the energy storage device from drawing power, suspending the charging device from charging, increasing the operating temperature of the air conditioning device, reducing the lighting brightness of the lighting device, and suspending the operation of the cleaning device.

[0022] In this way, when the power grid is in a clean state, the energy storage device and each load device are controlled to perform operations such as power extraction, charging, heating, and cleaning. When the power grid is in a peak state, the energy storage device and each load device are controlled to perform operations such as stopping power extraction, pausing charging, heating, dimming brightness, and pausing operation. This effectively utilizes power grid resources, improves the flexibility of energy dispatch, increases the proportion of green electricity use, and reduces electricity costs and carbon emissions.

[0023] In some technical solutions, optionally, the control instruction set includes multiple device control instructions, and sending the control instruction set to the energy storage device and the load device includes: sending multiple device control instructions to the corresponding energy storage device or load device in sequence according to a preset priority order and at a target duration interval.

[0024] In this technical solution, the aforementioned control instruction set may specifically include multiple device control instructions, wherein one device control instruction corresponds to one energy storage device or load device.

[0025] Based on this, in the process of sending control command sets to energy storage devices and load devices, specifically, the energy management device sends multiple device control commands to the corresponding energy storage devices or load devices sequentially at target time intervals and according to a preset priority order. In this way, by sending multiple device control commands to the corresponding energy storage devices or load devices at preset intervals, the energy storage devices or load devices are controlled sequentially, avoiding sudden and large changes in load power, thus preventing instantaneous overload problems caused by multiple devices operating simultaneously.

[0026] In some technical solutions, optionally, after sending the control command set to the energy storage device and the load device, the energy management method further includes: monitoring the cleanliness prediction data of the power grid; if an update to the cleanliness prediction data within a preset time period is detected, redetermining the operating state of the power grid and the corresponding operating time period based on the updated cleanliness prediction data; if the offset of the operating time period is greater than a preset offset value, updating the control command set based on the redetermined operating state and operating time period; and sending the updated control command set to the energy storage device and the load device to replace the original control command set.

[0027] In this technical solution, after sending the control command set to the energy storage device and the load device, the energy management device also monitors the cleanliness prediction data of the power grid. If an update to the cleanliness prediction data within a preset time period is detected, the device redetermines the power grid's operating state and corresponding operating time period based on the updated data. Furthermore, if the offset of the operating time period exceeds a preset offset value, the energy management device updates the control command set according to the redetermined operating state and operating time period, and sends the updated control command set to the energy storage device and the load device to replace the original control command set. This achieves dynamic adaptability in energy dispatch, enabling real-time capture and efficient utilization of the power grid's various operating periods, thus enhancing the intelligence of home energy management and overall carbon reduction potential.

[0028] In some technical solutions, optionally, after sending the control command set to the energy storage device and the load device, the energy management method further includes: receiving feedback information reported by the energy storage device and the load device when the first command set is sent; generating power consumption event information of the energy storage device and the load device based on the feedback information and cleanliness prediction data, and uploading the power consumption event information to the server; receiving and displaying the power consumption report issued by the server based on the power consumption event information.

[0029] In this technical solution, after sending the control command set to the energy storage device and the load device, the energy management device, upon sending the first command set, also receives feedback information reported by the energy storage device and the load device. Based on the feedback information and cleanliness prediction data, it generates electricity consumption event information for the energy storage device and the load device. On this basis, the energy management device uploads the electricity consumption event information to the server, and then receives and displays the electricity consumption report issued by the server based on the electricity consumption event information. This achieves closed-loop feedback and electricity consumption insight during the clean grid phase, allowing users to clearly see the specific environmental and economic benefits, thereby creating positive incentives and facilitating the improvement of user stickiness and environmental value of the product.

[0030] In some technical solutions, optionally, after receiving feedback information reported by the energy storage device and the load device, the energy management method further includes: if the feedback information indicates that the energy storage device and / or the load device did not perform load increase operation during the current clean period, recording the number of operation failures of the energy storage device and / or the load device, and resending the corresponding device control command to the energy storage device and / or the load device during the next clean period; and triggering a prompt message if the number of operation failures reaches a preset threshold.

[0031] In this technical solution, after receiving feedback information from energy storage devices and load devices, if the feedback information indicates that the energy storage devices and / or load devices did not perform load increase operations during the current clean period, the energy management device records the number of operation failures of the energy storage devices and / or load devices, and resends the corresponding device control commands to the energy storage devices and / or load devices during the next clean period. Furthermore, if the number of operation failures reaches a preset threshold, the energy management device triggers a prompt message. In this way, when the energy storage devices and / or load devices fail to perform load increase operations, the device problem is recorded, a retrieval is triggered, and users are promptly reminded, ensuring the stable execution of green energy dispatch.

[0032] In some technical solutions, the control command set may optionally be sent to the energy storage device and the load device, including: sending the control command set to the energy storage device and the load device via the Matter protocol.

[0033] In this technical solution, during the process of sending the control command set to the energy storage device and the load device, specifically, the energy management device sends the control command set to the energy storage device and the load device through the Matter protocol. In this way, the standard device energy consumption control cluster based on the Matter protocol can provide a unified command format, which can seamlessly connect and control various devices without developing separate interfaces for different brands of devices, and realize unified scheduling of different devices to achieve home-level, multi-device collaborative energy optimization.

[0034] According to a second aspect of the present invention, an energy management device is provided, comprising: an acquisition unit for acquiring power grid cleanliness prediction data within a preset time period; a processing unit for determining, based on the cleanliness prediction data, the operating state of the power grid within different time periods of the preset time period and the corresponding operating time periods; the processing unit further for generating a control instruction set for an energy storage device and a load device based on the operating state and the operating time periods, the control instruction set being used to adjust the operating mode of the energy storage device and the load device under the corresponding operating time periods; and a communication unit for sending the control instruction set to the energy storage device and the load device to control the energy storage device and the load device to perform load operations corresponding to the operating state under the corresponding operating time periods, the load operations being used to increase or decrease the load power of the energy storage device and the load device.

[0035] The energy management device provided by this invention includes an acquisition unit, a processing unit, and a communication unit. During energy management, the acquisition unit acquires power grid cleanliness prediction data for a preset time period. Based on the cleanliness prediction data, the processing unit determines the power grid's operating status and corresponding operating periods for different time periods within the preset time period. Furthermore, the processing unit generates a set of control commands for energy storage devices and load devices based on the determined operating status and operating periods. These control commands are used to adjust the operating modes of the energy storage devices and load devices during the corresponding operating periods. Based on this, the communication unit sends the control commands to the energy storage devices and load devices to control them to perform load operations corresponding to their operating status during the corresponding operating periods. These load operations are used to increase or decrease the load power of the energy storage devices and load devices.

[0036] The energy management device provided by this invention determines the grid's operating state and corresponding operating periods based on grid cleanliness prediction data, and then generates a corresponding control command set to control energy storage devices and load devices to perform load operations corresponding to the operating state. On the one hand, energy dispatching based on grid cleanliness prediction data enables energy dispatching strategies to synchronize with the grid's greenness, achieving coordinated operation of energy dispatching and green electricity. On the other hand, it achieves coordinated optimization of energy storage and load, maximizing the proportion of green electricity use and reducing electricity costs and carbon emissions. Thus, it achieves three-level coordinated control of the grid, energy storage, and load, improving the flexibility of energy dispatching. Energy dispatching can dynamically respond to changes on the grid side and adapt to changes in household electricity consumption behavior, achieving global optimization of household energy use and enhancing the intelligence of household energy management and overall carbon reduction potential.

[0037] According to a third aspect of the present invention, a computer device is provided, comprising a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the energy management method as described in any of the above-described technical solutions. Therefore, the computer device proposed in the third aspect of the present invention possesses all the beneficial effects of the energy management method in any of the technical solutions of the first aspect, which will not be elaborated further here.

[0038] According to a fourth aspect of the present invention, a readable storage medium is provided, on which a program or instructions are stored, which, when executed by a processor, implement the energy management method as described in any of the above-described technical solutions. Therefore, the readable storage medium proposed in the fourth aspect of the present invention possesses all the beneficial effects of the energy management method in any of the technical solutions of the first aspect, and will not be elaborated further here.

[0039] Additional aspects and advantages of the invention will become apparent in the following description or may be learned by practice of the invention. Attached Figure Description

[0040] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0041] Figure 1 One of the flowcharts of the energy management method according to an embodiment of the present invention is shown;

[0042] Figure 2 A second schematic flowchart of the energy management method according to an embodiment of the present invention is shown;

[0043] Figure 3 The third schematic flowchart of the energy management method according to an embodiment of the present invention is shown;

[0044] Figure 4 The fourth schematic flowchart of the energy management method according to an embodiment of the present invention is shown;

[0045] Figure 5 One of the schematic diagrams of the energy management method according to an embodiment of the present invention is shown;

[0046] Figure 6 The second schematic diagram of the energy management method according to an embodiment of the present invention is shown;

[0047] Figure 7 The third schematic diagram of the energy management method according to an embodiment of the present invention is shown;

[0048] Figure 8 A structural block diagram of an energy management device according to an embodiment of the present invention is shown;

[0049] Figure 9 A structural block diagram of a computer device according to an embodiment of the present invention is shown. Detailed Implementation

[0050] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.

[0051] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.

[0052] The following is combined with Figures 1 to 9 The energy management method and apparatus, computer device and readable storage medium provided in this application will be described in detail through specific embodiments and application scenarios.

[0053] In one embodiment of the present invention, such as Figure 1 As shown, the energy management method may specifically include the following steps 102 to 108:

[0054] Step 102: Obtain power grid cleanliness prediction data within a preset time period;

[0055] Step 104: Based on the cleanliness prediction data, determine the working status of the power grid and the corresponding working time periods in different time periods of the preset time period;

[0056] Step 106: Generate control instruction sets for energy storage devices and load devices based on working status and working period;

[0057] Step 108: Send the control instruction set to the energy storage device and the load device to control the energy storage device and the load device to perform load operations corresponding to the working state during the corresponding working period.

[0058] The control instruction set is used to adjust the working mode of the energy storage device and the load device during the corresponding working period, and the load operation is used to increase or decrease the load power of the energy storage device and the load device.

[0059] The execution subject of the energy management method provided by this invention can be a computer device, an energy management device, or something else depending on actual usage requirements; no specific limitation is made here. To more clearly describe the energy management method provided by this invention, the following description uses an energy management device as the execution subject.

[0060] Specifically, in the energy management method provided by this invention, during the energy management process, the energy management device acquires power grid cleanliness prediction data within a preset time period, and determines the power grid's operating status and corresponding operating periods within different time periods of the preset time period based on the cleanliness prediction data. On this basis, the energy management device generates a control command set for the energy storage device and the load device according to the determined operating status and operating periods. The control command set is used to adjust the operating mode of the energy storage device and the load device during the corresponding operating periods. Based on this, the energy management device then sends the control command set to the energy storage device and the load device to control them to perform load operations corresponding to the operating status during the corresponding operating periods. The load operations are used to increase or decrease the load power of the energy storage device and the load device.

[0061] The energy management method provided by this invention determines the grid's operating state and corresponding operating periods based on grid cleanliness prediction data, and then generates a corresponding control command set to control energy storage devices and load devices to perform load operations corresponding to the operating state. On the one hand, energy dispatching based on grid cleanliness prediction data enables energy dispatching strategies to synchronize with the grid's greenness, achieving coordinated operation of energy dispatching and green electricity. On the other hand, it achieves coordinated optimization of energy storage and load, maximizing the proportion of green electricity use and reducing electricity costs and carbon emissions. Thus, it achieves three-level coordinated control of the grid, energy storage, and load, improving the flexibility of energy dispatching. Energy dispatching can dynamically respond to changes on the grid side and adapt to changes in household electricity consumption behavior, achieving global optimization of household energy use and enhancing the intelligence of household energy management and overall carbon reduction potential.

[0062] Specifically, the cleanliness prediction data mentioned above can be obtained asynchronously in sequence through the ElectricityGuidance interface of the EnergyKit framework.

[0063] Optionally, the cleanliness prediction data integrates multi-dimensional information such as the proportion of renewable energy, carbon emission intensity, and grid load.

[0064] Optionally, the cleanliness prediction data can be represented as a guideline value ranging from 0 to 1. The lower the guideline value, the higher the proportion of renewable energy such as wind power and solar power in the power grid and the lower the carbon emission intensity.

[0065] Optionally, the energy management device may specifically acquire cleanliness prediction data at third time intervals.

[0066] In practical applications, the specific value of the third duration can be set by those skilled in the art according to the actual situation, such as 15 minutes. No specific restrictions are imposed here.

[0067] In some embodiments of the present invention, optionally, the working state includes a cleaning state and a peak state, and the working period includes a cleaning period and a peak period. Based on this, such as Figure 2 As shown, step 104 above may specifically include steps 104a and 104b as follows:

[0068] Step 104a: If the cleanliness prediction data obtained within a continuous first time period are all less than the first threshold, determine that the power grid is in a clean state, and determine the clean period corresponding to the clean state based on the cleanliness prediction data.

[0069] Step 104b: If the cleanliness prediction data obtained within a consecutive second time period are all greater than the second threshold, determine that the power grid is in a peak state, and determine the peak period corresponding to the peak state based on the cleanliness prediction data.

[0070] The second threshold is greater than the first threshold.

[0071] In this embodiment, the power grid's operating state includes a clean state and a peak state. The working period corresponding to the clean state is the clean period, and the working period corresponding to the peak state is the peak period.

[0072] Based on this, in determining the power grid's operating status and corresponding operating periods within different time periods according to cleanliness prediction data, specifically, if the cleanliness prediction data obtained for a consecutive first duration is all less than a first threshold, the energy management device determines that the power grid is in a clean state and determines the clean period corresponding to the clean state based on the cleanliness prediction data. Conversely, if the cleanliness prediction data obtained for a consecutive second duration is all greater than a second threshold, the energy management device determines that the power grid is in a peak state and determines the peak period corresponding to the peak state based on the cleanliness prediction data. The second threshold is greater than the first threshold. In this way, by combining the magnitude and duration of the cleanliness prediction data to determine the specific operating status and operating period of the power grid, a dual-window determination mechanism for operating status and operating period is implemented. This effectively avoids false triggering caused by single-point data fluctuations and improves the accuracy of determining the operating status and operating period.

[0073] In practical applications, the specific value of the first duration can be set by those skilled in the art according to the actual situation, such as 30 minutes. No specific restrictions are imposed here.

[0074] Optionally, the second duration may be the same as or different from the first duration. In practical applications, those skilled in the art can set the specific value of the second duration according to the actual situation, such as setting the second duration to 30 minutes, without making specific restrictions here.

[0075] Optionally, those skilled in the art can set the specific value of the first threshold according to the actual situation, such as taking 0.3 as the first threshold, without making specific restrictions here.

[0076] Optionally, those skilled in the art can set the specific value of the second threshold according to the actual situation, such as taking 0.7 as the second threshold, without making specific restrictions here.

[0077] Specifically, the energy management device performs sliding window analysis on the acquired guidance value sequence, and determines the power grid's operating status based on the magnitude of the guidance values ​​within two consecutive windows. This dual-window determination mechanism effectively avoids false triggering caused by single-point data fluctuations.

[0078] In some embodiments of the present invention, optionally, such as Figure 3 As shown, step 106 above may specifically include steps 106a and 106b as follows:

[0079] Step 106a: In the clean state, generate the first instruction set for the energy storage device and the load device according to the clean period;

[0080] Step 106b: During peak conditions, generate a second set of instructions for the energy storage device and the load device based on the peak time period;

[0081] The first instruction set is used to control the energy storage device and the load device to perform the load increase operation corresponding to the clean state during the clean period. The load increase operation is used to increase the load power of the energy storage device and the load device. The second instruction set is used to control the energy storage device and the load device to perform the load decrease operation corresponding to the peak state during the peak period. The load decrease operation is used to reduce the load power of the energy storage device and the load device.

[0082] In this embodiment, during the process of generating control command sets for energy storage devices and load devices based on operating status and time periods, specifically, in clean state, the energy management device generates a first command set for the energy storage devices and load devices based on the clean time period. This first command set controls the energy storage devices and load devices to perform load-increasing operations corresponding to the clean state during the clean time period, increasing the load power of the energy storage devices and load devices. In peak state, the energy management device generates a second command set for the energy storage devices and load devices based on the peak time period. This second command set controls the energy storage devices and load devices to perform load-reducing operations corresponding to the peak state during the peak time period, decreasing the load power of the energy storage devices and load devices. Thus, by generating corresponding command sets based on the specific operating status and time periods of the power grid, and dynamically controlling the energy storage devices and load devices to perform corresponding load operations, the flexibility of energy dispatch is improved, and coordinated energy optimization of energy storage and load is achieved, maximizing the proportion of green electricity use and reducing electricity costs and carbon emissions.

[0083] In some embodiments of the present invention, the load device may optionally include, but is not limited to, charging device, heating device, air conditioning device, lighting device, and cleaning device.

[0084] The aforementioned charging equipment includes, but is not limited to, electric vehicle charging piles and electric bicycle charging piles; the aforementioned heating equipment includes, but is not limited to, electric water heaters and water dispensers; the aforementioned air conditioning equipment includes, but is not limited to, wall-mounted air conditioners and floor-standing air conditioners; the aforementioned lighting equipment may specifically be non-essential lighting equipment; and the aforementioned cleaning equipment includes, but is not limited to, dishwashers and washing machines, etc., without specific restrictions.

[0085] Based on this, the above-mentioned load-adding operations include, but are not limited to: energy storage devices drawing power from the grid, charging devices charging external devices, heating devices performing heating tasks, and cleaning devices performing cleaning tasks.

[0086] The first instruction set also includes the operation parameters corresponding to each load-adding operation, such as charging power and heating temperature.

[0087] For example, the first instruction set may specifically be as shown in Table 1 below:

[0088] Table 1

[0089]

[0090] Based on this, and according to the control commands shown in Table 1 above, the energy storage device and the load device perform the following actions:

[0091] Energy storage device: Query the current battery status, including battery voltage, battery temperature, and SOC (State of Charge / remaining capacity), to the BMS (Battery Management System) via the CAN (Controller Area Network) bus; if the battery status is normal (SOC < 95%, battery temperature < 45℃, and battery voltage within the allowable range), control the charging relay to engage; send a charging power command (80% of rated power) to the PCS (Power Conversion System) via Modbus (Modular Bus, an industrial general serial communication protocol); begin drawing power from the grid for charging; report the status every 15 minutes via Bluetooth, including current SOC, charging power, and battery temperature.

[0092] Electric water heater: After receiving a heating command, it starts the heating element and heats the water to 65℃ before automatically stopping.

[0093] Electric vehicle charging station: After receiving the start command, it will continuously charge at a power of 7kW until the user-set departure time is reached or the user manually stops it.

[0094] Dishwasher / Washing Machine: After receiving the start command, it will start running the preset program and stop automatically after the program is completed.

[0095] Optionally, the above-mentioned load reduction operations include, but are not limited to: stopping the energy storage device from drawing power, suspending the charging device from charging, increasing the operating temperature of the air conditioning device, reducing the lighting brightness of the lighting device, and suspending the operation of the cleaning device.

[0096] The second instruction set also includes operating parameters corresponding to each load reduction operation, such as air conditioning temperature and lighting brightness.

[0097] For example, the second instruction set may be specifically shown in Table 2 below:

[0098] Table 2

[0099]

[0100] Based on this, and according to the control commands shown in Table 2 above, the energy storage device and the load device perform the following actions:

[0101] Energy storage device: Immediately disconnect the charging relay.

[0102] Electric vehicle charging stations: Charging will be suspended until the peak period ends.

[0103] Air conditioner: Upon receiving a temperature adjustment command, if the current set temperature is below 24℃, the operating temperature will be increased by 2℃ and maintained until a new command is received or the user intervenes manually.

[0104] Non-essential lighting: Upon receiving a dimming command, immediately dim the lighting to 50% of its normal brightness.

[0105] Dishwasher / washing machine: Stop running until peak hours end.

[0106] In this embodiment, when the power grid is in a clean state, the energy storage device and each load device are controlled to perform operations such as power extraction, charging, heating, and cleaning. When the power grid is in a peak state, the energy storage device and each load device are controlled to perform operations such as stopping power extraction, pausing charging, heating, dimming brightness, and pausing operation. This effectively utilizes power grid resources, improves the flexibility of energy dispatch, increases the proportion of green electricity use, and reduces electricity costs and carbon emissions.

[0107] In some embodiments of the present invention, optionally, the control instruction set includes multiple device control instructions. Based on this, the above-described step of sending the control instruction set to the energy storage device and the load device may specifically include the following step 110:

[0108] Step 110: At target time intervals, multiple device control commands are sent sequentially to the corresponding energy storage devices or load devices according to a preset priority order.

[0109] In this embodiment, the control instruction set may specifically include multiple device control instructions, wherein one device control instruction corresponds to one energy storage device or load device.

[0110] Based on this, in the process of sending control command sets to energy storage devices and load devices, specifically, the energy management device sends multiple device control commands to the corresponding energy storage devices or load devices sequentially at target time intervals and according to a preset priority order. In this way, by sending multiple device control commands to the corresponding energy storage devices or load devices at preset intervals, the energy storage devices or load devices are controlled sequentially, avoiding sudden and large changes in load power, thus preventing instantaneous overload problems caused by multiple devices operating simultaneously.

[0111] The specific value of the target duration can be set by those skilled in the art according to the actual situation, such as a target duration of 30 seconds, and no specific restrictions are made here.

[0112] In some embodiments of the present invention, optionally, such as Figure 4 As shown, after step 108 above, the energy management method may further include steps 112 to 118 as follows:

[0113] Step 112: Monitor the predicted cleanliness data of the power grid;

[0114] Step 114: If the cleanliness prediction data within the preset time period is updated, the working status of the power grid and the corresponding working time period are re-determined based on the updated cleanliness prediction data.

[0115] Step 116: If the offset during the working period is greater than the preset offset value, update the control instruction set according to the redefined working status and working period.

[0116] Step 118: Send the updated control command set to the energy storage device and the load device to replace the original control command set.

[0117] In this embodiment, after sending the control command set to the energy storage device and the load device, the energy management device also monitors the cleanliness prediction data of the power grid. If an update to the cleanliness prediction data within a preset time period is detected, the device redetermines the power grid's operating state and corresponding operating time period based on the updated data. Furthermore, if the offset of the operating time period exceeds a preset offset value, the energy management device updates the control command set according to the redetermined operating state and operating time period, and sends the updated control command set to the energy storage device and the load device to replace the original control command set. This achieves dynamic adaptability in energy dispatch, enabling real-time capture and efficient utilization of the power grid's various operating times, thus enhancing the intelligence of home energy management and overall carbon reduction potential.

[0118] The specific value of the aforementioned preset offset can be set by those skilled in the art according to the actual situation. For example, the preset offset value can be set to 30 minutes. No specific restrictions are imposed here.

[0119] For example, the cleaning period was originally scheduled from 2:00 to 5:00 a.m., but due to a sudden strong wind, the wind power output was brought forward to 1:00 a.m. The control instruction set was updated to bring forward the start time of the energy storage equipment and load equipment to 1:00 a.m.

[0120] In some embodiments of the present invention, optionally, after step 108, the energy management method may further include steps 120 to 124 as follows:

[0121] Step 120: In the case of sending the first set of instructions, receive feedback information reported by the energy storage device and the load device;

[0122] Step 122: Based on the feedback information and cleanliness prediction data, generate power consumption event information for energy storage devices and load devices, and upload the power consumption event information to the server;

[0123] Step 124: Receive and display the electricity consumption report issued by the server based on the electricity consumption event information.

[0124] In this embodiment, after sending the control command set to the energy storage device and the load device, the energy management device, upon sending the first command set, also receives feedback information reported by the energy storage device and the load device, and generates electricity consumption event information for the energy storage device and the load device based on the feedback information and cleanliness prediction data. On this basis, the energy management device uploads the electricity consumption event information to the server, and then receives and displays the electricity consumption report issued by the server based on the electricity consumption event information. This achieves closed-loop feedback and electricity consumption insight during the grid cleanliness phase, allowing users to clearly see the specific environmental and economic benefits, thereby creating positive incentives and facilitating the improvement of product user stickiness and environmental value.

[0125] After the energy storage device and the load device perform the load increase operation, they transmit the execution result, i.e., the feedback information, back to the energy management device through the Matter protocol (Internet of Everything protocol / unified interconnection standard for smart homes).

[0126] Optionally, the feedback information may include, but is not limited to: execution status (success / failure), actual runtime, and actual power consumption, without specific limitations.

[0127] Optionally, the electricity consumption event may include the following information: the guidance value corresponding to this dispatch, the actual operating time and power consumption of each device, the start and end time of charging of the energy storage device and the charging amount, and the estimated value of the electricity cost saved in this dispatch.

[0128] Specifically, for the guidance value corresponding to this scheduling, when sending the instruction, the timestamp and guidance value of the guidance value corresponding to this scheduling can be attached to the instruction as context information and stored in the local database for association with electricity consumption events.

[0129] Optionally, the electricity consumption report may include the following information: the percentage of clean electricity used during the period, the reduction in carbon emissions, and the savings in electricity costs.

[0130] For example, the electricity consumption report includes "Clean electricity consumption rate during this period: 100%; Carbon emission reduction: 1.2 kg; Electricity cost savings: 0.8 yuan".

[0131] In some embodiments of the present invention, optionally, after step 120, the energy management method may further include steps 126 and 128 as follows:

[0132] Step 126: If the feedback information indicates that the energy storage device and / or load device did not perform the load increase operation during the current cleaning period, record the number of operation failures of the energy storage device and / or load device, and resend the corresponding device control command to the energy storage device and / or load device in the next cleaning period.

[0133] Step 128: If the number of failed operations reaches a preset threshold, a prompt message is triggered.

[0134] In this embodiment, after receiving feedback information reported by the energy storage device and the load device, if the feedback information indicates that the energy storage device and / or the load device did not perform an increase-load operation during the current clean period, the energy management device records the number of operation failures of the energy storage device and / or the load device, and resends the corresponding device control commands to the energy storage device and / or the load device in the next clean period. Furthermore, if the number of operation failures reaches a preset threshold, the energy management device triggers a prompt message. In this way, when the energy storage device and / or the load device fails to perform an increase-load operation, the device problem is recorded, a retry is triggered, and the user is promptly reminded, ensuring the stable execution of green energy dispatch.

[0135] The specific value of the aforementioned preset number of times threshold can be set by those skilled in the art according to the actual situation, such as 3 times, 4 times, etc., and no specific restrictions are made here.

[0136] In practical applications, if the energy storage device and / or load device fail to perform load increase operations, the energy management device will also record the reason for the failure, such as the charging pile not being connected to the vehicle, the dishwasher failing to start due to the door not being closed properly, or the device being offline, so that users can quickly check the device status.

[0137] In some embodiments of the present invention, optionally, the step of sending the control instruction set to the energy storage device and the load device described above may specifically include the following step 130:

[0138] Step 130: Send the control command set to the energy storage device and the load device via the Matter protocol.

[0139] In this embodiment, during the process of sending the control command set to the energy storage device and the load device, specifically, the energy management device sends the control command set to the energy storage device and the load device through the Matter protocol. In this way, the standard device energy consumption control cluster based on the Matter protocol can provide a unified command format, which can seamlessly connect and control various devices without developing separate interfaces for different brands of devices, and realize unified scheduling of different devices to achieve home-level, multi-device collaborative energy optimization.

[0140] The aforementioned load device is an authentication device for the Matter protocol.

[0141] Optionally, the Matter protocol's standard device power control cluster provides a unified command format, independent of device brand.

[0142] For example, the specific instruction formats for each load device are as follows: For electric water heaters, the thermostat cluster sets the heating temperature to 65°C using the set_temperature command; for electric vehicle charging stations, the ev_charging cluster starts charging using the start_charging command, specifying a charging power of 7kW and a charging duration of 240 minutes; for air conditioners, the thermostat cluster uses the set_target_temperature command to set the air conditioner's operating temperature to 24°C; for lighting, the lighting cluster uses the set_brightness command to set the light brightness to 50% of the maximum brightness; for dishwashers, the dishwasher cluster starts a preset program called energy-saving mode using the start_program command.

[0143] In practical applications, the Matter protocol uses WiFi (Wireless Fidelity) or Thread (an independent network transmission standard) for transmission, which can cover the entire house without the need for Bluetooth close-range pairing.

[0144] In summary, the energy management method provided in this application integrates the grid sensing capabilities of EnergyKit with the device control capabilities of the Matter protocol, constructing a closed-loop control method that triggers grid conditions and coordinates the response of energy storage and loads. By sensing the grid condition through EnergyKit and scheduling household loads through the Matter protocol, it achieves three-level coordinated control of the grid, energy storage, and loads, solving the problems of lack of linkage between existing residential energy storage systems and household electrical appliances, and low green energy consumption rates. The core idea of ​​the energy management method provided in this application is to upgrade the residential energy storage system from a passive energy storage device to a central hub for household energy, enabling it to actively sense grid conditions, intelligently schedule energy storage charging and discharging, and coordinate the control of all Matter smart devices in the house, thereby achieving global optimization of household energy consumption.

[0145] For example, taking a charging scenario as an example, such as Figures 5 to 7 As shown, the energy management method provided in this application includes three stages. In stage one, as... Figure 5 As shown, initialization and binding are performed. Phase one specifically includes the following operations: the user opens the APP (Application); scans for Bluetooth devices; selects the energy storage device; pairs and connects with the energy storage device via Bluetooth; reads the energy storage device information; stores the energy storage device information in local space; obtains the EnergyVenue (AC modular energy storage station) identifier; selects the home location, i.e., obtains the user's home location; stores the EnergyVenue identifier to associate grid forecast data with the user's actual electricity consumption location. In phase two, as... Figure 6 As shown, intelligent decision-making and plan generation are performed. Phase two specifically includes the following operations: Starting a background task; calling the EnergyKit interface every 4 hours to obtain the predicted cleanliness data of the power grid for the next 48 hours (i.e., the guidance value), and caching it locally to provide power grid status data for charging decisions; reading the device's battery level, parsing the guidance value, identifying the cleaning period, combining it with the device's battery level, selecting the optimal period, and generating a charging plan, including start and end times, to determine the optimal charging time window; continuously monitoring cleanliness prediction data updates, and automatically updating unexecuted charging plans if significant changes occur in the cleaning period to respond to real-time changes in the power grid and always charge during the optimal period. In phase three, as... Figure 7 As shown, to achieve a closed loop of execution and feedback, Phase 3 specifically includes the following operations: start charging; status monitoring; end charging; submit electricity consumption event; display electricity consumption report.

[0146] Based on this, the energy management method provided in this application embodiment can achieve the following beneficial effects:

[0147] 1. Optimize grid sensing capabilities: This invention no longer relies on static electricity price meters, but instead obtains cleanliness prediction data that integrates multi-dimensional information such as the proportion of renewable energy, carbon emission intensity, and grid load through the ElectricityGuidance interface. This enables the charging and discharging decisions of the energy storage system to be synchronized with the greenness of the grid in real time, realizing a dual-dimensional optimization decision from simply saving money to saving money and protecting the environment, and achieving coordinated operation with green electricity.

[0148] 2. Optimized charging and discharging plans: The system utilizes asynchronous sequences provided by the EnergyKit framework to obtain guidance values ​​and continuously monitors these sequences. When the cleanliness prediction data of the power grid is updated, the system automatically pushes the updates through the asynchronous sequences, thereby responding in real time and re-executing the decision logic. This dynamically adjusts subsequent charging plans that have not yet been executed, making the charging and discharging plans adaptive. The system can capture and utilize the optimal time period of the power grid in real time to achieve dynamic optimization of the charging and discharging plans.

[0149] 3. Achieve closed-loop feedback and electricity consumption insights: During the charging process, electricity consumption events are created and cached in a standardized manner. After charging is completed, they are submitted to EnergyKit in batches, and a visual electricity consumption insight report is generated for the user. This report includes classifications such as clean / reducible / avoidable time periods and electricity cost classifications, allowing users to clearly see the specific environmental and economic benefits. For example, if this charge uses 100% clean electricity, it will reduce carbon emissions by 2kg, which can create positive incentives and enhance the user stickiness and environmental value of the product.

[0150] 4. Solves the problem of the disconnect between energy storage systems and the smart home ecosystem: The solution is designed entirely based on the EnergyKit framework, which is naturally in line with its ecosystem standards. At the same time, by integrating the Matter protocol, it can seamlessly connect and control various smart home devices that support Matter, without the need to develop separate interfaces for different brands of devices. This makes the energy storage system the energy hub of the home, which can uniformly schedule Matter devices throughout the house and achieve home-level, multi-device collaborative energy optimization.

[0151] 5. Achieved load coordination control based on grid status: This invention defines clear load linkage rules: During cleaning periods, it automatically starts deferred loads such as electric water heaters, dishwashers, and electric vehicle charging stations to improve green energy consumption; during peak periods, it automatically reduces air conditioning power and dims lighting to reduce carbon emissions; when there is a surplus of photovoltaic power, it prioritizes the activation of adjustable loads for local consumption or transmits their generated electricity to the public grid; during energy storage discharge, it dynamically adjusts load power to extend power supply duration. Based on this, this invention achieves coordinated optimization of energy storage and load, maximizing the proportion of green electricity used in households without the user's awareness, and reducing electricity costs and carbon emissions.

[0152] In practical applications, the product components and their relationships involved in the energy management method of this invention are shown in Table 3 below:

[0153] Table 3

[0154]

[0155] UART stands for Universal Asynchronous Receiver / Transmitter, and HTTPS stands for HyperText Transfer Protocol Secure.

[0156] In one embodiment of the present invention, an energy management device is also provided. For example... Figure 8 As shown, Figure 8 A structural block diagram of an energy management device 200 according to an embodiment of the present invention is shown. Specifically, the energy management device 200 may include an acquisition unit 202, a processing unit 204, and a communication unit 206.

[0157] Acquisition unit 202 is used to acquire power grid cleanliness prediction data within a preset time period;

[0158] Processing unit 204 is used to determine the working status of the power grid and the corresponding working time period in different time periods of a preset time period based on cleanliness prediction data;

[0159] The processing unit 204 is also used to generate a set of control instructions for the energy storage device and the load device according to the working status and working period. The set of control instructions is used to adjust the working mode of the energy storage device and the load device in the corresponding working period.

[0160] The communication unit 206 is used to send a set of control commands to the energy storage device and the load device to control the energy storage device and the load device to perform load operations corresponding to the working state during the corresponding working period. The load operations are used to increase or decrease the load power of the energy storage device and the load device.

[0161] The energy management device 200 provided in this embodiment of the invention includes an acquisition unit 202, a processing unit 204, and a communication unit 206. During energy management, the acquisition unit 202 acquires power grid cleanliness prediction data for a preset time period. The processing unit 204 determines the power grid's operating status and corresponding operating periods for different time periods within the preset time period based on the cleanliness prediction data. Furthermore, the processing unit 204 generates a control instruction set for the energy storage device and the load device based on the determined operating status and operating periods. This control instruction set is used to adjust the operating mode of the energy storage device and the load device during the corresponding operating periods. Based on this, the communication unit 206 sends the control instruction set to the energy storage device and the load device to control them to perform load operations corresponding to the operating status during the corresponding operating periods. These load operations are used to increase or decrease the load power of the energy storage device and the load device.

[0162] The energy management device 200 provided by this invention determines the working state and corresponding working time of the power grid based on power grid cleanliness prediction data, and then generates a corresponding control command set to control energy storage devices and load devices to perform load operations corresponding to the working state. On the one hand, energy dispatching based on power grid cleanliness prediction data enables energy dispatching strategies to be synchronized with the greenness of the power grid, realizing the coordinated operation of energy dispatching and green electricity; on the other hand, it realizes the coordinated optimization of energy storage and load, which can maximize the proportion of green electricity use and reduce electricity costs and carbon emissions. In this way, a three-level coordinated control of power grid-energy storage-load is realized, improving the flexibility of energy dispatching. Energy dispatching can dynamically respond to changes on the power grid side and adapt to changes in household electricity consumption behavior, realizing global optimization of household energy consumption and improving the intelligence of household energy management and overall carbon emission reduction potential.

[0163] In some embodiments of the present invention, optionally, the working state includes a clean state and a peak state, and the working period includes a clean period and a peak period. The processing unit 204 is specifically used to: determine that the power grid is in a clean state when the cleanliness prediction data obtained within a continuous first time period is all less than a first threshold, and determine the clean period corresponding to the clean state based on the cleanliness prediction data; determine that the power grid is in a peak state when the cleanliness prediction data obtained within a continuous second time period is all greater than a second threshold, and determine the peak period corresponding to the peak state based on the cleanliness prediction data, wherein the second threshold is greater than the first threshold.

[0164] In some embodiments of the present invention, optionally, the processing unit 204 is specifically configured to: generate a first instruction set for the energy storage device and the load device according to the clean period in a clean state, wherein the first instruction set is used to control the energy storage device and the load device to perform a load increase operation corresponding to the clean state during the clean period, and the load increase operation is used to increase the load power of the energy storage device and the load device; and generate a second instruction set for the energy storage device and the load device according to the peak period in a peak state, wherein the second instruction set is used to control the energy storage device and the load device to perform a load decrease operation corresponding to the peak state during the peak period, and the load decrease operation is used to reduce the load power of the energy storage device and the load device.

[0165] In some embodiments of the present invention, optionally, the load device includes at least one of the following: a charging device, a heating device, an air conditioning device, a lighting device, and a cleaning device; the load increase operation includes at least one of the following: the energy storage device draws power from the grid, the charging device charges externally, the heating device performs a heating task, and the cleaning device performs a cleaning task; the load decrease operation includes at least one of the following: the energy storage device stops drawing power, the charging device stops charging, the operating temperature of the air conditioning device is increased, the lighting brightness of the lighting device is reduced, and the cleaning device stops operating.

[0166] In some embodiments of the present invention, optionally, the control instruction set includes multiple device control instructions, and the communication unit 206 is specifically used to: send multiple device control instructions to the corresponding energy storage device or load device in sequence according to a preset priority order and with a target duration as the interval.

[0167] In some embodiments of the present invention, optionally, after sending the control command set to the energy storage device and the load device, the processing unit 204 is further configured to: monitor the cleanliness prediction data of the power grid; if an update is detected in the cleanliness prediction data within a preset time period, redetermine the working state of the power grid and the corresponding working time period based on the updated cleanliness prediction data; if the offset of the working time period is greater than a preset offset value, update the control command set based on the redetermined working state and working time period; the communication unit 206 is further configured to: send the updated control command set to the energy storage device and the load device to replace the original control command set.

[0168] In some embodiments of the present invention, optionally, after sending the control instruction set to the energy storage device and the load device, the communication unit 206 is further configured to: receive feedback information reported by the energy storage device and the load device when the first instruction set is sent; the processing unit 204 is further configured to: generate power consumption event information of the energy storage device and the load device based on the feedback information and cleanliness prediction data; the communication unit 206 is further configured to: upload the power consumption event information to the server; and receive a power consumption report issued by the server based on the power consumption event information; such as Figure 8As shown, the energy management device 200 also includes a display unit 208 for displaying electricity consumption reports.

[0169] In some embodiments of the present invention, optionally, after receiving feedback information reported by the energy storage device and the load device, the processing unit 204 is further configured to: record the number of operation failures of the energy storage device and / or the load device when the feedback information indicates that the energy storage device and / or the load device did not perform load increase operation during the current cleaning period; the communication unit 206 is further configured to: resend the corresponding device control command to the energy storage device and / or the load device in the next cleaning period; the processing unit 204 is further configured to: trigger a prompt message when the number of operation failures reaches a preset threshold.

[0170] In some embodiments of the present invention, the communication unit 206 is optionally used to send a set of control instructions to the energy storage device and the load device via the Matter protocol.

[0171] In one embodiment of the invention, a computer device is also provided. For example... Figure 9 As shown, Figure 9 A structural block diagram of a computer device 300 provided in an embodiment of the present invention is shown. The computer device 300 includes:

[0172] Memory 302, on which programs or instructions are stored;

[0173] The processor 304 executes the above-described program or instructions to implement the steps of the energy management method as described in any of the above embodiments.

[0174] The computer device 300 provided in this embodiment includes a memory 302 and a processor 304. When the program or instructions in the memory 302 are executed by the processor 304, they implement the steps of the energy management method as described in any of the above embodiments. Therefore, the computer device 300 has all the beneficial effects of the energy management method in any of the above embodiments, which will not be repeated here.

[0175] Specifically, the memory 302 and the processor 304 can be connected via a bus or other means. The processor 304 may include one or more processing units, and the processor 304 may be a chip such as a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or a field-programmable gate array (FPGA).

[0176] In one embodiment of the invention, a readable storage medium is also provided. The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the energy management method as described in any of the above embodiments.

[0177] The readable storage medium provided in this embodiment of the invention, when the program or instructions stored therein are executed by a processor, can implement the steps of the energy management method as described in any of the above embodiments. Therefore, the readable storage medium possesses all the beneficial effects of the energy management method in any of the above embodiments, which will not be elaborated further here.

[0178] Specifically, the aforementioned readable storage media can include any medium capable of storing or transmitting information. Examples of readable storage media include electronic circuits, semiconductor memory devices, read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), flash memory, erasable read-only memory (EROM), magnetic tape, floppy disk, optical disk, hard disk, fiber optic media, radio frequency (RF) links, optical data storage devices, etc. Code segments can be downloaded via computer networks such as the Internet and intranets.

[0179] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance, unless otherwise expressly specified and limited. The terms "connection," "installation," and "fixing," etc., should be interpreted broadly. For example, "connection" can mean a fixed connection, a detachable connection, or an integral connection; it can mean a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0180] In the description of this specification, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0181] Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but only if they are feasible for those skilled in the art. If the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.

[0182] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. An energy management method, characterized in that, include: Obtain power grid cleanliness prediction data within a preset time period; Based on the cleanliness prediction data, the operating status of the power grid and the corresponding operating periods are determined in different time periods of the preset time period; Based on the working status and the working period, a set of control instructions for the energy storage device and the load device is generated. The set of control instructions is used to adjust the working mode of the energy storage device and the load device during the corresponding working period. The control command set is sent to the energy storage device and the load device to control the energy storage device and the load device to perform load operations corresponding to the working state during the corresponding working period. The load operations are used to increase or decrease the load power of the energy storage device and the load device.

2. The energy management method according to claim 1, characterized in that, The operating state includes a clean state and a peak state, and the operating time period includes a clean time period and a peak time period. Determining the operating state and corresponding operating time periods of the power grid within different time periods of the preset time period based on the cleanliness prediction data includes: If the cleanliness prediction data obtained within a consecutive first time period is all less than a first threshold, the power grid is determined to be in the clean state, and the clean time period corresponding to the clean state is determined based on the cleanliness prediction data. If the cleanliness prediction data obtained within a consecutive second time period is all greater than the second threshold, it is determined that the power grid is in the peak state, and the peak period corresponding to the peak state is determined based on the cleanliness prediction data, wherein the second threshold is greater than the first threshold.

3. The energy management method according to claim 2, characterized in that, The step of generating a control instruction set for the energy storage device and the load device based on the operating state and the operating period includes: In the clean state, a first instruction set for the energy storage device and the load device is generated according to the clean period. The first instruction set is used to control the energy storage device and the load device to perform a load increase operation corresponding to the clean state during the clean period. The load increase operation is used to increase the load power of the energy storage device and the load device. During the peak period, a second set of instructions is generated for the energy storage device and the load device according to the peak period. The second set of instructions is used to control the energy storage device and the load device to perform a load reduction operation corresponding to the peak period. The load reduction operation is used to reduce the load power of the energy storage device and the load device.

4. The energy management method according to claim 3, characterized in that, The load device includes at least one of the following: charging equipment, heating equipment, air conditioning equipment, lighting equipment, and cleaning equipment; The load-increasing operation includes at least one of the following: the energy storage device draws power from the power grid, the charging device charges externally, the heating device performs a heating task, and the cleaning device performs a cleaning task; The load reduction operation includes at least one of the following: the energy storage device stops drawing power, the charging device stops charging, the air conditioning device increases its operating temperature, the lighting device decreases its brightness, and the cleaning device stops operating.

5. The energy management method according to claim 1, characterized in that, The control command set includes multiple device control commands, and sending the control command set to the energy storage device and the load device includes: At target time intervals and in accordance with a preset priority order, multiple device control commands are sequentially sent to the corresponding energy storage device or load device.

6. The energy management method according to claim 1, characterized in that, After sending the control command set to the energy storage device and the load device, the energy management method further includes: Monitor the cleanliness prediction data of the power grid; If an update is detected in the cleanliness prediction data within the preset time period, the working state of the power grid and the corresponding working time period are re-determined based on the updated cleanliness prediction data. If the offset of the working period is greater than the preset offset value, the control instruction set is updated according to the redefined working state and the working period. The updated control command set is sent to the energy storage device and the load device to replace the original control command set.

7. The energy management method according to claim 3, characterized in that, After sending the control command set to the energy storage device and the load device, the energy management method further includes: When the first set of instructions is sent, feedback information reported by the energy storage device and the load device is received; Based on the feedback information and the cleanliness prediction data, power consumption event information for the energy storage device and the load device is generated, and the power consumption event information is uploaded to the server; Receive and display the electricity consumption report issued by the server based on the electricity consumption event information.

8. The energy management method according to claim 7, characterized in that, After receiving the feedback information reported by the energy storage device and the load device, the energy management method further includes: If the feedback information indicates that the energy storage device and / or the load device did not perform the load increase operation during the current cleaning period, the number of operation failures of the energy storage device and / or the load device is recorded, and the corresponding device control command is resent to the energy storage device and / or the load device during the next cleaning period; If the number of failed operations reaches a preset threshold, a prompt message will be triggered.

9. The energy management method according to any one of claims 1 to 8, characterized in that, Sending the control command set to the energy storage device and the load device includes: The control command set is sent to the energy storage device and the load device via the Matter protocol.

10. An energy management device, characterized in that, include: The acquisition unit is used to acquire power grid cleanliness prediction data within a preset time period; The processing unit is used to determine the working status and corresponding working periods of the power grid in different time periods of the preset time period based on the cleanliness prediction data. The processing unit is further configured to generate a set of control instructions for the energy storage device and the load device according to the working state and the working period, wherein the set of control instructions is used to adjust the working mode of the energy storage device and the load device in the corresponding working period. A communication unit is used to send the control command set to the energy storage device and the load device to control the energy storage device and the load device to perform load operations corresponding to the working state during the corresponding working period. The load operations are used to increase or decrease the load power of the energy storage device and the load device.

11. A computer device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the energy management method as described in any one of claims 1 to 9.

12. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the energy management method as described in any one of claims 1 to 9.