Method and control device for operating an electrical energy storage device

By using energy storage devices and control equipment in power-consuming units to optimize power flow, the problems of low renewable energy utilization and imbalance of energy supply and demand are solved, and electricity bill optimization and grid flexibility support are achieved.

CN110890760BActive Publication Date: 2024-09-10BAYERISCHE MOTOREN WERKE AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910855305.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-09-11
Filing Date
2019-09-11
Publication Date
2024-09-10
Estimated Expiration
2039-09-11

AI Technical Summary

Technical Problem

Existing technologies make it difficult to effectively utilize renewable energy sources such as solar energy, especially when energy supply and demand are imbalanced, resulting in energy waste or system scale reduction, and there is a lack of effective electrical energy storage devices to optimize electricity bills and support grid resilience.

Method used

By using energy storage devices such as rechargeable batteries or capacitor arrays in power consuming units and equipping them with control equipment, algorithmic logic is used to control the flow of power based on charging status and power supply conditions, optimizing the operation of the power converter to ensure the use of regeneration during peak hours energy and charge during off-peak hours, using demand response mechanisms and net energy metering to optimize electricity bills.

Benefits of technology

It improves the utilization rate of renewable energy, reduces dependence on the power grid, reduces electricity bills, ensures the safe and efficient operation of electric energy storage devices, adapts to different power supply conditions, and achieves optimal energy management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110890760B_ABST
    Figure CN110890760B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method and a control device for operating an electrical energy storage device. The invention relates to a method for operating an electrical energy storage device (12) provided for an electrical consumption unit (11), wherein the electrical consumption unit (11) is additionally coupled to an electrical power grid (13). The method is characterized in that the control device (22) performs the following steps: a) providing different operating logics (25) for controlling the power flow (BP) according to the state of charge (SOC) and the total unit load (THL), b) observing a state signal (S, DR) signaling the current and / or next power supply condition of the electrical grid (13), c) selecting one of the operating logics (25) as the effective operating logic depending on the current value of the state signal (S, DR), and d) operating the power converter (21) according to the effective operating logic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for operating an electrical energy storage device provided for an electrical consumption unit. Such an electrical consumption unit may be, for example, a household. The electrical consumption unit is also coupled to an electrical power grid. The grid supplies electrical power to the electrical consumption unit under different power supply conditions at different time periods. The flow of power from the energy storage device for releasing power to the electrical consumption unit at a certain time and for charging the energy storage device at another time is controlled by a control device, which is also part of the invention. The invention also provides a system comprising an electrical consumption unit and an electrical energy storage device and an inventive control device for the energy storage device. Background Art

[0002] The use of fixed battery storage systems in residential households can play an important role not only in supporting grid resilience but also in optimizing the electricity bills of users or customers. For example, in the United States, different rate or tariff structures create opportunities to use batteries or other energy storage devices as storage resources to optimize customers' energy / grid usage time to reduce their electricity expenses. Electricity production from solar energy or other renewable energy sources is usually not matched with the typical consumption behavior of residential consumers. Especially in sunny states, such as California or Hawaii, solar energy production is highest during daytime hours. Typically, consumers' peak demand on the grid occurs in the evening hours later in the day when solar energy production gradually decreases. Therefore, it is necessary to shift energy to the time when demand is highest. For example, due to the imbalance between energy supply and demand, Hawaii initiated a regulation that no longer reimburses customers for feeding excess solar energy into the grid. Without fixed battery storage devices, excess solar energy must be reduced, or customers are forced to reduce the size of their solar energy systems. Fixed battery storage devices or other electrical energy storage devices can shift daytime renewable energy for use in household loads at night, effectively increasing the percentage of renewable energy in the overall energy usage base that can be consumed on site, that is, inside a power consumption unit such as a household. Summary of the invention

[0003] The algorithm logic should cover these components: The customer’s energy usage should be optimized to meet renewable energy feed-in requirements, provide for increased solar usage in the customer’s energy usage pattern if available, and optimize the customer’s electricity bill by intelligently shifting loads.

