Air conditioner control method, controller, air conditioner and storage medium

Through the control method of the air conditioner, the temperature and ambient temperature are set according to the user's history, and the target temperature of the air conditioner during sleep is adjusted, which solves the problem of users waking up cold or waking up hot during sleep, achieving the effect of comfortable sleep temperature control .

CN119436494APending Publication Date: 2025-02-14FOSHAN SHUNDE MIDEA ELECTRONICS TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310958287.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the sleeping scenario of the air conditioner in the cooling mode, due to different factors such as the metabolism, hot and cold preferences, external ambient temperature, users cannot adjust the temperature, resulting in some users waking up cold and waking up hot.

Method used

A control method for air conditioners is proposed. By receiving sleep function turn-on commands, enter the first and second stages, and adjust the target temperature of the air conditioner according to the history, the compensation temperature and outdoor ambient temperature, so as to achieve sleep comfort 控温的目标。

Benefits of technology

通过记录用户睡眠温度控制习惯,修正舒适温度,减少冷醒或热醒的情况,实现睡眠舒适控温的目标。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119436494A_ABST
    Figure CN119436494A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an air conditioner control method, a controller, an air conditioner and a storage medium, and the method comprises the steps that a sleep function starting instruction is received, and a first stage and a second stage are sequentially entered in response; the historical set temperature, the first compensation temperature, the second compensation temperature and the outdoor environment temperature are obtained, and the historical set temperature is the set temperature adjusted by the user in the second historical stage; in the first stage, the first target temperature of the first stage is determined according to the historical set temperature and the first compensation temperature; and in the second stage, the second target temperature of the second stage is determined according to the historical set temperature and the second compensation temperature, and the second compensation temperature is updated according to the outdoor environment temperature so as to update the second target temperature. The temperature of the air conditioner is continuously corrected through records of sleep temperature control habits of the user and the outdoor environment temperature, cold waking or hot waking of the user is reduced, and the purposes of comfortable sleep and temperature control are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of air conditioners, and in particular to a control method, a controller, an air conditioner and a storage medium for an air conditioner. Background Art

[0002] In the related art, when the air conditioner is in cooling mode during sleep, due to differences in metabolism, hot and cold preferences, external ambient temperature and other factors among different users, and the inability of users to adjust the temperature, some users still wake up from cold or heat. There are currently two solutions to this problem: First, by adding infrared sensors to detect changes in room and human body temperature, and adjusting the operating temperature of the air conditioner during sleep, but this solution requires increased hardware costs and is not universal. Second, control the air conditioner to run according to a predetermined sleep curve or the user manually sets the sleep curve, but this solution cannot cover all application scenarios, and the sleep curve setting is relatively complex and cannot be extended to all users. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a control method, a controller, an air conditioner and a storage medium for an air conditioner, aiming to achieve the goal of comfortable temperature control during sleep and prevent the user from waking up from cold or heat during sleep.

[0004] In a first aspect, an embodiment of the present application provides a method for controlling an air conditioner, comprising:

[0005] Receive a sleep function start instruction, and respond to enter the first stage and the second stage in sequence;

[0006] Acquire a historical set temperature, a first compensation temperature, a second compensation temperature and an outdoor ambient temperature, wherein the historical set temperature is a set temperature adjusted by the user in the second stage of history;

[0007] In the first stage, determining a first target temperature of the first stage according to the historical set temperature and the first compensation temperature;

[0008] In the second stage, a second target temperature of the second stage is determined according to the historical set temperature and the second compensation temperature, and the second compensation temperature is updated according to the outdoor ambient temperature to update the second target temperature.

[0009] According to some embodiments of the present application, after receiving the sleep function activation instruction, the control method further includes:

[0010] The fan speed of the air conditioner is adjusted to a sleep target speed according to the sleep function start instruction, wherein the sleep target speed is less than a maximum speed in a non-sleep function scenario.

[0011] According to some embodiments of the present application, the control method further includes one of the following:

[0012] In the first stage, the blowing angle of the air guide plate of the air conditioner is adjusted to a preset anti-direct blowing angle;

[0013] In the first stage, the historical setting angle adjusted by the user in the historical second stage is obtained, and the blowing angle of the air guide plate of the air conditioner is adjusted to the historical setting angle.

[0014] According to some embodiments of the present application, determining the first target temperature of the first stage according to the historical set temperature and the first compensation temperature includes:

[0015] Inputting the historical set temperature and the first compensation temperature into a first calculation model to obtain a first target temperature of the first stage, wherein the first compensation temperature is a positive number;

[0016] The first calculation model includes a first input variable and a second input variable, the first input variable is used to be assigned the historical set temperature, the second input variable is used to be assigned the first compensation temperature, and the difference between the first input variable and the second input variable is the first target temperature.

[0017] According to some embodiments of the present application, after determining the first target temperature of the first stage according to the historical set temperature and the first compensation temperature, the control method further includes one of the following:

[0018] Acquire the indoor light intensity and the temperature variation range of the indoor ambient temperature within a first preset time period, and when the indoor light intensity is less than or equal to the preset light intensity and the temperature variation range is less than or equal to the first preset temperature, control the air conditioner to switch to the second stage;

[0019] The operating time of the air conditioner in the first stage and the temperature change amplitude of the indoor ambient temperature within a first preset time period are obtained. When the operating time is greater than or equal to the preset time and the temperature change amplitude is less than or equal to the first preset temperature, the air conditioner is controlled to switch to the second stage.

[0020] According to some embodiments of the present application, determining the second target temperature of the second stage according to the historical set temperature and the second compensation temperature includes:

[0021] Inputting the historical set temperature and the second compensation temperature into a second calculation model to obtain a second target temperature of the second stage;

[0022] The second calculation model includes a third input variable and a fourth input variable, the third input variable is used to be assigned the historical set temperature, the fourth input variable is used to be assigned the second compensation temperature, and the sum of the third input variable and the fourth input variable is the second target temperature.

[0023] According to some embodiments of the present application, updating the second compensation temperature according to the outdoor ambient temperature includes:

[0024] Obtaining the outdoor ambient temperature corresponding to each time period, and determining the outdoor ambient temperature change trend based on all the outdoor ambient temperatures;

[0025] The second compensation temperature is updated according to the outdoor environment temperature change trend and the second preset temperature.

