Control method and device of electric water heater and electronic equipment

By constructing an energy demand meter and implementing precise energy storage control during off-peak hours, the problem of insufficient hot water supply from electric water heaters has been solved, thus improving the user experience.

CN122107588APending Publication Date: 2026-05-29GUANGDONG VANWARD ELECTRIC

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG VANWARD ELECTRIC
Filing Date
2026-03-31
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing electric water heaters often experience insufficient hot water supply during off-peak hours when using energy storage solutions, resulting in a poor user experience.

Method used

An energy demand table is constructed by collecting water energy demand data of electric water heaters within a preset learning period, calculating water usage periods, energy consumption rates, and loss rates, and performing precise energy storage control during off-peak periods.

Benefits of technology

This reduces energy loss during heat preservation, ensures sufficient hot water supply, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122107588A_ABST
    Figure CN122107588A_ABST
Patent Text Reader

Abstract

The application provides a control method and device of an electric water heater and electronic equipment, comprising: collecting energy demand data of each water use period of the electric water heater in a preset learning period, wherein the energy demand data comprises water flow, outlet water temperature, inlet water temperature, water use starting time, water use ending time and real-time inner container water temperature; obtaining a water use period, an energy consumption rate and an energy loss rate based on the energy demand data, and constructing an energy demand table; the energy demand table comprises corresponding water use date, water use period, energy consumption rate and energy loss rate; if water use demand exists in the current water use date, calculating water use demand energy and water use loss energy according to the energy demand table, determining target energy storage energy based on the water use demand energy and the water use loss energy, and controlling the electric water heater to store energy in a valley period of the current water use date based on the target energy storage energy. Precise energy storage control can be realized, and user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of water heater technology, and in particular to a control method, device and electronic equipment for an electric water heater. Background Technology

[0002] Currently, to save on water heater operating costs, some existing electric water heaters employ a scheme of storing energy during off-peak hours and using water during peak hours. Off-peak hours are typically set in the early morning, allowing the heating element to store energy during these times, while the water heater's insulation allows users to wait until peak hours for hot water. However, this scheme is prone to insufficient hot water supply, leading to a poor user experience. Summary of the Invention

[0003] The first technical problem solved by this invention is to provide a control method for an electric water heater, which effectively constructs an energy demand table and controls the electric water heater to store energy during off-peak hours based on the energy demand table, thereby achieving precise energy storage control and improving user experience.

[0004] The second technical problem solved by this invention is to provide a control device for an electric water heater that effectively constructs an energy demand meter and controls the electric water heater to store energy during off-peak hours based on the energy demand meter, thereby achieving precise energy storage control and improving user experience.

[0005] The third technical problem solved by this invention is to provide an electronic device that effectively constructs an energy demand meter, and controls the electric water heater to store energy during off-peak hours based on the energy demand meter, thereby achieving precise energy storage control and improving user experience.

[0006] The first technical problem mentioned above is solved by the following technical solution: A control method for an electric water heater includes: collecting water energy demand data of the electric water heater at various time periods within a preset learning cycle, wherein the energy demand data includes: water flow rate, outlet water temperature, inlet water temperature, water usage start time, water usage end time, and real-time inner tank water temperature during non-water usage periods; obtaining water usage periods, energy consumption rate, and energy loss rate based on the energy demand data, and constructing an energy demand table; the energy demand table includes the corresponding water usage date, water usage period, energy consumption rate, and energy loss rate; if there is water demand on the current water usage date, calculating the water demand energy and water loss energy according to the energy demand table, determining the target energy storage energy based on the water demand energy and water loss energy, and controlling the electric water heater to store energy during the off-peak period of the current water usage date based on the target energy storage energy.

[0007] Compared with the prior art, the control method of the electric water heater of the present invention has the following advantages: an energy demand table is constructed, and the electric water heater is controlled to store energy during off-peak hours based on the energy demand table. Water energy demand data can be collected through a learning cycle to obtain water usage time, energy consumption rate and energy loss rate, and an energy demand table is constructed. Furthermore, energy is stored during off-peak hours based on the energy demand and energy loss during water usage, reducing the problem of insufficient hot water due to energy loss during the heat preservation period, thereby improving the user experience.

[0008] In one embodiment, the energy demand for water use and the energy loss due to water use are calculated based on the energy demand table, including: obtaining the water use duration based on the water use period, and calculating the energy demand for water use based on the water use duration and the energy consumption rate; obtaining the idle time based on the water use period, and calculating the energy loss due to water use based on the water use duration and the energy consumption rate.

[0009] In one embodiment, the energy demand for water use and the energy loss due to water use are calculated based on the energy demand table, including: obtaining the water use duration based on the water use period; obtaining the compensation duration and calculating the energy demand for water use based on the water use duration, the compensation duration and the energy consumption rate; obtaining the idle time based on the water use period and calculating the energy loss due to water use based on the water use duration and the energy consumption rate.

[0010] In one embodiment, the energy demand meter further includes the step of obtaining the inlet water temperature and the compensation duration, which includes: obtaining the temperature difference between the current inlet water temperature of the electric water heater and the inlet water temperature of the energy demand meter; and determining the compensation duration based on the temperature difference and a preset base value.

[0011] In one embodiment, energy demand data for water use in the electric water heater is collected at various times during the learning cycle. Based on the energy demand data, the water usage time period, energy consumption rate, and energy loss rate are obtained, and an energy demand table is constructed. This includes: driving the heating element of the electric water heater to heat the water in the inner tank to a preset heating temperature during the learning cycle; collecting real-time inlet water flow through the flow sensor of the electric water heater; when the real-time inlet water flow is greater than or equal to a water usage determination threshold, collecting water flow, outlet water temperature, inlet water temperature, and water usage start time; calculating the instantaneous energy consumption rate based on water flow, outlet water temperature, and inlet water temperature; when the real-time inlet water flow is less than the water usage determination threshold, recording the water usage end time; calculating the energy consumption rate based on the water usage start time, water usage end time, and instantaneous energy consumption rate; and when the real-time inlet water flow is less than the water usage determination threshold, collecting the real-time inner tank water temperature; and calculating the energy loss rate based on the real-time inner tank water temperature.