[0004] One object of the invention is to control the flow of electricity from a stationary energy storage device which can be provided at a consumer unit as a storage device for renewable energy and as an alternative power source during periods when electrical energy from the power grid is most expensive.

[0005] This object is achieved by the subject matter of the independent claims. Advantageous embodiments are described by the dependent claims, the following description and the figures.

[0006] The present invention provides a method for operating an electrical energy storage device provided for an electrical consumption unit. Such an energy storage device may include, for example, at least one rechargeable battery and / or at least one capacitor array. The storage capacity of such an energy storage device may be greater than 10Wh. Preferably, the energy storage device is fixed. The electrical consumption unit may be, for example, a household or an office building. For energy transfer, the energy storage device may be connected to the electrical consumption unit, or they may both be connected to the same public power grid. In any case, the electrical consumption unit is additionally coupled to the power grid. The power grid provides power to the consumption unit under different power supply conditions at different time periods. For example, different rates or tariffs may apply to the transfer of electrical energy between the power grid and the electrical consumption unit.

[0007] For the energy storage device, the control device observes the charge condition of the energy storage device and controls the power flow of the energy storage device with the help of a power converter. Such a power converter can be, for example, a bidirectional inverter or another power electronic device. The power flow is set to the value generated at each time point in the corresponding effective operating algorithm or operating logic. The control device performs the following steps:

[0008] - providing different operating logics for controlling the flow of power according to the charging condition and according to the total unit load, wherein the total unit load is the net balance value of power consumption in the consumer unit and internal power delivery or generation in the consumer unit, such that a negative total unit load in the consumer unit may indicate surplus power generated by the consumer unit itself and not consumed (e.g., the consumer unit may include or be connected to a renewable energy source,

[0009] For example, solar energy);

[0010] - observing a status signal that is signaling a current and / or next supply condition of the grid so that the control device can know which supply condition applies to the current time period and / or the next time period;

[0011] - select one of the operation logics as the effective operation logic depending on the current value of the status signal,

[0012] - Operate the power converter according to the valid operating logic.

[0013] The amount of "total unit load" may be the final demand for electricity by the consumer unit taking into account solar self-consumption, i.e., the consumer unit attempts to meet its demand for electricity on the basis of the electricity delivered by the renewable energy source, and the total unit load indicates whether more electricity is needed (total unit load is greater than 0) or whether there is surplus electricity from the renewable energy source (total unit load is less than 0). Note that positive and negative values ​​are determined based on the way the direction of the power flow is calculated. If the power flow is measured in the opposite direction, the sign (greater than 0, less than zero) will of course be different. The present invention does not depend on the direction of measuring the power flow.

[0014] The different economic supply conditions may comprise different prices per energy unit (e.g. per Wh). Said status signal signalling the current and / or next supply condition may be an external signal received by the control device or it may be derived by the control device itself, e.g. based on a table listing supply conditions and corresponding time periods, wherein by means of the clock signal it may be derived which time period is currently valid.

[0015] The grid may provide supply conditions that may be applied in order to prevent supply shortages in the grid. If these conditions apply, this is called a demand response (DR) event. In a demand response type program, a user or customer either receives a price penalty for consuming electricity during a specific period (the demand response period) or receives a credit for not consuming electricity during a specific period (the demand response period, usually on the order of a few hours). When upcoming demand response periods are announced, each demand response period may be preceded by a corresponding pre-event period.

[0016] Accordingly, one of the power supply conditions is a demand response power supply condition valid during a demand response period, and one condition is a pre-event power supply condition valid during a pre-event period, each pre-event period immediately preceding a corresponding demand response period. For the pre-event power supply condition, a pre-event operation logic is selected, which includes the following logic:

[0017] -If the duration remaining until the end of the current pre-event period is less than or equal to a predefined time interval referred to herein as the "stretched final charging window", the positive power flow used to charge the energy storage device is set to a scaled value calculated so that the charging condition reaches a maximum value at the end of the pre-event period.