[0026] According to some embodiments of the present application, the control method further includes:

[0027] In a target time period, the sum of the second compensation temperature and the second preset temperature is calculated at every second preset time interval, and the value of the second compensation temperature is updated to the sum, wherein the target time period is not the last time period.

[0028] According to some embodiments of the present application, updating the second compensation temperature according to the outdoor ambient temperature change trend and the second preset temperature includes:

[0029] Obtain the historical second compensated temperature of the previous time period;

[0030] Inputting the historical second compensated temperature, the second preset temperature and the change trend of the outdoor ambient temperature into a third calculation model to obtain an updated second compensated temperature;

[0031] Among them, the third calculation model includes a fifth input variable and a correction variable, the difference between the fifth input variable and the correction variable is the updated second compensated temperature, the fifth input variable is used to be assigned the historical second compensated temperature, the correction variable is the ratio of the product of the sixth input variable and the seventh input variable to the eighth input variable, the sixth input variable is used to be assigned the second preset temperature, the seventh input variable is used to be assigned the outdoor ambient temperature change trend, and the eighth input variable is used to be assigned the absolute value of the outdoor ambient temperature change trend.

[0032] According to some embodiments of the present application, after determining the second target temperature of the second stage according to the historical set temperature and the second compensation temperature, the control method further includes:

[0033] Obtain the current set temperature of the user in the second stage;

[0034] determining a temperature difference according to the current set temperature and the second target temperature;

[0035] The second target temperature is adjusted according to the temperature difference, the historical set temperature, and the second compensation temperature.

[0036] According to some embodiments of the present application, adjusting the second target temperature according to the temperature difference, the historical set temperature and the second compensation temperature includes one of the following:

[0037] Calculating a sum of the historical set temperature, the second compensation temperature, and the temperature difference, and using the sum as the updated second target temperature;

[0038] The difference between the sum of the historical set temperature and the second compensation temperature and the temperature difference is calculated, and the difference is used as the updated second target temperature.

[0039] According to some embodiments of the present application, after receiving the sleep function activation instruction, the control method further includes:

[0040] Obtaining the operating time of the air conditioner in the sleep mode;

[0041] When the operating time is greater than or equal to the preset sleep time, the air conditioner is controlled to exit the sleep mode.

[0042] In a second aspect, an embodiment of the present application provides a controller comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the air conditioner control method as described in the first aspect above when running the computer program.

[0043] In a third aspect, an embodiment of the present application provides an air conditioner, comprising a controller as described in the second aspect above.

[0044] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the air conditioner control method as described in the first aspect above.

[0045] According to the technical solution of the embodiment of the present application, at least the following beneficial effects are achieved: first, the embodiment of the present application receives the sleep function activation instruction, and responds to enter the first stage and the second stage in sequence; then, the embodiment of the present application obtains the historical set temperature, the first compensation temperature, the second compensation temperature and the outdoor ambient temperature, wherein the historical set temperature is the set temperature adjusted by the user in the second stage of history; then, in the first stage, the first target temperature of the first stage is determined according to the historical set temperature and the first compensation temperature; in the second stage, the second target temperature of the second stage is determined according to the historical set temperature and the second compensation temperature, and the second compensation temperature is updated according to the outdoor ambient temperature to update the second target temperature. Since the embodiment of the present application can correct the first target temperature of the first stage and the second target temperature of the second stage according to the set temperature adjusted by the user in the second stage of history, that is, the user's comfortable temperature is continuously corrected by recording the user's sleep temperature control habits, thereby achieving the goal of comfortable sleep temperature control; in addition, the embodiment of the present application will also consider the influence of the outdoor ambient temperature factor to continuously correct the second target temperature of the second stage, thereby reducing the situation of the user waking up due to cold or heat, and further achieving the goal of comfortable sleep temperature control.

[0046] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0048] Figure 1 is a flow chart of a method for controlling an air conditioner provided by an embodiment of the present application;

[0049] Figure 2 is a flow chart of a method for controlling an air conditioner provided by another embodiment of the present application;

[0050] Figure 3 is a flow chart of a method for controlling an air conditioner provided by another embodiment of the present application;

[0051] Figure 4 is a flow chart of a method for controlling an air conditioner provided by another embodiment of the present application;

[0052] Figure 5 About Figure 1 Schematic diagram of the process of the sub-steps of step S103;

[0053] Figure 6 is a flow chart of a method for controlling an air conditioner provided by another embodiment of the present application;

[0054] Figure 7 is a flow chart of a method for controlling an air conditioner provided by another embodiment of the present application;

[0055] Figure 8 is a flow chart of a method for controlling an air conditioner provided by another embodiment of the present application;

[0056] Fig. 9 yes Figure 1 A schematic flow chart of another sub-step of step S104;

[0057] Fig.10 yes Figure 1 A schematic flow chart of another sub-step of step S104;

[0058] Fig.11 yes Figure 1 A schematic flow chart of another sub-step of step S104;

[0059] Fig.12 yes Figure 1 Schematic diagram of the process of the sub-steps of step S104;

[0060] Fig.13 is a flow chart of a method for controlling an air conditioner provided by another embodiment of the present application;

[0061] Fig.14 is a flow chart of a method for controlling an air conditioner provided by another embodiment of the present application;

[0062] Fig.15 is a flow chart of a method for controlling an air conditioner provided by another embodiment of the present application;

[0063] Fig.16 is an overall flow chart of a method for controlling an air conditioner provided in one embodiment of the present application;

[0064] Fig.17 It is a schematic diagram of a controller for executing a method for controlling an air conditioner provided in one embodiment of the present application. DETAILED DESCRIPTION

[0065] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0066] In the description of the present application, it should be understood that descriptions involving orientation, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0067] In the description of this application, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0068] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.

[0069] In the related art, when the air conditioner is in cooling mode during sleep, due to differences in metabolism, hot and cold preferences, external ambient temperature and other factors among different users, and the inability of users to adjust the temperature, some users still wake up from cold or heat. There are currently two solutions to this problem: First, by adding infrared sensors to detect changes in room and human body temperature, and adjusting the operating temperature of the air conditioner during sleep, but this solution requires increased hardware costs and is not universal. Second, control the air conditioner to run according to a predetermined sleep curve or the user manually sets the sleep curve, but this solution cannot cover all application scenarios, and the sleep curve setting is relatively complex and cannot be extended to all users.