[0012] In one embodiment, the energy consumption rate is calculated based on the water usage start time, the water usage end time, and the instantaneous energy consumption rate, including: determining the water usage duration based on the water usage start time and the water usage end time; integrating the instantaneous energy consumption rate over the interval from the water usage start time to the water usage end time to obtain the current energy demand; and using the ratio of the current energy demand to the water usage duration as the energy consumption rate.

[0013] In one embodiment, the water temperature of the inner tank is collected in real time, and the energy loss rate for each time period within the learning cycle is calculated based on the water temperature of the inner tank in real time. This includes: collecting the water temperature of the inner tank in real time when the water heater is in a non-water use phase; determining the water temperature drop value of the inner tank based on the water temperature of multiple inner tanks in real time; calculating the energy loss based on the water temperature drop value of the inner tank; and calculating the energy loss rate based on the energy loss and the duration of the non-water use phase corresponding to the energy loss.

[0014] In one embodiment, controlling the electric water heater to store energy during the off-peak hours of the current water usage date based on the target energy storage includes: determining the safe energy storage based on the off-peak energy storage temperature of the off-peak hours of the current water usage date; if the target energy storage is less than the safe energy storage, controlling the electric water heater to store energy based on the target energy storage; if the target energy storage is greater than or equal to the safe energy storage, controlling the electric water heater to store energy based on the safe energy storage.

[0015] In one embodiment, the method further includes: if there is a water usage record during the off-peak period of the current water usage date, calculating the remaining water usage energy after the water usage during the off-peak period ends, and calculating the remaining usable energy based on the remaining water usage energy and the energy lost from water usage; if the remaining usable energy is less than a preset threshold, controlling the electric water heater to perform supplementary heating, and supplementing the heating to the target energy storage level.

[0016] In one embodiment, the method further includes: if there are multiple water demands during the peak period of the current water demand date, after one water demand ends, calculating the remaining water demand; calculating the energy required for the next water demand, and calculating the energy gap based on the energy required for water demand and the remaining water demand; if the energy gap is less than 0, controlling the electric water heater to supplement heat, and supplementing heat to the energy required for water demand.

[0017] In one embodiment, controlling the electric water heater to perform supplemental heating includes: calculating a first duration from the current time to the next water usage time, and determining a second duration for the electric water heater to heat to a set temperature in each power mode; selecting a target power mode with the lowest power from a plurality of second durations that are less than or equal to the first duration; and controlling the electric water heater to perform supplemental heating based on the target power mode during the current water usage period.

[0018] The second technical problem mentioned above is solved by the following technical solution: A control device for an electric water heater includes: an energy demand data acquisition module for acquiring water energy demand data of the electric water heater at various time periods within a preset learning period, wherein the energy demand data includes: water flow rate, outlet water temperature, inlet water temperature, water usage start time, water usage end time, and real-time inner tank water temperature during non-water usage periods; an energy demand table construction module for obtaining water usage periods, energy consumption rate, and energy loss rate based on the energy demand data, and constructing an energy demand table; the energy demand table includes the corresponding water usage date, water usage period, energy consumption rate, and energy loss rate; and a valley-period energy storage module for calculating the water usage demand energy and water usage loss energy according to the energy demand table if there is water usage demand on the current water usage date, determining the target energy storage energy based on the water usage demand energy and water usage loss energy, and controlling the electric water heater to store energy during the valley period of the current water usage date based on the target energy storage energy.

[0019] Compared with the prior art, the control device for the electric water heater of the present invention has the following advantages: it constructs an energy demand table, controls the electric water heater to store energy during off-peak hours based on the energy demand table, collects water energy demand data through a learning cycle to obtain water usage time, energy consumption rate and energy loss rate, constructs an energy demand table, and stores energy during off-peak hours according to the energy demand and energy loss of water usage, reducing the problem of insufficient hot water due to energy loss during the heat preservation period, thereby improving the user experience.

[0020] The third technical problem mentioned above is solved by the following technical solution: An electronic device includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, and the processor executing the computer-executable instructions to implement the above-described control method for an electric water heater.

[0021] Compared with the prior art, the electronic device of the present invention has the following advantages: it constructs an energy demand table, controls the electric water heater to store energy during off-peak hours based on the energy demand table, collects water energy demand data through a learning cycle to obtain water usage time, energy consumption rate and energy loss rate, constructs an energy demand table, and stores energy during off-peak hours according to the energy demand and energy loss of water usage, reducing the problem of insufficient hot water due to energy loss during the heat preservation period, thereby improving the user experience. Attached Figure Description

[0022] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0023] Figure 1 A flowchart of a control method for an electric water heater provided in an embodiment of the present invention; Figure 2 A flowchart illustrating another control method for an electric water heater provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the overall framework of a control method for an electric water heater provided in an embodiment of the present invention; Figure 4 A schematic diagram illustrating the initialization and learning phases of an electric water heater according to an embodiment of the present invention; Figure 5 A schematic diagram of the control logic of an electric water heater during the execution phase, provided as an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of a control device for an electric water heater provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0025] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0026] Example 1: This invention provides a control method for an electric water heater, see below. Figure 1 The flowchart shown illustrates a control method for an electric water heater, which includes the following steps: Step S102: Collect water energy demand data of the electric water heater at various time periods within a preset learning cycle. The energy demand data includes: water flow rate, outlet water temperature, inlet water temperature, water use start time, water use end time, and real-time inner tank water temperature during non-water use periods.

[0027] In this embodiment, regardless of the mode of the water heater, the water energy demand data of the electric water heater at various time periods can be collected within the preset learning period T_learn. The energy demand data includes: water flow rate q, outlet water temperature T_out, inlet water temperature T_in, water use start time, water use end time, and real-time inner tank water temperature T_tank_real.

[0028] The learning period T_learn refers to the period during which water energy demand is collected. T_learn ≥ 2 days, with a preferred value of 7 days. Within the learning period T_learn, the electric water heater can heat the real-time inner tank water temperature T_tank_real to the preset heating temperature T_hold, and collect water energy demand data for each time period. The temperature range is 75℃ ≤ T_hold ≤ 80℃, with a preferred value of 75℃.

