Water heater control method and device, water heater and storage medium

By monitoring the duration of the water heater's shut-off operation and heating the water in the water heater's pipes, the problem of cold water in zero-cold-water gas water heaters when the water is turned off and then turned back on has been solved. This ensures that hot water is maintained even when the water is turned off during user use, improving user experience and saving water resources.

CN122107589APending Publication Date: 2026-05-29GREE ELECTRIC APPLIANCE INC OF ZHUHAI

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GREE ELECTRIC APPLIANCE INC OF ZHUHAI
Filing Date
2026-04-29
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing zero-cold-water gas water heaters have a significant cold-water segment when the water is turned off and then turned back on after the zero-cold-water cycle ends, which affects the user experience and wastes water resources.

Method used

By monitoring the duration of the water heater's shut-off operation, it can determine whether the user has finished using the water and heat the water in the water heater's pipes within the preset water usage time until the preset temperature is reached, ensuring that the user can still get hot water after turning off the water midway.

Benefits of technology

This reduces the cold water segment when the water is turned off and then turned back on, improving water comfort, saving water resources, and avoiding unnecessary heating and energy waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122107589A_ABST
    Figure CN122107589A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electrical equipment, and discloses a water heater control method and device, a water heater and a storage medium, the method comprising: in response to a water-off operation of the water heater during a water-out process, determining a first water use duration, and obtaining a preset water use duration, the first water use duration representing a duration from the start of water-out to the execution of the water-off operation; when it is determined that the first water use duration is within the preset water use duration, controlling the water heater to heat the water in the water heater pipeline until the water temperature in the water heater pipeline reaches a first preset temperature; the effect of no cold water can be achieved after the user turns off the water during the water use process and then turns on the water again, the cold water section after turning on the water is reduced, the temperature fluctuation when the user turns off the water in the middle and then turns on the water is reduced, the water use comfort is improved, and the waste of water resources caused by waiting for the cold water to be emptied is reduced, thereby saving water resources, and the water heater belongs to an energy-saving type.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electrical equipment technology, specifically to a water heater control method, device, water heater, and storage medium. Background Technology

[0002] Currently, zero-cold-water gas water heaters are widely used. Most gas water heaters on the market require users to actively control the zero-cold-water function. Users can enjoy the zero-cold-water function for the first time after the zero-cold-water water heater has completed its cycle. However, because the cold water cannot be heated within a few seconds of ignition, there will be a period of cold water when the water is turned off and then turned on again after the zero-cold-water cycle has ended. Summary of the Invention

[0003] This invention provides a water heater control method, device, water heater, and storage medium to solve the problem of significantly cold water appearing when the water is turned off and then turned on again during water use.

[0004] In a first aspect, the present invention provides a water heater control method, the method comprising: In response to the water heater's water shut-off operation during the water dispensing process, a first water usage duration is determined, and a preset water usage duration is obtained. The first water usage duration represents the time from when the water heater starts dispensing water to when it performs the water shut-off operation. When the first water usage time is determined to be within the preset water usage time, the water heater is controlled to heat the water in the water heater pipes until the water temperature in the water heater pipes reaches the first preset temperature.

[0005] This invention monitors the water-closing operation of the water heater during the water dispensing process and further determines whether the time from the start of water dispensing to the midpoint of the water-closing operation is within the preset water usage time. When it is determined that the user's current water usage has not ended, the water heater is controlled to heat the water in the water heater pipes until the water temperature in the water heater pipes reaches the first preset temperature. This helps to achieve the effect of no cold water after the user turns off and on the water during the water usage process, reduces the cold water segment after the water is turned on, reduces temperature fluctuations when turning off and on the water midway, improves water usage comfort, and reduces water waste caused by waiting for the cold water to drain.

[0006] In one optional embodiment, the water heater piping includes: a cold water pipe and a hot water pipe, controlling the water heater to heat water until the water temperature in the water heater piping reaches a first preset temperature, including: In response to the detection that the water heater has not turned on the energy-saving cold water function, the water heater is controlled to heat the water in the water heater pipes until the outlet water temperature reaches the second preset temperature. In response to the detection that the water heater has activated its energy-saving cold water function, the water heater is controlled to heat the water in the hot water pipe until the water temperature in the cold water pipe reaches the third preset temperature, which is lower than the second preset temperature.

[0007] This invention, when heating water in the water heater pipes, detects whether the energy-saving cold water function is activated. If the energy-saving cold water function is not activated, the water in the entire pipe is heated to reach a second preset temperature. If the energy-saving cold water function is activated, only the water in the hot water pipe is heated to reach a lower third preset temperature. This is beneficial for heating the water in the hot water pipe while controlling the water temperature in the cold water pipe within a certain range, reducing temperature fluctuations when turning the water off and on again, improving water comfort, and reducing water waste caused by waiting for the cold water to drain.

[0008] In one optional implementation, obtaining the preset water usage duration includes: In response to detecting the second water usage duration set by the user, the second water usage duration is determined as the preset water usage duration.

[0009] When the invention detects a second water usage duration set by the user, it determines the second water usage duration as the preset water usage duration. That is, it determines whether turning off the water midway means the end of water usage based on the water usage duration set by the user. If the water is turned off midway within the second water usage duration set by the user, it means that the user has not yet finished using the water. When the energy-saving cold water function is activated, the water in the hot water pipe is heated to ensure that the water temperature is at the set outlet temperature when the user turns on the water, thereby improving the comfort of water use and allowing the user to use hot water immediately after turning off the water midway.

[0010] In one optional implementation, obtaining the preset water usage duration further includes: In response to the absence of a second user-defined water usage duration, the system obtains the historical water usage durations of the water heater within a preset time period. Calculate the average historical water usage duration for all historical water usage durations, and set the average historical water usage duration as the preset water usage duration.

[0011] This invention calculates the average historical water usage time based on the historical water usage times within a preset period when the user does not actively set a second water usage time. This average historical water usage time is then set as the preset water usage time. This allows the water heater to dynamically adjust the judgment criteria according to the user's actual usage habits. This makes the judgment of turning off the water midway through the water usage process more in line with individual water usage habits, avoiding misjudgment of heating or waste of resources due to unreasonable fixed values, thereby improving adaptability and ease of use.