[0070] Based on the above situation, the embodiments of the present application propose a control method, controller, fan, air conditioner and medium for an air conditioner, aiming to achieve the goal of comfortable temperature control during sleep and prevent the user from waking up from cold or heat during sleep.

[0071] The following further describes various embodiments of the air conditioner control method of the present application in conjunction with the accompanying drawings.

[0072] like Figure 1 As shown, Figure 1 1 is a flow chart of a control method for an air conditioner provided by an embodiment of the present application. The control method for an air conditioner may include but is not limited to the following steps.

[0073] Step S101, receiving a sleep function activation instruction, and responding to sequentially entering the first stage and the second stage.

[0074] Step S102, obtaining the historical set temperature, the first compensation temperature, the second compensation temperature and the outdoor ambient temperature.

[0075] Step S103, in the first stage, determining the first target temperature of the first stage according to the historical set temperature and the first compensation temperature.

[0076] Step S104, in the second stage, determining the second target temperature of the second stage according to the historical set temperature and the second compensation temperature, and updating the second compensation temperature according to the outdoor ambient temperature to update the second target temperature.

[0077] It should be understood that the source of the sleep function activation instruction here is diverse, and may be the following embodiments or other embodiments. Those skilled in the art may determine it according to the actual user group situation, and the embodiments of the present application are not limited to this.

[0078] In one embodiment, the sleep function activation instruction is issued by a remote controller of the air conditioner. The remote controller of the air conditioner is provided with a sleep function button. The user issues the sleep function activation instruction by pressing the sleep function button, so that the air conditioner enters the sleep mode.

[0079] In one embodiment, the sleep function activation instruction is issued by a terminal that is in communication connection with the air conditioner. The terminal issues the sleep function activation instruction through an installed APP to put the air conditioner into sleep mode.

[0080] It should be understood that the historical set temperature is different in different stages. In the first stage, the historical set temperature is the last set temperature of the user in the second stage of history, including but not limited to the second target temperature after the air conditioner adjusts itself and the temperature set by the user; in the second stage, the historical set temperature is determined according to whether the user adjusts the set temperature in the second stage of history. If adjusted, the historical set temperature is the last set temperature of the user in the second stage of history. If not adjusted, the historical set temperature is the first target temperature after the end of the first stage of this sleep mode.

[0081] In one embodiment, for the first stage, the historical set temperature when the sleep function ended last time is obtained, and it is determined whether the user has adjusted the temperature during the last use of the sleep function. If so, the first compensation temperature here is a predetermined value, and the first compensation temperature is increased or decreased according to the historical set temperature. If not, the first compensation temperature here is 0, and the historical set temperature is used as the first target temperature.

[0082] It should be understood that the triggering conditions for the air conditioner to enter the second stage from the first stage are various. For example, it may enter the second stage after running in the first stage for a certain period of time; or it may detect indoor parameters such as temperature and humidity, and determine whether to enter the second stage based on the indoor parameters. Those skilled in the art may determine this based on actual conditions, and the embodiments of the present application are not limited to this.

[0083] It should be understood that the second compensation temperature here is diverse. For example, the second compensation temperature is a preset value; for example, the second compensation temperature is determined according to the first compensation temperature, etc. Those skilled in the art can determine it according to actual conditions, and the embodiments of the present application are not limited to this.

[0084] The following is a specific example of the application of steps S101 to S104.

[0085] In one embodiment, the air conditioner was last operated with the sleep function turned on. The air conditioner receives a sleep function turn-on instruction during this operation, responds to the instruction and enters the first stage. In the first stage, the air conditioner obtains the historical set temperature of the air conditioner remote control, and detects whether the user has adjusted the temperature in the second stage when the sleep function was last operated. If not, the first compensation temperature is set to 0, and the historical set temperature is used as the first target temperature. If so, the first compensation temperature is set to a preset value, and the temperature obtained by reducing the historical set temperature by the first compensation temperature is used as the first target temperature.

[0086] The conditions for entering the second stage are triggered, and the air conditioner enters the second stage. The second target temperature is first obtained based on the historical set temperature and the second compensation temperature. The air conditioner then obtains the outdoor ambient temperature and continuously updates the preset second compensation temperature according to the outdoor ambient temperature, so that the second target temperature is continuously updated with the outdoor environment until the air conditioner is turned off or the air conditioner exits the sleep function.

[0087] In one embodiment, if the user did not adjust the temperature when using the sleep function last time, it means that the temperature regulated by the sleep function is a temperature that is conducive to sleep for the user, so the temperature displayed by the air conditioner remote control can be used as a reference for adjustment to better meet the user's sleeping environment requirements. After the air conditioner ends the first stage and before entering the second stage, the historical set temperature is updated to a value that is the same as the first target temperature, and the value of the first target temperature is used as the adjustment basis for the second stage.

[0088] like Figure 2 As shown, Figure 2 FIG. 1 is a flow chart of a control method for an air conditioner provided by another embodiment of the present application. In one embodiment, after receiving a sleep function activation instruction, the control method further includes but is not limited to the following steps.

[0089] Step S201, adjusting the fan speed of the air conditioner to the sleep target speed according to the sleep function start instruction.

[0090] It should be understood that the sleep target speed here is less than the maximum speed in the non-sleep function scenario, and the sleep target speed here can be obtained in various ways.

[0091] In one embodiment, the specific value of the sleep target speed is determined based on a comparison table of historical set temperatures and a preset temperature and speed comparison table.

[0092] In one embodiment, the sleep target speed is a specific preset value, and when the sleep function is turned on, the fan speed will be adjusted to the specific preset value.

[0093] It should be understood that the specific time for adjusting the fan speed here is diverse. For example, considering the deep sleep of the user, the fan speed is adjusted only in the first stage. In the second stage, the user enters a deep sleep state and the fan speed has less interference with the deep sleep. For another example, considering users with a lighter sleep level, the fan speed is adjusted in both the first and second stages to reduce interference with users with a lighter sleep level, etc. Technical personnel in this field can determine the specific time to adjust the fan speed according to actual conditions, and the embodiments of the present application are not limited to this.

[0094] The embodiment of the present application adjusts the fan speed to reduce the noise generated by the fan when blowing out cold air, thereby reducing the sound interference to the user's sleep.

