Disaster recovery control method and system of energy storage equipment

By comprehensively considering planned power outages, weather warnings and grid load data, we can determine whether the energy storage equipment meets the conditions for the disaster recovery mechanism activation, generate a power outage warning event and instruct the energy storage equipment to enter the disaster recovery mode, solving the problem of inaccurate prediction of power outage events in the existing technology, and achieving more accurate power outage response and energy supply.

CN120410172APending Publication Date: 2025-08-01ANKER INNOVATIONS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410122236.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-29
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

The disaster recovery mechanism of existing household energy storage equipment relies on weather warning data, and the accuracy of predicting power outages is insufficient, resulting in the inability to meet power consumption needs.

Method used

Taking into account planned power outage data, weather warning data and power grid load data, we can determine whether the energy storage equipment meets the conditions for the disaster recovery mechanism activation through multi-dimensional analysis, generate a power outage warning event and send an early warning message to instruct the energy storage equipment to enter the disaster recovery mode and adopt an appropriate charging strategy.

Benefits of technology

Improve the response capacity of power outage incidents, ensure a stable energy supply during power outages, meet user electricity needs, and improve the accuracy of predicting power outage events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120410172A_ABST
    Figure CN120410172A_ABST
Patent Text Reader

Abstract

The invention relates to a disaster recovery control method and system for energy storage equipment. The method comprises the steps of obtaining power failure factor data of an area where energy storage equipment is located, and judging whether the energy storage equipment meets a plurality of preset disaster recovery mechanism starting conditions or not based on planned power failure data, weather early warning data and power grid load data in the power failure factor data and the obtained position where the energy storage equipment is located, when it is determined that the energy storage device meets at least one of the preset disaster recovery mechanism starting conditions, a power failure early warning event is generated, the power failure early warning event comprises estimated power failure time, and an early warning message carrying the estimated power failure time is sent to the energy storage device so as to indicate the energy storage device to enter a disaster recovery mechanism. And charging is carried out after a charging strategy is determined according to the estimated power failure time. By adopting the scheme, the occurrence probability of the power failure event can be accurately predicted, whether the energy storage equipment needs to enter a disaster recovery mechanism or not is judged, the response capability of the energy storage equipment to the power failure condition is effectively improved, and the power demand is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of energy storage control, and particularly to a disaster recovery control method, system, device, computer device, computer-readable storage medium, and computer program product for an energy storage device. Background Art

[0002] An energy storage device refers to a device used to store electrical energy. More and more households are starting to use energy storage devices (also known as household energy storage devices) to supply power to electrical equipment. The main function of a household energy storage device is to collect or store electrical energy from the power grid or a solar photovoltaic system for household use when needed.

[0003] However, when extreme weather or power outage events occur, large-scale power outages are likely to occur, seriously affecting the normal life of residents. Therefore, giving early warnings before disasters or power outage events so that the household energy storage device enters the disaster recovery mode and charges in time to reduce the situation where users cannot live normally due to power outages has become an issue that people are increasingly concerned about.

[0004] Currently, for the disaster preparedness technology of household energy storage devices, most use weather warning data or power outage warning data to predict the possibility of a power outage event, determine whether the energy storage device needs to enter the disaster recovery mode, and determine that the household energy storage device needs to enter the disaster recovery mode and charge in time through a preset disaster warning mechanism. However, the above methods only consider weather factors and still have the problem of inaccurate prediction, making the disaster recovery mechanism of household energy storage devices unable to meet the power consumption requirements. Summary of the Invention<C

[0005] Based on this, in view of the above technical problems, it is necessary to provide a disaster recovery control method, system, device, computer device, computer-readable storage medium, and computer program product for an energy storage device that can more accurately predict the possibility of a power outage event and meet the power consumption requirements.

[0006] In a first aspect, the present application provides a disaster recovery control method for an energy storage device. The method includes:

[0007] Obtain power outage factor data for the area where the energy storage device is located, where the power outage factor data includes planned power outage data, weather warning data, and grid load data;

[0008] Based on the planned power outage data, weather warning data, grid load data, and the location of the obtained energy storage device, determine whether the energy storage device meets one or more preset disaster recovery mechanism activation conditions;

[0009] In the case where it is determined that the energy storage device meets at least one of the preset disaster recovery mechanism activation conditions, generate a power outage warning event, where the power outage warning event includes an estimated power outage time;

[0010] Send a warning message carrying the estimated power outage time to the energy storage device to instruct the energy storage device to enter the disaster preparedness mechanism, and determine the charging strategy according to the estimated power outage time before charging.

[0011] In a second aspect, the present application also provides a disaster preparedness control system for an energy storage device. The control system includes: a server, an energy storage device, and a client that are communicatively connected to each other;

[0012] The server is configured to obtain power outage factor data of the area where the energy storage device is located. The power outage factor data includes planned power outage data, weather warning data, and grid load data. Based on the planned power outage data, weather warning data, grid load data, and the location of the obtained energy storage device, determine whether the energy storage device meets the preset disaster preparedness mechanism activation conditions. There are one or more preset disaster preparedness mechanism activation conditions. In the case where it is determined that the energy storage device meets at least one of the preset disaster preparedness mechanism activation conditions, generate a power outage warning event. The power outage warning event includes an estimated power outage time, and send a warning message carrying the estimated power outage time to the energy storage device;

[0013] The energy storage device is configured to respond to the warning message, enter the disaster preparedness mechanism, and determine the charging strategy according to the estimated power outage time before charging.

[0014] In a third aspect, the present application also provides a disaster preparedness control device for an energy storage device. The device includes:

[0015] A data acquisition module, configured to acquire power outage factor data of the area where the energy storage device is located. The power outage factor data includes planned power outage data, weather warning data, and grid load data;

[0016] A data judgment module, configured to determine whether the energy storage device meets the preset disaster preparedness mechanism activation conditions based on the planned power outage data, weather warning data, grid load data, and the location of the obtained energy storage device. There are one or more preset disaster preparedness mechanism activation conditions;

[0017] A data generation module, configured to generate a power outage warning event in the case where it is determined that the energy storage device meets at least one of the preset disaster preparedness mechanism activation conditions. The power outage warning event includes an estimated power outage time;

[0018] A data sending module, configured to send a warning message carrying the estimated power outage time to the energy storage device to instruct the energy storage device to enter the disaster preparedness mechanism, and determine the charging strategy according to the estimated power outage time before charging.

[0019] Fourthly, the present application also provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps in the embodiment of the disaster recovery control method for the energy storage device are implemented.

[0020] Fifthly, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the steps in the embodiment of the disaster recovery control method for the energy storage device are implemented.

[0021] Sixthly, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps in the embodiment of the disaster recovery control method for the energy storage device are implemented.

[0022] The above-mentioned disaster recovery control method, system, device, computer device, storage medium and computer program product for the energy storage device comprehensively consider multi-dimensional factors affecting power outages such as planned power outages, weather warnings and grid loads, and can more accurately predict the possibility of power outage events and determine whether the energy storage device needs to enter the disaster recovery mechanism. Compared with the traditional method of only judging based on weather data, the obtained judgment result is more accurate. By setting multiple enabling conditions for the disaster recovery mechanism, when the energy storage device meets at least one of the enabling conditions for the disaster recovery mechanism, a power outage warning event will be generated, and a warning message carrying the warning event will be sent to the energy storage device, enabling the energy storage device to enter the disaster recovery mechanism in advance and adopt an appropriate charging strategy for charging to ensure a stable energy supply during a power outage, effectively improving the response ability of the energy storage device to power outages and meeting the user's power consumption needs during a power outage. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is an application environment diagram of the disaster recovery control method for the energy storage device in an embodiment;

[0024] Figure 2 It is a schematic flowchart of the disaster recovery control method for the energy storage device in an embodiment;

[0025] Figure 3 It is a schematic flowchart of the disaster recovery control method for the energy storage device in another embodiment;

[0026] Figure 4 It is a structural block diagram of the disaster recovery control device for the energy storage device in an embodiment;

[0027] Figure 5 It is a structural block diagram of the disaster recovery control system for the energy storage device in an embodiment;

[0028] Figure 6Internal structure diagram of a computer device in an embodiment. Detailed implementation manners

[0029] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0030] The disaster recovery control method for an energy storage device provided by an embodiment of the present application can be applied to an application environment as Figure 1 shown. Among them, the energy storage device 102 communicates with the server 104 through a network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or placed in the cloud or other network servers. Multiple disaster recovery mechanism enabling conditions are set in the server 104. Specifically, the server 104 can obtain the power outage factor data of the area where the energy storage device is located, including planned power outage data, weather warning data, and grid load data. Then, based on the planned power outage data, weather warning data, grid load data, and the location of the obtained energy storage device, it is determined whether the energy storage device meets the preset disaster recovery mechanism enabling conditions. When it is determined that the energy storage device meets at least one of the preset disaster recovery mechanism enabling conditions, a power outage warning event is generated. The power outage warning event includes an estimated power outage time. Then, a warning message carrying the estimated power outage time is sent to the energy storage device 102. The warning message is used to instruct the energy storage device 102 to enter the disaster recovery mechanism and determine a charging strategy according to the estimated power outage time and then charge.