[0012] In one optional implementation, obtaining the historical water usage duration of the water heater within a preset time period includes: Get the duration of each third user's water usage within a preset time period, from the start of water flow to the execution of the water shut-off operation; In response to the first water shut-off time between two adjacent third water usage times not being greater than a first preset water shut-off time threshold, the sum of the two adjacent third water usage times and the water shut-off time is determined as the new third water usage time, and the two adjacent third water usage times are removed; and / or, third water usage times less than the preset time threshold are removed. The remaining third water usage durations are determined as the historical water usage durations.

[0013] This invention first obtains the original duration from turning on the water to turning off each time within a preset time period as the initial third water usage duration. It then determines that the water-off duration between two adjacent water usages is not greater than a first preset water-off duration threshold. If so, the first water usage duration, the intermediate water-off duration, and the second water usage duration are added together to form a new third water usage duration, and the original two independent initial third water usage durations are discarded. This facilitates merging short-term water usage into a single continuous water usage session. Alternatively, it removes all third water usage durations shorter than the preset duration threshold, such as accidental touches or extremely short water usages. After screening, the remaining third water usage durations are determined as historical water usage durations for calculating the average. Merging continuous water usage avoids splitting a complete action into multiple short-term records, which would lower the average duration. This results in the calculated average historical water usage duration more accurately reflecting the user's actual water usage habits, making the automatic setting of the preset water usage duration more precise and reasonable.

[0014] In one alternative implementation, the method further includes: When it is determined that the first water usage time is not within the preset water usage time, the water heater will be shut down.

[0015] This invention determines the end of the user's water usage by identifying that the first water usage duration is not within the preset water usage duration, and controls the water heater to stop, which is beneficial for controlling the water heater to stop heating when the user does not turn off the water midway.

[0016] In one optional implementation, after controlling the water heater to heat the water in the water heater pipes until the water temperature in the water heater pipes reaches a first preset temperature, the method further includes: Get the second water shut-off duration after the water shut-off operation; In response to the second water shut-off time being longer than the second preset water shut-off time, the water heater is controlled to shut off. In response to the second water shut-off time not exceeding the second preset water shut-off time, the water temperature in the water heater pipe is monitored. When the water temperature in the water heater pipe is lower than the fourth preset temperature, the process returns to controlling the water heater to heat the water in the water heater pipe until the water temperature in the water heater pipe reaches the first preset temperature. The fourth preset temperature is lower than the first preset temperature.

[0017] This invention, after the water heater finishes heating the water in the pipes, continuously acquires the second water-off time calculated from the start of the water-off operation. If the second water-off time exceeds the second preset water-off time, it indicates that the user has not turned on the water for a long time, and the water heater is shut down to save energy. If the second water-off time does not exceed the second preset water-off time, it indicates that the user may turn on the water again in a short time. The system monitors the water temperature in the pipes, and when the water temperature naturally cools down to below the fourth preset temperature, heating is restarted to raise the water temperature back to the first preset temperature. This cycle continues until the user turns on or off the water for a period exceeding the second preset water-off time. This is beneficial for intermittent heat preservation during the waiting period when the user briefly turns off the water but has not yet turned it on, ensuring that the water temperature when the water is turned on again is still the preset outlet water temperature, while avoiding continuous energy consumption during long periods of no use.

[0018] In one optional implementation, after controlling the water heater to heat the water in the water heater pipes until the water temperature in the water heater pipes reaches a first preset temperature, the method further includes: Obtain the fourth water usage duration, which is used to characterize the total duration from when the water heater starts dispensing water to the current moment. When the fourth water usage time is determined to be within the preset water usage time, the water temperature in the water heater pipe is monitored. When the water temperature in the water heater pipe is lower than the fourth preset temperature, the process returns to controlling the water heater to heat the water in the water heater pipe until the water temperature in the water heater pipe reaches the first preset temperature. When it is determined that the fourth water usage time is not within the preset water usage time, the water heater is controlled to shut down; wherein, the fourth preset temperature is lower than the first preset temperature.

[0019] This invention, after the water heater finishes heating the pipes, obtains a fourth water usage duration, which is the total accumulated time from the start of the current water flow to the current moment. If the fourth water usage duration is still within the preset water usage duration range, the water temperature in the pipes is monitored. When the water temperature drops below the fourth preset temperature, heating is restarted to raise the water temperature back to the first preset temperature. This cycle is repeated to maintain the temperature. When the fourth water usage duration is not within the preset water usage duration, the water heater is shut down. This method uses the total accumulated water usage duration rather than the waiting time after a single water shut-off as the criterion, which can more reasonably identify whether the user has basically finished using the water. It avoids unnecessary heating when the user has finished using the water, thereby further reducing energy waste. At the same time, it maintains the hot water status in the pipes during the period when the user may continue to use the water to ensure the water usage effect.

[0020] In one alternative implementation, before determining the first water usage duration, the method further includes: Check if the water heater has a return pipe installed; In response to the detection that the water heater is not equipped with a return water pipe, the steps of determining the first water usage duration and obtaining the preset water usage duration are performed. In response to the detection of a return water pipe installed on the water heater, the water heater is shut down.

[0021] This invention detects whether the water heater has a return water pipe installed. If no return water pipe is detected, it means that the water heater does not have a return water pipe for circulation preheating, and only then is it necessary to perform the above steps. If a return water pipe is detected, it means that the water heater itself has a circulation preheating function or the return water system can maintain the water temperature in the pipes, which is conducive to the stable and reliable operation of the water heater under different installation conditions.

[0022] In a second aspect, the present invention provides a water heater control device, the device comprising: The acquisition module is used to respond to the water shut-off operation of the water heater during the water dispensing process, determine the first water usage duration, and acquire the preset water usage duration. The first water usage duration represents the time from the start of water dispensing to the execution of the water shut-off operation by the water heater. The heating module is used to control the water heater to heat the water in the water heater pipes when the first water usage time is determined to be within the preset water usage time, until the water temperature in the water heater pipes reaches the preset temperature.