[0095] like Figure 3 and Figure 4 As shown, Figure 3 and Figure 4 They are respectively flow charts of a control method for an air conditioner provided by another embodiment of the present application. In one embodiment, after step S101, the control method further includes but is not limited to a step of adjusting the angle of an air guide plate of the air conditioner.

[0096] like Figure 3 In one example, after step S101, the method includes:

[0097] Step S301, in the first stage, the blowing angle of the air guide plate of the air conditioner is adjusted to a preset anti-direct blowing angle.

[0098] It should be understood that the specific value of the preset anti-direct blowing angle here is various, and can be the following embodiments or other embodiments. Those skilled in the art can determine it according to actual conditions, and the embodiments of the present application are not limited to this.

[0099] In one embodiment, the preset anti-direct blowing angle is a predetermined value, and when entering the first stage, the blowing angle is adjusted to the predetermined value.

[0100] In one embodiment, the preset anti-direct blowing angle is determined according to the position of the user when sleeping. The position information of the user when sleeping is obtained by setting certain hardware on the air conditioner, and the preset anti-direct blowing angle is determined according to the position information, and the blowing angle is adjusted.

[0101] like Figure 4 In one embodiment, after step S101, the method includes:

[0102] Step S401, in the first stage, obtain the historical setting angle adjusted by the user in the second stage of history, and adjust the blowing angle of the air guide plate of the air conditioner to the historical setting angle.

[0103] It should be understood that the second stage of history here refers to the second stage entered when the sleep function was turned on the last time the air conditioner was turned on, and the historical setting angle here refers to the blowing angle of the air guide plate after the second stage of the air conditioner ended last time.

[0104] Since the user adjusted the angle of the blowing plate in the second stage of history, it proves that the sleep function of the air conditioner that was turned on last time affected the user's sleep. The user can only fall asleep when he adjusts the angle of the blowing plate. Therefore, the historical setting angle matches the user's sleeping habits. By adjusting the blowing angle of the air guide plate to the historical setting angle, the interference of the sleep function on the user's normal sleep is reduced.

[0105] The embodiments of the present application adjust the blowing angle to prevent cold wind from blowing directly on the user, thereby reducing the possibility of the user waking up from the cold, improving the user's sleep quality, and reducing the possibility of the user catching a cold or other illness due to being directly blown by cold wind.

[0106] like Figure 5 As shown, Figure 5 About Figure 1 Schematic diagram of the flow of sub-steps of step S103. In one embodiment, step S103 includes but is not limited to the following sub-steps.

[0107] Step S501, inputting the historical set temperature and the first compensation temperature into the first calculation model to obtain the first target temperature of the first stage.

[0108] It should be understood that the first compensation temperature here is a positive number, and the first calculation model here includes a first input variable and a second input variable. The first input variable is assigned through the historical set temperature, and the second input variable is copied through the first compensation temperature. The difference between the two variables, that is, the difference between the historical set temperature and the first compensation temperature, is determined as the first target temperature.

[0109] In one embodiment, the first calculation model in step S501 may be the following formula.

[0110] T sc1 =T1-T2

[0111] Among them, T sc1 represents the first target temperature, T1 represents the first input variable, and T2 represents the second input variable. The historical set temperature and the first compensation temperature are assigned to the corresponding variables, and the first calculation model is specifically embodied in the following formula.

[0112] T sc1 =T s _S-Temp_D

[0113] Among them, T s _S represents the historical set temperature, Temp_D represents the first compensation temperature, and the units of the three are all degrees Celsius (℃).

[0114] For the human body, when the temperature is lower, the metabolism inside the body slows down, which leads to a slowdown in the internal circulation of the body. The slowdown in internal circulation will lead to a slowdown in blood circulation and insufficient oxygen supply to the brain, thus promoting sleep. The historical set temperature is the most suitable temperature for the user in the second stage of the air conditioner. At this time, due to the appropriate temperature and sufficient oxygen supply to the brain, the user will not fall asleep quickly. Therefore, it is necessary to lower the historical set temperature to help the user sleep.

[0115] like Figure 6 and 7 As shown, Figure 6 and Figure 7 They are respectively flow charts of a control method for an air conditioner provided by another embodiment of the present application. In one embodiment, after step S103, the control method includes but is not limited to the following steps.

[0116] like Figure 6 In one embodiment, after step S103, the method includes:

[0117] Step S601, obtain the indoor light intensity and the temperature change amplitude of the indoor ambient temperature within a first preset time period, when the indoor light intensity is less than or equal to the preset light intensity and the temperature change amplitude is less than or equal to the first preset temperature, control the air conditioner to switch to the second stage.

[0118] It should be understood that the temperature change amplitude here is obtained by the temperature of each time unit within the first preset time period, which can be obtained through but not limited to the following embodiments. Those skilled in the art can determine the specific method of obtaining the temperature change amplitude according to actual conditions, and the embodiments of the present application are not limited to this.

[0119] In one embodiment, the temperatures corresponding to the first time unit and the last time unit within the first preset time period are determined as the temperature variation amplitude.

[0120] In one embodiment, the temperatures acquired for all time units within the first preset time period are determined based on the highest temperature and the lowest temperature.

[0121] It should be understood that "obtaining the indoor light intensity and the temperature change amplitude of the indoor ambient temperature within the first preset time period" in this embodiment is a real-time process. For example, the first preset time period is 15 minutes, the time unit is 1 minute, and the indoor light intensity and temperature are obtained every minute. At the 15th minute, the temperature change amplitude from the 1st to the 15th minute is obtained, and whether to switch to the second stage is determined based on the temperature change amplitude from the 1st to the 15th minute and the indoor light intensity at the 15th minute; if not switched to the second stage, the temperature change amplitude from the 2nd to the 16th minute is obtained, and whether to switch to the second stage is determined based on the change amplitude from the 2nd to the 16th minute and the indoor light intensity at the 16th minute, and so on, until entering the second stage.

[0122] like Figure 7 In one embodiment, after step S103, the method includes:

[0123] Step S701, obtain the operating time of the air conditioner in the first stage and the temperature change range of the indoor ambient temperature within a first preset time period. When the operating time is greater than or equal to the preset time and the temperature change range is less than or equal to the first preset temperature, control the air conditioner to switch to the second stage.