[0018] This ensures that the energy storage device is fully charged for the subsequent demand response period. The charging process does not have to start at the beginning of the pre-event period. Charging can start as soon as the remaining time corresponds to the scaled final charging window FCW. The value of the power flow is a scaled value because the power flow must be adjusted according to the current charging conditions, otherwise it may reach the maximum level before the end of the pre-event period or not reach the maximum level at all. The value of the scaled power flow appropriately adjusts the power flow to reach the maximum level exactly at the end of the pre-event period.

[0019] The invention also includes embodiments that provide additional advantages.

[0020] In one embodiment, if the maximum converter power InvMaxPower of the power converter is used, that is, the maximum possible power flow, the final charging window FCW is the time value required to charge the energy storage device from its current charge state to the maximum level (100%), and the stretched final charging window α*FCW is the final charging window FCW multiplied by the stretching factor α, where α is greater than or equal to 1, where accordingly, the scaled value is the maximum converter power InvMaxPower divided by the stretching factor α, that is, InvMaxPower / α. When α=1, the stretched final charging window can be set to the shortest possible value. When α>1, the power converter can operate under less strain.

[0021] In one embodiment, the pre-event operation logic includes:

[0022] -If the duration remaining until the end of the period before the current event is greater than the stretched final charging window, i.e., more time remains, and the total unit load is greater than 0, indicating net power consumption, then the power flow is set to 0 regardless of the charging condition, otherwise, if the total unit load is less than 0, indicating net power delivery, then if the charging condition is below the maximum value (100%), a positive power flow is set to charge the energy storage device.

[0023] This embodiment ensures that excess electrical energy delivered, for example, by a regenerative energy source of a consumer unit is used to charge the energy storage device, thereby preparing it for an upcoming demand response period.

[0024] In one embodiment, for demand response power supply conditions, a demand supply operation logic is applied, which includes the following logic:

[0025] - if the total unit load is greater than 0, indicating a net power consumption, and the charge condition is greater than a predefined demand response threshold, then a negative power flow is set to discharge the energy storage device, otherwise when the charge condition is below the demand response threshold, the energy flow may be set to 0;

[0026] -If the total unit load is less than 0, indicating net power delivery, and the charge condition is at a predefined maximum level or the charge condition is below the maximum level (100%) and Net Energy Metering (NEM) applies, the power flow is set to 0, otherwise if the total unit load is less than 0, a positive power flow is set to charge the energy storage device.

[0027] This embodiment ensures that the energy storage device is only charged if excess energy from the renewable energy source cannot be used by means of the NEM during a demand response event. This embodiment provides the advantage that the energy storage device is not charged if any excess electricity delivered by the renewable energy source can be used based on the NEM.

[0028] Net Energy Metering (NEM) describes the ability to feed energy generated by renewable energy (such as solar power) into the grid and effectively obtain a time-specific retail electricity price for it. In other words, by feeding electrical energy to the grid from a renewable energy source and / or from an energy storage device, the value of the energy transferred between the grid and the power consumption unit indicated by the meter can be reduced. For example, if a customer feeds electricity at a rate of 10 kilowatt-hours (kWh) at a rate of $0.15 / kWh, the customer will receive 10 kWh * $0.15 / kWh = $1.50 for feeding this amount of energy to the grid at this time. Customers who do not have the NEM option in their utility rates will not receive any payment (or bill credit) for the energy fed to the grid. Hawaii is the first state in the United States to implement such a provision to deal with a large amount of excess solar energy production at noon. This overproduction means economic losses for customers with solar energy and provides an opportunity to implement a battery energy storage system to shift energy to other times when there is a greater demand for electricity due to higher consumption rates. It can be predicted that other states may begin to implement such regulations when the corresponding generation of renewable energy in other states increases to a certain percentage of the overall grid capacity. Therefore, the control algorithm developed in this paper covers the situation where the customer does not have an available NEM or similar type of tariff.

[0029] In one embodiment, for a non-event period, when both the pre-event period and the request-response period are not applicable, a non-event operation logic is applied, which includes:

[0030] - if the total unit load is greater than 0, indicating a net power consumption, and the charge condition is greater than a predefined demand response threshold, then a negative power flow is set to discharge the energy storage device, otherwise when the charge condition is below the demand response threshold, the energy flow may be set to 0;