[0023] Thirdly, the present invention provides a water heater, which includes water heater pipes and a controller. The water heater pipes include cold water pipes and hot water pipes. The controller includes a memory and a processor, which are interconnected. The memory stores computer instructions, and the processor executes the computer instructions to perform the method described in the first aspect or any of its corresponding embodiments.

[0024] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the method described in the first aspect or any corresponding embodiment thereof. Attached Figure Description

[0025] 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.

[0026] Figure 1 This is a schematic diagram of an application scenario according to an embodiment of the present invention; Figure 2 This is a schematic flowchart of a first method for controlling a water heater according to an embodiment of the present invention; Figure 3 This is a flowchart illustrating the operation of a water heater according to an embodiment of the present invention; Figure 4 This is a control flowchart of a water heater control method according to an embodiment of the present invention; Figure 5 This is a schematic diagram of a first structure of a water heater according to an embodiment of the present invention; Figure 6 This is a schematic diagram of a second structure of a water heater according to an embodiment of the present invention; Figure 7 This is a structural block diagram of a water heater control device according to an embodiment of the present invention; Figure 8 This is a schematic diagram of the hardware structure of the controller for a water heater according to an embodiment of the present invention. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0028] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.

[0029] 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. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0030] Figure 1 This is a structural diagram of a water heater, such as... Figure 1 As shown, the water heater includes a controller 101 and a water heater pipe 102. The controller 101 is used to execute a water heater control method to heat the water in the water heater pipe 102 and control the water heater. The overall process of the controller 101 executing the water heater control method is detailed in the relevant description of the method embodiment below, and will not be repeated hereafter.

[0031] The water heater provided in this embodiment can keep the water temperature warm when the user turns off the water midway through using hot water. It can also achieve the effect of no cold water after the user turns off the water and turns it back on during the water usage process. This reduces the cold water segment after the water is turned on, reduces the temperature fluctuation when the water is turned off and turned back on midway, improves the comfort of water use, and reduces the water waste caused by waiting for the cold water to drain. Therefore, it is an energy-saving water heater.

[0032] Taking zero-cold-water gas water heaters as an example, these products are widely used. They achieve this by adding a water pump inside the machine and a one-way valve connecting the water outlet at a distance. This effectively solves the problem of a cold water segment when boiling water, eliminating the need for prolonged cold water flow. However, most gas water heaters on the market require user intervention to activate the zero-cold-water function. While the user can enjoy the zero-cold-water effect for the first use within a short period after the cycle is complete, a period of cold water remains after the cycle ends and the water is turned off and on again. This cold water is caused by the water not being heated within the first few seconds of ignition. Since most users need to turn the water off and on repeatedly during use, this invention cleverly designs a zero-cold-water heating logic to allow users to enjoy zero-cold-water even when the water is turned off midway.

[0033] When a user turns the water off and on again, there is a certain length of cold water section due to the ignition time limitation. A long cold water section can easily cause a significant drop in the outlet water temperature. When the user turns the water on again, there will be a significant difference between hot and cold water, which will affect the user experience.

[0034] By activating zero-cold-water circulation at the appropriate time, users can achieve a cold-water-free effect even after turning the water on and off during a shower, reducing the cold water segment after the water is turned on. Combined with the buffering and mixing effect of the water storage tank, it can significantly reduce temperature fluctuations when turning the water off and on again midway.

[0035] Most existing zero-cold-water cruise systems are initial cruise systems, allowing users to use hot water directly without running cold water during the first run. When the user turns it on again midway, the ignition process takes time, and the water heater requires the user to turn on the water before use, resulting in a period of cold water. To solve this problem, this invention proposes a cold-sensorless constant-temperature cruise system.

[0036] According to an embodiment of the present invention, a water heater control method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0037] This embodiment provides a water heater control method, which can be used for the aforementioned water heater. Figure 2 This is a schematic flowchart of a first embodiment of a water heater control method according to the present invention, as shown below. Figure 2 As shown, the process includes the following steps: Step S201: In response to the water shut-off operation of the water heater during the water dispensing process, determine the first water usage duration and obtain the preset water usage duration. The first water usage duration represents the time from the start of water dispensing to the execution of the water shut-off operation by the water heater.

[0038] It should be noted that the water supply process of a water heater refers to the state in which the water heater outputs hot water through the pipes. The water shut-off operation refers to the user turning off the faucet or shower head, etc., to stop the water heater from dispensing water.

[0039] The first water usage duration refers to the time from when the water heater starts dispensing water to when the user turns off the water, representing the duration of continuous water usage for this user.

[0040] The preset water usage duration is a time threshold set in advance by the system. It can be set manually by the user or automatically calculated by the system based on the user's historical water usage habits.

[0041] Step S202: When it is determined that the first water usage time is within the preset water usage time, the water heater is controlled to heat the water in the water heater pipe until the water temperature in the water heater pipe reaches the first preset temperature.

[0042] It should be noted that "the first water usage time within the preset water usage time" refers to the continuous time from when the water heater starts dispensing water to when the water shut-off operation is initiated, which is less than or equal to the preset water usage time set by the system. In other words, a first water usage time less than or equal to the preset water usage time helps identify whether the water shut-off operation is an intermediate water shut-off operation. When it is determined that the first water usage time is within the preset water usage time, it means that the user's water usage has not ended, and the water shut-off operation is an intermediate water shut-off operation.

[0043] It should be noted that turning off the water midway includes at least the following scenarios: turning off the water midway to apply facial cleanser when washing hands or face and then turning the water back on to rinse; or turning the water on to wet the body first, then turning it off midway to apply shower gel or shampoo and then turning the water back on to rinse when taking a shower.

[0044] For example, the first preset temperature is the water outlet temperature set by the user.

[0045] The water heater control method provided in this embodiment monitors the water shut-off operation during the water dispensing process and further determines whether the time from the start of water dispensing to the midpoint of the water shut-off operation is within the preset water usage time. When it is determined that the user's current water usage has not ended, the water heater is controlled to heat the water in the water heater pipes until the water temperature in the water heater pipes reaches the first preset temperature. This is beneficial for achieving the effect of no cold water even after the user turns the water off and on again during water usage, reducing the cold water segment after the water is turned on, reducing temperature fluctuations when turning the water off and on again, improving water usage comfort, and reducing water waste caused by waiting for the cold water to drain.