[0029] Step S104: Based on the energy demand data, obtain the water usage period, energy consumption rate and energy loss rate, and construct an energy demand table; the energy demand table includes the corresponding water usage date, water usage period, energy consumption rate and energy loss rate.

[0030] In this embodiment, after collecting energy demand data, the water usage period, energy consumption rate P_avg_single, and energy loss rate Q_loss_rate_avg can be calculated based on the energy demand data, and an energy demand table Energy_Matrix can be constructed based on the water usage period, energy consumption rate P_avg_single, and energy loss rate Q_loss_rate_avg.

[0031] Among them, the energy consumption rate P_avg_single refers to the energy consumption generated per unit time when the user uses water, and the energy loss rate Q_loss_rate_avg refers to the amount of heat loss from the inner tank per unit time.

[0032] This embodiment can determine whether a user is using water by measuring water flow rate q, thereby determining the start and end times of water usage and the water usage period. The energy consumption rate P_avg_single can be calculated using water flow rate, outlet water temperature T_out, and inlet water temperature T_in. The time period when the water flow rate q is less than a preset value is the non-water usage period, and the energy consumption rate P_avg_single can be calculated using the real-time inner tank water temperature T_tank_real during the non-water usage period.

[0033] The Energy Matrix table can be a two-dimensional matrix register of "days-time periods", which stores the energy consumption rate and energy loss rate for each time period under each water usage date. The number of rows is equal to T_learn days, and the number of columns is the energy consumption rate and energy loss rate for the corresponding water usage period.

[0034] Optionally, an energy requirement table, as shown in Table 1, may also include the inlet water temperature.

[0035] Table 1

[0036] As shown in Table 1, the energy demand table indicates whether water energy demand data was collected during different water usage periods on different dates, and the specific values ​​of the collected water energy demand data. Table 1 shows that there was water demand on Monday, with the water usage period being 7:00-7:30.

[0037] Step S106: If there is water demand on the current water usage date, calculate the water demand energy and water loss energy according to the energy demand table, determine the target energy storage energy based on the water demand energy and water loss energy, and control the electric water heater to store energy during the off-peak period of the current water usage date based on the target energy storage energy.

[0038] It can be understood that if there is an energy consumption rate greater than a preset value (e.g., 0) during a certain water usage period on a certain water usage date in the energy demand table, it can be considered that there is water demand on that water usage date.

[0039] It can be understood that the energy demand for water use is the total energy consumed by the user within a given date. For example, if a user uses water twice on a certain day, at different times, and the energy consumed during the first time is 100J and the energy consumed during the second time is 130J, then the energy demand for water use on that day is 230J. Alternatively, if a user uses water only once on a certain day, consuming 150J of energy, then the energy demand for water use on that day is 150J.

[0040] In this embodiment, after constructing the energy demand table, the energy demand Q_req_single and the energy loss Q_loss_rate_avg can be calculated based on the energy demand table on the current water usage date when there is water demand. Based on the energy demand Q_req_single and the energy loss Q_loss_rate_avg, the target energy storage Q_tank_target_valley is determined. Based on the target energy storage Q_tank_target_valley, the electric water heater is controlled to store energy during the off-peak hours of the current water usage date. By controlling the electric water heater to store energy during the off-peak hours based on the energy demand table, precise energy storage control can be achieved.

[0041] In addition to controlling the electric water heater to store energy during off-peak hours based on the energy demand meter, this embodiment can also control the electric water heater to supplement heat on demand during peak hours based on the energy demand meter, thereby achieving precise on-demand heating control.

[0042] This invention provides a control method for an electric water heater, which constructs an energy demand table and controls the electric water heater to store energy during off-peak hours based on the energy demand table. By collecting water energy demand data through a learning cycle, the water usage period, energy consumption rate, and energy loss rate can be obtained, and the energy demand table can be constructed to achieve precise energy storage control and improve user experience.

[0043] Example 2: This embodiment provides another control method for an electric water heater, which is implemented based on the above embodiment. This embodiment focuses on describing the specific implementation of the control method for the electric water heater. See also Figure 2 The flowchart shown illustrates another control method for an electric water heater, which includes the following steps: Step S202: System initialization and parameter configuration of the electric water heater.

[0044] See Figure 3 The diagram shows the overall framework of a control method for an electric water heater. In this embodiment, the system initialization and parameter configuration of the electric water heater can be performed first.

[0045] See Figure 4 The diagram shows the initialization and learning phases of an electric water heater. In this embodiment, core parameters such as the learning period T_learn, preset heating temperature T_hold, water usage threshold Q_threshold, and thermal efficiency η can be initialized simultaneously, along with energy-related parameters such as the current total energy of the inner tank Q_tank, energy loss rate Q_loss_rate, and heating element heat output rate Q_output.

[0046] like Figure 4 As shown, this embodiment can also configure some additional peak and valley parameters according to the mode of the water heater, such as configuring the start time of the valley period T_valley_start, the end time of the valley period T_valley_end, the valley storage temperature T_store, and the maximum idle days threshold Max_Idle_Days.

[0047] like Figure 4 As shown, in addition, this embodiment can also initialize the Energy_Matrix energy demand table, clear historical energy demand data, reset D_idle=0 (number of consecutive days without water use), and prepare for data collection in subsequent learning phase steps.

[0048] Step S204: Collect water energy demand data of electric water heater at different times during the learning cycle, obtain water usage time, energy consumption rate and energy loss rate based on energy demand data, and construct energy demand table.

[0049] like Figure 3 As shown, this embodiment can construct an energy demand table during the energy demand learning phase.

[0050] like Figure 4 As shown, within the learning period T_learn, water energy demand data for each time period can be monitored, and the energy demand table Energy_Matrix can be updated.