[0031] -If the total unit load is less than 0, indicating a net power transfer, and the charging condition is at a maximum level (100%), the power flow is set to 0, otherwise, if the total unit load is less than 0, indicating a net power transfer, a positive power flow is set to charge the energy storage device.

[0032] This embodiment advantageously uses the energy storage device during non-event periods.

[0033] As already described, the method may also take care not to damage the battery in case of low charge conditions.Depending on the storage device type, eg a type of battery, a specific battery threshold limit for discharge may be set.

[0034] In one embodiment, the absolute value of the power flow is limited by the smaller of the maximum converter power of the power converter and the absolute value of the total unit load. This limitation is preferably applied when the total unit load is negative. This embodiment ensures that the power converter is not overloaded and that only excess power delivered by renewable energy sources is used for charging the energy storage device, i.e., no net energy from the grid itself is used. In other words, when regulating the charging or discharging power of the energy storage device, i.e., the power flow, the method always attempts to meet the consumption / generation at the level of the consumer unit within the boundaries of the maximum charging and discharging capacity (maximum converter power) of the fixed storage system.

[0035] For operating an energy storage device according to an embodiment of the method of the present invention, the present invention provides a control device for controlling the flow of power of an electrical energy storage device, wherein the control device includes a processing unit, which is designed to perform a method according to one of the claims. Since the method of the present invention provides an algorithmic control logic, the method is preferably implemented in a cloud architecture component, that is, the processing unit can be provided in the form of a network server architecture. The processing unit can be based on at least one central processing unit (CPU) and / or at least one microcontroller. The steps of the method can be implemented based on a programming code, which can include instructions designed to cause the processing unit to perform the method when the processing unit executes the programming code. The programming code can be stored in a computer-readable medium (e.g., a data storage device).

[0036] The invention also comprises the described system, which comprises an electrical consumption unit and an electrical energy storage device and a control device according to the invention.

[0037] The invention also includes combinations of features from different embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In the following, examples of implementation of the present invention are described. They are preferred embodiments of the present invention. The figures show:

[0039] Figure 1 : Schematic diagram of a system according to the present invention;

[0040] Figure 2 : A diagram illustrating different time periods during which different power supply conditions apply to demand response schemes;

[0041] Figure 3 :Can be Figure 1 A flowchart of a method executed by a control device of a system. DETAILED DESCRIPTION

[0042] The embodiments described below are preferred embodiments of the present invention. However, in the embodiments, the components of the described embodiments each represent individual features of the present invention, which are considered to be independent of each other and each feature also develops the present invention independently of each other, and are therefore also considered to be components of the present invention in an individual manner or in a manner different from the combination shown. In addition, the described embodiments may also be supplemented by other features of the present invention that have already been described.

[0043] In the various drawings, the same reference numerals respectively denote elements providing the same functions.

[0044] Figure 1 A system 10 is illustrated which may include a power consumption unit 11 and an energy storage device 12, which may be provided to the power consumption unit 11. The power consumption unit 11 may be, for example, a household or an office building. In the following, it may be assumed that the energy storage device 12 may include at least one rechargeable battery. For simplicity, it may be assumed that the power consumption unit is a household.

[0045] The consumer unit 11 may be connected to a power grid 13. By means of the power grid 13, power POW may be transmitted from, for example, a power facility (e.g. a nuclear power plant) to the consumer unit 11. The consumer unit 11 may be connected to the grid 13 together with other consumer units. The connection of the consumer unit 11 may be obtained by means of a meter 14, which may measure the amount of electrical energy provided to the consumer unit 11.

[0046] Within the consumption unit 11, at least one electrical consumer 15 can consume electrical energy, resulting in an electrical power consumption 16. In addition, a regenerative energy source 17 can be provided. The energy source 17 represents all power sources that can provide renewable electrical energy. The energy source 17 can include at least one photovoltaic solar device 18 and / or at least one wind-driven generator. The regenerative energy source 17 can provide an electrical power delivery 20. With the aid of the electrical power delivery 20, the electrical power consumption 16 can be at least partially compensated, resulting in an overall net balance value, which is here called the total unit load THL, describing, for example, the total household load.