[0124] It should be understood that the temperature variation amplitude is obtained in the same manner as that in step S601, and will not be described in detail here.

[0125] Each user has different sleeping habits. Some users have the habit of sleeping with the lights on, which makes step S601 unable to be executed, causing the air conditioner to be unable to enter the second stage, and the temperature cannot be adjusted according to the outdoor ambient temperature. In order to solve the problem of step S601 not matching the user's sleeping habits with the lights on, it is necessary to detect the operating time of the first stage to assist the air conditioner to enter the second stage.

[0126] In addition, if Figure 8 As shown, Figure 8 is a flow chart of a method for controlling an air conditioner provided by another embodiment of the present application. In some embodiments, step S104 includes but is not limited to the following sub-steps.

[0127] Step S801, inputting the historical set temperature and the second compensation temperature into the second calculation model to obtain the second target temperature of the second stage.

[0128] It should be understood that the second calculation model here includes a third input variable and a fourth input variable. The third input variable is assigned by the historical set temperature, and the fourth input variable is assigned by the second compensation temperature. The sum of the third input variable and the fourth input variable, that is, the sum of the historical set temperature and the second compensation temperature, is determined as the second target temperature.

[0129] In one embodiment, the second calculation model in step S801 may be the following formula.

[0130] T sc2 =T3+T4

[0131] Among them, T sc2 represents the first target temperature, T3 represents the third input variable, and T4 represents the fourth input variable. The historical set temperature and the second compensation temperature are assigned to the corresponding variables, and the second calculation model is specifically embodied in the following formula.

[0132] T sc2 =T S _S+Sleep_CPTS

[0133] Among them, T s _S represents the historical set temperature, Sleep_CPTS represents the second compensation temperature, and the units of the three are all degrees Celsius (℃).

[0134] It should be understood that the second compensation temperature is diverse and can be a positive value, 0, or a negative value. It is determined according to a preset specific value or the outdoor ambient temperature. When the second compensation temperature is a negative value, the air conditioner is controlled to cool down. When the second compensation temperature is a positive value, the air conditioner is controlled to heat up.

[0135] It should be understood that there are various specific ways to obtain the second compensation temperature. For example, the second compensation temperature is a specific set value; another example is dynamically updated according to temperature or humidity, etc. Technical personnel in this field can determine the specific way to obtain the second compensation temperature according to actual needs, and the embodiments of the present application are not limited to this.

[0136] For the human body, as sleep progresses, the metabolism in the human body will gradually decrease, causing the human body to generate heat slowly, resulting in a lower body temperature. If the temperature of the air conditioner is maintained at the first target temperature for cooling, as the outdoor temperature drops sharply at night, the heat exchange effect of the air conditioner will be improved, so that even if the air conditioner is cooled at the set first target temperature, the actual cooling effect of the air conditioner at night will be better than the cooling effect that the first target temperature should have, making the room colder. At this time, due to the functional reaction of the human body, the user will be awakened by the cold. Therefore, it is necessary to control the cooling effect of the air conditioner according to the outdoor ambient temperature, so that the indoor temperature is kept at a constant state or a state with a small temperature difference as much as possible to ensure that the user is not awakened by the cold. For the above-mentioned second calculation model, the practical significance of the second calculation model is to increase or decrease the actual working temperature of the air conditioner according to the outdoor ambient temperature to maintain the same level of cooling effect.

[0137] like Fig. 9 As shown, Fig. 9 yes Figure 1 Schematic diagram of another sub-step of step S104 in FIG. 1 . In one embodiment, step S104 includes but is not limited to the following sub-steps.

[0138] Step S901, obtaining the outdoor ambient temperature corresponding to each time period, and determining the outdoor ambient temperature change trend according to all the outdoor ambient temperatures.

[0139] Step S902: updating the second compensation temperature according to the outdoor ambient temperature change trend and the second preset temperature.

[0140] It should be understood that, for steps S901 and S902, this embodiment is configured to perform an outdoor ambient temperature change trend calculation once after multiple time periods, perform an outdoor ambient temperature change trend calculation in the last time period of the multiple time periods, and update the second compensation temperature according to the trend.

[0141] According to practical application embodiments of the present application, step S901 may include but is not limited to the following embodiments.

[0142] In one embodiment, the outdoor ambient temperature corresponding to the last time unit in each time week is obtained, and after several time periods, a trend change calculation is performed based on the outdoor ambient temperatures corresponding to all time periods to obtain the outdoor ambient temperature change trend.

[0143] In one embodiment, in each time period, the outdoor ambient temperature corresponding to each time unit is recorded, and the lowest outdoor ambient temperature is used as the ambient temperature in the time period. After several time periods, the trend change calculation is performed based on the lowest outdoor ambient temperature in each time period to obtain the outdoor ambient temperature change trend.

[0144] It should be understood that the specific implementation methods of step S902 are diverse. For example, the second preset temperature is weighted according to the changing trend of the outdoor ambient temperature, and the weighted second preset temperature is used as the second compensation temperature; another example is weighting the second preset temperature according to the changing trend of the outdoor ambient temperature, performing a sum or difference operation on the weighted second preset temperature, and the obtained temperature is used as the second compensation temperature, etc. Those skilled in the art can determine the specific implementation method of step S902 according to actual needs, and the embodiments of the present application are not limited to this.

[0145] like Fig.10 As shown, Fig.10 yes Figure 1 Schematic diagram of another sub-step of step S104 in FIG. 1 . In one embodiment, step S104 includes but is not limited to the following sub-steps.

[0146] Step S1001, within a target time period, calculating the sum of the second compensation temperature and the second preset temperature at every second preset time interval, and updating the value of the second compensation temperature to the sum.

[0147] It should be understood that the target time period here is not the last time period. Based on the embodiment of step S901, among the multiple time periods that have passed, except for the last time period, each other time period is the target time period.

[0148] In one embodiment, step S1001 can be specifically implemented by the following formula.

[0149] Sleep_CPTS=Sleep_CPTS+T L

[0150] Among them, Sleep_CPTS on the left side of the equal sign represents the second compensation temperature after the update, and Sleep_CPTS on the right side of the equal sign represents the second compensation temperature before the update. L Indicates the second preset temperature. The units of the three are all in Celsius (℃).