[0046] This embodiment provides a water heater control method, which can be used for the aforementioned water heater. Figure 3 This is a schematic diagram of a second flow chart of a water heater control method according to an embodiment of the present invention, as shown below. Figure 3 As shown, the process includes the following steps: Step S301: In response to the water shut-off operation of the water heater during the water dispensing process, determine the first water usage duration and obtain the preset water usage duration. The first water usage duration represents the time from the start of water dispensing to the execution of the water shut-off operation by the water heater.

[0047] Specifically, in some optional embodiments, before performing step S301 above, the process further includes the following steps: Step a1: Check if the water heater has a return pipe installed.

[0048] It should be noted that in some optional implementations of this embodiment, the need to install a return water pipe can be determined by the relationship between the inlet water temperature and the time it takes for the temperature to stabilize within a certain period of time. Specifically, the inlet water temperature is collected during the water intake process; when the inlet water temperature is detected to be within a preset temperature fluctuation range, a stable temperature value is determined based on the inlet water temperature within the preset temperature fluctuation range. The lowest temperature within the preset temperature fluctuation range is determined by subtracting the preset temperature from the inlet water temperature, and the maximum temperature within the preset temperature fluctuation range is determined by adding the preset temperature to the inlet water temperature.

[0049] Specifically, the system monitors the inlet water temperature. If the inlet water temperature is lower than the set outlet water temperature, and the duration for which the inlet water temperature is higher than the stable temperature value is not greater than the preset duration, the system determines that the heating pipeline includes the return water pipeline. If the duration for which the inlet water temperature is higher than the stable temperature value is greater than the preset duration, the system determines that the heating pipeline does not include the return water pipeline.

[0050] Step a2: In response to the detection that the water heater does not have a return water pipe installed, the above step S301 is executed.

[0051] It should be noted that in water heaters without a return pipe, the water in the pipes will naturally cool down after the water is turned off. This means that when the water is turned on again, a section of cold water needs to be released before hot water can be obtained. Therefore, it is necessary to heat and keep the water in the pipes warm when the absence of a return pipe is detected, so as to implement the water heater control method described in this embodiment. This allows hot water to be used even if the water is turned off midway through the hot water usage process. This is beneficial for achieving the effect of instant hot water without modifying the pipes and adding a return pipe, thereby improving user comfort and saving water resources.

[0052] Step a3: In response to the detection that a return water pipe is installed on the water heater, the water heater is controlled to stop.

[0053] It should be noted that the return pipe is a pipe in the hot water circulation system of a water heater. It is usually installed at the farthest end of the hot water pipeline. The function of the return pipe is to allow the water in the hot water pipeline to circulate and push the heated hot water to each water point. Even if the user has not turned on the water for a long time, the water in the pipeline will not get completely cold. When the water is turned on again, the hot water comes out quickly. Therefore, a water heater with a return pipe has the ability to maintain the water temperature in the pipeline.

[0054] The water heater control method provided in this embodiment detects whether the water heater has a return water pipe installed. If no return water pipe is detected, it means that the water heater does not have a return water pipe for circulation preheating, and it is necessary to perform the above steps. If a return water pipe is detected, it means that the water heater itself has a circulation preheating function or the return water system can maintain the water temperature in the pipe, which is conducive to the stable and reliable operation of the water heater under different installation conditions.

[0055] Further, step S301 above includes: Step S3011: In response to detecting the second water usage duration set by the user, the second water usage duration is determined as the preset water usage duration.

[0056] It should be noted that during the second water usage period, the water heater heats the water in the pipes to maintain the water temperature set by the user. The second water usage period is the user-defined heat preservation time.

[0057] The water heater control method provided in this embodiment, when detecting the second water usage duration set by the user, determines the second water usage duration as the preset water usage duration. That is, it determines whether turning off the water midway means the end of water usage based on the water usage duration set by the user. If the water is turned off midway within the second water usage duration set by the user, it means that the user has not yet ended the water usage. When it is determined that the energy-saving cold water function is activated, the water in the hot water pipe is heated to ensure that the water temperature is at the set outlet temperature when the user turns on the water, thereby improving the comfort of water use and allowing the user to use hot water immediately after turning off the water midway.

[0058] Step S3012: In response to the absence of a second water usage duration set by the user, the historical water usage duration of the water heater within a preset time period is obtained.

[0059] Specifically, step S3012 includes: Step b1: Obtain the duration of each third water usage operation within a preset time period, from the start of water supply to the execution of the water shut-off operation.

[0060] It should be noted that the preset time period can be a week or a month.

[0061] Step b2: In response to the first water shut-off time between two adjacent third water usage times not being greater than a first preset water shut-off time threshold, the sum of the two adjacent third water usage times and the first water shut-off time is determined as the new third water usage time, and the two adjacent third water usage times are removed; and / or, third water usage times less than the preset time threshold are removed.

[0062] The first water shut-off time between two adjacent third water usage times refers to the total time during which the water is shut off. For example, in the process from when the water is turned on to when it is turned off (first water usage), and then from when the water is turned on again to when it is turned off (second water usage), the time period from when the water is turned off to when it is turned on again is the first water shut-off time.

[0063] For example, the first preset water shut-off time threshold is three minutes. That is, in response to the first water shut-off time between two adjacent third water usage times not being greater than the first preset water shut-off time threshold means that the first water shut-off time does not exceed three minutes, the sum of the two adjacent third water usage times and the first water shut-off time is determined as the new third water usage time.

[0064] It should be noted that since the new third water usage time is obtained by combining two adjacent third water usage times and the first water usage time into one water usage, removing two adjacent third water usage times means removing two independent third water usage times.

[0065] The preset duration threshold can be three minutes. The purpose of excluding the third water usage time that is less than the preset duration threshold is to exclude short-term water usage from the calculation.

[0066] Step b3: Determine the remaining third water usage durations as historical water usage durations.