[0047] And the power flow BP entering the energy storage device 12 can be controlled by means of a power converter 21, which can be, for example, an electric inverter, in particular a bidirectional inverter. In this specification, a positive power flow BP indicates a transfer of electric energy to the energy storage device, i.e., charging CHRG, wherein a negative power flow BP indicates a discharge DIS of energy from the energy storage device 12. The converter 21 can be connected to the energy consumption unit 11 or it can be directly connected to the grid 13, which is connected to the grid 13 at Figure 1 In the case where the converter 21 is directly connected to the grid 13 , the energy flow between the inverter 21 and the grid 13 can also be taken into account by the electricity meter 14 or by the utility provider of the grid 13 .

[0048] The converter 21 may be controlled by a control device 22, which may include a processing unit 23 for generating a control signal 24 for controlling the converter 21. The control device 22 may observe the state of charge SOC and the total unit load THL of the energy storage device 12. In addition, the control device 22 may receive a status signal DR, which indicates a current supply condition C1, C2, C3 and / or a future (upcoming) supply condition, which may be provided by the power grid 13. Possible supply conditions C1, C2, C3 combined Figure 2 To explain.

[0049] Figure 2 The diagram illustrates how a non-time-of-use rate tariff may be applied over time t. At least one of the following phases may occur, each of which may be signaled by a predefined value of the state signal DR: a demand response phase Pdr (DR=2, supply condition C3), a pre-event phase Ppe (DR=1, supply condition C2) and / or a non-event phase Pne (DR=0, supply condition C1). The values ​​of DR should be understood as exemplary. Figure 2 An example demand response structure is shown, where a possible sequence of different periods may be: non-event period Pne, pre-event period Ppe and demand response period Pdr. Each demand response period may again be followed by a non-event period Pne.

[0050] Figure 3 The diagram shows when it can be applied Figure 2 The flowchart of the algorithm logic of the tariff based on non-usage time when the demand response structure is . The flowchart starts from the corresponding current time t (S0). The algorithm may include several operation logics 25, namely, pre-event operation logic 29, demand response operation logic 30 and non-event operation logic 31. Since the demand response operation logic 30 and non-event operation logic 31 are very similar, they are composed of Figure 3 They are distinguished by the condition DR=2, which must additionally (“&&”) apply (demand response operation logic 30).

[0051] In the flowchart shown here, a "+" sign indicates that the corresponding previous logic test is "True", and a "-" sign indicates "False".

[0052] Non-time of use rates, such as fixed rates or tiered rates, have no time-based price differential periods, so it does not matter what time of day power is drawn from the grid 13. The goal of the energy storage control algorithm for this type of electricity rate rate is to consume as much on-site renewable energy as possible, such as from solar power generation. Therefore, if the customer has solar panels at his / her residence or any renewable energy source 17, then whenever there is excess energy generation and the energy storage device 12 is not fully charged, the operating logic will use this excess energy generation to recharge the energy storage device 12 (THL<0). However, if there is never any excess energy generation, for example, there is never energy generation from the solar panels after the on-site demand is met, then the energy storage device 12 will never be recharged.

[0053] Therefore, when the total unit load (THL) is positive and there is no remaining battery capacity, power will be drawn from the grid in order to meet the on-site load. Since the price of electricity is the same regardless of the time of day, there is no cost difference in charging the battery from the grid in order to provide it to the on-site load at a later time. In addition, there is an efficiency loss in doing so.

[0054] However, if the user is part of a demand response type program, such that the consumer unit 11 either receives a price penalty for consuming electricity during a certain period of time or receives a credit for not consuming electricity during a certain period of time, typically of the order of a few hours, (supply condition C3), such as Figure 3 The battery control algorithm shown will operate the energy storage device 12 similar to a customer on a time-of-use tariff. The algorithm logic will first check if there is an upcoming demand response event (supply condition C2, DR=1 indicates upcoming supply condition C3), if so, the demand response trigger is set to "pre-event" mode (Ppe).