[0051] In some embodiments, the heating element of the electric water heater can be driven to heat the water in the inner tank to a preset heating temperature during the learning cycle, and the real-time inlet water flow rate can be collected by the flow sensor of the electric water heater; when the real-time inlet water flow rate is greater than or equal to the water use determination threshold, the water flow rate, outlet water temperature, inlet water temperature and water use start time are collected, and the instantaneous energy consumption rate is calculated based on the water flow rate, outlet water temperature and inlet water temperature; when the real-time inlet water flow rate is less than the water use determination threshold, the water use end time is recorded, and the energy consumption rate is calculated based on the water use start time, water use end time and instantaneous energy consumption rate; when the real-time inlet water flow rate is less than the water use determination threshold, the real-time inner tank water temperature is collected, and the energy loss rate is calculated based on the real-time inner tank water temperature.

[0052] In this embodiment, user water energy demand data for each time period can be collected during the learning cycle (duration = T_learn days) to establish a complete energy demand table Energy_Matrix, without distinguishing between peak and off-peak periods.

[0053] This embodiment can control the controller to drive the heating element to heat the water in the inner tank to a preset heating temperature T_hold (e.g., 75°C), and then maintain the temperature in standby mode. If the water temperature in the inner tank drops to the maintenance temperature, the heating element is driven again to heat the water in the inner tank to the preset heating temperature T_hold. It can be understood that during the period when the water temperature in the inner tank drops to the maintenance temperature, the energy loss rate can be calculated by collecting the real-time water temperature in the inner tank during this period.

[0054] Among them, the specific heat capacity of water, c, is a fixed physical parameter with a value of 4200 J / (kg·℃); the water mass m in the inner tank can be the rated capacity of the water heater (L) × 1 kg / L (the density of water).

[0055] In this embodiment, the real-time inflow water flow (q) is monitored by a flow sensor, and the relationship between q and the water use determination threshold q_threshold is continuously determined: the water use determination threshold q_threshold is the flow rate threshold for determining whether a user starts using water, 0.1L / min≤q_threshold≤1L / min, and the preferred value is 0.5L / min.

[0056] When q ≥ q_threshold, it is determined that the user has started water use, and the water energy demand data collection is initiated: In this embodiment, the water flow rate of the electric water heater (i.e., the instantaneous flow rate q_out per second), the outlet water temperature T_out, the inlet water temperature T_in, the water use start time, and the real-time inner tank water temperature T_tank_real can be collected, and the instantaneous energy consumption rate is calculated as q_out × c × (T_out - T_in) (unit: J / s).

[0057] When q < q_threshold, it can be determined that the user has stopped using water, the time when water use ends is recorded, and the energy consumption rate P_avg_single and energy loss rate Q_loss_rate_avg are calculated.

[0058] In some embodiments, the water usage duration can be determined based on the water usage start time and the water usage end time; the energy demand for this use can be obtained by integrating the instantaneous energy consumption rate over the interval from the water usage start time to the water usage end time; and the ratio of the energy demand for this use to the water usage duration can be used as the energy consumption rate.

[0059] This embodiment can calculate the total energy demand for this water use in the following way: Water use duration Δt = water use end time - water use start time; Energy demand for this use Q_req_single = ∫(instantaneous energy consumption rate) dt (integration interval: water use start time to water use start time); Calculate the energy consumption rate P_avg_single for this use: P_avg_single = Q_req_single ÷ Δt.

[0060] In some embodiments, the real-time water temperature of the inner tank can be collected when the water heater is not in use, and the water temperature drop value of the inner tank can be determined based on multiple real-time water temperatures of the inner tank; the energy loss can be calculated based on the water temperature drop value of the inner tank; and the energy loss rate can be calculated based on the energy loss and the duration of the non-use period corresponding to the energy loss.

[0061] This embodiment can obtain the water temperature drop curve of the inner tank based on the real-time water temperature drop value of the inner tank. For example, the energy loss Q_loss=m×c×(T_tank_initial-T_tank_real)÷Δt_standby (Δt_standby is the standby time, that is, the duration of the non-water use period) is calculated and the energy loss rate Q_loss_rate_avg of the period during the learning cycle is obtained by fitting.

[0062] like Figure 4As shown, in this embodiment, Q_req_single, Q_loss_rate_avg, P_avg_single, and the water usage start time can be stored in the "Current Days - Current Time Period" cell of Energy_Matrix, while resetting D_idle to 0 (clearing the number of days without water usage). The aforementioned steps are repeated daily within the learning cycle until T_learn days of learning are completed, and an energy demand table is generated. Here, the consecutive days without water usage, D_idle, refers to the accumulated number of days without water usage starting from the last water usage end time.

[0063] Step S206: If there is water demand on the current water usage date, calculate the water demand energy and water loss energy according to the energy demand table, determine the target energy storage energy based on the water demand energy and water loss energy, and control the electric water heater to store energy during the off-peak period of the current water usage date based on the target energy storage energy.

[0064] See Figure 5 The diagram illustrates the control logic of an electric water heater during the execution phase. In this embodiment, idle status determination can be performed first: the number of idle days is detected and compared with Max_Idle_Days. For example, if D_idle > Max_Idle_Days (Max_Idle_Days can be > 3 days), it is determined to be a long-term idle state, heating is stopped, and off-peak energy storage is not activated until water usage is detected (Q ≥ Q_threshold), at which point D_idle is reset to 0, and normal control is restored.

[0065] Among them, the maximum idle days threshold Max_Idle_Days refers to the longest number of consecutive days without water usage. If the number of days exceeds this, only basic insulation will be maintained. 1≤Max_Idle_Days≤7, with a preferred value of 3 days.

[0066] like Figure 5 As shown, if the number of idle days is less than or equal to Max_Idle_Days, it can be determined whether the current period is a valley (T_valley). If so, and water usage is predicted for today, precise energy storage can be executed. If the number of idle days is greater than Max_Idle_Days, or if water usage is predicted not to be used today, the heating energy-saving mode can be skipped. For example: valley period: 00:00-08:00, peak period: 08:00-24:00.

[0067] In this embodiment, the Energy_Matrix can be read to calculate the energy demand Q_req_single and the energy loss Q_loss_rate_avg for the next water usage period. Then, based on the energy demand Q_req_single and the energy loss Q_loss_rate_avg, the target energy storage Q_tank_target_valley can be calculated. Based on the target energy storage Q_tank_target_valley, the electric water heater can be controlled to store energy during the off-peak period of the current water usage date.