[0151] This embodiment updates the second target temperature by updating the second compensation temperature, so that the second target temperature can be adaptively adjusted according to time, so that the second target temperature can more effectively fit the human body metabolism status of the user during sleep.

[0152] like Fig.11 As shown, Fig.11 yes Figure 1 Schematic diagram of another sub-step of step S104 in FIG. 1 . In one embodiment, step S104 includes but is not limited to the following sub-steps.

[0153] Step S1101, obtaining the historical second compensated temperature of the previous time period.

[0154] Step S1102: input the historical second compensation temperature, the second preset temperature and the change trend of the outdoor ambient temperature into a third calculation model to obtain an updated second compensation temperature.

[0155] It should be understood that the previous period here refers to the last target time period before calculating the outdoor ambient temperature change trend.

[0156] It should be understood that the historical second compensated temperature here refers to the second compensated temperature updated in the last target cycle.

[0157] It should be understood that the third calculation model here includes a fifth input variable and a correction variable. The fifth input variable is assigned by the historical second compensation temperature, the correction variable is obtained by the ratio of the product of the sixth input variable and the seventh input variable to the eighth input variable, the sixth input variable is assigned by the second preset temperature, the seventh input variable is assigned by the trend of change of the outdoor ambient temperature, the eighth input variable is assigned by the absolute value of the trend of change of the outdoor ambient object concentration, and the difference between the fifth input variable and the correction variable is the updated second compensation temperature.

[0158] In one embodiment, step S1102 can be specifically implemented by the following formula.

[0159] Sleep_CPTS=T4–T f

[0160]

[0161] In this formula, Sleep_CPTS represents the updated second compensation temperature, T5 represents the fifth input variable, and T f represents the correction variable, T6 represents the sixth input variable, T7 represents the seventh input variable, and T8 represents the eighth input variable. The historical second compensation temperature, the second preset temperature, and the outdoor ambient temperature change trend are assigned to the corresponding variables, and the second calculation model is specifically embodied in the following formula.

[0162]

[0163] Among them, Sleep_CPTS_bak represents the historical second compensation temperature, Temp_L represents the second preset temperature, ΔT r Indicates the changing trend of outdoor ambient temperature.

[0164] It should be understood that the outdoor ambient temperature change trend here is recalculated during each calculation process. The previously calculated outdoor ambient temperature change trend has no relevance to the current outdoor ambient temperature change trend calculation and will not be added to the current calculation as a historical outdoor ambient temperature change trend.

[0165] like Fig.12 As shown, Fig.12 yes Figure 1 In one embodiment, after determining the second target temperature of the second stage according to the historical set temperature and the second compensation temperature, step S105 includes but is not limited to the following sub-steps.

[0166] Step S1201, obtaining the current set temperature of the user in the second stage.

[0167] Step S1202, determining a temperature difference according to the current set temperature and the second target temperature.

[0168] Step S1203, adjusting the second target temperature according to the temperature difference, the historical set temperature and the second compensation temperature.

[0169] In the second stage, when the user is awakened by cold or heat and adjusts the air conditioner temperature, it means that the current second target temperature is not suitable for the user's sleeping environment requirements or the user's current metabolic condition. The second target temperature calculated based on some data is wrong. The calculation needs to be stopped and the temperature adjusted by the user should be used as the basis for adjustment to match the user's current sleeping environment requirements.

[0170] In one embodiment, if the user changes the temperature during the cycle of calculating the outdoor ambient temperature change trend and obtains the current set temperature, a second target temperature is calculated according to steps S1101 to S1102, and the temperature difference is determined based on the current set temperature and the most recently obtained second target temperature, and the temperature difference is added when the second target temperature is adjusted next time.

[0171] In one embodiment, if the user changes the temperature during the target cycle, a second target temperature is calculated according to step S1001, a temperature difference is determined according to the current set temperature and the most recently obtained second target temperature, and the temperature difference is added when the second target temperature is adjusted next time.

[0172] In one embodiment, if the user changes the temperature in any time period, the current time period is exited and a new cycle of adjusting the second target temperature according to the change trend of the outdoor ambient temperature is started.

[0173] This embodiment improves the accuracy of the temperature control of the air conditioner in the second stage by taking the temperature adjusted by the user as the basis for adjustment, improves the effect of temperature regulation, and reduces the situation of users waking up due to cold or heat in subsequent operation.

[0174] like Fig.13 and Fig.14 As shown, Fig.13 and Fig.14 They are respectively flow charts of a method for controlling an air conditioner provided by another embodiment of the present application. In one embodiment, step S1203 includes but is not limited to the following sub-steps.

[0175] like Fig.13 , in one embodiment, comprising:

[0176] Step S1301, calculating the sum of the historical set temperature, the second compensation temperature and the temperature difference, and taking the sum as the updated second target temperature.

[0177] In one embodiment, step S1301 can be implemented by the following formula.

[0178] T sc2 =T s _S+Sleep_CPTS+T s _D

[0179] Among them, T sc2 represents the updated second target temperature, T s _S indicates the historical set temperature, Sleep_CPTS indicates the second compensation temperature, T s _D represents the temperature difference.

[0180] For this embodiment, when the user raises the temperature of the air conditioner, it indicates that the user is awakened by the cold, that is, the second target temperature needs to be raised to weaken the cooling effect of the air conditioner. The indoor ambient temperature is slightly increased to match the user's sleeping environment requirements and metabolic process.

[0181] like Fig.14 , in one embodiment, comprising:

[0182] Step S1401, calculating the difference between the sum of the historical set temperature and the second compensation temperature and the temperature difference, and taking the difference as the updated second target temperature.

[0183] T sc2 =T sS +Sleep_CPTS-T s _D

[0184] Among them, T sc2 represents the updated second target temperature, T s_S indicates the historical set temperature, Sleep_CPTS indicates the second compensation temperature, T s _D represents the temperature difference.

[0185] For this embodiment, when the user lowers the temperature of the air conditioner, it indicates that the user is awakened by the heat, that is, the second target temperature needs to be lowered to enhance the cooling effect of the air conditioner. The indoor ambient temperature is slightly lowered to match the user's sleeping environment requirements and metabolic process.

[0186] like Fig.15 , Fig.15 FIG. 1 is a flow chart of a control method for an air conditioner provided by another embodiment of the present application. In one embodiment, after step S101, the control method further includes but is not limited to the following steps.