[0067] The water heater control method provided in this embodiment first obtains the original duration from turning on the water to turning off the water within a preset time period as the initial third water usage duration. If the water-off duration between two adjacent water usages is not greater than a first preset water-off duration threshold, the first water usage duration, the intermediate water-off duration, and the second water usage duration are added together to form a new third water usage duration, and the original two independent initial third water usage durations are removed. This is beneficial for merging short-term continuous water usage into one continuous water usage. And / or, all third water usage durations less than the preset duration threshold are removed, such as accidental touches or extremely short water usages. After screening, the remaining third water usage durations are determined as the historical water usage durations used to calculate the average. Merging continuous water usage avoids splitting a complete behavior into multiple short-term records, which would lower the average duration. This makes the calculated average historical water usage duration more realistically reflect the user's actual effective water usage habits, and makes the automatic setting of the preset water usage duration more accurate and reasonable.

[0068] Step S3013: Calculate the average historical water usage duration of all historical water usage durations, and determine the average historical water usage duration as the preset water usage duration.

[0069] It should be noted that calculating the average historical water usage time based on all historical water usage times within the preset period and determining the average historical water usage time as the preset water usage time is beneficial for determining the preset water usage time according to the user's individual water usage habits.

[0070] For example, if the preset water usage time is 30 minutes, and the water is turned off after 10 minutes, the first water usage time obtained after turning off the water is 10 minutes. Since the 10-minute water usage time is within the preset 30-minute water usage time, the water heater starts to heat the water in the hot water pipe until the water temperature in the water heater pipe reaches the first preset temperature.

[0071] The water heater control method provided in this embodiment calculates the average historical water usage time based on the historical water usage time within a preset period when it is detected that the user has not actively set a second water usage time. The average historical water usage time is then determined as the preset water usage time. This allows the water heater to dynamically adjust the judgment criteria according to the user's actual usage habits, making the judgment of water shut-off operation during water use more in line with individual water usage habits. This avoids misjudgment of heating or waste of resources due to unreasonable fixed values, thereby improving adaptability and ease of use.

[0072] Step S302: When it is determined that the first water usage time is within the preset water usage time, the water heater is controlled to heat the water in the water heater pipe until the water temperature in the water heater pipe reaches the first preset temperature.

[0073] The water heater piping includes: cold water pipes and hot water pipes.

[0074] Specifically, step S302 includes: Step S3021: In response to the detection that the water heater has not turned on the energy-saving cold water function, control the water heater to heat the water in the water heater pipe until the outlet water temperature reaches the second preset temperature.

[0075] The second preset temperature is the water temperature set by the user. The second preset temperature can be equal to the first preset temperature, and the first preset temperature can fluctuate within a certain range of the second preset temperature. For example, if the second preset temperature is 35℃, then the first preset temperature can fluctuate within a temperature range of 0.5℃ above and below 32℃. This helps to control the water temperature during the heating process and avoids the situation where the temperature exceeds the user's set temperature due to excessive temperature fluctuations during the heating process. It should be noted that under the energy-saving cold water function, the water heater keeps the water in the water heater pipes warm and heats the cold water by heating only the hot water pipes so that when the water is turned off midway and then comes out again, the water temperature is still the temperature set by the user.

[0076] Step S3022: In response to detecting that the water heater has turned on the energy-saving cold water function, the water heater is controlled to heat the water in the hot water pipe until the water temperature in the cold water pipe reaches the third preset temperature, which is lower than the second preset temperature.

[0077] It should be noted that when the energy-saving cold water function of the water heater is turned on, only the water in the hot water pipe is heated, and the water in the cold water pipe is not heated. However, the water temperature in the cold water pipe is used as the condition for determining when the energy-saving cold water function is to be turned off.

[0078] For example, in a zero-cold-water water heater, the energy-saving cold water mode can be either single preheating or intermittent preheating. The cold water pipe temperature represents the base water temperature in the water heater's piping, thus determining whether hot water has reached the furthest point of use. This minimizes ineffective heating and energy waste while ensuring comfortable water use. For instance, in a zero-cold-water system, a circulation pump is typically installed at the end of the water heater's return line. When the energy-saving cold water function is activated, the circulation pump circulates the cold water in the hot water pipes back to the water heater for heating. When the hot water returns to the water heater's inlet after circulation, its temperature is already higher than the set temperature difference compared to the current cold water pipe temperature, indicating that hot water has flowed through the water heater's piping, and the outlet at the end of the hot water pipe is now hot water. At this point, heating can be stopped.

[0079] The water heater control method provided in this embodiment detects whether the energy-saving cold water function is activated when heating water in the water heater pipes. If the energy-saving cold water function is not activated, the water in the entire pipe is heated to reach the second preset temperature. If the energy-saving cold water function is activated, only the water in the hot water pipe is heated to reach the lower third preset temperature. This is beneficial for heating the water in the hot water pipe while controlling the water temperature in the cold water pipe within a certain range, reducing temperature fluctuations when turning the water off and on again, improving water comfort, and reducing water waste caused by waiting for the cold water to drain.

[0080] Step S303: When it is determined that the first water usage time is not within the preset water usage time, control the water heater to stop.

[0081] For example, if the first water usage time is not within the preset water usage time, it means that the user did not turn off the water midway through the water usage. The water heater can be controlled to stop based on the water shut-off operation triggered after the preset water usage time.

[0082] The water heater control method provided in this embodiment determines the end of the user's current water use by determining that the first water usage time is not within the preset water usage time, and controls the water heater to stop. This is beneficial for controlling the water heater to stop heating when the user does not turn off the water midway.

[0083] Step S304: Obtain the second water shut-off duration after the water shut-off operation.

[0084] It should be noted that the second water-closing duration is used to characterize the total duration from the water-closing moment to the current moment.

[0085] In step S305, in response to the second water shut-off time being greater than the second preset water shut-off time, the water heater is controlled to stop.

[0086] It should be noted that the second preset water shut-off time can be a user-defined timeout based on user habits, or it can be the average water shut-off time calculated from the water shut-off times of two adjacent water usage periods. If the total time from the moment the water was shut off to the current moment exceeds the second preset water shut-off time, it means the user has not used the water again for an extended period after shutting off the water. In this case, the water heater can be shut off to save energy by preventing the water heater from heating for an extended period without the user using water. For example, if the second preset water shut-off time is set to five minutes after the water was shut off, the water heater can be shut off if the water shut-off time exceeds five minutes. However, during these five minutes, the water heater will continue to heat the water in the pipes to ensure the user can continue to use hot water after the water was shut off the water.