[0068] In this embodiment, the energy consumption rate P_avg_single, energy loss rate Q_loss_rate_avg, water use start time t_next_use_start, and water use end time can be read from Energy_Matrix.

[0069] In some embodiments, the water usage duration can be obtained based on the water usage period, and the energy demand for water usage can be calculated based on the water usage duration and the energy consumption rate; the idle time can be obtained based on the water usage period, and the energy loss due to water usage can be calculated based on the water usage duration and the energy consumption rate.

[0070] In this embodiment, the water usage duration Δt can be obtained based on the water usage period, and the water usage demand energy Q_req_single can be calculated based on the water usage duration Δt and the energy consumption rate P_avg_single. For example, the water usage demand energy can be calculated by integration: Water usage demand energy Q_req_single = ∫(P_avg_single energy consumption rate) dt; Alternatively, the energy demand Q_req_single can be calculated in other ways: Q_req_single = q × Δt × M × C. The water usage duration Δt is obtained from the time difference between the start and end of water usage.

[0071] In this embodiment, the idle time Δt_static can also be obtained based on the water usage period. Water consumption loss energy is calculated based on the idle time Δt_static and the energy consumption rate P_avg_single, for example: Water consumption loss energy = Q_loss_rate_avg × Δt_static; where: Δt_static = t_next_use_start - T_valley_end, that is, Δt is the idle time from the end of the valley period to the start of water usage. For example, T_valley_end can be 08:00.

[0072] In some embodiments, the water usage duration can be obtained based on the water usage period; the compensation duration can be obtained, and the energy demand for water usage can be calculated based on the water usage duration, the compensation duration and the energy consumption rate; the idle time can be obtained based on the water usage period, and the energy loss due to water usage can be calculated based on the water usage duration and the energy consumption rate.

[0073] In some embodiments, the temperature difference between the current inlet water temperature of the electric water heater and the inlet water temperature of the energy demand meter can be obtained; the compensation duration can be determined based on the temperature difference and a preset baseline value.

[0074] In this embodiment, by setting a compensation duration n, the amount of hot water used is further ensured, reducing the occurrence of insufficient hot water. The compensation duration n can be calculated using the following formula: n = Δt_redundant_base + k × |T_in_current - T_in_previous_cycle|. Where, k is a preset redundancy duration temperature coefficient, used to dynamically adjust the redundancy duration according to the inlet water temperature, preferably 0.5 minutes / ℃ / ; Δt_redundant_base is the preset base value of the redundancy water use duration, used to ensure basic water comfort, and can be preset to 3 minutes; T_in_current is the current inlet water temperature; and T_in_previous_cycle is the inlet water temperature from the energy demand meter.

[0075] For example, if the inlet water temperature on Monday is 25℃, and the energy demand table records an inlet / outlet temperature of 20℃ on Monday of last week, then |T_in_current - T_in_previous_cycle| = 25℃ - 20℃ = 5℃. This formula ensures that the system reserves more redundant energy when the inlet water temperature fluctuates significantly, to cope with the extended water usage time that users may experience due to changes in perceived water temperature. Then, the total water usage time Δt_redundant can be calculated as: total water usage time Δt + compensation time n. The energy demand for water usage can then be calculated using the total water usage time Δt_redundant.

[0076] In some embodiments, the safe energy storage capacity can be determined based on the off-peak energy storage temperature during the off-peak period of the current water usage date; if the target energy storage capacity is less than the safe energy storage capacity, the electric water heater is controlled to store energy based on the target energy storage capacity; if the target energy storage capacity is greater than or equal to the safe energy storage capacity, the electric water heater is controlled to store energy based on the safe energy storage capacity.

[0077] This embodiment can calculate the target total energy storage: the target energy storage Q_tank_target_valley is calculated only when it is "not idle for a long time" and "the current valley period is the valley period of the day of water use": Q_tank_target_valley=Q_req_single+Q_loss_rate_avg×Δt_static; in addition, Q_tank_target_valley has an upper limit constraint: Q_tank_target_valley must not exceed the safe energy storage energy corresponding to T_store (Q_tank_store=m×c×(T_store-T_in)), if it exceeds, Q_tank_store is used.

[0078] Among them, the off-peak energy storage temperature T_store refers to the energy storage temperature during off-peak hours. T_store ≤ the upper limit of the water heater's safety, and the preferred value of the upper limit of the water heater's safety is 80℃.

[0079] The preferred start time for the valley period, T_valley_start, is 00:00.

[0080] If there is a water usage record during the valley period, the remaining usable energy Q_surplus can be calculated after the water usage ends: Q_tank_after_use - energy loss rate Q_loss_rate_avg × Δt_static. If Q_surplus < Q_req_single × 0.8, start supplemental heating to the target total energy storage Q_tank_target_valley at the valley.

[0081] Among them, the remaining available energy Q_surplus (unit: J) is the energy that can actually be supplied to the user after deducting the energy loss during the water usage period from the current total energy of the inner tank; the target energy storage total energy during the off-peak period _tank_target_valley (unit: J) is the total energy required for heating during the off-peak period, which may include the next water usage demand and static loss.

[0082] This embodiment can also determine same-day / cross-day water usage: if the water usage period is within the same day, then the day is marked as Same_Day_Flag=1 (same day); if the water usage period extends to the next day, then it is marked as Same_Day_Flag=0 (cross-day).

[0083] This embodiment can also update the number of days without water use: automatically update D_idle=D_idle+1 at midnight every day (accumulate the number of consecutive days without water use).

[0084] If the water usage spans multiple days (Same_Day_Flag=0), the energy used during that period will be stored during the current off-peak hours. For example, if the water usage lasts from 23:45 on Wednesday to 0:15 on Thursday, the energy used during that period will be stored during the off-peak hours from 00:00 to 08:00 on Wednesday. In one embodiment, the energy demand table may also include a Same_Day_Flag flag, allowing users to determine if there is any water usage spanning multiple days by querying the energy demand table.

[0085] 3. If the device is idle for an extended period (D_idle > 3 days): Do not activate off-peak energy storage and stop heating.