[0031] Among them, the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0032] In one embodiment, as Figure 2 shown, a disaster recovery control method for an energy storage device is provided. Taking the method applied to the Figure 1 server 104 in it as an example, the method includes the following steps:

[0033] S200. Obtain the power outage factor data of the area where the energy storage device is located. The power outage factor data includes planned power outage data, weather warning data, and grid load data.

[0034] Energy storage devices include, but are not limited to, energy storage devices for household users, industrial energy storage devices, etc. Power outage factor data refers to the relevant data of various factors that may cause power outage events. These data are used to analyze and evaluate potential power outage risks. Specifically, the power outage factor data includes planned power outage data, weather warning data, and grid load data. In addition to the above data, the power outage factor data may also include the operation status and health condition data of power equipment, as well as the operation data of power suppliers and distribution networks, etc.

[0035] Among them, the planned power outage data refers to the relevant information of the planned power outage activities, including the start time of the power outage, the estimated end time of the power outage, the power outage area, and the reason for the power outage, etc. Specifically, the planned power outage data of the area where the energy storage device is located can be obtained by accessing the power supply company or the local government and consulting the power outage announcements, notices or the power outage information pages of relevant websites they publish. In this embodiment, the area where the energy storage device is located is taken as area A for illustration. The weather warning data refers to the warning information issued by the meteorological department about weather disasters and extreme meteorological events (such as storms, heavy rains, typhoons, etc.). The weather warning data usually includes the warning level, warning type, warning area, warning start time, and warning end time, etc. In specific implementation, the weather warning data of area A can be obtained by accessing the official website of the meteorological department, weather forecast applications or subscribing to the meteorological services of relevant institutions such as NWS (National Weather Service). The grid load data refers to the load situation of the power system, that is, the power demand being carried by the power supply system, including the load peak and load fluctuation conditions.

[0036] In specific implementation, it can be through a timer to regularly obtain the planned power outage data of the area where the energy storage device is located by calling the power_outage interface, obtain the weather warning data of the area where the energy storage device is located by subscribing to the meteorological services of relevant institutions, and obtain the grid load data of the area where the energy storage device is located by accessing the platform of the power supplier.

[0037] S400, based on the planned power outage data, weather warning data, grid load data, and the location of the obtained energy storage device, determine whether the energy storage device meets the preset enabling conditions of the disaster recovery mechanism, and there are one or more preset enabling conditions of the disaster recovery mechanism.

[0038] The disaster recovery mechanism refers to a mechanism that enables energy storage devices to effectively respond to emergencies and provide reliable power support through set measures and strategies in the face of catastrophic or emergency situations. The disaster recovery mechanism can include the startup of energy storage devices, switching to backup power modes or charging modes, providing emergency power support, etc. The enabling conditions of the disaster recovery mechanism refer to the conditions for determining whether an energy storage device needs to enable the disaster recovery mechanism. Specifically, the enabling conditions of the disaster recovery mechanism can be a set of predefined rule conditions, such as grid fault discrimination conditions, power outage plans, weather alerts, etc. When it is determined according to the planned power outage data, weather warning data, and grid load data that at least one preset rule condition is met, it is determined that the energy storage device meets the enabling conditions of the disaster recovery mechanism.

[0039] In this embodiment, it can be that developers, based on historical planned power outage data, historical weather warning data, and historical grid load data, combined with relevant experience, pre-set multiple enabling conditions for the disaster recovery mechanism in the energy storage device control program of the cloud server. The location of the energy storage device is known data, specifically, it can be determined according to the longitude and latitude of the user APP (Application) site, where the "site" refers to the specific geographical location or position point of the user, usually referring to fixed or frequently used locations such as the user's residence, workplace, store, office, etc. In this embodiment, taking the energy storage device as a household energy storage device as an example, the user APP site refers to the user's residence, that is, the location of the energy storage device (i.e., the installation location). It can be understood that the location of the energy storage device is within area A.

[0040] After obtaining the planned power outage data, weather warning data, and grid load data of the area A where the energy storage device is located, it is possible to determine whether the energy storage device meets the preset disaster recovery mechanism activation conditions based on the planned power outage data, weather warning data, and grid load data. For example, predict the probability of a power outage event occurring in the area where the energy storage device is located. If it is predicted that there is a high probability of a power outage event in area A, it is determined that the energy storage device meets the disaster recovery mechanism activation conditions. Exemplarily, it is possible to determine whether there is a power outage plan in area A based on the planned power outage data and the location of the energy storage device. If there is a power outage plan, it can be determined that the energy storage device meets the disaster recovery mechanism activation conditions. According to the weather warning data, including predictions of disastrous weather such as storms, heavy snow, and floods, determine whether there will be severe weather in area A and whether the disaster recovery mechanism needs to be activated. For example, when the weather warning data indicates high wind speed, large snowfall, flood alerts, etc., it is determined that the energy storage device meets the disaster recovery mechanism activation conditions, and to ensure stable power supply, the energy storage device can be controlled to enter the disaster recovery mechanism. According to the grid load data, determine whether there is a high grid load pressure in the power supply system of area A. When the grid load approaches or exceeds the design capacity of the energy storage device, it can be determined that the energy storage device meets the disaster recovery mechanism activation conditions. Based on the above analysis results, it is possible to comprehensively determine whether the energy storage device meets the preset disaster recovery mechanism activation conditions.

[0041] S600, in the case where it is determined that the energy storage device meets at least one of the preset disaster recovery mechanism activation conditions, generate a power outage warning event, and the power outage warning event includes the estimated power outage time.

[0042] A power outage warning event is a warning notice issued by a system or an organization in the event of a possible power outage, and this notice is used to inform relevant parties of the possible occurrence time of the power outage and other relevant information. Specifically, the power outage warning event may include data such as the estimated power outage time, the power outage end time, the power outage area range, the estimated power outage duration, and the power outage reason.

[0043] Following the previous step, by analyzing the planned power outage data, weather warning data, grid load data, and the location of the obtained energy storage device, if it is determined that the energy storage device meets at least one of the preset disaster recovery mechanism activation conditions, a power outage warning event can be generated. Specifically, it is possible to determine data such as the estimated power outage time, the power outage end time, the power outage area range, the estimated power outage duration, and the power outage reason based on the power outage probability prediction results of the grid load data, weather warning data, and planned power outage data. Further, a power outage warning event is generated. If the energy storage device does not meet any of the preset disaster recovery mechanism activation conditions, no processing is performed, and return to step S200 to continue to determine whether the energy storage device meets the preset disaster recovery mechanism activation conditions based on the planned power outage data, weather warning data, grid load data, and the known location of the energy storage device.

[0044] The S800 sends a warning message carrying the estimated power outage time to the energy storage device to instruct the energy storage device to enter the disaster preparedness mechanism, and determines a charging strategy based on the estimated power outage time and then charges.

[0045] After generating a power outage warning event, a warning message carrying the estimated power outage time can be generated according to the data of the power outage warning event, and the warning message is sent to the energy storage device through a preset communication method such as wireless communication technology or local area network method.

[0046] After receiving the warning message, the energy storage device immediately enters the disaster preparedness mechanism, determines a corresponding charging strategy according to the estimated power outage time, and then charges according to the charging strategy. Exemplarily, it can be that the energy storage device records the time when the warning message is received as T1, takes the estimated power outage time as T2, obtains the time difference between T1 and T2. If the time difference is less than a preset time difference threshold such as 12 hours, the charging strategy is determined as the first charging strategy, that is, parameters such as the charging rate are determined, and charging starts immediately until the energy storage device maintains a full charge state. If the time difference is greater than 12 hours, since the time until the power outage occurs is still relatively long, considering the economic benefits of the user, the charging strategy can be determined as the second charging strategy, that is, the real-time grid electricity price is obtained, and parameters such as the charging period and charging rate are determined, and charging is carried out during the off-peak electricity price period until the energy storage device maintains a full charge state.

[0047] In the above disaster preparedness control method of the energy storage device, by comprehensively considering multi-dimensional factors affecting power outages such as planned power outages, weather warnings, and grid loads, the possibility of power outage events can be predicted more accurately, and it can be judged whether the energy storage device needs to enter the disaster preparedness mechanism. Compared with the traditional method of only judging based on weather data, the obtained judgment result is more accurate. By setting multiple disaster preparedness mechanism activation conditions, when the energy storage device meets at least one of the disaster preparedness mechanism activation conditions, a power outage warning event will be generated, and a warning message carrying the warning event will be sent to the energy storage device, which can enable the energy storage device to enter the disaster preparedness mechanism in advance and adopt an appropriate charging strategy to ensure a stable energy supply during a power outage, effectively improving the response ability of the energy storage device to power outages and meeting the user's electricity demand during a power outage.

[0048] In some other embodiments, in the case of determining that the energy storage device meets at least one of the preset disaster preparedness mechanism activation conditions, a warning message carrying the estimated power outage time can also be sent to the energy storage device, and at the same time, a power outage warning message carrying the power outage warning event is sent to the client.

