Zero cold water system control method and device
By predicting water demand and implementing time-sharing and zone-based heating in the zero-cold-water system, the problems of high energy consumption and response delay in existing zero-cold-water systems are solved, enabling on-demand heating and efficient water use, improving user experience and extending system life.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-06
- Publication Date
- 2026-04-10
AI Technical Summary
Existing zero-cold-water systems suffer from problems such as high energy consumption, response delay, multi-path conflicts, poor adaptability, hardware limitations, and difficulty in modification. They cannot dynamically adapt to changes in water demand, resulting in wasted heat energy and a poor user experience.
Water demand is predicted by obtaining the current time, peak water demand is determined, and hot water is heated before the peak. Combined with solenoid valve control, time-sharing and zone-based heating is achieved. Intelligent control methods are used to optimize the heating strategy at the water end. Water demand is accurately predicted by using a time-sharing water data relational database and a water demand prediction model.
It enables on-demand heating, reduces energy consumption of the zero-cold-water system, shortens response time, improves user experience, and extends system lifespan.
Smart Images

Figure CN121828908A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, in particular to a control method and device of a zero-cold-water system. BACKGROUND
[0002] With the development of life, the zero-cold-water system has gradually entered people's life, but the existing zero-cold-water system has a lot of problems, such as high energy consumption, response delay, multi-path conflict, poor adaptability, hardware limitation and other problems.
[0003] Specifically, the existing zero-cold-water system (such as all-weather circulation or timing circulation) adopts indiscriminate heating, and the circulating pump continuously runs, which significantly increases the consumption of electric energy / gas. Even when no one uses water, the pipe water temperature is still maintained, resulting in a large amount of heat energy waste. It relies on a fixed time table or manual triggering, and cannot dynamically adapt to changes in water demand. The timing circulation cannot respond in time at non-scheduled time periods, and users still need to wait for cold water to be emptied. The preheating time of long-distance pipes is as long as 1-2 minutes, which is contrary to the original intention of the "zero-cold-water" design. When the shower and the kitchen faucet are opened at the same time, the water flow pressure is dispersed, resulting in water temperature fluctuations or preheating time extension of both, and there is a delay in switching of mechanical valves, resulting in a fragmented user experience. At the same time, it does not learn the household water usage habits and only relies on general preset parameters. When the household water usage habits change, the system cannot automatically adjust the preheating strategy. And generally, a backwater pipe needs to be pre-buried, which is difficult and costly to renovate old houses. SUMMARY
[0004] The present application provides a control method and device of a zero-cold-water system, which can realize time and area division on-demand heating and reduce the energy consumption of the zero-cold-water system.
[0005] In one aspect, the present application provides a control method of a zero-cold-water system, the zero-cold-water system comprising a water heater and at least two water-using ends; the method comprising: obtaining a current time corresponding to the zero-cold-water system, and performing water demand prediction processing according to the current time to obtain a water demand prediction result of each water-using end in a preset time period and a water flow value set; the preset time period is a time period with the current time as the initial time and lasting for a first preset time length; the water flow value set comprises a water flow value at each time in the preset time period; characterizing the water-using end with the water demand prediction result in the preset time period as a first water-using end, and determining the water flow value set corresponding to the first water-using end as a current water flow value set; screening a time period with a water flow value greater than a preset water flow value in the current water flow value set to obtain a current water peak; determining a target heating time according to the preset time period and the current water peak; When the time corresponding to the zero cold water system is detected to be the target heating time, the hot water in the water heater is controlled to start flowing into the first water-using end.
[0006] In one exemplary embodiment, the zero-cold-water system further includes a first solenoid valve corresponding to the first water-using end; after controlling the hot water in the water heater to start flowing into the first water-using end when the time corresponding to the zero-cold-water system is detected to be the target heating time, the method further includes: During the process of hot water flowing into the first water-using terminal, if a water-using instruction is received from the second water-using terminal, the priority corresponding to the second water-using terminal is obtained; the second water-using terminal is the water-using terminal other than the first water-using terminal among the at least two water-using terminals. The priority of the first water-using terminal is compared with the priority of the second water-using terminal to obtain the current priority comparison result; If the current priority comparison result indicates that the priority of the first water-using terminal is lower than the priority of the second water-using terminal, a first time slot is allocated to the second solenoid valve corresponding to the second water-using terminal, and a second time slot is allocated to the first solenoid valve; the time corresponding to the first time slot is less than the time corresponding to the second time slot. In the first time slot, a first opening command is sent to the second solenoid valve so that the second solenoid valve opens based on the first opening command, and the hot water in the water heater flows through the second solenoid valve and then into the second water-using end. In the second time slot, a first shut-off command is sent to the first solenoid valve so that the first solenoid valve shuts off based on the first shut-off command.
[0007] In one exemplary embodiment, after comparing the priority of the first water-using terminal with the priority of the second water-using terminal to obtain the current priority comparison result, the method further includes: If the current priority comparison result indicates that the priority of the first water-using terminal is higher than the priority of the second water-using terminal, a third time slot is allocated to the first solenoid valve and a fourth time slot is allocated to the second solenoid valve; the time corresponding to the third time slot is less than the time corresponding to the fourth time slot. In the third time slot, an opening adjustment command is sent to the first solenoid valve so that the first solenoid valve adjusts its opening to a first opening based on the opening adjustment command. In the fourth time slot, a second opening command is sent to the second solenoid valve so that the second solenoid valve opens at a second opening degree based on the second opening command; the first opening degree is greater than the second opening degree.
[0008] In one exemplary embodiment, the step of obtaining the current time corresponding to the zero-cold-water system and performing water demand prediction processing based on the current time to obtain the water demand prediction results and water flow rate value set for each water user within a preset time period includes: The current time is obtained, and the preset time period and target historical time period corresponding to the current time are determined; the target historical time period is a time period lasting for a second preset duration with the current time as the end time; the second preset duration is longer than the first preset duration. Obtain the current indoor temperature value corresponding to the zero-cold-water system at the current time, and the target historical water consumption data corresponding to the target historical time period; Search the time period water use data database for predicted water use data that matches the preset time period to obtain the target predicted water use data; the time period water use data database includes the mapping relationship between the preset time period and the preset predicted water use data. Based on the preset time period, the current indoor temperature value, the target historical water consumption data, and the target predicted water consumption data, the current water consumption data to be predicted is determined; The current water demand data to be predicted is input into the water demand prediction model for water demand prediction processing, so as to obtain the water demand prediction results and water flow value set of each water user in the preset time period.
[0009] In one exemplary embodiment, the training method for the water demand prediction model includes: Obtain sample water use data to be predicted; the sample water use data to be predicted is labeled with a sample water use end label, a sample water demand prediction label corresponding to the sample water use end label, and a sample water flow rate value set label corresponding to the sample water use end label; Based on a preset model, the water demand prediction process is performed on the sample water demand data to be predicted, and the sample water demand prediction results corresponding to the sample water demand data to be predicted, and the sample water flow rate value set results corresponding to the sample water demand data to be predicted are obtained. Based on the first difference between the sample water consumption end result and the sample water consumption end label, the second difference between the sample water demand prediction result and the sample water demand prediction label, and the third difference between the sample water flow rate value set result and the sample water flow rate value set label, the preset model is trained, and the preset model after training is used as the water demand prediction model.
[0010] In one exemplary embodiment, the step of controlling the hot water in the water heater to start flowing into the first water-using terminal when the time corresponding to the zero-cold-water system is detected to be the target heating time includes: If the time corresponding to the zero cold water system is detected to be the target heating time, a third opening command is sent to the first solenoid valve; so that the first solenoid valve opens based on the third opening command, and the hot water in the water heater flows through the first solenoid valve and into the first water-using end.
[0011] In one exemplary embodiment, after controlling the hot water in the water heater to start flowing into the first water-using terminal when the time corresponding to the zero-cold-water system is detected to be the target heating time, the method further includes: Obtain the real-time temperature value of the first water-using end; If the real-time temperature value is greater than the preset temperature value, receive the water temperature abnormality signal sent by the first water user terminal; Based on the abnormal water temperature signal, a second shut-off command is sent to the first solenoid valve, causing the first solenoid valve to close based on the second shut-off command.
[0012] In one exemplary embodiment, after sending a second shut-off command to the first solenoid valve based on the abnormal water temperature signal, the method further includes: Obtain the target water usage time and water usage terminal identifier corresponding to the first water terminal; Based on the real-time temperature value, the target water usage time, and the water usage terminal identifier, a water temperature anomaly log is determined; The abnormal water temperature log is sent to the target terminal so that the target terminal can display the abnormal water temperature log.
[0013] In one exemplary embodiment, the method further includes: If at least two water-using terminals in the zero-cold-water system have no water demand, obtain the real-time sleep duration corresponding to the zero-cold-water system; If the real-time sleep duration is greater than or equal to the preset sleep duration, the zero-cold-water system is controlled to enter standby mode. If an unlock signal is received during the standby process of the zero-cooling-water system, the zero-cooling-water system will be controlled to start running.
[0014] On the other hand, a control device for a zero-cold-water system is provided, the zero-cold-water system including a water heater and at least two water-using terminals; the device includes: The current water demand prediction module is used to obtain the current time corresponding to the zero-cold water system, and perform water demand prediction processing based on the current time to obtain the water demand prediction result and water flow value set for each water user within a preset time period; the preset time period is a period of time starting from the current time and lasting for a first preset duration; the water flow value set includes the water flow value at each moment within the preset time period. The determination module is used to identify the water demand prediction result that represents the water demand within the preset time period as the first water demand, and to determine the set of water flow values corresponding to the first water demand as the current water flow value set. The current peak water usage determination module is used to filter the time periods in the current water usage flow value set where the water usage flow value is greater than a preset water usage flow value, and obtain the current peak water usage. The target heating time determination module is used to determine the target heating time based on the preset time period and the current peak water usage. The activation module is used to control the hot water in the water heater to start flowing into the first water-using end when the time corresponding to the zero cold water system is detected to be the target heating time.
[0015] On the other hand, an intelligent zero-cooling-water system is provided, which executes the control method of the zero-cooling-water system described above.
[0016] On the other hand, an electronic device is provided, the device including a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or the at least one program being loaded by the processor and executed as described above for the control method of a zero-cold-water system.
[0017] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction or at least one program is stored therein, the at least one instruction or at least one program being loaded and executed by a processor to implement the control method of the zero-cold-water system as described above.
[0018] On the other hand, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the control method for the zero-cooling-water system as described above.
[0019] This application provides a control method and apparatus for a zero-cold-water system, which has the following technical effects: This application obtains the current time corresponding to the zero-cold-water system, and performs water demand prediction processing based on the current time to obtain the water demand prediction result and water flow value set for each water user within a preset time period; the preset time period is a period lasting for a first preset duration with the current time as the initial time; the water flow value set includes the water flow value at each moment within the preset time period; the water user whose water demand prediction result indicates water demand within the preset time period is designated as the first water user, and the water flow value set corresponding to the first water user is determined as the current water flow value set; the time periods in the current water flow value set where the water flow value is greater than the preset water flow value are filtered to obtain the current water peak; the target heating time is determined based on the preset time period and the current water peak; when the time corresponding to the zero-cold-water system is detected to be the target heating time, the hot water in the water heater is controlled to start flowing into the first water user. By acquiring the current time corresponding to the zero-cold-water system and performing water demand prediction processing based on the current time, the water demand prediction results and water flow value set for each water user within a preset time period are obtained. Based on the water demand prediction results, the first water user is determined, the current water peak is selected from the water flow value set, and the target heating time is determined. This helps to deliver hot water to the first water user before the current water peak arrives, so that users can get hot water when they need it. This achieves time-sharing and zoned heating, reduces the energy consumption of the zero-cold-water system, and shortens the response time. Attached Figure Description
[0020] To more clearly illustrate the technical solutions and advantages in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a schematic flowchart of a control method for a zero-cold-water system provided in the embodiments of this specification; Figure 2 This is a flowchart illustrating a water demand forecasting method provided in the embodiments of this specification; Figure 3 This is a flowchart illustrating a method for constructing and updating a baseline water use model provided in the embodiments of this specification; Figure 4 This is a flowchart illustrating a training method for a water demand prediction model provided in the embodiments of this specification. Figure 5This is a flowchart illustrating a control command sending and status feedback method provided in an embodiment of this specification; Figure 6 This is a flowchart illustrating a time slot allocation and transmission method provided in an embodiment of this specification; Figure 7 This is a flowchart illustrating a first priority processing method provided in the embodiments of this specification; Figure 8 This is a flowchart illustrating a second priority processing method provided in an embodiment of this specification; Figure 9 This is a flowchart illustrating a multi-water-end water demand control method provided in the embodiments of this specification; Figure 10 This is a schematic flowchart of a hybrid heating method provided in the embodiments of this specification; Figure 11 This is a flowchart illustrating a control method for predicting events and triggering events as provided in the embodiments of this specification; Figure 12 This is a flowchart illustrating a method for controlling abnormal water temperature provided in the embodiments of this specification; Figure 13 This is a flowchart illustrating a method for displaying an abnormal water temperature log provided in an embodiment of this specification. Figure 14 This is a schematic flowchart of a standby method for a zero-cold-water system provided in the embodiments of this specification; Figure 15 This is a flowchart illustrating a method for waking up a zero-cold-water system provided in the embodiments of this specification; Figure 16 This is a schematic flowchart of a heating method for a zero-cold-water system provided in the embodiments of this specification; Figure 17 This is a schematic flowchart of a single-pipe circulation method for a zero-cold-water system provided in the embodiments of this specification; Figure 18 This is a flowchart of a zero-cold-water system provided in the embodiments of this specification; Figure 19 This is a schematic diagram of the control device for the zero-cold-water system provided in the embodiments of this specification.
[0022] Figure 20 This is a schematic diagram of the server structure for a control method of a zero-cold-water system provided in the embodiments of this specification. Detailed Implementation
[0023] The technical solutions in the embodiments of this specification 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 skilled in the art without creative effort are within the scope of protection of this application.
[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0025] The following describes a control method for a zero-cooling-water system according to this application. Figure 1 This is a flowchart illustrating a control method for a zero-cold-water system provided in an embodiment of this specification. This specification provides the operational steps of the method described in the embodiment or flowchart, but based on conventional or non-inventive labor, more or fewer operational steps may be included. The order of steps listed in the embodiment is merely one possible execution order among many and does not represent the only possible execution order. In actual system or server product execution, the method can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment) as shown in the embodiment or drawings. Specifically, as... Figure 1 As shown, the zero-cold-water system includes a water heater and at least two water outlets. The method can be applied to the controller of the zero-cold-water system, and the method includes: S101: Obtain the current time corresponding to the zero-cold water system, and perform water demand prediction processing based on the current time to obtain the water demand prediction result and water flow value set for each water user within a preset time period; the preset time period is a period lasting for a first preset duration with the current time as the initial time; the water flow value set includes the water flow value at each moment within the preset time period.
[0026] In the embodiments of this specification, the current time corresponding to the zero-cold water system is obtained, i.e., the current time point. Based on the current time, a preset time period can be determined, i.e., a time period lasting for a first preset duration starting from the current time. For example, the first preset duration can be 30 minutes. Water demand prediction processing can be performed based on the current time. Specifically, the zero-cold water system has a time period water data relationship library, i.e., a baseline water model, a water demand prediction model, and a temperature sensor. The preset time period can be input into the baseline water model to obtain target predicted water data. The target predicted water data is the initial prediction result, which can include the initial water demand prediction result and the initial water flow value set within the preset time period corresponding to each water terminal. The current indoor temperature value at the current time and the target historical water data within the historical time period are obtained from the temperature sensor. The preset time period, the current indoor temperature value, the target historical water data, and the target predicted water data are then input into the water demand prediction model for water demand prediction processing to obtain the water demand prediction result and the water flow value set within the preset time period corresponding to each water terminal. The water flow value set includes the water flow value at each moment within the preset time period.
[0027] In the embodiments of this specification, the process of obtaining the current time corresponding to the zero-cold-water system and performing water demand prediction processing based on the current time to obtain the water demand prediction results and water flow rate value set for each water user within a preset time period is as follows: Figure 2 As shown, Figure 2 A flowchart illustrating a water demand forecasting method provided in this specification, as an embodiment of the present invention, includes: S201: Obtain the current time and determine the preset time period and the target historical time period corresponding to the current time; the target historical time period is a time period lasting for a second preset duration with the current time as the end time; the second preset duration is longer than the first preset duration.
[0028] In the embodiments of this specification, the current time corresponding to the zero-cold water system is obtained, and a preset time period and a target historical time period corresponding to the current time are determined. The target historical time period is a time period that lasts for a second preset duration with the current time as the end time, and the second preset duration is longer than the first preset duration. For example, it can be 75 minutes.
[0029] S202: Obtain the current indoor temperature value corresponding to the zero-cold-water system at the current time and the target historical water consumption data corresponding to the target historical time period.
[0030] In the embodiments of this specification, the current indoor temperature value corresponding to the zero-cold-water system at the current time and the target historical water consumption data within the target historical period are obtained. The target historical water consumption data may include the water consumption duration, water consumption time and water consumption frequency within the target historical period.
[0031] S203: Search for predicted water use data that matches the preset time period in the time period water use data relationship database to obtain target predicted water use data; the time period water use data relationship database includes the mapping relationship between the preset time period and the preset predicted water use data.
[0032] In the embodiments of this specification, the time-period water use relationship database includes the mapping relationship between preset time periods and preset predicted water use data. Specifically, the time-period water use relationship database can be a baseline water use model, such as... Figure 3 As shown, Figure 3 The flowchart illustrating a method for constructing and updating a baseline water use model provided in the embodiments of this specification is as follows: S301: Initial installation of a zero-cooling-water system.
[0033] In the embodiments described in this specification, the initial installation of the zero-cold-water system is completed.
[0034] S302: 14-day data collection phase.
[0035] In the embodiments of this specification, after the initial installation of the zero-cold-water system is completed, water usage data is collected for the first 1 to 2 weeks, which may include, but is not limited to, the water usage time, water usage duration, water usage frequency, and water flow rate corresponding to each water user in the zero-cold-water system.
[0036] S303: Generate a baseline water use model.
[0037] In the embodiments of this specification, after obtaining 1 to 2 weeks of water usage data, the data can first be cleaned and organized, i.e., invalid data can be removed. For example, short-term instantaneous triggers, such as those caused by accidental tapping, can be filtered out, and abnormally high flow rates can be excluded. At the same time, events can be segmented based on water flow values. Then, a three-dimensional habit profile can be established, i.e., drawing a 24-hour water usage probability heatmap for each water user, distinguishing between weekday / weekend / holiday patterns, calculating the average water usage duration for each water user, establishing a seasonal correction coefficient, counting the average daily usage frequency for each water user, analyzing the probability of behavioral chains, and discovering association rules. Finally, a baseline water usage model is constructed.
[0038] S304: The model is automatically updated weekly.
[0039] In the embodiments described in this specification, the model can be automatically updated based on the water usage data acquired daily during actual use, so as to improve the accuracy of water demand prediction results.
[0040] S305: Check if the habit has changed; if not, proceed to S307.
[0041] In the embodiments of this specification, the user's usage habits are detected in real time during use, including but not limited to whether there are new users or whether water usage data changes during holidays.
[0042] S306: Adjust the heating timer.
[0043] In the embodiments of this specification, if a change in water usage habits is detected, the preheating schedule is adjusted based on the detected change in water usage habits, that is, the water usage time and water usage data corresponding to different water users are adjusted.
[0044] S307: Maintain the current strategy.
[0045] In the embodiments described in this specification, if no change in water usage habits is detected, the current strategy is maintained.
[0046] As can be seen, after determining the preset time period, the preset time period can be input into the baseline water use model, that is, the predicted water use data that matches the preset time period can be found in the time period water use data relationship database. The baseline water use model can predict the target predicted water use data corresponding to the preset time period, including but not limited to the initial water use probability value and the initial water use flow rate value set within the preset time period.
[0047] S204: Determine the current water usage data to be predicted based on the preset time period, the current indoor temperature value, the target historical water usage data, and the target predicted water usage data.
[0048] In the embodiments of this specification, a preset time period, the current indoor temperature value, the target historical water consumption data, and the target predicted water consumption data are combined as the current water consumption data to be predicted, so as to be input into the water demand prediction model for water demand prediction.
[0049] S205: Input the current water demand data to be predicted into the water demand prediction model for water demand prediction processing, and obtain the water demand prediction results and water flow value set of each water user in the preset time period.
[0050] In the embodiments of this specification, the current water consumption data to be predicted is input into the water demand prediction model for water demand prediction processing, which yields the water demand prediction results and water flow rate values for each water user within a preset time period. By combining multi-dimensional data to form the input of the water demand prediction model, recent water consumption data is integrated to capture behavioral changes in real time, helping to reduce the error rate of water demand prediction results. Furthermore, the inclusion of room temperature data enables automatic correction of water temperature and flow rate requirements. Obtaining accurate water demand prediction results and water flow rate values facilitates precise time-sharing and zoned preheating, heating only water users with water demand and during water demand periods. This achieves zero-cold-water output at water users, reduces the energy consumption of the zero-cold-water system, and extends the service life of the zero-cold-water system.
[0051] In the embodiments of this specification, the training method of the water demand prediction model is as follows: Figure 4 As shown, Figure 4 A flowchart illustrating a training method for a water demand prediction model provided in this embodiment of the specification includes: S401: Obtain sample water use data to be predicted; the sample water use data to be predicted is labeled with a sample water use end label, a sample water demand prediction label corresponding to the sample water use end label, and a sample water flow rate value set label corresponding to the sample water use end label.
[0052] In the embodiments of this specification, sample water usage data to be predicted is obtained, and the sample water usage data to be predicted is determined based on the sample time. That is, the sample time is first obtained, and the sample preset time period, the sample historical time period, and the sample indoor temperature value corresponding to the zero-cold water system at the sample time are determined based on the sample time. The sample preset time period is a time period starting from the sample time and lasting for a first preset duration, and the sample historical time period is a time period ending from the sample time and lasting for a second preset duration. The sample historical water usage data within the sample historical time period can be determined based on the sample historical time period. The sample preset time period is input into the baseline water usage model, that is, the water usage data of the time period is used to determine the baseline water usage model. By searching the relational database for predicted water use data that matches the preset time period of the sample, the target predicted water use data of the sample can be obtained. Based on the preset time period of the sample, the indoor temperature value of the sample, the historical water use data of the sample, and the target predicted water use data of the sample, the water use data to be predicted of the sample can be combined. The water use data to be predicted of the sample is labeled with a water use end label, a water demand prediction label corresponding to the water use end label, and a set of water flow values corresponding to the water use end label. During the training process, the water use data to be predicted of the sample can also be labeled with other labels, for example, the water use frequency value label corresponding to the water use end label.
[0053] S402: Based on a preset model, perform water demand prediction processing on the sample water use data to be predicted to obtain the sample water use end result of the sample water use data to be predicted, the sample water demand prediction result corresponding to the sample water use end result, and the sample water flow rate value set result corresponding to the sample water use end result.
[0054] In the embodiments of this specification, water demand prediction processing is performed on the sample water demand data to be predicted based on a preset model, which can yield the sample water demand prediction results, the sample water demand prediction results corresponding to the sample water demand prediction results, and the sample water flow rate value set results corresponding to the sample water demand prediction results.
[0055] S403: Based on the first difference between the sample water end result and the sample water end label, the second difference between the sample water demand prediction result and the sample water demand prediction label, and the third difference between the sample water flow value set result and the sample water flow value set label, train the preset model, and use the preset model after training as the water demand prediction model.
[0056] In the embodiments of this specification, first loss information can be determined based on the first difference between the sample water consumption end result and the sample water consumption end label; second loss information can be determined based on the second difference between the sample water demand prediction result and the sample water demand prediction label; and third loss information can be determined based on the third difference between the sample water flow rate value set result and the sample water flow rate value set label. Furthermore, the first, second, and third loss information can all be based on Dice. The loss function obtained from loss or cross-entropy loss can determine the target loss information based on the first, second, and third loss information. Specifically, the target loss information can be obtained by summing the first, second, and third loss information; alternatively, weights can be set for different loss information corresponding to the first, second, and third loss information, and the weighted sums of the three loss information can be calculated separately and then summed to obtain the target loss information. The parameters of each network in the preset model are adjusted based on the target loss information until the training termination condition is met. For example, the training termination condition can be that the target loss information is less than the preset loss value, or that the target loss information is less than the preset loss value and the training iteration coefficient reaches the preset number of training iterations. The preset model after training is used as the water demand prediction model. The water demand prediction model can be a special recurrent neural network, namely LSTM (Long Short-Term Memory). The LSTM (Long-Terminal Memory) model, specifically designed to address long-term dependency issues, employs a core structure with a triple-gating mechanism: an input gate, a forget gate, and an output gate. The input gate controls the storage of new information, the forget gate filters out useless historical information, and the output gate determines the current output. Through this "memory cell" structure, the LSTM model effectively captures long-term patterns in water usage data, such as peak morning and evening water demand and short-term fluctuations in zero-cold-water systems, such as water surges caused by cold weather. By using multi-dimensional sample water usage data to be predicted as input to the pre-defined model, it helps to provide long-term baseline habits, capture recent behavioral changes, correlate with current environmental factors, and define the model's output range, improving the robustness of the water demand prediction model and thus contributing to more accurate water demand prediction results.
[0057] S103: The water demand prediction result represents the water demand within the preset time period as the first water demand end, and the set of water flow values corresponding to the first water demand end is determined as the current water flow value set.
[0058] In the embodiments of this specification, the water demand prediction result can be in the form of a water demand probability value. A water demand prediction result representing the existence of water demand within a preset time period is determined, i.e., a water demand prediction result with a water demand probability value greater than a preset water demand probability value, where the preset water demand probability value can be 80%. When the water demand probability value is greater than 80%, the water-using end of this water demand prediction result can be determined as the first water-using end, and the set of water flow values corresponding to the first water-using end can be determined as the current water flow value set. The above situation refers to the case where only one water-using end exists within the preset time period, i.e., the first water-using end has water demand. If multiple water-using ends have water demand within the preset time period, a corresponding control strategy is formulated based on the priority of each water-using end to ensure that zero cold water can be achieved within each water-using end.
[0059] S105: Filter the time periods in the current water flow rate value set where the water flow rate value is greater than the preset water flow rate value to obtain the current water consumption peak.
[0060] In this embodiment, the current water flow rate value set includes the water flow rate value corresponding to the first water user at each moment within a preset time period. Since the first water user is the water user with water demand within the preset time period, it is necessary to obtain the water peak within the preset time period so that hot water can be supplied to the first water user before the water peak arrives, thereby achieving the zero cold water usage effect of the first water user. Specifically, determining the current water peak based on the current water flow rate value set can be based on the water flow rate values in the current water flow rate value set. When the water flow rate value is greater than the preset water flow rate value, it can be determined that this is the water peak. Additionally, to improve the accuracy of the current water peak determination result, the current water peak can be filtered based on dual conditions. Specifically, water demand can be pre-defined based on the current time. The measurement process can also obtain a set of current water usage frequency values within a preset time period corresponding to each water user. The set of current water usage frequency values includes the water usage frequency value corresponding to the first water user at each moment within the preset time period. When filtering the current water usage peak, the water usage frequency value can be used as the first filter. The water usage frequency value in the current water usage frequency value set is greater than the preset water usage frequency value. For example, if the user household has 3 people, the preset water usage frequency value can be 60%, and if the user household has 5 people, the preset water usage frequency value can be 75%. This yields candidate water usage peaks. Then, the water flow rate value in the candidate water usage peaks is greater than the preset water flow rate value, and it can be a period in which the water flow rate value is greater than the preset water flow rate value for a continuous period of time. This period is then identified as the current water usage peak.
[0061] S107: Determine the target heating time based on the preset time period and the current peak water usage.
[0062] In the embodiments of this specification, a solenoid valve and a water pipe are provided between the water heater and the water-using end. Each water-using end has a corresponding solenoid valve and a water pipe. After determining the preset time period and the current water usage peak, the target heating time can be determined as 5 minutes before the current water usage peak. The 5 minutes is only an example and can also be set according to the actual pipe conditions. For example, if the pipe between the water heater and the first water-using end is long, the target heating time can be set as 10 minutes before the current water usage peak. If the pipe between the water heater and the first water-using end is short, the target heating time can be set as 3 minutes before the current water usage peak.
[0063] S109: When the time corresponding to the zero cold water system is detected to be the target heating time, control the hot water in the water heater to start flowing into the first water-using end.
[0064] In the embodiments of this specification, before the zero-cold-water system is put into practical application, the pipeline topology will be marked on the APP corresponding to the zero-cold-water system. Specifically, users can mark the correspondence between each solenoid valve, each water pipe and each water terminal in their home through the mobile APP, as shown in Table 1. Table 1 is the solenoid valve-water pipe topology table of water terminal A provided in the embodiments of this specification.
[0065] Table 1. Solenoid valve-water pipeline topology table for water supply end A
[0066] As shown in Table 1, there are three solenoid valves corresponding to water supply terminal A: solenoid valve A, solenoid valve B, and a three-way valve. Solenoid valve A is installed at the cold water source inlet to control the flow of cold water into the main pipe of water supply terminal A, and is normally closed. Solenoid valve B is installed at the hot water source inlet to control the flow of hot water into the main pipe of water supply terminal A, and is normally closed. The three-way valve is installed at the branch point at the end of the main pipe of water supply terminal A to switch the water flow direction to the cold water outlet or the hot water outlet. Generally, when water supply terminal A is not in use, the water flow direction is towards the cold water outlet, and when water supply terminal A is in use, the water flow direction is towards the hot water outlet. In addition, a flow sensor is also marked and installed in the middle section of the main pipe of water supply terminal A to detect the water flow status in the main pipe of water supply terminal A so as to provide feedback to the controller at any time.
[0067] Next, the zero-cold-water system can automatically construct a topology map and generate a digital twin model based on the marked connection relationship between the solenoid valve, water pipe, and water terminal. In actual use, after the water usage prediction model predicts the first water terminal, the first solenoid valve and the first water pipe corresponding to the first water terminal can be obtained. The first solenoid valve is a solenoid valve installed at the inlet of the hot water source. By sending a third opening command to the first solenoid valve, the first solenoid valve opens based on the third opening command. At the same time, a closing command can be sent to the cold water valve corresponding to the first water terminal to close it and prevent cold water from entering. A reversing command can be sent to the three-way valve corresponding to the first water terminal to switch the water flow direction to the hot water outlet, so as to achieve zero-cold-water control of the first water terminal. Before the peak water usage of the first water terminal arrives, hot water has already arrived in the first water terminal. When the user needs to use the first water terminal, hot water is available immediately upon opening.
[0068] In this embodiment of the specification, when the time corresponding to the zero-cold-water system is detected to be the target heating time, controlling the hot water in the water heater to start flowing into the first water-using end includes: If the time corresponding to the zero cold water system is detected to be the target heating time, a third opening command is sent to the first solenoid valve; so that the first solenoid valve opens based on the third opening command, and the hot water in the water heater flows through the first solenoid valve and into the first water-using end.
[0069] In the embodiments described in this specification, the zero-cold-water system can achieve millisecond-level synchronization of valve groups using a communication protocol combining Time Division Multiple Access (TDMA) and Frequency Diversity (TSCH) technology. TSCH is a low-power, high-reliability communication protocol specifically designed for the Industrial Internet of Things (IIoT). Its core functionality involves resolving collisions and interference in wireless communication through time slicing and channel transitions. The specific process is as follows: Figure 5 As shown, Figure 5 The flowchart illustrating a control command sending and status feedback method provided in the embodiments of this specification is as follows: S501: The controller sends a command.
[0070] In the embodiments described in this specification, the controller of the zero-cold-water system receives water usage requests from each water user in real time and sends control commands based on the water usage requests.
[0071] S502:TSCH protocol allocates time slots.
[0072] In the embodiments of this specification, if multiple water-using terminals have water demand, the TSCH protocol divides the communication time into fixed duration units, for example, each time slot is 10ms. Each device sends data in its dedicated time slot. This setting reduces the communication collision rate compared to the traditional Zigbee. The dedicated time slot is determined based on the priority of multiple water-using terminals. Each water-using terminal is polled according to its priority, and the channel is exclusively occupied every 10ms to avoid signal collisions. For example, both the shower and the kitchen have water demand, and the shower has a higher priority than the kitchen. In this case, the time slot can be allocated based on the priorities of the two, as shown in Table 2. Table 2 is a time slot allocation table provided in the embodiments of this specification.
[0073] Table 2 Time Slot Allocation Table
[0074] As shown in Table 2, time slot 0 is assigned to the shower valve corresponding to the shower, and time slot 1 is assigned to the kitchen valve corresponding to the kitchen. An additional idle time slot 2 is set for emergency response. The time slot 0 corresponds to the moment within 0ms to 10ms after the moment when the zero cold water system receives water requests from multiple water users. The time slot 1 corresponds to the moment within 10ms to 20ms after the moment when the zero cold water system receives water requests from multiple water users. The time slot 2 corresponds to the moment within 20ms to 30ms after the moment when the zero cold water system receives water requests from multiple water users. The shower valve is fully open in time slot 0 to provide hot water to the shower, and the kitchen valve is partially open in time slot 1 to provide hot water to the kitchen.
[0075] S503: 2.4GHz transmission control signal.
[0076] In the embodiments described in this specification, since 2.4 GHz can utilize the high bandwidth of the TSCH to transmit complex instructions, the controller transmits control signals via 2.4 GHz, such as... Figure 6 As shown, Figure 6 This is a flowchart illustrating a time slot allocation and transmission method provided in an embodiment of this specification. Figure 6 As can be seen, in time slot 0, the controller sends a fully open signal to the shower valve to allow hot water from the water heater to flow into the shower, and in time slot 1, it sends a half-open signal to the kitchen valve to avoid water usage conflicts.
[0077] S504: Valve response action.
[0078] In the embodiments of this specification, each valve at the water-using end responds to the control signal sent by the controller. For example, the shower valve opens to 100% after receiving the full-open signal, so that the hot water in the water heater can flow into the shower at the maximum flow rate in the water pipe corresponding to the shower. The kitchen valve opens to 50% after receiving the half-open signal, so that the hot water in the water heater can flow into the kitchen at a moderate flow rate in the water pipe corresponding to the kitchen.
[0079] S505: Sub-1Ghz transmission status.
[0080] In the embodiments of this specification, since Sub-1GHz transmits status data through contention-based time slots and has strong wall penetration, the device transmits status data on demand using the CSMA / CA mechanism based on Sub-1GHz. Each water user listens to the channel at the beginning of the time slot. If the channel is idle, it immediately transmits the transmission content based on Sub-1GHz. If the channel is busy, it randomly backs off. The transmission content can include the water user identifier, the current water temperature value, the current water flow value, and the current status flag. For example, if the water user transmitting the data is a shower, the transmission content can include the water user identifier 0x0001, the current water temperature value 42℃, the current water flow value 8.2L / min, and the status flag 0x0C. Bit 0 of the status flag can indicate the valve opening status, 1 indicates fully open, and 0 indicates not fully open. Bit 1 can indicate the water temperature meets the standard. Bit 2 can be a fault alarm bit. Bit 3 can be a water flow stability bit. The maximum time slot occupied by a single transmission is 2 time slots, i.e., 20ms. It is evident that using the TSCH communication protocol to allocate time slots can resolve channel contention among multiple terminals, compressing communication latency to the 10ms level. Meanwhile, the 2.4GHz / Sub-1GHz dual-frequency division of labor balances high-speed command transmission with reliable status feedback, achieving a 50ms end-to-end response and a truly zero-wait hot water experience.
[0081] Therefore, when the target heating time is detected as the moment corresponding to the zero-cold-water system, only the first water-using end has a water demand. At this time, a time slot is allocated to the first solenoid valve, and a third opening command is sent to the first solenoid valve to open it based on the third opening command. Simultaneously, a first water pipe is also provided between the first solenoid valve and the first water-using end. Therefore, the hot water in the water heater flows sequentially through the first solenoid valve and the first water pipe before finally flowing into the first water-using end. This solenoid valve-water pipe-water-using-end topology helps to accurately locate the required solenoid valve and water pipe, shortens the response time, and achieves accurate prediction of the water-using end and solenoid valve actuation, resulting in instant hot water, avoiding ineffective heating, and saving energy.
[0082] In this embodiment of the specification, the zero-cold-water system further includes a first solenoid valve corresponding to the first water-using end; after controlling the hot water in the water heater to start flowing into the first water-using end when the time corresponding to the zero-cold-water system is detected to be the target heating time, as follows: Figure 7 As shown, Figure 7 This is a flowchart illustrating a first priority processing method provided in an embodiment of this specification. The method further includes: S701: During the process of hot water flowing into the first water-using terminal, if a water-using instruction is received from the second water-using terminal, the priority corresponding to the second water-using terminal is obtained; the second water-using terminal is the water-using terminal other than the first water-using terminal among the at least two water-using terminals.
[0083] As shown in Table 3 in the embodiments of this specification, Table 3 is a multimodal trigger source table provided in the embodiments of this specification; Table 3 Multimodal Trigger Source Table
[0084] As shown in Table 3, the water usage instructions received by the controller can be based on physical sensors / APP instructions / prediction system, and the priority of the three is ordered from high to low as APP instructions, physical sensors, and prediction system.
[0085] During the process of hot water flowing into the first water terminal, if a water usage command is received from the second water terminal, the priority of the second water terminal is obtained. The triggering method of the water usage command from the second water terminal is shown in Table 3, which may include, but is not limited to, app commands. For example, the user clicks on the app to request water from the second water terminal, or the sensor on the second water terminal detects that the user needs water, or the zero-cold-water system predicts that there will be water demand at the second water terminal in the next period of time, and the second water terminal is one of the at least two water terminals in the zero-cold-water system other than the first water terminal.
[0086] S702: Compare the priority of the first water-using terminal with the priority of the second water-using terminal to obtain the current priority comparison result.
[0087] In the embodiments of this specification, the priority of the first water-using terminal is compared with the priority of the second water-using terminal to obtain the current priority comparison result.
[0088] In the embodiments of this specification, after comparing the priority of the first water-using terminal with the priority of the second water-using terminal to obtain the current priority comparison result, as follows: Figure 8 As shown, Figure 8 This is a flowchart illustrating a second priority processing method provided in an embodiment of this specification. The method further includes: S801: If the current priority comparison result indicates that the priority of the first water-using end is higher than the priority of the second water-using end, a third time slot is allocated to the first solenoid valve and a fourth time slot is allocated to the second solenoid valve; the time corresponding to the third time slot is less than the time corresponding to the fourth time slot.
[0089] In the embodiments described in this specification, the zero-cold-water system includes at least two water-using terminals, taking three as an example. Exemplarily, these could be a shower, a kitchen sink, and a washbasin, arranged in descending order of priority. In actual use, multiple terminals may require water simultaneously. Figure 9 As shown, Figure 9 The flowchart of a multi-water-end water demand control method provided in the embodiments of this specification is as follows: S901: Multiple water terminal requests detected.
[0090] In the embodiments described in this specification, the zero-cold-water system detects water usage requests from multiple water-using terminals.
[0091] S902: Read priority configuration.
[0092] In the embodiments of this specification, the priority of multiple water-using terminals with water demand is obtained.
[0093] S903: Determine if it is the highest priority water terminal; if not, proceed to S905.
[0094] In the embodiments of this specification, it is determined whether there is a water-using terminal with the highest priority among multiple water-using terminals that have water demand.
[0095] S904: Close other pipeline valves.
[0096] In the embodiments of this specification, if there is a water-using terminal with the highest priority among multiple water-using terminals with water demand, for example, a shower, then the water pipes and hot water valves corresponding to the other water-using terminals are closed, and the shower receives the full flow.
[0097] S905: Alternating pulse preheating.
[0098] In the embodiments of this specification, if there is no highest priority water terminal among multiple water terminals with water demand after the shower has finished heating, the low priority water terminals will alternately preheat at a frequency of 10 seconds per channel, thereby balancing the preheating demand.
[0099] S906: Maintain constant temperature at the target water end.
[0100] In the embodiments described in this specification, a strategy is adopted to prioritize heating of the highest-priority water-using end and alternately preheat the other priority water-using ends to ultimately achieve a constant temperature at the target water-using end. This setup can intelligently allocate hot water resources in high-demand scenarios and ensure that the water temperature fluctuation of the high-priority water-using end is controlled within 1°C when multiple water-using ends are used. In addition, if a mechanical priority valve is used, rapid switching can be achieved in the absence of power.
[0101] In practical use, such as Figure 10 As shown, Figure 10 The following is a flowchart illustrating a hybrid heating method provided in an embodiment of this specification. The specific steps are as follows: S1001: Shower is heating during the predicted time period.
[0102] In the embodiments described in this specification, the zero-cold-water system predicts that the shower will have a water demand within the next 30 minutes, and therefore delivers hot water to the shower before the predicted water demand peak, so that its internal heating begins.
[0103] S1002: Determine whether the handwashing station is detected as an immediate trigger.
[0104] In the embodiments described in this specification, in actual use, water usage time triggering is divided into predictive triggering and instantaneous triggering, such as... Figure 11 As shown, Figure 11 The flowchart illustrates a method for controlling predicted and instantaneously triggered events, as provided in the embodiments of this specification. The specific steps are as follows: S1101: A water usage event was detected.
[0105] In the embodiments described in this specification, the zero-cold-water system detects a water demand at a water-using end, triggering a water usage event.
[0106] S1102: Determine whether the water usage event is within the predicted time period; if the water usage event is not within the predicted time period, proceed to S1104; In the embodiments of this specification, it is determined whether the water usage event is within the predicted time period, so as to formulate different control strategies for different types of water usage events.
[0107] S1103: The water usage event will be heated according to the preset path within the predicted time period.
[0108] In the embodiments described in this specification, if the water usage event occurs within the predicted time period, then heating will proceed according to a predetermined preset path.
[0109] S1104: This water usage event is triggered instantly.
[0110] In the embodiments described in this specification, the water usage event is not within the predicted time period and is in an instantaneous triggering mode.
[0111] S1105: Prioritize heating the currently active pipeline.
[0112] In the embodiments of this specification, the priority control logic of the instant triggering is as follows: the priority is divided into three categories. The highest priority level 1 corresponds to water-using terminals such as showers and bathtubs that require continuous constant temperature. The medium priority level 2 corresponds to water-using terminals such as kitchen sinks that have intermittent high-temperature requirements. The basic priority level 3 corresponds to water-using terminals such as washbasins that have short-term low-temperature requirements. The conflict arbitration principle is as follows: the predicted task can be interrupted, that is, the predicted preheating can be scheduled by a higher priority instant triggering task. When two water-using terminals have water demand and are of the same priority, they are executed in sequence, that is, first come, first served, but the minimum water flow value must be guaranteed. Therefore, when it is detected that the water event is in instant triggering mode and the priority of the instant triggering water-using terminal is higher than the priority of the predicted event water-using terminal, the currently active pipeline is heated first.
[0113] S1106: Reach the set temperature within 5 seconds.
[0114] In the embodiments described in this specification, the pipe of the water-using end is heated immediately when the high-priority water usage time is triggered, so that the hot water in the water heater quickly enters the water-using end, thereby achieving the set temperature within 5 seconds.
[0115] Therefore, after detecting a trigger at the handwashing station, it can be determined that the handwashing station has the lowest priority.
[0116] S1003: Maintain heating in the shower pipes.
[0117] In the embodiments described in this specification, since the water-using end of the currently predicted event is the shower with the highest priority, while the water-using end that is triggered immediately is the sink with the lowest priority, the high-priority task is not interrupted, and the shower pipe heating is maintained.
[0118] S1004: Turn on the circulation pump in the sink branch.
[0119] In the embodiments of this specification, since the washbasin has a water demand and in order to meet the water demand of the shower, the circulation pump on the washbasin branch is turned on at a small flow rate so that the hot water in the water heater flows through the washbasin pipe at a small flow rate and finally flows into the washbasin for the user to wash their hands.
[0120] S1005: Hybrid heating mode.
[0121] In the embodiments described in this specification, the shower pipe is controlled to maintain a flow rate of 70%, and the washbasin branch pipe is controlled to maintain a flow rate of 30% for heating, thus achieving a mixed-mode heating.
[0122] Therefore, if the current priority comparison result indicates that the priority of the first water-using end is higher than that of the second water-using end, that is, the priority of the water-using end for the predicted event is higher than that of the water-using end for the immediate triggering event, the high-priority task will not be interrupted, while ensuring the water demand of the low-priority task. Using the TSCH protocol, time slots are allocated to the first solenoid valve corresponding to the first water-using end and the second solenoid valve corresponding to the second water-using end based on the priority of the first water-using end and the priority of the second water-using end. That is, a third time slot is allocated to the first solenoid valve and a fourth time slot is allocated to the second solenoid valve. The third and fourth time slots are two adjacent time slots, and the time corresponding to the third time slot is less than the time corresponding to the fourth time slot. Both the third and fourth time slots are 10ms.
[0123] S802: Send an opening adjustment command to the first solenoid valve in the third time slot, so that the first solenoid valve adjusts its opening to the first opening based on the opening adjustment command.
[0124] In the embodiments of this specification, since the priority of the first water-using end is higher than that of the second water-using end, the heating of the first water-using end is uninterrupted, while the second water-using end heats at a small flow rate. In the third time slot, an opening adjustment command is sent to the first solenoid valve so that the first solenoid valve adjusts its opening to the first opening based on the opening adjustment command. For example, the first opening can be 70%. The first water-using end is a shower, and the second water-using end is a sink. When the water demand of the shower is initially predicted, the first solenoid valve is fully opened. At this time, in order to ensure the water demand of the shower and the sink, the opening of the shower valve of the shower is adjusted to 70%.
[0125] S803: A second opening command is sent to the second solenoid valve in the fourth time slot, so that the second solenoid valve opens at a second opening degree based on the second opening command; the first opening degree is greater than the second opening degree.
[0126] In the embodiments described in this specification, a second opening command is sent to the second solenoid valve in the fourth time slot, causing the second solenoid valve to open at a second opening degree based on the second opening command. For example, the second opening degree can be 30%. The first water-using end is a shower, and the second water-using end is a washbasin. The washbasin valve is opened at a 30% opening degree, allowing the washbasin to heat water at a small flow rate through its corresponding branch. By formulating a hybrid heating control strategy for high-priority predicted water-using ends and low-priority instantaneous triggered water-using ends, both achieve heating. A larger opening degree is allocated to the high-priority water-using end to ensure the core user experience, while a relatively smaller opening degree is allocated to the low-priority water-using end. Although the low-priority water-using end experiences a delay in water output, it remains within an acceptable range, achieving dynamic allocation for concurrent water use scenarios involving multiple water-using ends.
[0127] S703: If the current priority comparison result indicates that the priority of the first water-using terminal is lower than the priority of the second water-using terminal, a first time slot is allocated to the second solenoid valve corresponding to the second water-using terminal, and a second time slot is allocated to the first solenoid valve; the time corresponding to the first time slot is less than the time corresponding to the second time slot.
[0128] In the embodiments of this specification, based on the control strategy for conflicting water demands among multiple water-using terminals, if the current priority comparison result indicates that the priority of the first water-using terminal is lower than that of the second water-using terminal, and the water demand of the first water-using terminal is a predicted event while the water demand of the second water-using terminal is an immediate triggered event, then based on the priorities of the first and second water-using terminals, the TSCH communication protocol is used to allocate time slots for both. A second time slot is allocated to the second solenoid valve corresponding to the second water-using terminal, and a second time slot is allocated to the first solenoid valve. The first and second time slots are two adjacent time slots, and the time corresponding to the first time slot is less than the time corresponding to the second time slot. Both the first and second time slots are 10ms.
[0129] S704: In the first time slot, a first opening command is sent to the second solenoid valve so that the second solenoid valve opens based on the first opening command, and the hot water in the water heater flows through the second solenoid valve and into the second water outlet.
[0130] In the embodiments of this specification, since the priority of the second water terminal is higher than that of the first water terminal, the heating of the first water terminal is terminated, and the second water terminal takes over in an emergency and can obtain the full flow. It sends a first opening command to the second solenoid valve in the first time slot, so that the second solenoid valve opens based on the first opening command. The second water terminal is connected to the second water pipe, and the hot water in the water heater flows through the second solenoid valve and the second water pipe in sequence, and finally flows into the second water terminal.
[0131] S705: Send a first shut-off command to the first solenoid valve in the second time slot so that the first solenoid valve shuts off based on the first shut-off command.
[0132] In the embodiments described in this specification, a first closing command is sent to the first solenoid valve in the second time slot, causing the first solenoid valve to close based on the first closing command, and the heating of the first water-using terminal terminates. By formulating a timely preemption strategy for high-priority water-using terminals based on low-priority predicted water-using terminals and high-priority instantaneous triggered water-using terminals, the core user experience is prioritized. Furthermore, after the heating of high-priority water-using terminals is completed, low-priority water-using terminals will resume heating, improving the responsiveness of the zero-cold-water system and solving the problem of water demand from multiple water-using terminals.
[0133] In this embodiment of the specification, after the time corresponding to the zero-cold-water system is detected to be the target heating time, and the hot water in the water heater is controlled to start flowing into the first water-using end, as follows: Figure 12 As shown, Figure 12 This is a flowchart illustrating a method for controlling abnormal water temperature provided in an embodiment of this specification. The method further includes: S1201: Obtain the real-time temperature value of the first water-using end.
[0134] In the embodiments of this specification, the real-time temperature value of the first water-using end is obtained during the process of hot water flowing from the water heater into the first water-using end.
[0135] S1202: If the real-time temperature value is greater than the preset temperature value, receive the water temperature abnormality signal sent by the first water user terminal.
[0136] In the embodiments of this specification, if the real-time temperature value is greater than the preset temperature value, that is, the water temperature of the first water user is abnormal, the first water user sends a Sub-1Ghz emergency interruption request, that is, a water temperature abnormality signal, in any time slot.
[0137] S1203: Send a second shut-off command to the first solenoid valve based on the abnormal water temperature signal; so that the first solenoid valve closes based on the second shut-off command.
[0138] In the embodiments described in this specification, upon receiving an abnormal water temperature signal, the controller of the zero-cooling-water system immediately suspends its current time slot task and sends a second closing command to the first solenoid valve via 2.4GHz in the next time slot. This causes the first solenoid valve to close based on the second closing command, and the first water-using end stops heating. By real-time monitoring of the temperature value of the first water-using end and timely feedback of the abnormal status when the water temperature is abnormal, the response time is shortened, which helps users to perform timely maintenance and extends the service life of the zero-cooling-water system.
[0139] In this embodiment of the specification, after sending a second shut-off command to the first solenoid valve based on the abnormal water temperature signal, as follows: Figure 13 As shown, Figure 13 This is a flowchart illustrating a method for displaying anomaly logs of water temperature, as provided in an embodiment of this specification. The method further includes: S1301: Obtain the target water usage time and water usage terminal identifier corresponding to the first water user terminal.
[0140] In the embodiments of this specification, after the first water-using terminal is shut down due to abnormal water temperature, the target water usage time corresponding to the first water-using terminal, i.e., the time when the water temperature of the first water-using terminal is abnormal, and the water-using terminal identifier can be obtained.
[0141] S1302: Determine the water temperature anomaly log based on the real-time temperature value, the target water usage time, and the water usage terminal identifier.
[0142] In the embodiments of this specification, a water temperature anomaly log can be obtained by combining the real-time temperature value when the water temperature at the first water-using end is abnormal, the target water usage time, and the water-using end identifier. It may also include water flow rate value or other water usage data.
[0143] S1303: Send the water temperature anomaly log to the target terminal so that the target terminal can display the water temperature anomaly log.
[0144] In the embodiments of this specification, the target terminal can be a mobile app corresponding to the zero-cold-water system. The app sends water temperature anomaly logs to the target terminal, allowing it to display the logs and enabling users to monitor anomalies in real time and perform repairs on the malfunctioning water-using devices. By generating water temperature anomaly logs based on anomaly information and sending them to the target terminal, users can accurately locate malfunctioning water-using devices and their abnormal states, thus improving the problem-solving capabilities of the zero-cold-water system.
[0145] In the embodiments described in this specification, such as Figure 14 As shown, Figure 14 This is a flowchart illustrating a standby method for a zero-cooling-water system provided in an embodiment of this specification. The method further includes: S1401: If at least two water-using terminals in the zero-cold-water system do not have water demand, obtain the real-time sleep duration corresponding to the zero-cold-water system.
[0146] In the embodiments of this specification, if at least two water-using terminals in the zero-cold-water system have no water demand, the real-time sleep duration corresponding to the zero-cold-water system is obtained.
[0147] S1402: If the real-time sleep duration is greater than or equal to the preset sleep duration, control the zero-cold water system to enter standby mode.
[0148] In the embodiments of this specification, in order to improve the accuracy of judging the status of the zero-cooling-water system, a preset sleep duration is introduced. When the real-time sleep duration is longer than the preset sleep duration, the zero-cooling-water system is controlled to enter standby mode, or deep sleep.
[0149] S1403: During the standby process of the zero-cooling-water system, if an unlock signal is received, the zero-cooling-water system is controlled to start running.
[0150] In the embodiments described in this specification, such as Figure 15 As shown, Figure 15 This is a flowchart illustrating a method for activating a zero-cold-water system as provided in an embodiment of this specification. Figure 15In step S1501, the zero-cold-water system has entered deep sleep mode. Step S1502 involves real-time detection of triggering conditions during this deep sleep process. Specifically, during the standby phase, the system continuously checks for an unlocking signal. Triggering methods for the zero-cold-water system can include, but are not limited to, door lock unlocking, geofencing, and manual app commands. Door lock unlocking can occur when the system receives a successful unlocking signal from the user's smart door lock. Geofencing occurs when the user's phone enters a preset geofence area. Manual app commands allow the user to manually activate the app associated with the zero-cold-water system. Upon receiving any of these unlocking signals, the system begins operation. Figure 15 Step S1503: Immediately start heating, and restore hot water supply to each water-using end of the zero-cold-water system within 5 seconds of waking up, i.e. Figure 15 Step S1504. By promptly putting the zero-cold-water system into hibernation standby mode when there is no water demand at the water-using end, the energy consumption of the zero-cold-water system is reduced, and resources are saved. At the same time, a multi-condition wake-up mechanism is set up to help the zero-cold-water system be quickly woken up and restore hot water supply in the shortest time, thus balancing energy saving and user experience.
[0151] In one exemplary implementation, such as Figure 16 As shown, Figure 16 A schematic flow chart of a heating method for a zero-cold-water system provided in this specification embodiment includes: S1601: The central controller reads historical water usage data.
[0152] In the embodiments described in this specification, the central controller of the zero-cooling-water system reads the historical water usage data of the zero-cooling-water system and generates an LSTM water demand prediction model based on the historical water usage data.
[0153] S1602: LSTM predicts the probability of water usage in the next 30 minutes.
[0154] In the embodiments described in this specification, the zero-cold-water system obtains the current time corresponding to it and uses an LSTM model to predict the probability of water usage in the next 30 minutes corresponding to the current time.
[0155] S1603: Start the corresponding pipeline circulation pump.
[0156] In the embodiments of this specification, the LSTM model predicts and outputs the water usage points for the next 30 minutes, the water usage probability corresponding to the water usage points, and other water usage data; if the predicted water usage probability is greater than the preset water usage probability, for example, 80%, then the pipeline and circulation pump corresponding to this water usage point are started.
[0157] S1604: Temperature sensor for real-time monitoring.
[0158] In the embodiments of this specification, a temperature sensor is installed in the pipe at each water-using end, and the temperature sensor in the pipe at the water-using end that is being heated monitors the temperature value of the pipe in real time.
[0159] S1605: Stop heating.
[0160] In the embodiments described in this specification, when the temperature value in the pipeline reaches the set temperature value, the zero-cold-water system stops supplying hot water to the water-using end, thus stopping the heating process.
[0161] S1606: Continue heating.
[0162] In the embodiments described in this specification, when the temperature value in the pipeline does not reach the set temperature value, the zero-cold-water system continues to supply hot water to the water-using end to continue heating it.
[0163] S1607: Remain in standby mode.
[0164] In the embodiments of this specification, if the predicted water usage probability is less than or equal to the preset water usage probability, for example, 80%, it indicates that there is no water demand at this time, and the zero-cold water system remains in standby mode.
[0165] In this embodiment, a water demand prediction model is constructed based on historical water usage data. The probability of water usage within the next 30 minutes is predicted based on the water demand prediction model. Based on the water usage probability value, it is determined whether there is a water demand at a water-using end within the next 30 minutes. This can accurately predict both the water usage time and the water-using end. Circulating heating is only activated during periods of high water usage probability and in the pipeline to avoid ineffective energy consumption and achieve time-sharing and zoned dynamic heating. When there is a water demand at a water-using end, hot water is supplied to that end for water-using heating, and the temperature value in the pipeline at the water-using end is monitored in real time to avoid ineffective or excessive heating.
[0166] In one exemplary implementation, such as Figure 17 As shown, Figure 17 A schematic flow chart of a single-pipe circulation method for a zero-cooling-water system provided in the embodiments of this specification includes: S1701: Start heating.
[0167] In the embodiments described in this specification, heating is activated when a user's APP schedules water use, the system predicts water demand, or a sensor detects water demand.
[0168] S1702: Close all cold water outlets.
[0169] In the embodiments described in this specification, since it is a single-pipe system without a return pipe, all cold water outlets are closed first to prevent cold water from entering.
[0170] S1703: The circulating pump drives hot water into the cold water pipe.
[0171] In the embodiments described in this specification, the circulation pump in the pipeline pushes the hot water in the water heater into the cold water pipe, at which time the cold water pipe temporarily becomes a return water channel to achieve heating.
[0172] S1704: The cold water circuit will be restored after 3 seconds.
[0173] In the embodiment of this specification, the hot water circulates in the cold water pipe for 3 seconds, and then the solenoid valve reopens the cold water branch.
[0174] S1705: Complete single-tube circulation.
[0175] In the embodiment described in this specification, the whole house hot water pipes are preheated, and hot water is available immediately upon opening.
[0176] In this embodiment, return water heating is achieved using only a single pipe, eliminating the need for a return water pipe, saving installation costs, and eliminating the need to modify pipes for older residences. It also achieves a pollution-proof design, and the water temperature fluctuation during the mixing cold water stage can be controlled within ±2℃.
[0177] In one exemplary implementation, such as Figure 18 As shown, Figure 18 A flowchart of a zero-cooling-water system provided for embodiments of this specification includes: 1801: Initialization phase; In the initialization phase, the pipeline topology is first marked in the APP, a digital twin model is generated, and the mapping relationship between valves, pipelines and water-using terminals is marked.
[0178] 1802: Learning Phase; During the learning phase, water usage data for 1-2 weeks is collected to establish a baseline water usage model, and the baseline water usage model is updated weekly based on changes in user water usage habits to adapt to these changes.
[0179] 1803: Execution Phase; In the execution phase, an LSTM water demand prediction model is first established based on the initial water demand prediction results from the baseline water demand model and the actual water demand. Real-time water demand prediction is then performed based on the LSTM model to achieve time-sharing and zoned control to adapt to the water demand of each water user. During the heating process of the predicted event, it is detected in real time whether there is an immediate trigger event, and the conflict arbitration of water users is performed based on the priority of the water users. Control is performed according to the priority preemption logic. After the pipeline that needs to be heated is determined, a control command is sent to the corresponding solenoid valve through 2.4 GHz to heat the water user that needs to be heated. At the same time, each water user can also transmit the water temperature value and water flow value of each water user through Sub-1 GHz.
[0180] 1804: Energy-saving phase; During the energy-saving phase, when there is no water demand in the zero-cold-water system for an extended period of time, the zero-cold-water system will enter a deep sleep mode and will be awakened when a door lock signal or geofence trigger is detected, and water supply will be restored immediately within 5 seconds after being awakened.
[0181] This manual also provides control devices for zero-cooling-water systems, such as... Figure 19 As shown, the zero-cold-water system includes a water heater and at least two water outlets; the device includes: The current water demand prediction module 1901 is used to obtain the current time corresponding to the zero-cold water system, and perform water demand prediction processing based on the current time to obtain the water demand prediction result and water flow value set for each water user in a preset time period; the preset time period is a period of time starting from the current time and lasting for a first preset duration; the water flow value set includes the water flow value at each moment in the preset time period. The determination module 1902 is used to identify the water demand prediction result that represents the water demand within the preset time period as the first water demand, and to determine the set of water flow values corresponding to the first water demand as the current water flow value set. The current water usage peak determination module 1903 is used to filter the time periods in the current water usage flow value set where the water usage flow value is greater than the preset water usage flow value, and obtain the current water usage peak. The target heating time determination module 1904 is used to determine the target heating time based on the preset time period and the current peak water usage. The activation module 1905 is used to control the hot water in the water heater to start flowing into the first water-using end when the time corresponding to the zero cold water system is detected to be the target heating time.
[0182] In some embodiments, the apparatus further includes: The priority acquisition module is used to acquire the priority of the second water terminal if a water usage command is received from the second water terminal during the process of hot water flowing into the first water terminal; the second water terminal is a water terminal other than the first water terminal among the at least two water terminals. The current priority comparison result determination module is used to compare the priority of the first water-using terminal with the priority of the second water-using terminal to obtain the current priority comparison result; The first time slot allocation module is configured to allocate a first time slot to the second solenoid valve corresponding to the second water-using end and allocate a second time slot to the first solenoid valve if the current priority comparison result indicates that the priority of the first water-using end is lower than the priority of the second water-using end; the time corresponding to the first time slot is less than the time corresponding to the second time slot. The first opening module is used to send a first opening command to the second solenoid valve in the first time slot, so that the second solenoid valve opens based on the first opening command, and the hot water in the water heater flows through the second solenoid valve and then flows into the second water-using end. The first shut-off module is configured to send a first shut-off command to the first solenoid valve in the second time slot, so that the first solenoid valve shuts off based on the first shut-off command.
[0183] In some embodiments, the apparatus further includes: The second time slot allocation module is used to allocate a third time slot to the first solenoid valve and a fourth time slot to the second solenoid valve if the current priority comparison result indicates that the priority of the first water-using end is higher than the priority of the second water-using end; the time corresponding to the third time slot is less than the time corresponding to the fourth time slot. An opening adjustment module is used to send an opening adjustment command to the first solenoid valve in the third time slot, so that the first solenoid valve adjusts its opening to a first opening based on the opening adjustment command. The second opening module is used to send a second opening command to the second solenoid valve in the fourth time slot, so that the second solenoid valve opens at a second opening degree based on the second opening command; the first opening degree is greater than the second opening degree.
[0184] In some embodiments, the current water demand prediction module further includes: The time period determination submodule is used to obtain the current time and determine the preset time period and the target historical time period corresponding to the current time; the target historical time period is a time period that lasts for a second preset duration with the current time as the end time; the second preset duration is longer than the first preset duration. The acquisition submodule is used to acquire the current indoor temperature value corresponding to the zero-cold-water system at the current time and the target historical water consumption data corresponding to the target historical time period; The target predicted water use data determination submodule is used to search for predicted water use data that matches the preset time period in the time period water use data relationship database to obtain the target predicted water use data; the time period water use data relationship database includes the mapping relationship between the preset time period and the preset predicted water use data. The current water usage data determination submodule is used to determine the current water usage data to be predicted based on the preset time period, the current indoor temperature value, the target historical water usage data, and the target predicted water usage data. The water demand prediction submodule is used to input the current water demand data to be predicted into the water demand prediction model for water demand prediction processing, and to obtain the water demand prediction results and water flow value set of each water user in the preset time period.
[0185] In some embodiments, the apparatus further includes: The sample water use data acquisition module is used to acquire sample water use data to be predicted; the sample water use data to be predicted is labeled with a sample water use end label, a sample water demand prediction label corresponding to the sample water use end label, and a sample water flow rate value set label corresponding to the sample water use end label. The sample water demand prediction module is used to perform water demand prediction processing on the sample water demand data to be predicted based on a preset model, and obtain the sample water demand end result of the sample water demand data to be predicted, the sample water demand prediction result corresponding to the sample water demand end result, and the sample water flow rate value set result corresponding to the sample water demand end result. The water demand prediction model determination module is used to train the preset model based on the first difference between the sample water end result and the sample water end label, the second difference between the sample water demand prediction result and the sample water demand prediction label, and the third difference between the sample water flow value set result and the sample water flow value set label, and the preset model after training is used as the water demand prediction model.
[0186] In some embodiments, the enabling module further includes: The activation submodule is used to send a third activation command to the first solenoid valve when the time corresponding to the zero cold water system is detected to be the target heating time; so that the first solenoid valve opens based on the third activation command, and the hot water in the water heater flows through the first solenoid valve and into the first water-using end.
[0187] In some embodiments, the apparatus further includes: The real-time temperature value acquisition module is used to acquire the real-time temperature value of the first water-using end; A water temperature anomaly signal receiving module is used to receive a water temperature anomaly signal sent by the first water user if the real-time temperature value is greater than a preset temperature value. The second shut-off module is used to send a second shut-off command to the first solenoid valve based on the abnormal water temperature signal, so that the first solenoid valve closes based on the second shut-off command.
[0188] In some embodiments, the apparatus further includes: The first water terminal information acquisition module is used to acquire the target water usage time and water terminal identifier corresponding to the first water terminal; The water temperature anomaly log determination module is used to determine the water temperature anomaly log based on the real-time temperature value, the target water usage time, and the water usage terminal identifier. The water temperature anomaly log display module is used to send the water temperature anomaly log to the target terminal so that the target terminal can display the water temperature anomaly log.
[0189] In some embodiments, the apparatus further includes: The real-time sleep duration acquisition module is used to acquire the real-time sleep duration corresponding to the zero-cold-water system if at least two water-using terminals in the zero-cold-water system do not have water demand. The standby module is used to control the zero-cooling-water system to enter standby mode if the real-time sleep duration is greater than or equal to the preset sleep duration. The operation module is used to control the zero-cooling-water system to start running if an unlock signal is received during the standby process of the zero-cooling-water system.
[0190] The apparatus and method embodiments described herein are based on the same inventive concept.
[0191] This specification provides an electronic device including a processor and a memory. The memory stores at least one instruction or at least one program, which is loaded and executed by the processor to implement the control method for a zero-cold-water system as provided in the above method embodiments.
[0192] Embodiments of this application also provide a computer storage medium, which can be disposed in a terminal to store at least one instruction or at least one program related to implementing a control method for a zero-cold-water system in the method embodiments. The at least one instruction or at least one program is loaded and executed by the processor to implement the control method for the zero-cold-water system provided in the above method embodiments.
[0193] Embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the control method for the zero-cold-water system provided in the above-described method embodiments.
[0194] The memory described in the embodiments of this specification can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for the functions, etc.; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.
[0195] The control method embodiments of the zero-cold-water system provided in this specification can be executed on a mobile terminal, computer terminal, server, or similar computing device. Taking running on a server as an example, Figure 20 This is a hardware structure block diagram of a server for a control method of a zero-cold-water system provided in the embodiments of this specification. Figure 20 As shown, the server 2000 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 2010 (CPUs 2010 may include, but are not limited to, microprocessors (MCUs) or programmable logic devices (FPGAs), a memory 2030 for storing data, and one or more storage media 2020 (e.g., one or more mass storage devices) for storing application programs 2023 or data 2022. The memory 2030 and storage media 2020 may be temporary or persistent storage. The program stored in the storage media 2020 may include one or more modules, each module may include a series of instruction operations on the server. Furthermore, the CPU 2010 may be configured to communicate with the storage media 2020 and execute the series of instruction operations in the storage media 2020 on the server 2000. Server 2000 may also include one or more power supplies 2060, one or more wired or wireless network interfaces 2050, one or more input / output interfaces 2040, and / or one or more operating systems 2021, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0196] The input / output interface 2040 can be used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of server 2000. In one example, the input / output interface 2040 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the input / output interface 2040 may be a radio frequency (RF) module used for wireless communication with the Internet.
[0197] Those skilled in the art will understand that Figure 20 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, the server 2000 may also include... Figure 20 The more or fewer components shown, or having the same Figure 20 The different configurations shown.
[0198] As can be seen from the embodiments of the control method and apparatus for the zero-cold-water system provided in this application, this application obtains the current time corresponding to the zero-cold-water system and performs water demand prediction processing based on the current time to obtain the water demand prediction result and water flow value set for each water user within a preset time period; the preset time period is a period lasting for a first preset duration with the current time as the initial time; the water flow value set includes the water flow value at each moment within the preset time period; the water user whose water demand prediction result indicates water demand within the preset time period is taken as the first water user, and the water flow value set corresponding to the first water user is determined as the current water flow value set; the time periods in the current water flow value set where the water flow value is greater than the preset water flow value are filtered to obtain the current water peak; the target heating time is determined based on the preset time period and the current water peak; when the time corresponding to the zero-cold-water system is detected to be the target heating time, the hot water in the water heater is controlled to start flowing into the first water user. By pre-collecting water usage data to establish baseline water usage models and water demand prediction models, it is possible to adapt to user habits. By using multi-dimensional input data to predict water demand, the accuracy of water demand prediction results is improved, which helps to accurately locate water usage periods and water-using terminals, enabling precise time-sharing and zoned heating, and instant heating at water-using terminals, reducing energy consumption and saving energy. By formulating priority preemption strategies for multiple water-using terminals with different priorities, it helps to solve the problem of water usage conflicts among multiple water-using terminals. By using the TSCH protocol to allocate time slots, response time is shortened and signal conflicts are avoided.
[0199] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments of this specification have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0200] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, devices, and storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0201] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer storage medium, such as a read-only memory, a disk, or an optical disk.
[0202] The above description is only a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A control method for a zero-cooling-water system, characterized in that, The zero-cold-water system includes a water heater and at least two water-using terminals; the method includes: Obtain the current time corresponding to the zero-cold-water system, and perform water demand prediction processing based on the current time to obtain the water demand prediction result and water flow value set for each water user within a preset time period; the preset time period is a period lasting for a first preset duration with the current time as the initial time; the water flow value set includes the water flow value at each moment within the preset time period. The water demand prediction results represent the water demand within the preset time period as the first water demand, and the set of water flow values corresponding to the first water demand is determined as the current water flow value set. The current peak water usage period is obtained by filtering the current water usage flow rate set and selecting the time periods in which the water usage flow rate value is greater than the preset water usage flow rate value; The target heating time is determined based on the preset time period and the current peak water usage. When the time corresponding to the zero cold water system is detected to be the target heating time, the hot water in the water heater is controlled to start flowing into the first water-using end.
2. The method according to claim 1, characterized in that, The zero-cold-water system further includes a first solenoid valve corresponding to the first water-using end; after controlling the hot water in the water heater to start flowing into the first water-using end when the time corresponding to the zero-cold-water system is detected to be the target heating time, the method further includes: During the process of hot water flowing into the first water-using terminal, if a water-using instruction is received from the second water-using terminal, the priority corresponding to the second water-using terminal is obtained; the second water-using terminal is the water-using terminal other than the first water-using terminal among the at least two water-using terminals. The priority of the first water-using terminal is compared with the priority of the second water-using terminal to obtain the current priority comparison result; If the current priority comparison result indicates that the priority of the first water-using terminal is lower than the priority of the second water-using terminal, a first time slot is allocated to the second solenoid valve corresponding to the second water-using terminal, and a second time slot is allocated to the first solenoid valve; the time corresponding to the first time slot is less than the time corresponding to the second time slot. In the first time slot, a first opening command is sent to the second solenoid valve so that the second solenoid valve opens based on the first opening command, and the hot water in the water heater flows through the second solenoid valve and then into the second water-using end. In the second time slot, a first shut-off command is sent to the first solenoid valve so that the first solenoid valve shuts off based on the first shut-off command.
3. The method according to claim 2, characterized in that, After comparing the priority of the first water-using terminal with the priority of the second water-using terminal to obtain the current priority comparison result, the method further includes: If the current priority comparison result indicates that the priority of the first water-using terminal is higher than the priority of the second water-using terminal, a third time slot is allocated to the first solenoid valve and a fourth time slot is allocated to the second solenoid valve; the time corresponding to the third time slot is less than the time corresponding to the fourth time slot. In the third time slot, an opening adjustment command is sent to the first solenoid valve so that the first solenoid valve adjusts its opening to a first opening based on the opening adjustment command. In the fourth time slot, a second opening command is sent to the second solenoid valve so that the second solenoid valve opens at a second opening degree based on the second opening command; the first opening degree is greater than the second opening degree.
4. The method according to claim 1, characterized in that, The process of obtaining the current time corresponding to the zero-cold-water system and performing water demand prediction processing based on the current time to obtain the water demand prediction results and water flow rate value set for each water user within a preset time period includes: The current time is obtained, and the preset time period and target historical time period corresponding to the current time are determined; the target historical time period is a time period lasting for a second preset duration with the current time as the end time; the second preset duration is longer than the first preset duration. Obtain the current indoor temperature value corresponding to the zero-cold-water system at the current time, and the target historical water consumption data corresponding to the target historical time period; Search the time period water use data database for predicted water use data that matches the preset time period to obtain the target predicted water use data; the time period water use data database includes the mapping relationship between the preset time period and the preset predicted water use data. Based on the preset time period, the current indoor temperature value, the target historical water consumption data, and the target predicted water consumption data, the current water consumption data to be predicted is determined; The current water demand data to be predicted is input into the water demand prediction model for water demand prediction processing, so as to obtain the water demand prediction results and water flow value set of each water user in the preset time period.
5. The method according to claim 4, characterized in that, The training method for the water demand prediction model includes: Obtain sample water use data to be predicted; the sample water use data to be predicted is labeled with a sample water use end label, a sample water demand prediction label corresponding to the sample water use end label, and a sample water flow rate value set label corresponding to the sample water use end label; Based on a preset model, the water demand prediction processing is performed on the sample water demand data to be predicted to obtain the sample water demand prediction results, the sample water demand prediction results corresponding to the sample water demand prediction results, and the sample water flow rate value set results corresponding to the sample water demand prediction results. Based on the first difference between the sample water consumption end result and the sample water consumption end label, the second difference between the sample water demand prediction result and the sample water demand prediction label, and the third difference between the sample water flow rate value set result and the sample water flow rate value set label, the preset model is trained, and the preset model after training is used as the water demand prediction model.
6. The method according to claim 2, characterized in that, When the time corresponding to the zero-cold-water system is detected to be the target heating time, controlling the hot water in the water heater to start flowing into the first water-using end includes: If the time corresponding to the zero cold water system is detected to be the target heating time, a third opening command is sent to the first solenoid valve; so that the first solenoid valve opens based on the third opening command, and the hot water in the water heater flows through the first solenoid valve and into the first water-using end.
7. The method according to claim 2, characterized in that, After detecting that the time corresponding to the zero-cold-water system is the target heating time, and controlling the hot water in the water heater to start flowing into the first water-using end, the method further includes: Obtain the real-time temperature value of the first water-using end; If the real-time temperature value is greater than the preset temperature value, receive the water temperature abnormality signal sent by the first water user terminal; Based on the abnormal water temperature signal, a second shut-off command is sent to the first solenoid valve, causing the first solenoid valve to close based on the second shut-off command.
8. The method according to claim 7, characterized in that, After sending a second shut-off command to the first solenoid valve based on the abnormal water temperature signal, the method further includes: Obtain the target water usage time and water usage terminal identifier corresponding to the first water terminal; Based on the real-time temperature value, the target water usage time, and the water usage terminal identifier, a water temperature anomaly log is determined; The abnormal water temperature log is sent to the target terminal so that the target terminal can display the abnormal water temperature log.
9. The method according to claim 1, characterized in that, The method further includes: If at least two water-using terminals in the zero-cold-water system have no water demand, obtain the real-time sleep duration corresponding to the zero-cold-water system; If the real-time sleep duration is greater than or equal to the preset sleep duration, the zero-cold-water system is controlled to enter standby mode. If an unlock signal is received during the standby process of the zero-cooling-water system, the zero-cooling-water system will be controlled to start running.
10. A control device for a zero-cold-water system, characterized in that, The zero-cold-water system includes a water heater and at least two water outlets; the device includes: The current water demand prediction module is used to obtain the current time corresponding to the zero-cold water system, and perform water demand prediction processing based on the current time to obtain the water demand prediction result and water flow value set for each water user within a preset time period; the preset time period is a period of time starting from the current time and lasting for a first preset duration; the water flow value set includes the water flow value at each moment within the preset time period. The determination module is used to identify the water demand prediction result that represents the water demand within the preset time period as the first water demand, and to determine the set of water flow values corresponding to the first water demand as the current water flow value set. The current peak water usage determination module is used to filter the time periods in the current water usage flow value set where the water usage flow value is greater than a preset water usage flow value, and obtain the current peak water usage. The target heating time determination module is used to determine the target heating time based on the preset time period and the current peak water usage. The activation module is used to control the hot water in the water heater to start flowing into the first water-using end when the time corresponding to the zero cold water system is detected to be the target heating time.