[0055] The final charging window FCW is calculated as the remaining time before the start of a higher price period (power supply condition C3), such as a demand response period Pdr. Only in this case will the energy storage device 12 be recharged from the grid. However, in order to consume as much on-site renewable energy as possible and reduce power consumption from the utility grid, the energy storage device 12 will wait to do so until the remaining time to fully recharge the energy storage device 12 has exceeded the available time remaining before the demand response period (scaled FCW, i.e., α*FCW).

[0056] The final charge window (FCW) is a calculation of the remaining charging time and the maximum charging power. For energy storage safety reasons, this time range can be stretched to charge the battery at a lower rate to minimize damage to the energy storage device. This is provided by the stretch factor α, which extends the charging window by dividing by the maximum battery charging power (InvMaxPower) according to the following relationship:

[0057] T≤α*FCW, then the effective inverter charging power is InvMaxPower / α

[0058] where α ≥ 1 and α is a real number,

[0059] If the remaining available time T until the next partial peak or peak period is longer than α*FCW, then the energy storage device 12 will only charge from excess solar energy when available. This logic ensures that there will be as much solar energy as possible in the energy storage device 12. Alternatively, if the available time until the next partial peak or peak period is less than α*FCW, the energy storage device 12 will charge from the grid when there is no excess solar energy available to ensure that the energy storage device 12 is fully charged before the next higher priced period. Even if excess renewable energy (solar) is available, the energy storage device will be charged by InvMaxPower / alpha. If the generation of excess renewable energy (solar) is less than the required charging power required to meet the requirements to meet the FCW time, the energy storage device 12 may be partially charged from the excess renewable energy (solar) and additionally charged from the grid power POW.

[0060] In this way, the energy storage device 12 will attempt to charge with as much renewable energy as possible. After the energy storage device 12 is fully recharged and a demand response event or higher price period has begun, the demand response trigger is set to an "active" mode, allowing the energy storage device 12 to discharge the on-site load during that higher pricing period or to charge from excess renewable energy if the customer is not eligible for a NEM tariff. If it is the case that the customer is eligible for a NEM tariff, then instead of recharging the energy storage device 12 from excess renewable energy (e.g., solar), it is economically beneficial to feed the excess renewable energy back into the grid rather than storing it in the energy storage device 12.

[0061] The described approach considers specific utility rate tariffs and combines the use cases of energy arbitrage with solar self-consumption to find a cycle algorithm that provides the maximum cost savings to the user.

[0062] The implementation example shows how an energy storage 12 cycle algorithm may be provided for a stationary storage system in a residential environment.

[0063] Reference numerals

[0064] 10 System

[0065] 11 Power Consumption Units

[0066] 12Energy storage device

[0067] 13 Power Grid

[0068] 14 Instruments

[0069] 15 Electricity Consumers

[0070] 16 Power consumption

[0071] 17. Renewable Energy

[0072] 18 Photovoltaic panels

[0073] 19 Wind turbines

[0074] 20 Power Delivery

[0075] 21 Power Converter

[0076] 22 Control Equipment

[0077] 23 processing units

[0078] 24 control signals

[0079] 25 Operation Logic

[0080] 30 Demand Response Operation Logic

[0081] 31 Non-event operation logic

[0082] C Cost

[0083] C1, C2, C3 power supply conditions

[0084] BP Power Flow

[0085] BTHdr Demand Response Threshold

[0086] DR status signal

[0087] NEM Net Energy Metering

[0088] InvMaxPower Maximum converter power

[0089] POW Electricity

[0090] Pne non-event period

[0091] Pre-Ppe event period

[0092] Pdr demand response time

[0093] SOC charging status

[0094] t time

[0095] THL Total Unit Load

Claims