[0086] Step S208: If there is a water usage record during the off-peak period of the current water usage date, calculate the remaining water usage energy after the water usage ends during the off-peak period, and calculate the remaining usable energy based on the remaining water usage energy and the energy lost from water usage; if the remaining usable energy is less than a preset threshold, control the electric water heater to supplement the heat and supplement the heat to the target energy storage level.

[0087] In some embodiments, if there are multiple water demands during the peak period of the current water usage date, after one water demand ends, the remaining water usage is calculated; the energy required for the next water demand is calculated, and an energy gap is calculated based on the energy required for water usage and the remaining water usage; if the energy gap is less than 0, the electric water heater is controlled to supplement heat until the required energy for water usage is reached.

[0088] In this embodiment, on-demand heating can be performed during peak hours to further effectively avoid insufficient hot water supply. If the water usage period is within T_peak, the remaining water usage Q_surplus after the current water demand ends, and the energy required for the next water demand Q_req_single, are calculated. Then, the energy gap can be calculated: ΔQ = Q_surplus - Q_req_single. For example, if a user's water usage periods on Wednesday are 7:00-7:30 and 8:30-8:45, then there are multiple water demands on Wednesday. In another embodiment, after the water usage period of 7:00-7:30, the user uses water once. At this time, the remaining water usage Q_surplus is calculated. The remaining water usage Q_surplus can be calculated by detecting the water temperature in the inner tank at this time, and then based on the capacity and the specific heat capacity of water. The energy required for the water usage period of 8:30-8:45 can be calculated based on the water usage duration of 8:30-8:45 and the energy consumption rate.

[0089] The heat replenishment control rules can be as follows: (1) If ΔQ≥0, peak heating is not required; (2) If ΔQ < 0, start peak hour supplementary heating (the equipment is equipped with two sets of heating tubes of 1200W and 1800W, which can be combined into three power modes of 1200W, 1800W and 3000W).

[0090] In some embodiments, a first duration from the current time to the next water usage time can be calculated, and a second duration for the electric water heater to heat to the set temperature in each power mode can be determined; from a plurality of second durations less than or equal to the first duration, a target power mode with the smallest power is selected; and the electric water heater is controlled to supplement heat based on the target power mode during the current water usage period.

[0091] like Figure 5 As shown, this embodiment can perform dynamic matching of heating element power and multi-level power. The power selection rule in this embodiment can be as follows: calculate the first time t_need from the current time to the next water usage time in real time, and then calculate the second time to heat to the set temperature under the three power modes respectively. For example, the second time for 1200W can be t1, and the second time for 1800W can be t2. The formula for calculating the heating time of a single power is: t_i=ΔQ / (P_i×η×3600); P1=1200W, P2=1800W, P3=3000W, η is the thermal efficiency, and 3600 is the unit conversion factor; the heating efficiency η is the effective heat generation coefficient of the heating element, where 0.9≤η≤0.98, and the preferred value is 0.95.

[0092] In this embodiment, the 1200W low-power mode can be prioritized. That is, it is first determined that the second duration t1 of 1200W is less than or equal to t_need. If the condition is met, the heating is performed at this power. If not, proceed to the next step. If not, it is determined that the second duration t2 of 1800W mode is less than or equal to t_need. If the condition is met, the heating is switched to the 1800W power mode. If not, proceed to the next step. If neither of the above two conditions is met, the 3000W maximum power mode of the dual-tube combination is directly activated for heating.

[0093] This embodiment can also use two precise calculation paths to calculate the heat generation rate Q_output of the heating element of the electric water heater based on the differences in hardware configuration: where the heat generation rate Q_output refers to the effective heat generation per second of the heating element (unit: J / s).

[0094] 1. Configure a power detection module: collect the voltage (U_rated) and current (I_rated) of the heating element under rated operating conditions, and calculate the resistance R=U_rated / I_rated (fixed storage); collect the heating element operating voltage U_real in real time, and calculate the current actual power P_real=U_real² / R; heat generation rate: Q_output=P_real×η (η is the thermal efficiency, preferred value 0.95); 2. No power detection module configured: Perform calibration heating: Record the initial water temperature of the inner tank T_initial, the target calibration temperature T_target (e.g., T_hold), and the calibration heating duration t_cal (minutes); Total calibration heating energy: Q_cal=m×c×(T_target-T_initial); Heat generation rate: Q_output=Q_cal÷(t_cal×60) (converted to heat generation per second).

[0095] like Figure 3 and Figure 5 As shown, this embodiment can also perform iterative updates to the energy demand table, enabling dynamic optimization of the energy demand curve and control strategy: 1. After each water usage session ends, repeat the energy demand data collection logic to calculate the actual energy demand Q_req_actual (a buffer for Q_req_single) and the actual energy loss rate Q_loss_rate_actual (a buffer for Q_loss_rate); record the peak / valley time period and Same_Day_Flag flag of this water usage session, and reset D_idle=0 at the same time. 2. New data update: Overwrite the corresponding "days-time period" cell in Energy_Matrix with Q_req_actual and Q_loss_rate_actual; 3. Iterative optimization: Based on the updated Energy_Matrix (Q_req_single, Q_loss_rate_avg, P_avg_single, water usage start time), a closed-loop energy control system of "learning-execution-update" is implemented.

[0096] Example 3: Corresponding to the above method embodiments, this invention provides a control device for an electric water heater, see [link to relevant documentation]. Figure 6 The diagram shows the structure of a control device for an electric water heater. The control device includes: The energy demand data acquisition module 61 is used to collect the water energy demand data of the electric water heater at various time periods within a preset learning cycle. The energy demand data includes: water flow rate, outlet water temperature, inlet water temperature, water use start time, water use end time, and real-time inner tank water temperature during non-water use periods. The energy demand table construction module 62 is used to obtain the water usage period, energy consumption rate and energy loss rate based on the energy demand data, and to construct the energy demand table; the energy demand table includes the corresponding water usage date, water usage period, energy consumption rate and energy loss rate; The off-peak energy storage module 63 is used to calculate the energy demand and energy loss for water use based on the energy demand table if there is water demand on the current water use date. Based on the energy demand and energy loss for water use, the target energy storage capacity is determined, and the electric water heater is controlled to store energy during the off-peak hours of the current water use date based on the target energy storage capacity.