[0087] Step S306: In response to the second water shut-off time not being greater than the second preset water shut-off time, monitor the water temperature in the water heater pipe. When the water temperature in the water heater pipe is lower than the fourth preset temperature, return to the step of controlling the water heater to heat the water in the water heater pipe until the water temperature in the water heater pipe reaches the first preset temperature; wherein, the fourth preset temperature is less than the first preset temperature.

[0088] It should be noted that when the water is turned off midway, the water heater heats the water in the hot water pipe until the water temperature reaches the first preset temperature. After heating is completed and the user has not used the water again, the water temperature in the water heater pipe is monitored. If the water temperature is lower than the fourth preset temperature, the water heater is controlled to heat the water in the hot water pipe again until the water temperature reaches the first preset temperature. This cycle is repeated to maintain the temperature after the water is turned off midway, so as to ensure the hot water effect when the user turns off the water for a long time.

[0089] The water heater control method provided in this embodiment continuously acquires the second water shut-off time calculated from the start of the water shut-off operation after the water heater finishes heating the water in the pipes. If the second water shut-off time exceeds the second preset water shut-off time, it indicates that the user has not turned on the water for a long time, and the water heater is shut down to save energy. If the second water shut-off time does not exceed the second preset water shut-off time, it indicates that the user may turn on the water again in a short time. The water temperature in the pipes is monitored, and when the water temperature naturally cools down to below the fourth preset temperature, heating is restarted to raise the water temperature back to the first preset temperature. This cycle continues until the user turns on or off the water for a period of time that exceeds the second preset water shut-off time. This method is beneficial for intermittent heat preservation during the waiting period when the user briefly turns off the water but has not yet turned it on, ensuring that the water temperature when the water is turned on again is still the preset outlet water temperature, while avoiding continuous energy consumption during long periods of no use.

[0090] In some optional embodiments of this example, after controlling the water heater to heat the water in the water heater pipes until the water temperature in the water heater pipes reaches a first preset temperature, the total time from the start of water dispensing to the current moment can be determined and compared with a preset water usage time to further determine whether to control the water heater to continue heating by monitoring the water temperature. This is suitable for scenarios where the water is shut off multiple times during water usage. Specifically, the steps include the following: Step c1: Obtain the fourth water usage duration, which is used to characterize the total duration from the start of water flow from the water heater to the current moment.

[0091] It should be noted that the fourth water usage time includes the water shut-off time during which the water is turned off.

[0092] Step c2: When the fourth water usage time is determined to be within the preset water usage time, monitor the water temperature in the water heater pipe. When the water temperature in the water heater pipe is lower than the fourth preset temperature, return to the step of controlling the water heater to heat the water in the water heater pipe until the water temperature in the water heater pipe reaches the first preset temperature.

[0093] It should be noted that comparing the fourth water usage time with the preset water usage time is applicable to scenarios where the water is turned off multiple times during water use. The fourth water usage time falling within the preset water usage time means that the water heater is kept continuously warm within the preset time. The end time of the preset water usage time is used as the condition for the water heater to stop operating. The user's water usage time is counted within the preset time, including any water shut-offs. This allows users to freely use water within the preset time to address high-frequency water usage needs. It helps maintain a constant temperature to meet the user's hot water needs even with frequent hot water cycles, further extending the water heater's lifespan and preventing performance degradation caused by frequent start-ups and shutdowns.

[0094] Step c3: When it is determined that the fourth water usage time is not within the preset water usage time, the water heater is controlled to stop; wherein, the fourth preset temperature is lower than the first preset temperature.

[0095] Specifically, when it is determined that the fourth water usage time is not within the preset water usage time, if it is determined that water is still flowing after the preset water usage time has been exceeded, the water will be turned off and the water heater will be shut down; if it is determined that water has stopped flowing after the preset water usage time has been exceeded, the water heater will be shut down.

[0096] The water heater control method provided in this embodiment obtains a fourth water usage duration after the water heater finishes heating the pipes, which is the total cumulative time from the start of the current water supply to the current moment. If the fourth water usage duration is still within the preset water usage duration, the water temperature in the pipes is monitored. When the water temperature drops below the fourth preset temperature, heating is restarted to raise the water temperature back to the first preset temperature. This cycle is repeated to maintain the temperature. When the fourth water usage duration is not within the preset water usage duration, the water heater is shut down. This method uses the total cumulative water usage duration rather than the waiting time after a single water shut-off as the basis for judgment, which can more reasonably identify whether the user has basically finished using the water. It avoids unnecessary heating when the user has finished using the water, thereby further reducing energy waste. At the same time, it maintains the hot water status in the pipes during the period when the user may continue to use the water to ensure the water usage effect.

[0097] Combination Figures 4 to 6 This describes one optional application embodiment of the present invention.

[0098] For example, Figure 4 This is a flowchart of the water heater's operation. Figure 5 This is a schematic diagram of the first type of water heater structure. Figure 6 This is a schematic diagram of the second structural design of a water heater; in which, Figure 5 It is an installation structure without a return water pipe; Figure 6 The installation structure includes a user water inlet 1, cold water pipe 2, hot water pipe 3, air inlet 4, first water outlet 5, second water outlet 6, third water outlet 7, one-way valve 8, shower head 9, and return water pipe 10; among which, the third water outlet 7 is the farthest water outlet point. Figure 5 and Figure 6 The arrow shown in the image points to the direction of water flow in the water heater pipes.