[0049] Exemplarily, the power outage warning message pushed to the client can be: Dear user, hello! According to our monitoring system, a power outage event is expected to occur in the near future. For your convenience and safety, we are sending you this power outage warning message so that you can make corresponding preparations. The following are the specific power outage information:

[0050] Expected power outage time: YYYY year, MM month, DD day, HH:mm - HH:mm (total X hours)

[0051] Power outage location: Central area of XX

[0052] Affected area of the power outage: including XX Street, XX Building, XX Shopping Mall and surrounding areas

[0053] Reason for the power outage: Blizzard weather

[0054] After receiving the power outage warning message, the client will display the power outage warning message on the interactive interface of the client. The power outage warning message is used to inform the user that a power outage event will occur and the event-related information, including the estimated power outage time, power outage end time, power outage area range, estimated power outage duration, and the reason for the power outage, etc., so that the user can check the power storage status of the energy storage device in time, detect whether the energy storage device has entered the disaster preparedness mechanism. If the energy storage device has not entered the disaster preparedness mechanism, the disaster preparedness mechanism of the energy storage device can be manually activated so that the energy storage device can be charged in time to meet the power consumption needs during the power outage.

[0055] In one embodiment, S400 includes:

[0056] S420, based on the planned power outage data and the location of the energy storage device, determines whether the energy storage device meets the first disaster preparedness mechanism activation condition.

[0057] S440, based on the weather warning data and the location of the energy storage device, determines whether the energy storage device meets the second disaster preparedness mechanism activation condition.

[0058] S460, based on the planned power outage data, weather warning data, grid load data, and the location of the energy storage device, determines whether the energy storage device meets the third disaster preparedness mechanism activation condition.

[0059] In this embodiment, the disaster preparedness mechanism activation condition includes at least one of the first disaster preparedness mechanism activation condition, the second disaster preparedness mechanism activation condition, and the third disaster preparedness mechanism activation condition. Specifically, the first disaster preparedness mechanism activation condition can be that if the energy storage device is located within the planned power outage area, it is determined that the energy storage device meets the first disaster preparedness mechanism activation condition. Specifically, it can be based on the relevant data of the planned power outage, such as the power outage area range and the location of the energy storage device, including longitude and latitude, to determine whether the energy storage device is within the power outage area range, and then determine whether the energy storage device meets the first disaster preparedness mechanism activation condition.

[0060] The enabling condition of the second disaster recovery mechanism can be that if severe weather such as strong wind, heavy snow, etc. will occur in the area where the energy storage device is located, it is determined that the energy storage device meets the enabling condition of the second disaster recovery mechanism.

[0061] The enabling condition of the third disaster recovery mechanism can be that when the predicted power outage probability in the area where the energy storage device is located is greater than the preset power outage probability threshold, it is determined that the energy storage device meets the enabling condition of the third disaster recovery mechanism.

[0062] Specifically, based on the planned power outage data, weather warning data, grid load data, and the location of the energy storage device, considering the power outage scope, severe weather, power supply capacity, and the location of the energy storage device, the power outage probability in the area where the energy storage device is located is predicted, and the power outage probability is compared with the preset power outage probability threshold to determine whether the energy storage device meets the enabling condition of the third disaster recovery mechanism.

[0063] If it is determined that the energy storage device meets at least one of the above-mentioned enabling conditions of the first disaster recovery mechanism, the second disaster recovery mechanism, and the third disaster recovery mechanism, a power outage warning event is generated. It should be noted that the order of precedence in judging the above-mentioned enabling conditions of the first disaster recovery mechanism, the second disaster recovery mechanism, and the third disaster recovery mechanism can be set according to the actual situation, and no specific limitation on the order of precedence is made here. Any combination method of the order of precedence can be implemented and included in the embodiments of the present application.

[0064] In this embodiment, multiple enabling conditions for disaster recovery mechanisms are set. By comprehensively considering the planned power outage data, weather warning data, grid load data, and the location information of the energy storage device, a suitable method for judging the enabling conditions of the disaster recovery mechanism can be selected according to different situations, with stronger flexibility, so as to be adjusted and customized according to actual requirements and conditions.

[0065] In one of the embodiments, S420 includes: S422, according to the planned power outage data, determine the planned power outage area and the planned power outage time. When the location of the energy storage device is in the planned power outage area and the power outage start time in the planned power outage time is later than the current time, it is determined that the energy storage device meets the enabling condition of the first disaster recovery mechanism.

[0066] S440 includes: S442, screen out the target weather warning data that meets the preset weather warning conditions from the weather warning data. The target weather warning data carries the warning area. When the location of the energy storage device is in the warning area, it is determined that the energy storage device meets the enabling condition of the second disaster recovery mechanism.

[0067] S460 includes: S462, which extracts feature data for predicting power outage probability from planned power outage data, weather warning data, and power grid load data. The feature data includes the planned power outage area. Based on the feature data and the location of the energy storage device, the power outage probability of the area where the energy storage device is located is predicted. When the power outage probability is greater than the preset power outage probability threshold and the location of the energy storage device is in the planned power outage area, it is determined that the energy storage device meets the enabling conditions for the third disaster recovery mechanism.

[0068] Continuing from the previous embodiment, this embodiment describes the specific judgment process of analyzing whether the energy storage device meets the enabling conditions of each disaster recovery mechanism one by one. Specifically, the server can mark the corresponding planned power outage area on the map according to the coordinate range of the planned power outage area in the planned power outage data. If the planned power outage area is shown as a polygon on the map, it is judged whether the location of the energy storage device is within the polygon. If it is within the polygon, it is determined that the location of the energy storage device is in the planned power outage area. If the planned power outage area is shown as a point on the map, a circular area with a radius of a target value, such as 3 kilometers, is constructed with this point as the center, and it is judged whether the location of the energy storage device is within this circular area. If the location of the energy storage device is within this circular area, it is determined that the location of the energy storage device is in the planned power outage area. In addition, it is compared whether the power outage start time in the planned power outage time is later than the current time. If the power outage start time in the planned power outage time is later than the current time and the location of the energy storage device is in the planned power outage area, it is determined that the energy storage device meets the enabling conditions for the first disaster recovery mechanism.

[0069] In addition, the server also analyzes the weather warning data. Since the weather warning data usually includes warning data with relatively mild levels, the possibility of power outage events caused by this type of weather is small. Therefore, it can be to screen out the target weather warning data that meets the preset weather warning conditions from the weather warning data. For example, the target weather warning data that meets 19 types of severe weather warning types (such as blizzard warning, typhoon warning, and freezing rain warning, etc., and the above severe weather warnings usually easily trigger power outage events) is screened out. The screened target weather warning data carries a warning area. Then, it is judged whether the location of the energy storage device is within this warning area. If it is within this warning area, it is determined that the energy storage device meets the enabling conditions for the second disaster recovery mechanism. On the contrary, if no target weather warning data that meets the warning conditions is screened out, or the location of the energy storage device is not within the warning area, it is determined that the energy storage device does not meet the enabling conditions for the second disaster recovery mechanism.

[0070] In addition to the above judgment process, the server also comprehensively considers the planned power outage data, weather warning data, and power grid load data, extracts the characteristic data for predicting the power outage probability from the planned power outage data, weather warning data, and power grid load data respectively, including the planned power outage area, severe weather warning data, and power grid load data, etc. Then, based on the extracted characteristic data and the location of the energy storage device, it predicts the power outage probability in the area where the energy storage device is located. If the predicted power outage probability is greater than the preset power outage probability threshold, such as 80%, and the location of the energy storage device is in the planned power outage area, it is determined that the energy storage device meets the enabling conditions of the third disaster recovery mechanism; otherwise, it is determined that the energy storage device does not meet the enabling conditions of the third disaster recovery mechanism.

[0071] In this embodiment, by respectively judging whether the energy storage device meets the enabling conditions of the disaster recovery mechanism from the planned power outage data and the weather warning data, the real-time performance of the judgment process can be improved, enabling the energy storage device to make corresponding disaster recovery decisions and measures in a timely manner according to the latest data situation. Considering the influence of multiple factors such as the planned power outage data, weather warning data, and power grid load data, extracting the characteristic data, and predicting the power outage probability, it can automatically predict the power outage probability and accurately judge whether the energy storage device meets the enabling conditions of the disaster recovery mechanism. The above solution provides a more comprehensive and flexible judgment basis.

[0072] In one embodiment, the characteristic data further includes the planned power outage time, the power grid electricity price, and the number of people affected by the power outage;

[0073] S462 includes: S4622, taking the planned power outage area, the planned power outage time, the location of the energy storage device, the power grid electricity price, and the number of people affected by the power outage as inputs, calling the trained power outage probability prediction model to predict the power outage probability, and obtaining the power outage probability in the area where the energy storage device is located. When the power outage probability is greater than the preset power outage probability threshold and the location of the energy storage device is in the planned power outage area, it is determined that the energy storage device meets the enabling conditions of the third disaster recovery mechanism.