[0187] Step S1501, obtaining the operating time of the air conditioner in the sleep mode.

[0188] Step S1502: When the running time is greater than or equal to the preset sleep time, the air conditioner is controlled to exit the sleep mode.

[0189] Based on the control methods of the air conditioner in the above-mentioned embodiments, overall embodiments of the control method of the air conditioner of the present application are respectively proposed below.

[0190] like Fig.16 As shown, Fig.16 It is an overall flow chart of a method for controlling an air conditioner provided in one embodiment of the present application, including but not limited to the following steps.

[0191] Step S1601, obtaining a sleep function activation instruction;

[0192] Step S1602, adjusting the blowing angle of the air guide plate and the fan speed;

[0193] Step S1603, obtaining the historical set temperature Ts_S, the first compensation temperature Temp_D, the second compensation temperature Sleep_CPTS and the outdoor environment temperature To;

[0194] Step S1604, determining whether the historical set temperature Ts_S has been adjusted in the second stage after the sleep function was last turned on, if so, proceeding to step S1605; if not, proceeding to step S1606.

[0195] Step S1605, setting the first target temperature Tsc1 = Ts_S.

[0196] Step S1606, setting the first target temperature Tsc1 = Ts_S - Temp_D.

[0197] Step S1607, record the room temperature change and obtain the temperature difference Ta within a first preset time length.

[0198] Step S1608, determining whether Ta≤Temp_L1 is satisfied, where Temp_L1 is the first preset temperature, if so, proceeding to step S1609; if not, returning to step S1607.

[0199] Step S1609, determine whether the indoor lights are off or the air conditioner operating time Time1 is greater than or equal to the operating time Time_Sta, if so, go to step S1610; if not, return to step S1607.

[0200] Step S1610, determine whether the determination result of step S1604 is yes, if not, proceed to step S1611; if yes, proceed to step S1612.

[0201] Step S1611, set Ts_S=Tsc1, and proceed to step S1612.

[0202] Step S1612, enter a time period.

[0203] Step S1613, determine whether the entered time period is the target time period, if so, go to step S1614, if not, go to step S1615.

[0204] Step S1614, record the room temperature change, set Sleep_CPTS=Sleep_CPTS_bak+Temp_L2 according to the second preset temperature Temp_L2 and the historical second compensation temperature Sleep_CPTS_bak, and set the second target temperature Tsc2=Ts_S+Sleep_CPTS, and enter S1616.

[0205] Step S1615, obtaining a corresponding outdoor ambient temperature To from the room temperature changes recorded in each target time period, and calculating the outdoor ambient temperature change trend ΔT based on all outdoor ambient temperatures To r , set Sleep_CPTS=Sleep_CPTS_bak-Temp_L2*ΔT r / |ΔT r |, and enter S1616.

[0206] Step S1616, obtaining the operating time of the air conditioner in the sleep mode.

[0207] Step S1617, determine whether the running time Time2 is greater than or equal to the preset sleep time Sleep_Spwan, if so, go to step S1618, if not, return to step S1612.

[0208] Step S1618, control the air conditioner to exit the sleep mode.

[0209] Specifically, for Fig.16 In terms of Fig.16 Steps 1601 to S1609 in the above are the first stage, and steps S1610 to S1618 are the second stage. Fig.16 , the control method includes the following implementation steps.

[0210] 1. Enter the first stage, determine the first target temperature by judging whether the air conditioner adjusted the set temperature in the second stage when the sleep function was turned on last time, help the user to sleep by the first target temperature, and judge whether the conditions for entering the second stage are met according to the temperature, the user turning off the lights and the running time. If so, enter step 2, if not, continue to loop and execute steps S1607 to S1609 in the first stage.

[0211] 2. Enter the second stage, adjust the target temperature by entering different time periods, and run it for a sufficient length of time to complete temperature control during the user's entire sleep period.

[0212] Therefore, the embodiment of the present application continuously corrects the user's comfort temperature by recording the user's sleeping temperature control habits, thereby achieving the goal of comfortable sleep temperature control; in addition, the embodiment of the present application also takes into account the influence of outdoor ambient temperature factors to continuously correct the second target temperature of the second stage, thereby reducing the situation of users waking up due to cold or heat, and further achieving the goal of comfortable sleep temperature control.

[0213] Based on the control methods of the air conditioner in the above-mentioned embodiments, various embodiments of the controller, the air conditioner and the computer-readable storage medium of the present application are respectively proposed below.

[0214] like Fig.17 As shown, Fig.17 1 is a schematic diagram of a controller for executing a control method for an air conditioner provided by an embodiment of the present application. The controller 100 implemented in the present application includes: a processor 110, a memory 120, and a computer program stored in the memory 120 and executable on the processor 110, wherein: Fig.17 In the figure, a processor 110 and a memory 120 are taken as an example.

[0215] The processor 110 and the memory 120 may be connected via a bus or other means. Fig.17 The example of connecting through bus is taken in the following.

[0216] The memory 120, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 120 may optionally include a memory 120 remotely arranged relative to the processor 110, and these remote memories 120 may be connected to the controller 100 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0217] Those skilled in the art will understand that Fig.17 The device structure shown in the figure does not constitute a limitation on the controller 100, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0218] exist Fig.17 In the controller 100 shown, the processor 110 can be used to call the air conditioner control program stored in the memory 120, so as to implement the above-mentioned air conditioner control method. Specifically, the non-transient software program and instructions required to implement the air conditioner control method of the above-mentioned embodiment are stored in the memory 120, and when executed by the processor 110, the air conditioner control method of the above-mentioned embodiment is executed.

[0219] It is worth noting that since the controller 100 of the embodiment of the present application can execute the control method of the air conditioner of any of the above-mentioned embodiments, the specific implementation manner and technical effects of the controller 100 of the embodiment of the present application can refer to the specific implementation manner and technical effects of the control method of the air conditioner of any of the above-mentioned embodiments.

[0220] In addition, an embodiment of the present application further provides an air conditioner, comprising the controller of the above embodiment.

[0221] It is worth noting that since the air conditioner of the embodiment of the present application includes the controller of the above-mentioned embodiment, and the controller of the above-mentioned embodiment can execute the control method of the air conditioner of any of the above-mentioned embodiments, the specific implementation methods and technical effects of the air conditioner of the embodiment of the present application can refer to the specific implementation methods and technical effects of the control method of the air conditioner of any of the above-mentioned embodiments.