[0099] When using the zero-cold-water function, users need to set the heat preservation time. The time range is determined by the user. If the user does not actively set the heat preservation time, the system will automatically recommend the default value. The default value for the first use is 20 minutes. Subsequent uses will dynamically calculate the average value based on the user's water usage time. The calculation period for the average value will not exceed one month. Turning off the water midway will not be considered an interruption (e.g., less than three minutes is considered as one water usage session) and will be counted as continuous usage time. Only water usage exceeding a certain duration (e.g., more than five minutes, including the time when the water is turned off midway) will be included in the average value calculation. When the user turns on the zero-cold-water function, starts using hot water, and then turns it off, the water heater will immediately restart the zero-cold-water cycle to heat the cold water section in the cold water pipe. After heating the water in the pipe, the cycle will turn off. The zero-cold-water cycle will only be activated when the user turns off the water during the heat preservation time. If the user uses the normal zero cold water cruise mode, the default zero cold water start / stop condition will be used as the cruise heating stop condition. When the user enables the energy-saving zero cold water mode, in this mode, the zero cold water cruise only heats the water in the hot water pipe to the temperature set by the user, and does not heat the water in the cold water pipe. At this time, the non-cold water constant temperature cruise needs to judge the outlet water temperature of the hot water pipe and the inlet water temperature of the cold water pipe. When the inlet water temperature of the cold water pipe reaches a certain range of the set temperature, the heating cruise will stop.

[0100] If the user has installed a return water pipe, the water in the cold water pipe cannot be heated, and the constant temperature function without cooling will be automatically turned off.

[0101] The method for detecting whether a return water pipe is installed is as follows: After the zero-cold-water function is activated, the system completes one zero-cold-water cycle (non-energy-saving zero-cold-water). The inlet water temperature for zero-cold-water is the set temperature minus 3 degrees Celsius. Since the minimum set temperature of the entire unit is 35 degrees Celsius, the inlet water temperature will not be lower than 32 degrees Celsius. When the user uses water normally, the system detects the inlet water temperature and records it continuously until the inlet water temperature stabilizes (fluctuation less than ±0.5) for more than 10 seconds before stopping recording. This stable temperature is called the stable value, and the time when the inlet water temperature is higher than the stable value is calculated. If the time interval when the inlet water temperature is higher than the stable value only exists within a short period of time (2 seconds) after the water flow signal is generated, it is considered that the user has installed a return water pipe. If the time interval when the water temperature is higher than the stable value lasts for a longer period of time (more than 2 seconds), it is considered that the user has not installed a return water pipe.

[0102] This embodiment also provides a water heater control device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0103] This embodiment provides a water heater control device, such as... Figure 7 As shown, it includes: The acquisition module 701 is used to respond to the water shut-off operation of the water heater during the water dispensing process, determine the first water usage duration, and acquire the preset water usage duration. The first water usage duration represents the time from the start of water dispensing to the execution of the water shut-off operation by the water heater.

[0104] The heating module 702 is used to control the water heater to heat the water in the water heater pipes until the water temperature in the water heater pipes reaches the preset temperature when the first water usage time is determined to be within the preset water usage time.

[0105] In some alternative embodiments, the device further includes: The first detection module is used to detect whether the water heater has a return water pipe installed.

[0106] The second detection module is used to determine the first water usage duration and obtain the preset water usage duration in response to the detection that the water heater is not installed with a return water pipe.

[0107] The third detection module is used to control the water heater to shut down in response to the detection that a return water pipe is installed on the water heater.

[0108] In some alternative implementations, the acquisition module 701 includes: The first determining unit is configured to determine the second water usage duration as a preset water usage duration in response to detecting a second water usage duration set by the user.

[0109] The second determining unit is used to obtain the historical water usage duration of the water heater within a preset time period in response to the absence of a user-set second water usage duration.

[0110] The third determining unit is used to calculate the average historical water usage duration of all historical water usage durations and determine the average historical water usage duration as the preset water usage duration.

[0111] In some optional implementations, the second determining unit includes: The acquisition subunit is used to acquire the duration of each third water usage operation from the start of water supply to the execution of the water shut-off operation within a preset time period.

[0112] The first determining subunit is configured to, in response to the first water shut-off time between two adjacent third water usage times not being greater than a first preset water shut-off time threshold, determine the sum of the two adjacent third water usage times and the first water shut-off time as a new third water usage time and remove the two adjacent third water usage times; and / or, remove third water usage times less than a preset time threshold.

[0113] The second determining subunit is used to determine the remaining third water usage durations as historical water usage durations.

[0114] In some alternative implementations, the heating module 702 includes: The first heating unit is used to control the water heater to heat the water in the water heater pipes in response to the detection that the water heater has not turned on the energy-saving cold water function, until the outlet water temperature reaches the second preset temperature.

[0115] The second heating unit is used to control the water heater to heat the water in the hot water pipe in response to the detection that the water heater has turned on the energy-saving cold water function, until the water temperature in the cold water pipe reaches the third preset temperature, which is lower than the second preset temperature.

[0116] In some alternative embodiments, the device further includes: The first control module is used to control the water heater to stop when it is determined that the first water usage time is not within the preset water usage time.

[0117] The first acquisition module is used to acquire the second water shut-off duration after the water shut-off operation.

[0118] The second control module is used to control the water heater to stop in response to the second water shut-off time being greater than the second preset water shut-off time. The first monitoring module is used to monitor the water temperature in the water heater pipe in response to the second water shut-off time not being greater than the second preset water shut-off time. When the water temperature in the water heater pipe is lower than the fourth preset temperature, it returns to the step of controlling the water heater to heat the water in the water heater pipe until the water temperature in the water heater pipe reaches the first preset temperature; wherein, the fourth preset temperature is lower than the first preset temperature.

[0119] The second acquisition module is used to acquire the fourth water usage duration, which represents the total duration from when the water heater starts dispensing water to the current moment.

[0120] The second monitoring module is used to monitor the water temperature in the water heater pipe when the fourth water usage time is determined to be within the preset water usage time. When the water temperature in the water heater pipe is lower than the fourth preset temperature, the module returns to control the water heater to heat the water in the water heater pipe until the water temperature in the water heater pipe reaches the first preset temperature.

[0121] The third control module is used to control the water heater to stop when it is determined that the fourth water usage time is not within the preset water usage time; wherein the fourth preset temperature is lower than the first preset temperature.

[0122] The water heater control device provided in this embodiment of the invention can execute the water heater control method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as in the corresponding embodiments described above, and will not be repeated here.

[0123] Figure 8 This is a schematic diagram of the structure of a water heater controller provided in an embodiment of the present invention.