1. A method for operating an electrical energy storage device (12) provided for an electrical consumption unit (11), wherein the electrical consumption unit (11) is additionally coupled to an electrical power grid (13) and wherein the electrical power grid (13) supplies electrical power (POW) to the electrical consumption unit (11) under different power supply conditions at different time periods, and wherein a control device (22) observes the state of charge (SOC) of the energy storage device (12) and controls the power flow (BP) of the energy storage device (12) by means of a power converter (21), It is characterized in that The control device (22) performs the following steps: - providing different operating logics (25) for controlling the power flow (BP) according to the state of charge (SOC) and according to the total unit load (THL), wherein the total unit load (THL) is the power consumption (16) in the power consuming unit (11) and the power consuming unit (16). The net balance value of the internal power delivery (20) in the unit (11), - observing a status signal (S, DR) that is signaling the current and / or next supply condition of the power grid (13), - Depending on the current value of the status signal (DR), one of the operation logics (25) is selected. For effective operation logic, - operating the power converter (21) according to the effective operating logic; One of the power supply conditions is a demand response power supply condition, which is valid during a demand response period (Pdr), and one of the power supply conditions is a pre-event power supply condition, which is valid during a pre-event period (Ppe), each pre-event period is immediately before the corresponding demand response period (Pdr), and for the pre-event power supply condition, a pre-event operation logic is selected, and the pre-event operation logic includes the following logic: - If the duration (T) remaining until the end of the pre-event period (Ppe) is less than or equal to a predefined stretched final charging window, the positive power flow (BP) used to charge the energy storage device is set to a scaled value calculated so that the state of charge (SOC) reaches a maximum level (100%) at the end of the pre-event period (Ppe), Wherein, if the maximum converter power (InvMaxPower) of the power converter is used, the final charging window (FCW) is the time value required to charge the energy storage device from its current state of charge (SOC) to the maximum level (100%), and the stretched final charging window is the final charging window (FCW) multiplied by the stretching factor α, where α is greater than or equal to 1, and the scaled value is the maximum converter power (InvMaxPower) divided by the stretching factor α.

2. The method according to claim 1, in, For pre-event operation logic: - If the duration (T) remaining until the end of the pre-event period (Ppe) is greater than the stretched final charge window, and the total unit load (THL) is greater than 0, Indicates the net power consumption, the power flow used to charge the energy storage device (BP) is set to 0 regardless of the state of charge, otherwise, if the total unit load (THL) is less than 0, indicating net power delivery, then if the state of charge (SOC) is below the maximum value (100%), a positive power flow (BP) is set to The energy storage device is charged.

3. The method according to claim 1, in, For demand response supply conditions, the demand supply operation logic is applied, which Includes the following logic: - If the total unit load (THL) is greater than 0, indicating net power consumption, and charging If the state of charge (SOC) is greater than a predefined demand response threshold (BTHdr), a negative power flow (BP) is set to discharge the energy storage device, - If the total unit load (THL) is less than 0, indicating net power delivery, and or The state of charge (SOC) is at a predefined maximum level (100%) or the charging If the SOC is below the maximum level (100%) and Net Energy Metering (NEM) is applicable, the Power Flow (BP) is set to 0, otherwise, if the total unit load Load (THL) is less than 0, indicating net power transfer, then set positive power flow (BP) to charge the energy storage device.

4. The method according to claim 1, in, For the non-event period (Pne), when neither the pre-event period (Ppe) nor the demand response period (Pdr) is applicable, the non-event operation logic is applied, which includes: - If the total unit load (THL) is greater than 0, indicating net power consumption, and charging If the state of charge (SOC) is greater than a predefined demand response threshold (BTHdr), a negative power flow (BP) is set to discharge the energy storage device, - If the total unit load (THL) is less than 0, indicating net power delivery, and charging If the SOC is at the maximum level (100%), the power flow (BP) is set to 0, otherwise, if the total unit load is less than 0, a positive power flow is set. (BP) to charge the energy storage device.

5. The method according to claim 1, in, The absolute value of the power flow (BP) is limited by both the maximum converter power (InvMaxPower) of the power converter and the absolute value of the total unit load (THL).

6. A control device (22) for controlling a power flow (BP) of an electrical energy storage device (12), wherein the control device (22) comprises a processing unit (23) which is designed to carry out the method according to one of the preceding claims.

7. A system (10) comprising an electrical consumption unit (11) and an electrical energy storage device (12) and a control device (22) according to claim 6.

8. A computer-readable storage medium storing instructions, which, when executed by a processor, cause the processor to perform the operations of the method according to any one of claims 1 to 5.

9. An apparatus comprising means for performing the operations of the method of any one of claims 1-5.