[0074] Among them, the power outage probability prediction model is obtained by training the initial classification model based on the historical planned power outage data, historical weather warning data, and historical power grid data in the areas where multiple energy storage devices are located.

[0075] In this embodiment, the extracted characteristic data includes the planned power outage area, the planned power outage time, the power grid electricity price, and the number of people affected by the power outage. Among them, the planned power outage time includes the planned power outage start time and the power outage end time. The planned power outage area includes the geographical coordinates of the planned power outage location. The location of the energy storage device can be represented by the user site (i.e., the user's home address). The power grid electricity price refers to the real-time electricity price in the area where the energy storage device is located.

[0076] In practical applications, developers can pre-collect historical planned power outage data, historical weather warning data, and historical power grid data for the areas where multiple energy storage devices are located during a historical period. Then, extract historical feature data for predicting the power outage probability. Based on the extracted historical feature data and the occurrence of power outage events during this historical period, train the initial classification model to obtain a power outage probability prediction model for predicting the power outage probability.

[0077] During specific implementation, after extracting feature data such as the planned power outage area, planned power outage time, grid electricity price, and the number of people affected by the power outage, the planned power outage area, planned power outage time, the location of the energy storage device, grid electricity price, and the number of people affected by the power outage can be input into the trained power outage probability prediction model. The power outage probability prediction model predicts the power outage probability based on the planned power outage area, planned power outage time, the location of the energy storage device, grid electricity price, and the number of people affected by the power outage, and outputs the power outage probability of the area where the energy storage device is located.

[0078] In some other embodiments, in addition to using machine learning to predict the power outage probability, statistical models such as time series models and regression models can be established using historical planned power outage data, historical weather warning data, historical power grid data, historical power outage data, and other relevant indicators. By analyzing the patterns and trends of the above historical data, predict the possible power outage probability in the future.

[0079] In some other embodiments, the pre-set rules and planning strategies can also be used to estimate the power outage probability by combining information such as planned power outage data, weather forecasts, and power network load conditions. For example, match the planned power outage with weather conditions and load conditions, and judge the high or low power outage probability according to the rules and strategies.

[0080] In this embodiment, by pre-training the power outage probability prediction model and then predicting the power outage probability through the power outage probability prediction model, the power outage probability of the area where the energy storage device is located can be predicted efficiently and accurately.

[0081] In one of the embodiments, before S400, the method further includes:

[0082] S300, obtain historical planned power outage data, historical weather warning data, and historical power grid data for the areas where multiple energy storage devices are located.

[0083] S320, according to the historical number of power outages and the number of users in the historical planned power outage data, determine the power outage percentage of each area, map the power outage percentage of each area to a pre-set power outage probability interval, and determine the power outage probability interval corresponding to each area. The power outage probability interval is divided based on a pre-set range of power outage percentage thresholds.

[0084] S340. Extract historical feature data for predicting power outage probability from historical planned power outage data, historical weather warning data, and historical power grid data.

[0085] S360. Label the historical feature data with the power outage probability intervals corresponding to each region to obtain a model training set.

[0086] S380. Obtain an initial power outage probability prediction model and train the initial power outage probability prediction model based on the model training set.

[0087] In this embodiment, the specific process of training the power outage probability prediction model may be as follows: Collect historical planned power outage data, historical weather warning data, and historical power grid data of multiple regions where energy storage devices are located within a historical time period. And, based on a preset power outage percentage threshold range, divide the power outage probability into multiple intervals to better measure the power outage risk. For example, according to the power outage percentage, the power outage probability is divided into 4 levels. Level 1: Extremely low power outage probability [0, 1%], Level 2: Low probability power outage (1%, 3%], Level 3: Medium power outage probability (3%, 10%], and Level 4: High probability power outage (10%, 100%]. The 1% and 3% in the above numerical intervals refer to the power outage percentage.

[0088] Calculate the power outage percentage of each region according to the number of power outages and the number of users in the historical planned power outage data. Then map the power outage percentage to the preset power outage probability interval to determine the power outage probability interval corresponding to each region. Next, extract historical feature data for predicting power outage probability from historical planned power outage data, historical weather warning data, and historical power grid data. Among them, the historical feature data may include data elements such as planned power outage time, planned power outage region, weather warning data, grid load, and grid electricity price. These data can reflect the relationship between power outage events and factors such as power outage plans, weather, and power system operation.

[0089] Then, use the power outage probability interval corresponding to each region as a label to label the extracted historical feature data. Based on the labeled historical feature data, construct a model training set. For example, if the calculated power outage percentage of a certain region is 5%, then add the label "Medium power outage probability (3%, 10%]" to all the historical feature data of this region. Next, determine a pre-trained classification model as the initial power outage probability prediction model. Then, input the model training set with labels into the initial power outage probability prediction model. Machine learning algorithms such as decision tree XGBoost algorithm, random forest, neural network, etc. can be used to train the initial power outage probability prediction model. The model learns the relationship between the feature data and the power outage probability interval until the predicted power outage probability meets the preset accuracy requirements, and then stop training to obtain the trained power outage probability prediction model.

[0090] In this embodiment, by mapping the power outage percentage to the power outage probability interval and combining the characteristics of each region and the preset power outage percentage threshold range, personalized power outage probability prediction can be performed according to the conditions of different regions, improving the flexibility and applicability of the prediction. Moreover, through the historical feature data in the training set and the corresponding power outage probability interval, the model can learn the patterns and rules in the historical data and apply them to future power outage probability prediction, improving the accuracy of the prediction.

[0091] In one embodiment, after S800, the method further includes:

[0092] S900, determining whether the energy storage device meets the preset disaster recovery mechanism exit conditions, and there are one or more preset disaster recovery mechanism exit conditions.

[0093] S920, when the energy storage device meets one of the preset disaster recovery mechanism exit conditions, sending a disaster recovery mechanism exit message to the energy storage device, and the disaster recovery mechanism exit message is used to instruct the energy storage device to exit the disaster recovery mechanism.

[0094] The disaster recovery mechanism exit conditions of the energy storage device refer to the conditions for terminating the disaster recovery state of the energy storage device and restoring the energy storage device to the normal operation state when specific conditions are met during the disaster recovery period. For example, the disaster recovery mechanism exit conditions can be that the power supply party resumes power supply, or the energy storage device is fully charged, etc. In this embodiment, there are multiple disaster recovery mechanism exit conditions.

[0095] In practical applications, generally, the energy storage device does not discharge in the disaster recovery state to meet the electricity consumption needs of users. In this embodiment, multiple disaster recovery mechanism exit conditions are set. When a power outage warning message is sent to the energy storage device and the energy storage device enters the disaster recovery mechanism, the server can determine whether the energy storage device meets the preset disaster recovery mechanism exit conditions. When the energy storage device meets any of the preset disaster recovery mechanism exit conditions, a disaster recovery mechanism exit message is sent to the energy storage device. After receiving the disaster recovery mechanism exit message, the energy storage device responds to the disaster recovery mechanism exit message and exits the disaster recovery mechanism.

[0096] In this embodiment, by setting multiple disaster recovery mechanism exit conditions, the energy storage device can exit the disaster recovery mechanism in a timely manner when it meets the disaster recovery mechanism exit conditions, meeting the electricity consumption needs of users.

[0097] In one embodiment, the power outage warning event includes an estimated power outage end time;

[0098] When detecting at least one of the following situations, it is determined that the energy storage device meets the preset disaster recovery mechanism exit conditions:

[0099] In the first case, when the current time reaches the estimated power outage end time, it is determined that the energy storage device meets the preset exit conditions for the first disaster preparedness mechanism.

[0100] In the second case, when the offline duration of the energy storage device is greater than or equal to the preset offline duration threshold, it is determined that the energy storage device meets the preset exit conditions for the second disaster preparedness mechanism.

[0101] In the third case, when receiving the disaster preparedness mechanism interruption message sent by the client, it is determined that the energy storage device meets the preset exit conditions for the third disaster preparedness mechanism.

[0102] In the fourth case, when receiving the disaster preparedness function shutdown message sent by the client, it is determined that the energy storage device meets the preset exit conditions for the fourth disaster preparedness mechanism.

[0103] Under normal circumstances, the energy storage device does not support manual intervention. To reduce the situation where the energy storage device does not discharge during the disaster preparedness state and affects the normal power consumption of users, in this embodiment, four types of disaster preparedness mechanism exit conditions are set, including automatic and manual exit conditions, which are respectively referred to as the first, second, third, and fourth disaster preparedness mechanism exit conditions. The first disaster preparedness mechanism exit condition is: if the current time reaches the estimated power outage end time, it is determined that the energy storage device needs to exit the disaster preparedness mechanism. The second disaster preparedness mechanism exit condition is: if the offline duration of the energy storage device is greater than or equal to the preset offline duration threshold (such as 10 hours), it is determined that the energy storage device needs to exit the disaster preparedness mechanism. The third disaster preparedness mechanism exit condition is: if receiving the disaster preparedness mechanism interruption message sent by the client, it is determined that the energy storage device needs to exit the disaster preparedness mechanism. The fourth disaster preparedness mechanism exit condition is: if receiving the disaster preparedness function shutdown message sent by the client, it is determined that the energy storage device needs to exit the disaster preparedness mechanism.

[0104] In addition to the above-mentioned disaster preparedness mechanism exit conditions, the disaster preparedness mechanism exit conditions may also include: when receiving new planned power outage data and detecting that the power supply party or relevant department cancels the power outage plan, and no power outage event will occur before the estimated power outage time and within a certain period in the future, it is determined that the energy storage device meets the disaster preparedness mechanism exit conditions; or when receiving new weather warning data and the weather warning data changes, and no bad weather will affect the power supply before the estimated power outage time and within a certain period in the future, it is determined that the energy storage device meets the disaster preparedness mechanism exit conditions.

[0105] During specific implementation, the server monitors in real time whether the current time has reached the estimated power outage end time. When the current time reaches the estimated power outage end time, it is determined that the energy storage device meets the preset first disaster recovery mechanism exit condition, and a disaster recovery mechanism exit message is sent to the energy storage device. When the energy storage device receives the disaster recovery mechanism exit message, it immediately exits the disaster recovery mechanism and switches to the normal working mode. Similarly, the server regularly detects the network connection status of the energy storage device. If the server cannot access the energy storage device normally or the packet loss rate is abnormally high, it can be determined that the energy storage device is in an offline state. Or, a request is regularly sent to the energy storage device and its response is awaited. If no response from the energy storage device or abnormal data interaction is received within a certain period of time, it can be determined that the energy storage device is in an offline state. Once it is monitored that the energy storage device is in an offline state, the offline duration is counted. If the offline duration is greater than 10 hours, it is determined that the energy storage device meets the second disaster recovery mechanism exit condition, and a disaster recovery mechanism exit message is sent to the energy storage device. When the energy storage device receives the disaster recovery mechanism exit message, it immediately exits the disaster recovery mechanism and switches to the normal working mode.

[0106] In addition to the above-mentioned method of autonomously determining that the energy storage device needs to exit the disaster recovery mechanism, two methods of manually exiting the disaster recovery mechanism are also provided. It can be that the client logs in to the account of the energy storage device control application. When it is necessary to manually control the energy storage device to exit the disaster recovery mechanism, the "Disaster Recovery Mechanism Interruption" button on the interaction interface of the energy storage device control application can be clicked. At this time, the client responds to the button click event, generates, and sends a disaster recovery mechanism interruption message to the server. The server sends a disaster recovery mechanism exit message to the energy storage device. When the energy storage device receives the disaster recovery mechanism exit message, it interrupts the current disaster recovery state and switches to the normal working mode. When receiving a power outage warning message next time, it can still enter the disaster recovery state.

[0107] If the user wants to turn off the disaster recovery function of the energy storage device, it can be to click the "Disaster Recovery Function Off" button on the interaction interface of the energy storage device control application. At this time, the client responds to the button click event, generates, and sends a disaster recovery function off message to the server. The server determines that the energy storage device needs to turn off the disaster recovery function, sends a disaster recovery mechanism exit message to the energy storage device. When the energy storage device responds to the disaster recovery mechanism exit message, it directly exits the disaster recovery mechanism. And when receiving a power outage warning message next time, it will not enter the disaster recovery mechanism. Only when the server receives the "Disaster Recovery Function On Message" sent by the client, the disaster recovery function is automatically turned on, and the server controls the energy storage device to start the disaster recovery mechanism. When the energy storage device receives a power outage warning message, it enters the disaster recovery mechanism.

[0108] It can be understood that in some other embodiments, the client can also directly communicate with the energy storage device. When receiving the "disaster recovery mechanism interruption" operation or "disaster recovery function shutdown" operation of the user, it directly sends a disaster recovery mechanism exit message to the energy storage device to control the energy storage device to exit the disaster recovery mechanism.

[0109] When the server detects that the energy storage device meets at least one disaster recovery mechanism exit condition, it sends a disaster recovery mechanism exit message to the energy storage device so that the energy storage device can exit the disaster recovery mechanism in a timely manner.

[0110] In this embodiment, by configuring the automatic exit and manual exit of the disaster recovery mechanism, the entire life cycle of the energy storage device can be controlled, and the user can control the switch of the disaster recovery mechanism according to actual needs, so as to better apply different disaster recovery scenarios and requirements.

[0111] In one of the embodiments, S800 includes: sending a warning message carrying the estimated power outage time to the energy storage device, and sending a power outage warning message carrying the power outage warning event to the client communicating with the energy storage device, where the weather warning data carries a message identifier and a message type.

[0112] If the message type is the message addition type, according to the message identifier, obtain the historical power outage warning message sent to the client last time. When the historical weather warning data does not contain the message identifier, send the power outage warning message to the client, and the client is communicatively connected to the energy storage device.

[0113] If the message type is the message update type, according to the message identifier, obtain the historical power outage warning message sent to the client last time. According to the weather warning data, update the historical power outage warning message, and send the updated power outage warning message to the client.

[0114] If the message type is the message revocation type, according to the message identifier, obtain the historical power outage warning message sent to the client last time, and delete the historical power outage warning message.

[0115] As described in the above embodiments, the weather warning data in the area where the energy storage device is located can be to subscribe to the meteorological service of a third-party weather data providing platform. The third-party weather data providing platform dynamically pushes the weather warning data to the server in the form of messages. After the server receives the pushed weather warning data, it parses out the message identifier therein, that is, the message ID (Identity), the warning data, and the message type. Among them, the message type includes the message addition type, the message update type, and the message revocation type. The server will perform different processing according to the message type.

[0116] In this embodiment, if it is determined that the energy storage device meets the enabling conditions of the second disaster recovery mechanism based on the weather warning data and the location of the energy storage device, a power outage warning event and a power outage warning message are generated. A warning message carrying the estimated power outage time is sent to the energy storage device. At the same time, a power outage warning message carrying the power outage warning event is pushed to the client. This power outage warning message has an association relationship with the message ID in the weather warning data, indicating that the generation of this power outage warning message is associated with the weather warning data corresponding to the message ID.

[0117] Exemplarily, if the message type is the message addition type, the previous sent historical power outage warning message is found through the message identifier, i.e., the message ID. If the historical weather warning data does not contain the message identifier, it means that this weather warning data is newly added warning data. At this time, a power outage warning message can be generated and sent to the client. If it is the first time to receive weather warning data and the message type is the message addition type, a power outage warning message is directly generated and sent to the client.

[0118] If the message type is the message update type, the previous sent historical power outage warning message to the client is obtained through the message identifier. The historical power outage warning message is updated according to the data in the weather warning data, and the updated power outage warning message is sent to the client. For example, if the message content in the previous sent historical power outage warning message includes: There will be a heavy snowstorm coming in about three hours, and the duration of the heavy snowstorm is about 2 hours, which may cause a power outage event. Please make preparations and have an emergency power supply ready! If the coming time and duration of the heavy snowstorm in the received weather warning data this time change, then according to the latest coming time and duration of the heavy snowstorm change, the previous sent historical power outage warning message is updated to obtain the updated power outage warning message, and the updated historical power outage warning message is pushed to the client.

[0119] If the message type is the message revocation type, it means that the weather warning data may be incorrect and the previously sent historical power outage message needs to be withdrawn. Therefore, the previous sent historical power outage warning message to the client can be obtained through the message identifier, and this historical power outage warning message is deleted. It can be understood that during the message sending process, the communication connection between the client and the energy storage device is ensured to be unobstructed, and the power outage warning message is accurately transmitted to the client.

[0120] In this embodiment, the historical power outage warning message is searched and updated through the message identifier and message type of the weather warning data, ensuring that the power outage warning message sent to the client can accurately match the current weather warning situation and meet the power outage warning requirements in different situations.

[0121] To make a clearer description of the disaster recovery control method for the energy storage device provided in this application, the following combines the attached Figure 3A specific embodiment will be described. The specific embodiment includes the following steps:

[0122] S200. Obtain power outage factor data of the area where the energy storage device is located. The power outage factor data includes planned power outage data, weather warning data, and grid load data.

[0123] S420. Based on the planned power outage data and the location of the energy storage device, determine whether the energy storage device meets the enabling conditions of the first disaster preparedness mechanism.

[0124] Specifically, it may be to determine the planned power outage area and planned power outage time according to the planned power outage data. When the location of the energy storage device is in the planned power outage area and the planned power outage time is later than the current time, it is determined that the energy storage device meets the enabling conditions of the first disaster preparedness mechanism.

[0125] S440. Based on the weather warning data and the location of the energy storage device, determine whether the energy storage device meets the enabling conditions of the second disaster preparedness mechanism.

[0126] Specifically, it may be to screen out target weather warning data that meets the preset weather warning conditions from the weather warning data. The target weather warning data carries a warning area. When the location of the energy storage device is in the warning area, it is determined that the energy storage device meets the enabling conditions of the second disaster preparedness mechanism.

[0127] S460. Based on the planned power outage data, weather warning data, grid load data, and the location of the energy storage device, determine whether the energy storage device meets the enabling conditions of the third disaster preparedness mechanism.

[0128] Specifically, it may be to use the planned power outage area, planned power outage time, the location of the energy storage device, grid electricity price, and the number of people affected by the power outage as inputs, call the trained power outage probability prediction model to predict the power outage probability, obtain the power outage probability of the area where the energy storage device is located. When the power outage probability is greater than the preset power outage probability threshold and the location of the energy storage device is in the planned power outage area, it is determined that the energy storage device meets the enabling conditions of the third disaster preparedness mechanism.

[0129] S600. When it is determined that the energy storage device meets at least one of the preset disaster preparedness mechanism enabling conditions, generate a power outage warning event, where the power outage warning event includes an estimated power outage time.

[0130] S820. Send a warning message carrying the estimated power outage time to the energy storage device, and send a power outage warning message carrying the power outage warning event to the client communicating with the energy storage device. The warning message is used to instruct the energy storage device to enter the disaster preparedness mechanism and determine a charging strategy according to the estimated power outage time and then charge.

[0131] S900, determine whether the energy storage device meets the preset disaster recovery mechanism exit conditions, where there is one or more preset disaster recovery mechanism exit conditions.

[0132] S920, when the energy storage device meets one of the preset disaster recovery mechanism exit conditions, send a disaster recovery mechanism exit message to the energy storage device to instruct the energy storage device to exit the disaster recovery mechanism.

[0133] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are displayed in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise clearly stated in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps in other steps.

[0134] Based on the same inventive concept, the embodiments of the present application also provide a disaster recovery control device for an energy storage device for implementing the disaster recovery control method of the energy storage device involved above. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the disaster recovery control device for an energy storage device provided below can refer to the limitations on the disaster recovery control method of the energy storage device in the above text, and will not be repeated here.

[0135] In one embodiment, as Figure 4 shown, a disaster recovery control device 400 for an energy storage device is provided, including: a data acquisition module 410, a data judgment module 420, a data generation module 43, and a data sending module 440, where:

[0136] The data acquisition module 410 is used to acquire power outage factor data in the area where the energy storage device is located, and the power outage factor data includes planned power outage data, weather warning data, and grid load data.

[0137] The data judgment module 420 is used to judge whether the energy storage device meets the preset disaster recovery mechanism activation conditions based on the planned power outage data, weather warning data, grid load data, and the known location of the energy storage device, where there is one or more preset disaster recovery mechanism activation conditions.

[0138] A data generation module 430, configured to generate a power outage warning event including an estimated power outage time when it is determined that the energy storage device meets at least one of the preset disaster recovery mechanism enabling conditions.

[0139] A data sending module 440, configured to send a warning message carrying the estimated power outage time to the energy storage device, and send a power outage warning message carrying the power outage warning event to a client communicating with the energy storage device. The warning message is used to instruct the energy storage device to enter the disaster recovery mechanism, determine a charging strategy according to the estimated power outage time, and charge according to the charging strategy.

[0140] In one embodiment, the disaster recovery mechanism enabling conditions include a first disaster recovery mechanism enabling condition, a second disaster recovery mechanism enabling condition, and a third disaster recovery mechanism enabling condition.

[0141] A data judgment module 420 is further configured to determine whether the energy storage device meets the first disaster recovery mechanism enabling condition based on the planned power outage data and the location of the energy storage device, determine whether the energy storage device meets the second disaster recovery mechanism enabling condition based on the weather warning data and the location of the energy storage device, and determine whether the energy storage device meets the third disaster recovery mechanism enabling condition based on the planned power outage data, the weather warning data, the grid load data, and the location of the energy storage device.

[0142] In one embodiment, the data judgment module 420 is further configured to determine the planned power outage area and the planned power outage time according to the planned power outage data, and determine that the energy storage device meets the first disaster recovery mechanism enabling condition when the location of the energy storage device is in the planned power outage area and the planned power outage time is later than the current time; screen out target weather warning data that meets the preset weather warning conditions from the weather warning data, and the target weather warning data carries a warning area, and determine that the energy storage device meets the second disaster recovery mechanism enabling condition when the location of the energy storage device is in the warning area; extract feature data for predicting the power outage probability from the planned power outage data, the weather warning data, and the grid load data, and the feature data includes the planned power outage area, and predict the power outage probability of the area where the energy storage device is located based on the feature data and the location of the energy storage device, and determine that the energy storage device meets the third disaster recovery mechanism enabling condition when the power outage probability is greater than the preset power outage probability threshold and the location of the energy storage device is in the planned power outage area.

[0143] In one embodiment, the feature data further includes the planned power outage time, the grid electricity price, and the number of people affected by the power outage.

[0144] The data judgment module 420 is further configured to use the planned power outage area, the planned power outage time, the location of the energy storage device, the grid electricity price, and the number of people affected by the power outage as inputs, call the trained power outage probability prediction model to predict the power outage probability, and obtain the power outage probability of the area where the energy storage device is located; wherein, the power outage probability prediction model is obtained by training the initial classification model based on the historical planned power outage data, historical weather warning data, and historical grid data of multiple areas where the energy storage devices are located.

[0145] In one embodiment, the device further includes: a model training module 412, configured to obtain the historical planned power outage data, historical weather warning data, and historical grid data of multiple areas where the energy storage devices are located, determine the power outage percentage of each area according to the historical power outage times and the number of users in the historical planned power outage data, map the power outage percentage of each area to a preset power outage probability interval, determine the corresponding power outage probability interval for each area, the power outage probability interval is divided based on a preset power outage percentage threshold range, extract the historical feature data for predicting the power outage probability from the historical planned power outage data, historical weather warning data, and historical grid data, label the historical feature data with the corresponding power outage probability interval for each area to obtain a model training set, obtain an initial power outage probability prediction model, and train the initial power outage probability prediction model based on the model training set to obtain a trained power outage probability prediction model.

[0146] In one embodiment, the data judgment module 420 is further configured to determine whether the energy storage device meets the preset disaster recovery mechanism exit conditions. There are multiple preset disaster recovery mechanism exit conditions. When the energy storage device meets any one of the preset disaster recovery mechanism exit conditions, a disaster recovery mechanism exit message is sent to the energy storage device, and the disaster recovery mechanism exit message is used to instruct the energy storage device to exit the disaster recovery mechanism.

[0147] In one embodiment, the power outage warning event includes an estimated power outage end time;

[0148] The data judgment module 420 is further configured to determine that the energy storage device meets the preset disaster recovery mechanism exit conditions when detecting at least one of the following situations:

[0149] The current time reaches the estimated power outage end time, the offline duration of the energy storage device is greater than or equal to a preset offline duration threshold, a disaster recovery mechanism interruption message sent by a client communicating with the energy storage device is received, and a disaster recovery function shutdown message sent by the client is received.

[0150] In one embodiment, the weather warning data carries a message identifier and a message type; the apparatus further includes: a data update module 414, configured to, if the message type is a message update type, obtain the historical power outage warning message last sent to the client according to the message identifier, update the historical power outage warning message according to the weather warning data, and send the updated power outage warning message to the client; if the message type is a message addition type, obtain the historical power outage warning message last sent to the client according to the message identifier, and send the power outage warning message to the client when the historical power outage warning message does not include the message identifier; if the message type is a message revocation type, obtain the historical power outage warning message last sent to the client according to the message identifier, and delete the historical power outage warning message.

[0151] Each module in the disaster recovery control device of the above energy storage device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or be independent of the processor, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above respective modules.

[0152] As Figure 5 shown, in one embodiment, the present application further provides a disaster recovery control system 500 for an energy storage device. The system includes: a server 520 and an energy storage device 540 that are communicatively connected to each other, where:

[0153] The server 520 is configured to obtain the power outage factor data of the area where the energy storage device is located. The power outage factor data includes planned power outage data, weather warning data, and grid load data. Based on the planned power outage data, weather warning data, grid load data, and the location of the obtained energy storage device, determine whether the energy storage device meets the preset disaster recovery mechanism activation conditions. There are one or more preset disaster recovery mechanism activation conditions. When it is determined that the energy storage device meets at least one of the preset disaster recovery mechanism activation conditions, generate a power outage warning event. The power outage warning event includes an estimated power outage time, and send a warning message carrying the estimated power outage time to the energy storage device 540.

[0154] The energy storage device 540 is configured to respond to the warning message, enter the disaster recovery mechanism, and determine a charging strategy according to the estimated power outage time and then charge.

[0155] In this embodiment, the disaster recovery mechanism activation conditions can be one or more, specifically including one or more of the first disaster recovery mechanism activation condition, the second disaster recovery mechanism activation condition, and the third disaster recovery mechanism activation condition.

[0156] The server 520 may, according to the steps in any of the above-described disaster recovery control method embodiments of the energy storage device, based on the planned power outage data, weather warning data, grid load data, and the location of the obtained energy storage device, determine whether the energy storage device meets the preset first disaster recovery mechanism activation condition, second disaster recovery mechanism activation condition, and third disaster recovery mechanism activation condition. The specific determination process refers to the above embodiments and will not be elaborated here. If the server 520 determines that the energy storage device 540 meets at least one disaster recovery mechanism activation condition, it generates a power outage warning event and sends a warning message carrying the estimated power outage time to the energy storage device 540.

[0157] After receiving the warning message, the energy storage device 540 immediately enters the disaster recovery mechanism, determines the corresponding charging strategy according to the estimated power outage time, and then charges according to the charging strategy. It determines whether to enter the disaster recovery mechanism according to the information in the message. Exemplarily, the energy storage device may record the time when the warning message is received as T1, use the estimated power outage time as T2, obtain the time difference between T1 and T2. If the time difference is less than a preset time difference threshold such as 12 hours, it determines the charging strategy as the first charging strategy, that is, determines parameters such as the charging rate, and immediately starts charging until the energy storage device maintains a full charge state. If the time difference is greater than 12 hours, since the time until the power outage occurs is still relatively long, considering the economic benefits of the user, it may determine the charging strategy as the second charging strategy, that is, obtain the real-time grid electricity price, determine parameters such as the charging period and charging rate, and charge during the electricity price trough period until the energy storage device maintains a full charge state.

[0158] In another embodiment, the system further includes a client 560 communicatively connected to the server 520 and the energy storage device 540.

[0159] The client 560 is used to display the power outage warning message; it is also used to respond to the disaster recovery mechanism interruption operation and send a disaster recovery mechanism interruption message to the server 520, or, in response to the disaster recovery function shutdown operation, send a disaster recovery function shutdown message to the server 520.

[0160] The server 520 is used to send a disaster recovery mechanism exit message to the energy storage device 540 when receiving the disaster recovery mechanism interruption message sent by the client, or when receiving the disaster recovery function shutdown message sent by the client 560.

[0161] And it is also used to send a disaster recovery mechanism exit message to the energy storage device 540 when detecting that the current time reaches the estimated power outage end time, or when the offline duration of the energy storage device 540 is greater than or equal to the preset offline duration threshold.

[0162] The energy storage device 540 is used to respond to the disaster recovery mechanism exit message and exit the disaster recovery mechanism.

[0163] In practical applications, an energy storage device control App (Application) is installed on the client 560. Users can use this App to control the energy storage device, even remotely.

[0164] In this embodiment, if the server 520 determines that the energy storage device 540 meets at least one disaster recovery mechanism enabling condition, it generates a power outage warning event, sends a warning message carrying the estimated power outage time to the energy storage device 540, and at the same time, sends a power outage warning message carrying the power outage warning event to the client 560.

[0165] After receiving the power outage warning message, the client 560 will display the power outage warning message on the interaction interface of the client 560. The power outage warning message is used to inform the user that a power outage event will occur and event-related information, including the estimated power outage time, power outage end time, power outage area range, estimated power outage duration, and power outage reason, etc., so that the user can check the power storage status of the energy storage device 540 in time, detect whether the energy storage device 540 has entered the disaster recovery mechanism. If the energy storage device 540 has not entered the disaster recovery mechanism, the user can manually activate the disaster recovery mechanism of the energy storage device 540 so that the energy storage device 540 can be charged in time to meet the power consumption requirements during the power outage.

[0166] Generally, the energy storage device 540 does not discharge in the disaster recovery state to meet the power consumption requirements of users. In this embodiment, multiple disaster recovery mechanism exit conditions are set. When a power outage warning message is sent to the energy storage device 540 and the energy storage device 540 enters the disaster recovery mechanism, the server 520 can determine whether the energy storage device 540 meets the preset disaster recovery mechanism exit conditions. When the energy storage device 540 meets any of the preset disaster recovery mechanism exit conditions, a disaster recovery mechanism exit message is sent to the energy storage device 540. After receiving the disaster recovery mechanism exit message, the energy storage device 540 responds to the disaster recovery mechanism exit message and exits the disaster recovery mechanism.

[0167] In this embodiment, four disaster recovery mechanisms are set up, as well as four conditions for exiting the disaster recovery mechanism. The conditions for exiting the disaster recovery mechanism mainly include the conditions for automatically exiting the disaster recovery mechanism and the conditions for manually exiting the disaster recovery mechanism, which are hereinafter referred to as the first disaster recovery mechanism exit condition, the second disaster recovery mechanism exit condition, the third disaster recovery mechanism exit condition, and the fourth disaster recovery mechanism exit condition respectively. The first disaster recovery mechanism exit condition is: if the current time reaches the estimated power outage end time, it is determined that the energy storage device 540 needs to exit the disaster recovery mechanism. The second disaster recovery mechanism exit condition is: if the offline duration of the energy storage device 540 is greater than or equal to a preset offline duration threshold, such as 10 hours, it is determined that the energy storage device 540 needs to exit the disaster recovery mechanism. The third disaster recovery mechanism exit condition is: if a disaster recovery mechanism interruption message sent by the client 560 is received, it is determined that the energy storage device 540 needs to exit the disaster recovery mechanism. The fourth disaster recovery mechanism exit condition is: if a disaster recovery function shutdown message sent by the client 560 is received, it is determined that the energy storage device 540 needs to exit the disaster recovery mechanism.

[0168] During specific implementation, the server 520 monitors in real time whether the current time reaches the estimated power outage end time. When the current time reaches the estimated power outage end time, it is determined that the energy storage device 540 meets the preset first disaster recovery mechanism exit condition, and a disaster recovery mechanism exit message is sent to the energy storage device 540. When the energy storage device 540 receives the disaster recovery mechanism exit message, it immediately exits the disaster recovery mechanism and switches to the normal working mode. Similarly, the server 520 regularly detects the network connection status of the energy storage device 540. If the server 520 cannot access the energy storage device 540 normally or the packet loss rate is abnormally high, it can be determined that the energy storage device 540 is in an offline state. Or, a request is regularly sent to the energy storage device 540 and its response is awaited. If no response or data interaction from the energy storage device 540 is received within a certain period of time, it can be determined that the energy storage device 540 is in an offline state. Once it is monitored that the energy storage device 540 is in an offline state, the offline duration is counted. If the offline duration is greater than 10 hours, it is determined that the energy storage device 540 meets the second disaster recovery mechanism exit condition, and a disaster recovery mechanism exit message is sent to the energy storage device 540. When the energy storage device 540 receives the disaster recovery mechanism exit message, it immediately exits the disaster recovery mechanism and switches to the normal working mode.

[0169] In addition to the above-mentioned method of independently determining that the energy storage device 540 needs to exit the disaster recovery mechanism, two methods of manually exiting the disaster recovery mechanism are also provided. It can be that the client 560 logs in to the account of the control application program of the energy storage device 540. When it is necessary to manually control the energy storage device 540 to exit the disaster recovery mechanism, the "Disaster Recovery Mechanism Interruption" button on the interaction interface of the control application program of the energy storage device 540 can be clicked. At this time, the client 560 responds to the button click event, generates and sends a disaster recovery mechanism interruption message to the server 520. The server 520 sends a disaster recovery mechanism exit message to the energy storage device 540. When the energy storage device 540 receives the disaster recovery mechanism exit message, it interrupts the current disaster recovery state and switches to the normal working mode. When receiving a power outage warning message next time, it can still enter the disaster recovery state.

[0170] If the user wants to turn off the disaster recovery function of the energy storage device 540, it can be to click the "Disaster Recovery Function Off" button on the interaction interface of the control application program of the energy storage device 540. At this time, the client 560 responds to the button click event, generates and sends a disaster recovery function off message to the server 520. The server 520 determines that the energy storage device 540 needs to turn off the disaster recovery function, sends a disaster recovery mechanism exit message to the energy storage device 540. When the energy storage device 540 responds to the disaster recovery mechanism exit message, it directly exits the disaster recovery mechanism. And when receiving a power outage warning message next time, it will not enter the disaster recovery mechanism. Only when the server 520 receives the "Disaster Recovery Function On Message" sent by the client 560, it automatically turns on the disaster recovery function. The server 520 controls the energy storage device 540 to turn on the disaster recovery mechanism. When the energy storage device 540 receives a power outage warning message, it enters the disaster recovery mechanism. It can be understood that in some other embodiments, the client 560 can also directly communicate with the energy storage device. When receiving the "Disaster Recovery Mechanism Interruption" operation or "Disaster Recovery Function Off" operation of the user, it directly sends a disaster recovery mechanism exit message to the energy storage device 540 to control the energy storage device 540 to exit the disaster recovery mechanism.

[0171] When the server 520 detects that the energy storage device 540 meets at least one disaster recovery mechanism exit condition, it sends a disaster recovery mechanism exit message to the energy storage device so that the energy storage device can exit the disaster recovery mechanism in time.

[0172] In this embodiment, by configuring the automatic exit of the disaster recovery mechanism and the manual exit of the disaster recovery mechanism, the full life cycle of the energy storage device can be controlled, and the user can control the switch of the disaster recovery mechanism according to actual needs, so as to better apply different disaster recovery scenarios and requirements.

[0173] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 6As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as power outage factor data and the location of energy storage devices. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements a disaster recovery control method for energy storage devices.

[0174] Those skilled in the art can understand that Figure 6 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0175] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, it implements the steps in any of the above-mentioned embodiments of the disaster recovery control method for energy storage devices.