[0097] This invention provides a control device for an electric water heater, which constructs an energy demand table and controls the electric water heater to store energy during off-peak hours based on the energy demand table. This enables precise energy storage control, accurate determination of hot water volume, matching of temperature with actual hot water volume, and high adaptability to peak and off-peak electricity prices, thereby maximizing energy saving and making energy demand prediction more in line with actual operating conditions.

[0098] The aforementioned off-peak energy storage module is used to obtain the water usage duration based on the water usage period and to calculate the energy demand for water usage based on the water usage duration and energy consumption rate; it also obtains the idle time based on the water usage period and to calculate the energy loss due to water usage based on the water usage duration and energy consumption rate.

[0099] The aforementioned off-peak energy storage module is used to obtain the water usage duration based on the water usage period; obtain the compensation duration; and calculate the energy demand for water usage based on the water usage duration, compensation duration, and energy consumption rate; obtain the idle time based on the water usage period; and calculate the energy loss due to water usage based on the water usage duration and energy consumption rate.

[0100] The aforementioned off-peak energy storage module is used to obtain the temperature difference between the current inlet water temperature of the electric water heater and the inlet water temperature of the energy demand meter; and to determine the compensation duration based on the temperature difference and the preset base value.

[0101] The aforementioned energy demand data acquisition module and energy demand table construction module are used to drive the heating element of the electric water heater to heat the water in the inner tank to a preset heating temperature during the learning cycle, and to collect the real-time inlet water flow through the flow sensor of the electric water heater; when the real-time inlet water flow is greater than or equal to the water use judgment threshold, the water flow, outlet water temperature, inlet water temperature and water use start time are collected, and the instantaneous energy consumption rate is calculated based on the water flow, outlet water temperature and inlet water temperature; when the real-time inlet water flow is less than the water use judgment threshold, the water use end time is recorded, and the energy consumption rate is calculated based on the water use start time, water use end time and instantaneous energy consumption rate; the real-time inner tank water temperature is collected, and the energy loss rate is calculated based on the real-time inner tank water temperature.

[0102] The aforementioned energy demand data acquisition module and energy demand table construction module are used to determine the water usage duration based on the water usage start time and water usage end time; to obtain the current energy demand by integrating the instantaneous energy consumption rate within the interval from the water usage start time to the water usage end time; and to use the ratio of the current energy demand to the water usage duration as the energy consumption rate.

[0103] The aforementioned energy demand data acquisition module and energy demand table construction module are used to collect real-time inner tank water temperature when the water heater is in a non-water use phase, determine the inner tank water temperature drop value based on multiple real-time inner tank water temperatures, calculate the energy loss based on the inner tank water temperature drop value, and calculate the energy loss rate based on the energy loss and the duration of the non-water use phase corresponding to the energy loss.

[0104] The aforementioned off-peak energy storage module is used to determine the safe energy storage capacity based on the off-peak energy storage temperature of the current water usage date. If the target energy storage capacity is less than the safe energy storage capacity, the electric water heater is controlled to store energy based on the target energy storage capacity. If the target energy storage capacity is greater than or equal to the safe energy storage capacity, the electric water heater is controlled to store energy based on the safe energy storage capacity.

[0105] The device also includes a valley-time end-of-valley heating module, which is used to calculate the remaining water energy after the valley-time ends if there is a water usage record during the valley-time of the current water usage date, and calculate the remaining usable energy based on the remaining water energy and the water usage loss energy; if the remaining usable energy is less than a preset threshold, the electric water heater is controlled to perform supplementary heating and supplementary heating to the target energy storage level.

[0106] The aforementioned device also includes: a peak-hour supplementary heating module, used to calculate the remaining water consumption after one water consumption demand ends if there are multiple water consumption demands during the peak hours of the current water consumption date; calculate the energy required for the next water consumption demand, and calculate the energy gap based on the energy required for water consumption and the remaining water consumption; if the energy gap is less than 0, control the electric water heater to supplement the heat until the energy required for water consumption is reached.

[0107] The aforementioned peak-period supplementary heating module is used to calculate the first duration from the current time to the next water usage time, and determine the second duration for the electric water heater to heat to the set temperature in each power mode; select the target power mode with the smallest power from multiple second durations that are less than or equal to the first duration; and control the electric water heater to supplement heat based on the target power mode during the current water usage period.

[0108] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the control device of the electric water heater described above can be referred to the corresponding process in the embodiments of the control method of the aforementioned electric water heater, and will not be repeated here.

[0109] Example 4: This invention also provides an electronic device for controlling the operation of the above-described electric water heater; see [link to previous document]. Figure 7The diagram shows the structure of an electronic device, which includes a memory 100 and a processor 101. The memory 100 is used to store one or more computer instructions, which are executed by the processor 101 to implement the control method of the electric water heater described above.

[0110] Furthermore, Figure 7 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 101, the communication interface 103 and the memory 100 connected via the bus 102.

[0111] The memory 100 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0112] Processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 101 or by instructions in software form. Processor 101 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 100, and processor 101 reads information from memory 100 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.

[0113] This invention also provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are called and executed by a processor, they cause the processor to implement the above-described control method for an electric water heater. For specific implementation details, please refer to the method embodiments, which will not be repeated here.

[0114] The computer program product of the control method, device and electronic device for electric water heater provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.

[0115] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and / or device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0116] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.

[0117] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0118] In the specific implementation of the above embodiments, the technical features can be combined in any non-contradictory way to make the description concise. Not all possible combinations of the above technical features are described. However, as long as the combination of these technical features is not contradictory, it should be considered to be within the scope of this specification.

[0119] The specific embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.

Claims