[0124] The following is a detailed reference. Figure 8 The diagram illustrates a structural schematic suitable for implementing a controller in an embodiment of the present invention. The controller may include a processor (e.g., a central processing unit, graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 802 or a program loaded from memory 808 into random access memory (RAM) 803. RAM 803 also stores various programs and data required for controller operation. The processor 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.

[0125] Typically, the following devices can be connected to I / O interface 805: input devices 806 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; memory 808 including, for example, magnetic tape, hard disk, etc.; and communication devices 809. Communication device 809 allows the controller to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 8 A controller with various devices is shown, but it should be understood that it is not required to implement or have all of the devices shown, and may alternatively implement or have more or fewer devices.

[0126] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 809, or installed from a memory 808, or installed from a ROM 802. When the computer program is executed by the processor 801, it performs the functions defined in the water heater control method of the embodiments of the present invention.

[0127] Figure 8 The controller shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.

[0128] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the water heater control method shown in the above embodiments is implemented.

[0129] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0130] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A water heater control method, characterized in that, The method includes: In response to the water heater's water shut-off operation during the water dispensing process, a first water usage duration is determined, and a preset water usage duration is obtained. The first water usage duration represents the time from the start of water dispensing to the execution of the water shut-off operation by the water heater. When it is determined that the first water usage time is within the preset water usage time, the water heater is controlled to heat the water in the water heater pipe until the water temperature in the water heater pipe reaches the first preset temperature. The water heater pipe includes a hot water pipe and a cold water pipe. The control of the water heater to heat the water in the water heater pipe includes: in response to detecting that the water heater has activated the energy-saving cold water function, controlling the water heater to heat the water in the hot water pipe until the water temperature in the cold water pipe reaches a third preset temperature, wherein the third preset temperature is lower than the second preset temperature.

2. The method according to claim 1, characterized in that, The method of controlling the water heater to heat water until the water temperature in the water heater pipes reaches a first preset temperature also includes: In response to the detection that the water heater has not activated the energy-saving cold water function, the water heater is controlled to heat the water in the water heater pipes until the outlet water temperature reaches the second preset temperature.

3. The method according to claim 1, characterized in that, The process of obtaining the preset water usage duration includes: In response to detecting a second water usage duration set by the user, the second water usage duration is determined as the preset water usage duration.

4. The method according to claim 1 or 3, characterized in that, The process of obtaining the preset water usage duration also includes: In response to the absence of a second user-defined water usage duration, the historical water usage duration of the water heater within a preset time period is obtained. Calculate the average historical water usage duration of all historical water usage durations, and determine the average historical water usage duration as the preset water usage duration.

5. The method according to claim 4, characterized in that, The step of obtaining the historical water usage duration of the water heater within a preset time period includes: The water heater is used for each third time period within a preset time period, from the start of water supply to the execution of the water shut-off operation. In response to the first water shut-off time between two adjacent third water usage times not being greater than a first preset water shut-off time threshold, the sum of the two adjacent third water usage times and the water shut-off time is determined as a new third water usage time, and the two adjacent third water usage times are removed; and / or, third water usage times less than a preset time threshold are removed; The remaining third water usage durations are determined as the historical water usage durations.

6. The method according to claim 1, characterized in that, The method further includes: When it is determined that the first water usage time is not within the preset water usage time, the water heater is controlled to stop.

7. The method according to claim 1, characterized in that, After controlling the water heater to heat the water in the water heater pipes until the water temperature in the water heater pipes reaches a first preset temperature, the method further includes: Obtain the second water shut-off duration after the water shut-off operation; In response to the second water shut-off duration being greater than the second preset water shut-off duration, the water heater is controlled to stop. In response to the second water shut-off time not being greater than the second preset water shut-off time, the water temperature in the water heater pipe is monitored. When the water temperature in the water heater pipe is lower than the fourth preset temperature, the process returns to controlling the water heater to heat the water in the water heater pipe until the water temperature in the water heater pipe reaches the first preset temperature; wherein, the fourth preset temperature is less than the first preset temperature.

8. The method according to claim 1, characterized in that, After controlling the water heater to heat the water in the water heater pipes until the water temperature in the water heater pipes reaches a first preset temperature, the method further includes: Obtain the fourth water usage duration, which is used to characterize the total duration of the water heater from the start of water output to the current moment; When it is determined that the fourth water usage time is within the preset water usage time, the water temperature in the water heater pipe is monitored. When the water temperature in the water heater pipe is lower than the fourth preset temperature, the process returns to controlling the water heater to heat the water in the water heater pipe until the water temperature in the water heater pipe reaches the first preset temperature. When it is determined that the fourth water usage duration is not within the preset water usage duration, the water heater is controlled to stop; wherein, the fourth preset temperature is less than the first preset temperature.

9. The method according to claim 1, characterized in that, Before determining the first water usage duration, the method further includes: Check whether the water heater is equipped with a return water pipe; In response to the detection that the water heater is not equipped with a return water pipe, the steps of determining the first water usage duration and obtaining the preset water usage duration are performed. In response to the detection that the water heater is equipped with a return water pipe, the water heater is controlled to stop.

10. A water heater control device, characterized in that, The device includes: The acquisition module is used to respond to the water shut-off operation of the water heater during the water dispensing process, determine the first water usage duration, and acquire the preset water usage duration, wherein the first water usage duration represents the time from the start of water dispensing to the execution of the water shut-off operation by the water heater; A heating module is used to control the water heater to heat the water in the water heater pipes when it is determined that the first water usage time is within the preset water usage time, until the water temperature in the water heater pipes reaches the preset temperature. The water heater pipes include hot water pipes and cold water pipes. The control of the water heater to heat the water in the water heater pipe includes: in response to detecting that the water heater has activated the energy-saving cold water function, controlling the water heater to heat the water in the hot water pipe until the water temperature in the cold water pipe reaches a third preset temperature, wherein the third preset temperature is lower than the second preset temperature.

11. A water heater, characterized in that, The water heater includes water heater piping and a controller. The water heater piping includes cold water pipes and hot water pipes. The controller includes: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the method of any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of claims 1 to 9.