[0176] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, it implements the steps in any of the above-mentioned embodiments of the disaster recovery control method for energy storage devices.

[0177] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, it implements the steps in the above-mentioned embodiments of the disaster recovery control method for energy storage devices.

[0178] It should be noted that the user information (including but not limited to user energy storage device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.

[0179] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., and are not limited thereto. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., and are not limited thereto.

[0180] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.

[0181] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A disaster recovery control method for an energy storage device, characterized in that, The method includes: Obtaining power outage factor data of the area where the energy storage device is located, where the power outage factor data includes planned power outage data, weather warning data, and grid load data; Based on the planned power outage data, the weather warning data, the grid load data, and the location of the obtained energy storage device, determining whether the energy storage device meets the preset disaster preparedness mechanism activation conditions, where there is one or more of the preset disaster preparedness mechanism activation conditions; In the case where it is determined that the energy storage device meets at least one of the preset disaster preparedness mechanism activation conditions, generating a power outage warning event, where the power outage warning event includes an estimated power outage time; Sending a warning message carrying the estimated power outage time to the energy storage device to instruct the energy storage device to enter the disaster preparedness mechanism, and determining a charging strategy based on the estimated power outage time and then charging.

2. The disaster recovery control method of the energy storage device according to claim 1, wherein The preset disaster preparedness mechanism activation conditions include at least one of a first disaster preparedness mechanism activation condition, a second disaster preparedness mechanism activation condition, and a third disaster preparedness mechanism activation condition; The determining whether the energy storage device meets the preset disaster preparedness mechanism activation conditions based on the planned power outage data, the weather warning data, the grid load data, and the location of the obtained energy storage device specifically includes: Based on the planned power outage data and the location of the energy storage device, determining whether the energy storage device meets the first disaster preparedness mechanism activation condition; and / or, Based on the weather warning data and the location of the energy storage device, determining whether the energy storage device meets the second disaster preparedness mechanism activation condition; and / or, Based on the planned power outage data, the weather warning data, the grid load data, and the location of the energy storage device, determining whether the energy storage device meets the third disaster preparedness mechanism activation condition.

3. The disaster preparedness control method of the energy storage device according to claim 2, characterized in that, The determining whether the energy storage device meets the first disaster preparedness mechanism activation condition based on the planned power outage data and the location of the energy storage device specifically includes: According to the planned power outage data, determining the planned power outage area and the planned power outage time, and in the case where the location of the energy storage device is in the planned power outage area and the start time of the power outage in the planned power outage time is later than the current time, determining that the energy storage device meets the first disaster preparedness mechanism activation condition; The determining whether the energy storage device meets the second disaster preparedness mechanism activation condition based on the weather warning data and the location of the energy storage device specifically includes: Screening out target weather warning data that meets the preset weather warning conditions from the weather warning data, where the target weather warning data carries a warning area; and in the case where the location of the energy storage device is in the warning area, determining that the energy storage device meets the second disaster preparedness mechanism activation condition; The determining whether the energy storage device meets the third disaster preparedness mechanism activation condition based on the planned power outage data, the weather warning data, the grid load data, and the location of the energy storage device specifically includes: Extract feature data for predicting power outage probability from the planned power outage data, the weather warning data, and the grid load data, where the feature data includes the planned power outage area; predict the power outage probability of the area where the energy storage device is located based on the feature data and the location of the energy storage device; when the power outage probability is greater than a preset power outage probability threshold and the location of the energy storage device is within the planned power outage area, determine that the energy storage device meets the enabling conditions of the third disaster recovery mechanism.

4. The disaster preparedness control method for the energy storage device according to claim 3, wherein The feature data further includes the planned power outage time, the grid electricity price, and the number of people affected by the power outage; The predicting the power outage probability of the area where the energy storage device is located based on the feature data and the location of the energy storage device specifically includes: Taking the planned power outage area, the planned power outage time, the location of the energy storage device, the grid electricity price, and the number of people affected by the power outage as inputs, call the trained power outage probability prediction model to predict the power outage probability, and obtain the power outage probability of the area where the energy storage device is located; Among them, the power outage probability prediction model is obtained by training an initial classification model based on the historical planned power outage data, historical weather warning data, and historical grid data of multiple areas where energy storage devices are located.

5. The disaster preparedness control method of the energy storage device according to claim 4, characterized in that, Before the step of taking the planned power outage area, the planned power outage time, the location of the energy storage device, the grid electricity price, and the number of people affected by the power outage as inputs and calling the trained power outage probability prediction model to predict the power outage probability, the method further includes: Obtain the historical planned power outage data, historical weather warning data, and historical grid data of multiple areas where energy storage devices are located; According to the historical number of power outages and the number of users in the historical planned power outage data, determine the power outage percentage of each area, map the power outage percentage of each area to a preset power outage probability interval, and determine the power outage probability interval corresponding to each area; where the power outage probability interval is divided based on a preset range of power outage percentage thresholds; Extract historical feature data for predicting power outage probability from the historical planned power outage data, the historical weather warning data, and the historical grid data; Label the historical feature data with the power outage probability interval corresponding to each area to obtain a model training set; Obtain an initial power outage probability prediction model, and train the initial power outage probability prediction model based on the model training set to obtain the trained power outage probability prediction model.

6. The disaster preparedness control method for the energy storage device according to any one of claims 1 to 5, characterized in that, After the step of sending the warning message carrying the estimated power outage time to the energy storage device, the method further includes: Judge whether the energy storage device meets the preset disaster recovery mechanism exit conditions, where there are one or more preset disaster recovery mechanism exit conditions; When the energy storage device meets one of the preset disaster recovery mechanism exit conditions, send a disaster recovery mechanism exit message to the energy storage device to instruct the energy storage device to exit the disaster recovery mechanism.

7. The disaster preparedness control method for the energy storage device according to claim 6, wherein The power outage warning event includes the estimated power outage end time; When detecting at least one of the following situations, determine that the energy storage device meets the preset disaster recovery mechanism exit conditions: The current time reaches the estimated power outage end time, the offline duration of the energy storage device is greater than or equal to a preset offline duration threshold, a disaster recovery mechanism interruption message sent by a client communicating with the energy storage device is received, and a disaster recovery function shutdown message sent by the client is received.

8. The disaster preparedness control method for the energy storage device according to any one of claims 1 to 5, characterized in that, When performing the step of sending a warning message carrying the estimated power outage time to the energy storage device, the method further includes: Sending a power outage warning message carrying the power outage warning event to a client communicating with the energy storage device, where the weather warning data carries a message identifier and a message type; and, If the message type is a message update type, obtaining a historical power outage warning message sent to the client last time according to the message identifier, updating the historical power outage warning message according to the weather warning data, and sending the updated power outage warning message to the client; If the message type is a message new addition type, obtaining a historical power outage warning message sent to the client last time according to the message identifier, and sending a power outage warning message to the client when the historical power outage warning message does not include the message identifier; If the message type is a message revocation type, obtaining a historical power outage warning message sent to the client last time according to the message identifier, and deleting the historical power outage warning message.

9. A disaster preparedness control system for an energy storage device, characterized in that, The control system includes: a server and an energy storage device that are communicatively connected to each other; The server is configured to obtain power outage factor data of the area where the energy storage device is located, where the power outage factor data includes planned power outage data, weather warning data, and grid load data; based on the planned power outage data, the weather warning data, the grid load data, and the obtained location of the energy storage device, determine whether the energy storage device meets a preset disaster recovery mechanism enabling condition, where there is one or more of the preset disaster recovery mechanism enabling conditions; in the case of determining that the energy storage device meets at least one of the preset disaster recovery mechanism enabling conditions, generate a power outage warning event, where the power outage warning event includes an estimated power outage time; and send a warning message carrying the estimated power outage time to the energy storage device; The energy storage device is configured to respond to the warning message, enter a disaster recovery mechanism, and determine a charging strategy according to the estimated power outage time and then charge.

10. The disaster preparedness control system for the energy storage device according to claim 9, wherein, The control system further includes a client communicatively connected to the server and the energy storage device; The server is further configured to send a power outage warning message carrying the power outage warning event to the client; The client is configured to display the power outage warning message; It is further configured to send a disaster recovery mechanism interruption message to the server in response to a received disaster recovery mechanism interruption operation, or send a disaster recovery function shutdown message to the server in response to a disaster recovery function shutdown operation; The server is further configured to send a disaster recovery mechanism exit message to the energy storage device when receiving the disaster recovery mechanism interruption message sent by the client, or when receiving the disaster recovery function shutdown message sent by the client; Moreover, it is also used to send a disaster recovery mechanism exit message to the energy storage device when it is detected that the current time reaches the estimated power outage end time, or when the offline duration of the energy storage device is greater than or equal to a preset offline duration threshold; The energy storage device is further configured to respond to the disaster recovery mechanism exit message and exit the disaster recovery mechanism.