[0222] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the above-described air conditioner control method. Figures 1 to 16 The method steps in .

[0223] It is worth noting that since the computer-readable storage medium of the embodiment of the present application can execute the control method of the air conditioner of any of the above-mentioned embodiments, the specific implementation methods and technical effects of the computer-readable storage medium of the embodiment of the present application can refer to the specific implementation methods and technical effects of the control method of the air conditioner of any of the above-mentioned embodiments.

[0224] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0225] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation mode. Technical personnel familiar with the field can also make various equivalent modifications or substitutions under the shared conditions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A method for controlling an air conditioner, characterized in that: include: Receive a sleep function start instruction, and respond to enter the first stage and the second stage in sequence; Acquire a historical set temperature, a first compensation temperature, a second compensation temperature and an outdoor ambient temperature, wherein the historical set temperature is a set temperature adjusted by the user in the second stage of history; In the first stage, determining a first target temperature of the first stage according to the historical set temperature and the first compensation temperature; In the second stage, a second target temperature of the second stage is determined according to the historical set temperature and the second compensation temperature, and the second compensation temperature is updated according to the outdoor ambient temperature to update the second target temperature.

2. The control method according to claim 1, characterized in that: After receiving the sleep function start instruction, the control method further includes: The fan speed of the air conditioner is adjusted to a sleep target speed according to the sleep function start instruction, wherein the sleep target speed is less than a maximum speed in a non-sleep function scenario.

3. The control method according to claim 1, characterized in that: The control method further includes one of the following: In the first stage, the blowing angle of the air guide plate of the air conditioner is adjusted to a preset anti-direct blowing angle; In the first stage, the historical setting angle adjusted by the user in the historical second stage is obtained, and the blowing angle of the air guide plate of the air conditioner is adjusted to the historical setting angle.

4. The control method according to claim 1, characterized in that: The determining the first target temperature of the first stage according to the historical set temperature and the first compensation temperature comprises: Inputting the historical set temperature and the first compensation temperature into a first calculation model to obtain a first target temperature of the first stage, wherein the first compensation temperature is a positive number; The first calculation model includes a first input variable and a second input variable, the first input variable is used to be assigned the historical set temperature, the second input variable is used to be assigned the first compensation temperature, and the difference between the first input variable and the second input variable is the first target temperature.

5. The control method according to claim 1, characterized in that: After determining the first target temperature of the first stage according to the historical set temperature and the first compensation temperature, the control method further includes one of the following: Acquire the indoor light intensity and the temperature variation range of the indoor ambient temperature within a first preset time period, and when the indoor light intensity is less than or equal to the preset light intensity and the temperature variation range is less than or equal to the first preset temperature, control the air conditioner to switch to the second stage; The operating time of the air conditioner in the first stage and the temperature change amplitude of the indoor ambient temperature within a first preset time period are obtained. When the operating time is greater than or equal to the preset time and the temperature change amplitude is less than or equal to the first preset temperature, the air conditioner is controlled to switch to the second stage.

6. The control method according to claim 1, characterized in that: The determining the second target temperature of the second stage according to the historical set temperature and the second compensation temperature comprises: Inputting the historical set temperature and the second compensation temperature into a second calculation model to obtain a second target temperature of the second stage; The second calculation model includes a third input variable and a fourth input variable, the third input variable is used to be assigned the historical set temperature, the fourth input variable is used to be assigned the second compensation temperature, and the sum of the third input variable and the fourth input variable is the second target temperature.

7. The control method according to claim 1, characterized in that: The updating of the second compensation temperature according to the outdoor ambient temperature includes: Obtaining the outdoor ambient temperature corresponding to each time period, and determining the outdoor ambient temperature change trend based on all the outdoor ambient temperatures; The second compensation temperature is updated according to the outdoor environment temperature change trend and the second preset temperature.

8. The control method according to claim 7, characterized in that: The control method further comprises: In a target time period, the sum of the second compensation temperature and the second preset temperature is calculated at every second preset time interval, and the value of the second compensation temperature is updated to the sum, wherein the target time period is not the last time period.

9. The control method according to claim 8, characterized in that: The updating of the second compensation temperature according to the outdoor ambient temperature change trend and the second preset temperature includes: Obtain the historical second compensated temperature of the previous time period; Inputting the historical second compensation temperature, the second preset temperature and the change trend of the outdoor ambient temperature into a third calculation model to obtain an updated second compensation temperature; Among them, the third calculation model includes a fifth input variable and a correction variable, the difference between the fifth input variable and the correction variable is the updated second compensated temperature, the fifth input variable is used to be assigned the historical second compensated temperature, the correction variable is the ratio of the product of the sixth input variable and the seventh input variable to the eighth input variable, the sixth input variable is used to be assigned the second preset temperature, the seventh input variable is used to be assigned the outdoor ambient temperature change trend, and the eighth input variable is used to be assigned the absolute value of the outdoor ambient temperature change trend.

10. The control method according to claim 1, characterized in that: After determining the second target temperature of the second stage according to the historical set temperature and the second compensation temperature, the control method further includes: Obtain the current set temperature of the user in the second stage; determining a temperature difference according to the current set temperature and the second target temperature; The second target temperature is adjusted according to the temperature difference, the historical set temperature, and the second compensation temperature.

11. The control method according to claim 10, characterized in that: The adjusting the second target temperature according to the temperature difference, the historical set temperature and the second compensation temperature comprises one of the following: Calculating a sum of the historical set temperature, the second compensation temperature, and the temperature difference, and using the sum as the updated second target temperature; The difference between the sum of the historical set temperature and the second compensation temperature and the temperature difference is calculated, and the difference is used as the updated second target temperature.

12. The control method according to claim 1, characterized in that: After receiving the sleep function start instruction, the control method further includes: Obtaining the operating time of the air conditioner in the sleep mode; When the operating time is greater than or equal to the preset sleep time, the air conditioner is controlled to exit the sleep mode.

13. A controller, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the control method according to any one of claims 1 to 12 when executing the computer program.

14. An air conditioner, characterized in that: Comprising a controller as claimed in claim 13.

15. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to execute the control method according to any one of claims 1 to 12.