1. A control method for an electric water heater, characterized in that, The method includes: Within a preset learning period, the water energy demand data of the electric water heater at various time periods are collected. The energy demand data includes: water flow rate, outlet water temperature, inlet water temperature, water use start time, water use end time, and real-time inner tank water temperature during non-water use periods. Based on the energy demand data, the water usage period, energy consumption rate, and energy loss rate are obtained, and an energy demand table is constructed; the energy demand table includes the corresponding water usage date, water usage period, energy consumption rate, and energy loss rate; If there is a water demand on the current water usage date, the energy demand and energy loss for water usage are calculated according to the energy demand table. Based on the energy demand and energy loss for water usage, the target energy storage capacity is determined, and the electric water heater is controlled to store energy during the off-peak period of the current water usage date based on the target energy storage capacity.

2. The method according to claim 1, characterized in that, The calculation of water demand energy and water loss energy based on the energy demand table includes: The water usage duration is obtained based on the water usage period, and the energy demand for water usage is calculated based on the water usage duration and the energy consumption rate. The idle time is obtained based on the water usage period, and the energy loss due to water usage is calculated based on the water usage duration and the energy consumption rate.

3. The method according to claim 1, characterized in that, The calculation of water demand energy and water loss energy based on the energy demand table includes: The water usage duration is obtained based on the stated water usage period. Obtain the compensation duration, and calculate the energy demand for water use based on the water usage duration, the compensation duration, and the energy consumption rate; The idle time is obtained based on the water usage period, and the energy loss due to water usage is calculated based on the water usage duration and the energy consumption rate.

4. The method according to claim 3, characterized in that, The energy demand table also includes the inlet water temperature, and the step of obtaining the compensation duration includes: Obtain the temperature difference between the current inlet water temperature of the electric water heater and the inlet water temperature of the energy demand meter; The compensation duration is determined based on the temperature difference and the preset baseline value.

5. The method according to claim 1, characterized in that, The process involves collecting water energy demand data for the electric water heater at various times during the learning cycle, obtaining water usage periods, energy consumption rates, and energy loss rates based on the energy demand data, and constructing the energy demand table, including: During the learning cycle, the heating element of the electric water heater is driven to heat the water temperature in the inner tank to the preset heating temperature, and the real-time inlet water flow is collected by the flow sensor of the electric water heater. When the real-time influent flow rate is greater than or equal to the water use determination threshold, the water flow rate, outlet water temperature, influent water temperature and water use start time are collected, and the instantaneous energy consumption rate is calculated based on the water flow rate, outlet water temperature and influent water temperature. When the real-time water inflow is less than the water use determination threshold, the water use end time is recorded, and the energy consumption rate is calculated based on the water use start time, the water use end time, and the instantaneous energy consumption rate. When the real-time inflow rate is less than the water usage threshold, the real-time inner tank water temperature is collected, and the energy loss rate is calculated based on the real-time inner tank water temperature.

6. The method according to claim 5, characterized in that, The calculation of the energy consumption rate based on the water usage start time, the water usage end time, and the instantaneous energy consumption rate includes: The water usage duration is determined based on the water usage start time and the water usage end time. The energy demand for this use is obtained by integrating the instantaneous energy consumption rate over the interval from the start of water use to the end of water use. The ratio of the current energy demand to the duration of water use is taken as the energy consumption rate.

7. The method according to claim 6, characterized in that, The method of collecting real-time water temperature of the inner tank and calculating the energy loss rate for each time period within the learning cycle based on the real-time water temperature of the inner tank includes: When the water heater is not in use, the real-time water temperature of the inner tank is collected, and the water temperature drop value of the inner tank is determined based on the multiple real-time water temperatures of the inner tank. Calculate the energy loss based on the decrease in the inner tank water temperature; The energy loss rate is calculated based on the energy loss and the duration of the non-water-use phase corresponding to that energy loss.

8. The method according to claim 1, characterized in that, The method of controlling the electric water heater to store energy during off-peak hours on the current water usage date based on the target energy storage includes: The safe energy storage capacity is determined based on the off-peak energy storage temperature during the off-peak period of the current water usage date. If the target energy storage capacity is less than the safe energy storage capacity, the electric water heater is controlled to store energy based on the target energy storage capacity. If the target energy storage capacity is greater than or equal to the safe energy storage capacity, the electric water heater is controlled to store energy based on the safe energy storage capacity.

9. The method according to claim 1, characterized in that, The method further includes: If there is a water usage record during the off-peak period of the current water usage date, calculate the remaining water usage energy after the water usage during the off-peak period ends, and calculate the remaining available energy based on the remaining water usage energy and the energy lost from water usage. If the remaining available energy is less than a preset threshold, the electric water heater is controlled to supplement the heat until the target energy storage level is reached.

10. The method according to claim 1, characterized in that, The method further includes: If there are multiple water demands during the peak period of the current water usage date, calculate the remaining water usage after each water demand ends; Calculate the energy required for the next water demand, and calculate the energy gap based on the energy required for the next water demand and the remaining water demand for the current water demand; If the energy deficit is less than 0, control the electric water heater to supplement the heat and provide the energy required for water usage.

11. The method according to claim 10, characterized in that, The control of the electric water heater to provide supplemental heating includes: Calculate the first duration from the current moment to the next water usage moment, and determine the second duration for the electric water heater to heat to the set temperature in each power mode; Select the target power mode with the lowest power from a plurality of second durations that are less than or equal to the first duration; The electric water heater is controlled to supplement heat based on the target power mode during the current water usage period.

12. A control device for an electric water heater, characterized in that, The device includes: The energy demand data acquisition module is used to collect the water energy demand data of the electric water heater at various time periods within a preset learning cycle. The energy demand data includes: water flow rate, outlet water temperature, inlet water temperature, water use start time, water use end time, and real-time inner tank water temperature during non-water use periods. An energy demand table construction module is used to obtain water usage periods, energy consumption rates, and energy loss rates based on the energy demand data, and to construct an energy demand table; the energy demand table includes the corresponding water usage dates, water usage periods, energy consumption rates, and energy loss rates; The off-peak energy storage module is used to calculate the energy demand and energy loss for water use based on the energy demand table if there is water demand on the current water use date, determine the target energy storage capacity based on the energy demand and energy loss for water use, and control the electric water heater to store energy during the off-peak period of the current water use date based on the target energy storage capacity.

13. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the control method of the electric water heater according to any one of claims 1 to 11.