Air conditioner control method and device, air conditioner, storage medium and program product

By setting heating components inside the air-conditioning refrigerant sensor and adjusting the heat generation according to changes in temperature and humidity, the false alarm problem caused by the refrigerant sensor due to condensation and frosting is solved, and the detection accuracy and operation stability of the air-conditioning are improved.

CN120403024APending Publication Date: 2025-08-01ZHUHAI IVP INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510751427.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-06
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

The refrigerant sensor in the air conditioner accidentally triggers the refrigerant leakage alarm due to internal condensation and frosting, resulting in inaccurate detection and affecting the operation stability of the air conditioner.

Method used

The heating component is set up inside the refrigerant sensor. By adjusting the heat generation volume, the humidity inside the sensor is controlled to avoid condensation and frost. The heat generation of the heating component is adjusted by using the temperature and humidity changes to maintain the internal humidity of the sensor.

Benefits of technology

It improves the accuracy of refrigerant leakage detection, avoids false alarms, and improves the operating stability and service life of the air conditioner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120403024A_ABST
    Figure CN120403024A_ABST
Patent Text Reader

Abstract

The invention discloses an air conditioner control method and device, an air conditioner, a storage medium and a computer program product, a heating component is arranged in a refrigerant sensor of the air conditioner, the method comprises the steps that after the air conditioner is powered on, whether condensation and frosting in the refrigerant sensor need to be prevented or not is determined according to the temperature in the refrigerant sensor and the indoor temperature; and if it is determined that condensation and frosting in the refrigerant sensor need to be prevented, the heating value of the heating component is controlled according to the temperature and humidity in the refrigerant sensor. According to the scheme, the heating value of the heating part in the refrigerant sensor is adjusted according to the temperature and humidity in the refrigerant sensor and the change trend of the room temperature, the humidity in the sensor is kept low, refrigerant leakage alarm false triggering caused by condensation and frosting in the sensor is avoided, the accuracy of refrigerant leakage detection is improved, and the operation stability of an air conditioner is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of air conditioners, and particularly relates to a control method, device, air conditioner, storage medium and computer program product for an air conditioner. Background Art

[0002] Refrigerants R290 / R32 have the characteristics of high efficiency and environmental protection, so they are gradually entering fields such as air conditioners. However, refrigerants R290 / R32 are flammable and explosive, so it is necessary to accurately detect whether the refrigerants R290 / R32 leak to prevent safety accidents.

[0003] Most of the related solutions are to add a refrigerant sensor to the evaporator of the indoor unit to determine whether the refrigerant leaks. The refrigerant sensor mostly uses pyroelectric or optical detection. Under special working conditions (such as when the evaporator freezes) or when running a specific mode, the evaporator frequently switches between frosting and high temperature, which will cause internal condensation and frosting of the sensor. At this time, the detection value of the sensor is the same as the detection value when the refrigerant leaks, so that the sensor cannot identify whether the increase in the detection value is caused by condensation and frosting or refrigerant leakage, and then triggers a refrigerant leakage alarm, resulting in a false alarm of refrigerant leakage of the unit.

[0004] The above content is only used to assist in understanding the technical solution of the present invention, and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The purpose of the present invention is to provide a control method, device, air conditioner, storage medium and computer program product for an air conditioner, so as to solve the problem that the refrigerant sensor in the air conditioner in the related solutions is mis-triggered to alarm refrigerant leakage due to internal condensation and frosting, and achieve the effect of adjusting the heat generation amount of the heating component inside the refrigerant sensor according to the change trends of the temperature and humidity inside the refrigerant sensor and the room temperature, keeping the humidity inside the sensor relatively low, avoiding mis-triggering the refrigerant leakage alarm due to internal condensation and frosting of the sensor, improving the accuracy of refrigerant leakage detection, and enhancing the operation stability of the air conditioner.

[0006] The present invention provides a control method for an air conditioner. The air conditioner includes a refrigerant sensor; the refrigerant sensor is used to detect whether the refrigerant leaks; a heating component is arranged inside the refrigerant sensor; the method includes: after the air conditioner is powered on, obtaining the indoor environmental temperature, the temperature inside the refrigerant sensor, and the humidity inside the refrigerant sensor; determining whether to prevent internal condensation and frosting of the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor environmental temperature; if it is determined to prevent internal condensation and frosting of the refrigerant sensor, controlling the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor.

[0007] In some embodiments, determining whether to prevent condensation and frosting inside the refrigerant sensor based on the temperature inside the refrigerant sensor and the indoor ambient temperature includes: recording the difference between the indoor ambient temperature and the temperature inside the refrigerant sensor as the temperature difference, and judging the magnitude of the temperature inside the refrigerant sensor and the magnitude of the temperature difference; if the temperature inside the refrigerant sensor is greater than a preset first temperature, the temperature difference is greater than a preset second temperature, and a preset first time is maintained, then it is determined to prevent condensation and frosting inside the refrigerant sensor; if the temperature inside the refrigerant sensor is less than or equal to the preset first temperature, the temperature difference is greater than the preset second temperature, and a preset second time is maintained, then it is determined to prevent condensation and frosting inside the refrigerant sensor; if the temperature inside the refrigerant sensor is less than or equal to the preset first temperature, the temperature difference is less than or equal to the preset second temperature, and a preset third time is maintained, then it is determined to prevent condensation and frosting inside the refrigerant sensor.

[0008] In some embodiments, it further includes: if the temperature inside the refrigerant sensor is greater than the preset first temperature, the temperature difference is less than or equal to the preset second temperature, and a preset fourth time is maintained, then reduce the heat generation amount of the heating component.

[0009] In some embodiments, controlling the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor includes: when the temperature inside the refrigerant sensor is greater than the preset first temperature and the temperature difference is greater than the preset second temperature, increase the heat generation amount of the heating component; judge whether the humidity inside the refrigerant sensor is less than the preset humidity value; if the humidity inside the refrigerant sensor is less than the preset humidity value, then reduce the heat generation amount of the heating component; if the humidity inside the refrigerant sensor is greater than or equal to the preset humidity value, then keep the heat generation amount of the heating component unchanged.

[0010] In some embodiments, controlling the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor further includes: when the temperature inside the refrigerant sensor is less than or equal to the preset first temperature and the temperature difference is greater than the preset second temperature, increase the heat generation amount of the heating component; judge whether the humidity inside the refrigerant sensor is less than the preset humidity value and whether the temperature inside the refrigerant sensor is greater than or equal to the preset third temperature; if the humidity inside the refrigerant sensor is less than the preset humidity value and the temperature inside the refrigerant sensor is greater than or equal to the preset third temperature, then reduce the heat generation amount of the heating component; if the humidity inside the refrigerant sensor is greater than or equal to the preset humidity value, or the temperature inside the refrigerant sensor is less than the preset third temperature, then keep the heat generation amount of the heating component unchanged.

[0011] In some embodiments, the heat generation amount of the heating component is controlled according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor, and further includes: when the temperature inside the refrigerant sensor is less than or equal to a preset first temperature and the temperature difference is less than or equal to a preset second temperature, increasing the heat generation amount of the heating component; determining whether the temperature inside the refrigerant sensor is greater than or equal to a preset fourth temperature; if the temperature inside the refrigerant sensor is greater than or equal to the preset fourth temperature, reducing the heat generation amount of the heating component; if the temperature inside the refrigerant sensor is less than the preset fourth temperature, keeping the heat generation amount of the heating component unchanged.

[0012] Matched with the above method, on the other hand, the present invention provides a control device for an air conditioner. The air conditioner includes a refrigerant sensor; the refrigerant sensor is used to detect whether the refrigerant leaks; a heating component is arranged inside the refrigerant sensor; the control device includes: an acquisition unit configured to acquire the indoor environmental temperature, the temperature inside the refrigerant sensor, and the humidity inside the refrigerant sensor after the air conditioner is powered on; a control unit configured to determine whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor environmental temperature; the control unit is further configured to, if it is determined to prevent condensation and frosting inside the refrigerant sensor, control the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor.

[0013] In some embodiments, the control unit determines whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor environmental temperature, including: recording the difference between the indoor environmental temperature and the temperature inside the refrigerant sensor as the temperature difference, and judging the magnitude of the temperature inside the refrigerant sensor and the magnitude of the temperature difference; if the temperature inside the refrigerant sensor is greater than a preset first temperature, the temperature difference is greater than a preset second temperature, and a preset first time is maintained, determining to prevent condensation and frosting inside the refrigerant sensor; if the temperature inside the refrigerant sensor is less than or equal to the preset first temperature, the temperature difference is greater than the preset second temperature, and a preset second time is maintained, determining to prevent condensation and frosting inside the refrigerant sensor; if the temperature inside the refrigerant sensor is less than or equal to the preset first temperature, the temperature difference is less than or equal to the preset second temperature, and a preset third time is maintained, determining to prevent condensation and frosting inside the refrigerant sensor.

[0014] In some embodiments, the control unit is further configured to, if the temperature inside the refrigerant sensor is greater than the preset first temperature, the temperature difference is less than or equal to the preset second temperature, and a preset fourth time is maintained, reduce the heat generation amount of the heating component.

[0015] In some embodiments, the control unit controls the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor, including: when the temperature inside the refrigerant sensor is greater than a preset first temperature and the temperature difference is greater than a preset second temperature, increasing the heat generation amount of the heating component; determining whether the humidity inside the refrigerant sensor is less than a preset humidity value; if the humidity inside the refrigerant sensor is less than the preset humidity value, reducing the heat generation amount of the heating component; if the humidity inside the refrigerant sensor is greater than or equal to the preset humidity value, keeping the heat generation amount of the heating component unchanged.

[0016] In some embodiments, the control unit controls the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor, and further includes: when the temperature inside the refrigerant sensor is less than or equal to the preset first temperature and the temperature difference is greater than the preset second temperature, increasing the heat generation amount of the heating component; determining whether the humidity inside the refrigerant sensor is less than the preset humidity value and whether the temperature inside the refrigerant sensor is greater than or equal to a preset third temperature; if the humidity inside the refrigerant sensor is less than the preset humidity value and the temperature inside the refrigerant sensor is greater than or equal to the preset third temperature, reducing the heat generation amount of the heating component; if the humidity inside the refrigerant sensor is greater than or equal to the preset humidity value, or the temperature inside the refrigerant sensor is less than the preset third temperature, keeping the heat generation amount of the heating component unchanged.

[0017] In some embodiments, the control unit controls the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor, and further includes: when the temperature inside the refrigerant sensor is less than or equal to the preset first temperature and the temperature difference is less than or equal to the preset second temperature, increasing the heat generation amount of the heating component; determining whether the temperature inside the refrigerant sensor is greater than or equal to a preset fourth temperature; if the temperature inside the refrigerant sensor is greater than or equal to the preset fourth temperature, reducing the heat generation amount of the heating component; if the temperature inside the refrigerant sensor is less than the preset fourth temperature, keeping the heat generation amount of the heating component unchanged.

[0018] Matched with the above device, on the other hand, the present invention provides an air conditioner, including: the control device of the air conditioner described above.

[0019] Matched with the above method, on the other hand, the present invention provides a storage medium, the storage medium includes a stored program, wherein when the program runs, it controls the device where the storage medium is located to execute the control method of the air conditioner described above.

[0020] Corresponding to the above method, on the other hand, the present invention provides a computer program product, which includes a computer program. When the computer program product is processed and executed, the steps of the above-described air conditioner control method are implemented.

[0021] In the solution of the present invention, a heating component is provided inside the refrigerant sensor of the air conditioner. After the air conditioner is powered on, it is determined whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor temperature. If it is determined to prevent condensation and frosting inside the refrigerant sensor, the heat generation amount of the heating component is controlled according to the temperature and humidity inside the refrigerant sensor. Thus, by adjusting the heat generation amount of the heating component inside the refrigerant sensor according to the changing trends of the temperature and humidity inside the refrigerant sensor and the room temperature, the humidity inside the sensor is kept low, avoiding false triggering of the refrigerant leakage alarm due to condensation and frosting inside the sensor, improving the accuracy of refrigerant leakage detection, and enhancing the operating stability of the air conditioner.

[0022] Other features and advantages of the present invention will be described in the subsequent specification, and will be partially obvious from the specification or understood by implementing the present invention.

[0023] The technical solution of the present invention will be further described in detail below through the drawings and embodiments. Description of the Drawings

[0024] Figure 1 It is a schematic flowchart of an embodiment of the control method of the air conditioner of the present invention;

[0025] Figure 2 It is a schematic structural diagram of an embodiment of the control device of the air conditioner of the present invention;

[0026] Figure 3 It is a schematic flowchart of another embodiment of the control method of the air conditioner of the present invention.

[0027] Combined with the drawings, the reference numerals in the embodiments of the present invention are as follows:

[0028] 102 - Acquisition unit; 104 - Control unit. Detailed Embodiments

[0029] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the scope of protection of the present invention.

[0030] According to an embodiment of the present invention, a method for controlling an air conditioner is provided. The air conditioner includes a refrigerant sensor; the refrigerant sensor is used to detect whether the refrigerant is leaking; and a heating component is provided inside the refrigerant sensor.

[0031] Since refrigerant leakage usually occurs in the evaporator pipes or interfaces, in order to directly and quickly detect the refrigerant concentration near the evaporator and improve the sensitivity and timeliness of leak detection, the refrigerant sensor is set at the indoor evaporator.

[0032] The heating element can be configured as a resistor. By controlling the refrigerant sensor's input voltage, the resistor's heat generation can be adjusted. For example, increasing the sensor's input voltage increases the resistor's power consumption and generates more heat; decreasing the sensor's input voltage reduces the resistor's power consumption and generates less heat. Increasing the heating element's heat generation prevents condensation and frosting inside the sensor, preventing false triggering of refrigerant leak alarms. Reducing the heating element's heat generation prevents accelerated aging of the sensor's components at high temperatures, thereby extending its service life.

[0033] Heating components can also be configured as PTC thermistors, heating wires, ceramic heaters, and semiconductor heating wires. PTC thermistors, due to their self-limiting temperature, simplify overheat protection design and are more suitable for dynamic temperature control scenarios. Heating wires offer a simple structure, low cost, and high heat generation efficiency. Ceramic heaters are suitable for scenarios requiring high temperature uniformity. Semiconductor heaters offer both heating and cooling functions, preventing condensation, frosting, and overheating.

[0034] like Figure 1 FIG. 1 is a flow chart of an embodiment of the method of the present invention. The air conditioner control method may include steps S110 to S130.

[0035] In step S110, after the air conditioner is powered on, the indoor ambient temperature, the temperature inside the refrigerant sensor, and the humidity inside the refrigerant sensor are obtained. A temperature and humidity sensor chip can be set inside the refrigerant sensor to directly measure the temperature and humidity inside the sensor cavity.

[0036] In step S120 , it is determined whether to prevent condensation and frost inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor ambient temperature.

[0037] In some embodiments, in step S120, the specific process of determining whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor ambient temperature includes: steps S210 to S240.

[0038] Step S210: Denote the difference between the indoor environmental temperature and the temperature inside the refrigerant sensor as the temperature difference, and determine the magnitude of the temperature inside the refrigerant sensor and the magnitude of the temperature difference.

[0039] Step S220: If the temperature inside the refrigerant sensor is greater than a preset first temperature, the temperature difference is greater than a preset second temperature, and this state has been maintained for a preset first time, then it is determined that condensation and frosting inside the refrigerant sensor need to be prevented.

[0040] Both the preset first temperature and the preset second temperature can be set to 0°C. When the temperature inside the refrigerant sensor > 0°C, the temperature inside the sensor is higher than the freezing point, and theoretically there is no frosting risk, but there may be a condensation risk. At this time, if the indoor environmental temperature - the temperature inside the refrigerant sensor > 0°C, the environmental temperature is higher than the temperature inside the sensor, and water vapor in the air may condense on the low-temperature surface of the sensor. For example, when the evaporator temperature is low, the sensor is at a relatively low temperature due to being close to the evaporator, and condensation occurs when the ambient humid air comes into contact. Therefore, when the temperature inside the refrigerant sensor > 0°C and the indoor environmental temperature - the temperature inside the refrigerant sensor > 0°C, it is considered that there is a condensation risk, and it is necessary to increase the temperature inside the sensor and reduce the humidity to avoid condensation.

[0041] Step S230: If the temperature inside the refrigerant sensor is less than or equal to the preset first temperature, the temperature difference is greater than the preset second temperature, and this state has been maintained for a preset second time, then it is determined that condensation and frosting inside the refrigerant sensor need to be prevented.

[0042] When the temperature inside the refrigerant sensor ≤ 0°C, the temperature inside the sensor is lower than the freezing point, providing the temperature condition for frosting. At this time, if the indoor environmental temperature - the temperature inside the refrigerant sensor > 0°C, the environmental temperature is higher than the sensor temperature, and when the ambient humid air contacts the low-temperature sensor surface, water vapor may directly freeze to form frost. For example, in the case of the evaporator icing, the sensor temperature drops below the freezing point along with the evaporator, and the ambient humid air causes frosting. Therefore, when the temperature inside the refrigerant sensor ≤ 0°C and the indoor environmental temperature - the temperature inside the refrigerant sensor > 0°C, it is considered that there are both frosting and condensation risks, and the frosting risk is relatively large, and it is necessary to eliminate the physical conditions for forming frosting and condensation.

[0043] Step S240: If the temperature inside the refrigerant sensor is less than or equal to the preset first temperature, the temperature difference is less than or equal to the preset second temperature, and this state has been maintained for a preset third time, then it is determined that condensation and frosting inside the refrigerant sensor need to be prevented.

[0044] When the temperature inside the refrigerant sensor ≤ 0°C, the temperature inside the sensor is below the freezing point, meeting the temperature condition for frosting. At this time, if the indoor ambient temperature - the temperature inside the refrigerant sensor ≤ 0°C, both the temperature inside the sensor and the ambient temperature are below the freezing point, and moisture in the air may directly condense into frost inside the sensor. For example, when the unit is in a low-temperature environment and not running, the sensor cools below the freezing point with the environment. Therefore, when the temperature inside the refrigerant sensor ≤ 0°C and the indoor ambient temperature - the temperature inside the refrigerant sensor ≤ 0°C, it is considered that the frosting risk is significant, and it is necessary to break the low-temperature condition for frosting to ensure the dryness of the sensor cavity.

[0045] In some embodiments, it also includes a process of reducing the heat generation of the heating component to avoid component aging. This process specifically includes: if the temperature inside the refrigerant sensor is greater than a preset first temperature, the temperature difference is less than or equal to a preset second temperature, and a preset fourth time is maintained, then reduce the heat generation of the heating component.

[0046] When the temperature inside the refrigerant sensor > 0°C and if the indoor ambient temperature - the temperature inside the refrigerant sensor ≤ 0°C, the sensor has no frosting risk, but the temperature inside the sensor is higher than the ambient temperature. For example, when the evaporator temperature rises in the heating mode, the sensor heats up with the evaporator. At this time, if heating continues, it may cause the temperature to be too high. Therefore, it is necessary to reduce the temperature inside the sensor to avoid component aging caused by the sensor running at a high temperature for a long time and balance the detection accuracy and service life.

[0047] At step S130, if it is determined to prevent condensation and frosting inside the refrigerant sensor, then control the heat generation of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor.

[0048] This solution adjusts the heat generation of the heating component according to the state inside the refrigerant sensor, and then adjusts the temperature of the sensor cavity, solving the problem of false alarms of refrigerant leakage caused by condensation and frosting inside the refrigerant sensor under special working conditions, and improving the user experience of the air conditioner.

[0049] In some embodiments, in step S130, the specific process of controlling the heat generation of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor includes: when the temperature inside the refrigerant sensor is greater than a preset first temperature and the temperature difference is greater than a preset second temperature, increase the heat generation of the heating component; determine whether the humidity inside the refrigerant sensor is less than a preset humidity value; if the humidity inside the refrigerant sensor is less than the preset humidity value, then reduce the heat generation of the heating component; if the humidity inside the refrigerant sensor is greater than or equal to the preset humidity value, then keep the heat generation of the heating component unchanged.

[0050] When the temperature inside the refrigerant sensor > 0°C and the indoor ambient temperature - the temperature inside the refrigerant sensor > 0°C, increase the heat generation of the heating component inside the refrigerant sensor. The greater the temperature difference, the more the heat generation increases. After the temperature inside the refrigerant sensor rises, the upper limit of the saturated humidity of the air in the cavity rises while the moisture content remains unchanged, so the relative humidity decreases. Then continuously detect the humidity inside the sensor. When the humidity drops to the preset humidity value, it is considered that the condensation risk inside the sensor has been eliminated and water vapor in the air cannot condense on the sensor surface. At the same time, to avoid accelerating the aging of components due to the high temperature inside the sensor for a long time, reduce the heat generation of the heating component at this time to make the heat generation of the heating component return to the state before the increase. Reduce the humidity inside the sensor to the threshold by raising the temperature to avoid condensation caused by the contact of ambient humid air with the low-temperature sensor surface.

[0051] In some embodiments, in step S130, the specific process of controlling the heat generation of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor further includes: when the temperature inside the refrigerant sensor is less than or equal to the preset first temperature and the temperature difference is greater than the preset second temperature, increase the heat generation of the heating component; determine whether the humidity inside the refrigerant sensor is less than the preset humidity value and whether the temperature inside the refrigerant sensor is greater than or equal to the preset third temperature; if the humidity inside the refrigerant sensor is less than the preset humidity value and the temperature inside the refrigerant sensor is greater than or equal to the preset third temperature, then reduce the heat generation of the heating component; if the humidity inside the refrigerant sensor is greater than or equal to the preset humidity value, or the temperature inside the refrigerant sensor is less than the preset third temperature, then keep the heat generation of the heating component unchanged.

[0052] When the temperature inside the refrigerant sensor ≤ 0°C and the indoor ambient temperature - the temperature inside the refrigerant sensor > 0°C, greatly increase the heat generation of the heating component to raise the temperature inside the sensor to the preset third temperature and reduce the humidity to the preset humidity value. Break through the freezing point by forced heating and dry the internal environment at the same time to avoid water vapor freezing into frost or condensing into dew inside the sensor, and solve the false alarm problem from the root cause.

[0053] In some embodiments, in step S130, the specific process of controlling the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor further includes: when the temperature inside the refrigerant sensor is less than or equal to a preset first temperature and the temperature difference is less than or equal to a preset second temperature, increasing the heat generation amount of the heating component; determining whether the temperature inside the refrigerant sensor is greater than or equal to a preset fourth temperature; if the temperature inside the refrigerant sensor is greater than or equal to the preset fourth temperature, reducing the heat generation amount of the heating component; if the temperature inside the refrigerant sensor is less than the preset fourth temperature, keeping the heat generation amount of the heating component unchanged.

[0054] When the temperature inside the refrigerant sensor ≤ 0°C and the indoor ambient temperature - the temperature inside the refrigerant sensor ≤ 0°C, increase the heat generation amount of the heating component to raise the temperature inside the sensor to the preset fourth temperature. In a low-temperature environment, maintain the temperature inside the sensor above the freezing point by heating to prevent the moisture in the air from directly sublimating into frost and ensure the reliability of refrigerant leakage detection.

[0055] In some embodiments, when the heating component is a resistor, when it is necessary to increase the heat generation amount of the heating component, the input voltage of the refrigerant sensor can be increased. The increased input voltage V sensor = V in + k * V temp , V in is the rated input voltage of the refrigerant sensor, k is the proportionality coefficient, V temp = T room - T sensor , is the indoor ambient temperature, and is the temperature inside the refrigerant sensor. When it is necessary to reduce the heat generation amount of the heating component, the input voltage of the refrigerant sensor can be reduced. The reduced input voltage V sensor = V in - k * V temp .

[0056] In some embodiments, when the air conditioner operates in the self-cleaning mode or the defrosting mode, the temperature of the evaporator pipe will rise and fall sharply within a short period of time. At this time, according to the trend of the mode temperature change, intervene in the sensor temperature compensation in advance. Specifically, when the pipe temperature is about to drop, boost the sensor voltage by V sensor = V in + k * V max N minutes in advance, increase the power of the internal resistor of the sensor P = V 2 / R, to avoid the sensor frosting caused by the sharp temperature drop until exiting the self-cleaning mode and the defrosting mode. V max is the voltage compensation in the self-cleaning mode and the defrosting mode.

[0057] Figure 3Schematic flowchart of another embodiment of the control method for the air conditioner of the present invention, as shown in Figure 3 shown, the method includes:

[0058] Step 1, after the air conditioner is powered on, detect the indoor temperature T r , the temperature T inside the refrigerant sensor s , and the humidity RH inside the refrigerant sensor. Determine whether the current air conditioner is in a special mode such as the self-cleaning mode or the defrosting mode. If the current is in a special mode such as the self-cleaning mode or the defrosting mode, then N minutes before the evaporator pipe temperature drops, increase the voltage V of the refrigerant sensor sensor = V in + k * V max ; if the current is not in a special mode such as the self-cleaning mode or the defrosting mode, then execute Step 2.

[0059] Step 2, V temp = T r - T s , determine the magnitudes of V temp and T s .

[0060] If V temp > 0°C, T s > 0°C, and it has been maintained for t1 time, then increase the voltage V of the refrigerant sensor sensor = V in + k * V temp to make RH ≤ A%, to avoid condensation inside the sensor. A% is a preset humidity value.

[0061] If V temp > 0°C, T s ≤ 0°C, and it has been maintained for t2 time, then increase the voltage V of the refrigerant sensor sensor = V in + k * V temp to make RH ≤ A% and T s ≥ T1, to avoid frosting and condensation inside the sensor. T1 is a preset temperature value.

[0062] If V temp ≤ 0°C, T s > 0°C, and it has been maintained for t3 time, then decrease the voltage V of the refrigerant sensor sensor = V in - k * V temp to avoid overheating loss or aging of components due to excessive temperature inside the sensor.

[0063] If V temp ≤ 0°C, T s ≤ 0°C, and it has been maintained for t4 time, then increase the voltage V of the refrigerant sensor sensor = V in+k*V temp to make T s ≥ T2 to avoid frosting and condensation inside the sensor. T2 is a preset temperature value.

[0064] With the technical solution of this embodiment, a heating component is provided inside the refrigerant sensor of the air conditioner. After the air conditioner is powered on, it is determined whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor temperature. If it is determined to prevent condensation and frosting inside the refrigerant sensor, the heating amount of the heating component is controlled according to the temperature and humidity inside the refrigerant sensor. Thus, by adjusting the heating amount of the heating component inside the refrigerant sensor according to the changing trends of the temperature and humidity inside the refrigerant sensor and the room temperature, the humidity inside the sensor is kept low, avoiding false triggering of the refrigerant leakage alarm due to condensation and frosting inside the sensor, improving the accuracy of refrigerant leakage detection, and enhancing the operating stability of the air conditioner.

[0065] According to an embodiment of the present invention, a control device for an air conditioner corresponding to the control method of the air conditioner is also provided. The air conditioner includes a refrigerant sensor; the refrigerant sensor is used to detect whether the refrigerant leaks; a heating component is provided inside the refrigerant sensor.

[0066] Since refrigerant leakage usually occurs at the evaporator pipeline or interface, in order to directly and quickly detect the refrigerant concentration near the evaporator and improve the sensitivity and timeliness of leakage detection, the refrigerant sensor is arranged at the indoor evaporator.

[0067] The heating component can be set as a resistor, and the heating amount of the resistor is adjusted by controlling the input voltage of the refrigerant sensor. For example, increasing the input voltage of the refrigerant sensor increases the power consumed by the resistor and generates more heat; decreasing the input voltage of the refrigerant sensor decreases the power consumed by the resistor and generates less heat. Increasing the heating amount of the heating component can avoid condensation and frosting inside the refrigerant sensor and prevent false triggering of the refrigerant leakage alarm; decreasing the heating amount of the heating component can avoid accelerated aging of the components inside the refrigerant sensor at high temperatures and improve the service life.

[0068] The heating component can also be set as a PTC thermistor, an electric heating wire, a ceramic heating sheet, a semiconductor heating wire, etc. The PTC thermistor can simplify the overheat protection design due to its self-limiting temperature characteristic and is more suitable for dynamic temperature control scenarios. The electric heating wire has a simple structure, low cost, and high heat generation efficiency. The ceramic heating sheet is suitable for scenarios with high requirements for temperature uniformity. The semiconductor heater can combine heating and cooling functions to achieve the effects of avoiding condensation and frosting and overheating aging.

[0069] See Figure 2 A schematic structural diagram of an embodiment of the device of the present invention is shown. The control device of the air conditioner may include: an acquisition unit 102 and a control unit 104.

[0070] The acquisition unit 102 is configured to acquire the indoor environmental temperature, the temperature inside the refrigerant sensor, and the humidity inside the refrigerant sensor after the air conditioner is powered on. For the specific functions and processing of the acquisition unit 102, refer to step S110. A temperature and humidity sensor chip can be arranged inside the refrigerant sensor to directly measure the temperature and humidity inside the sensor cavity.

[0071] The control unit 104 is configured to determine whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor environmental temperature. For the specific functions and processing of the control unit 104, refer to step S120.

[0072] In some embodiments, the specific process of the control unit 104 for determining whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor environmental temperature includes:

[0073] The control unit 104 is further specifically configured to record the difference between the indoor environmental temperature and the temperature inside the refrigerant sensor as the temperature difference, and judge the magnitude of the temperature inside the refrigerant sensor and the magnitude of the temperature difference. For the specific functions and processing of the control unit 104, refer to step S210.

[0074] The control unit 104 is further specifically configured to determine to prevent condensation and frosting inside the refrigerant sensor if the temperature inside the refrigerant sensor is greater than a preset first temperature, the temperature difference is greater than a preset second temperature, and a preset first time is maintained. For the specific functions and processing of the control unit 104, refer to step S220.

[0075] Both the preset first temperature and the preset second temperature can be set to 0°C. When the temperature inside the refrigerant sensor > 0°C, the temperature inside the sensor is higher than the freezing point, and theoretically there is no frosting risk, but there may be a condensation risk. At this time, if the indoor environmental temperature - the temperature inside the refrigerant sensor > 0°C, the environmental temperature is higher than the temperature inside the sensor, and water vapor in the air may condense on the low-temperature surface of the sensor. For example, when the evaporator temperature is low, the sensor is at a low temperature because it is close to the evaporator, and the ambient humid air condenses after contact. Therefore, when the temperature inside the refrigerant sensor > 0°C and the indoor environmental temperature - the temperature inside the refrigerant sensor > 0°C, it is considered that there is a condensation risk, and it is necessary to increase the temperature inside the sensor and reduce the humidity to avoid condensation.

[0076] The control unit 104 is further specifically configured to determine to prevent condensation and frosting inside the refrigerant sensor if the temperature inside the refrigerant sensor is less than or equal to the preset first temperature, the temperature difference is greater than the preset second temperature, and a preset second time is maintained. For the specific functions and processing of the control unit 104, refer to step S230.

[0077] When the temperature inside the refrigerant sensor is ≤ 0°C, the temperature inside the sensor is below the freezing point, meeting the temperature condition for frosting. At this time, if the indoor ambient temperature - the temperature inside the refrigerant sensor > 0°C, the ambient temperature is higher than the sensor temperature. When the ambient moist air contacts the surface of the low-temperature sensor, water vapor may directly freeze to form frost. For example, in the case of the evaporator icing, the sensor temperature drops below the freezing point along with the evaporator, and the ambient moist air causes frosting. Therefore, when the temperature inside the refrigerant sensor is ≤ 0°C and the indoor ambient temperature - the temperature inside the refrigerant sensor > 0°C, it is considered that there are risks of both frosting and condensation at the same time, and the frosting risk is relatively high, and it is necessary to eliminate the physical conditions for forming frosting and condensation.

[0078] The control unit 104 is specifically further configured to determine to prevent condensation and frosting inside the refrigerant sensor if the temperature inside the refrigerant sensor is less than or equal to a preset first temperature, the temperature difference is less than or equal to a preset second temperature, and a preset third time is maintained. For the specific functions and processes of this control unit 104, refer to step S240.

[0079] When the temperature inside the refrigerant sensor is ≤ 0°C, the temperature inside the sensor is below the freezing point, meeting the temperature condition for frosting. At this time, if the indoor ambient temperature - the temperature inside the refrigerant sensor ≤ 0°C, both the temperature inside the sensor and the ambient temperature are below the freezing point, and the moisture in the air may directly condense into frost inside the sensor. For example, when the unit is in a low-temperature environment and not operating, the sensor cools below the freezing point along with the environment. Therefore, when the temperature inside the refrigerant sensor is ≤ 0°C and the indoor ambient temperature - the temperature inside the refrigerant sensor ≤ 0°C, it is considered that the frosting risk is significant, and it is necessary to destroy the low-temperature condition for frosting to ensure the dryness of the sensor cavity.

[0080] In some embodiments, the control unit 104 is further configured to: if the temperature inside the refrigerant sensor is greater than a preset first temperature, the temperature difference is less than or equal to a preset second temperature, and a preset fourth time is maintained, then reduce the heat generation amount of the heating component.

[0081] When the temperature inside the refrigerant sensor > 0°C and if the indoor ambient temperature - the temperature inside the refrigerant sensor ≤ 0°C, there is no frosting risk for the sensor, but the temperature inside the sensor is higher than the ambient temperature. For example, in the heating mode, the evaporator temperature rises, and the sensor temperature rises along with the evaporator. At this time, if heating continues, it may cause the temperature to be too high. Therefore, it is necessary to reduce the temperature inside the sensor to avoid component aging caused by the sensor running at a high temperature for a long time and balance the detection accuracy and service life.

[0082] The control unit 104 is further configured to control the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor if it is determined that condensation and frosting inside the refrigerant sensor are to be prevented. For the specific functions and processes of this control unit 104, refer to step S130.

[0083] In some embodiments, the specific process of the control unit 104 controlling the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor includes: when the temperature inside the refrigerant sensor is greater than a preset first temperature and the temperature difference is greater than a preset second temperature, increasing the heat generation amount of the heating component; determining whether the humidity inside the refrigerant sensor is less than a preset humidity value; if the humidity inside the refrigerant sensor is less than the preset humidity value, reducing the heat generation amount of the heating component; if the humidity inside the refrigerant sensor is greater than or equal to the preset humidity value, keeping the heat generation amount of the heating component unchanged.

[0084] When the temperature inside the refrigerant sensor > 0°C and the indoor ambient temperature - the temperature inside the refrigerant sensor > 0°C, increase the heat generation amount of the heating component inside the refrigerant sensor. The greater the temperature difference, the more the increased heat generation amount. After the temperature inside the refrigerant sensor rises, the upper limit of the saturated humidity of the air in the cavity rises while the moisture content over time remains unchanged, so the relative humidity decreases. Then continuously detect the humidity inside the sensor. When the humidity drops to the preset humidity value, it is considered that the risk of condensation inside the sensor has been eliminated and water vapor in the air cannot condense on the sensor surface; at the same time, in order to prevent the temperature inside the sensor from being at a high level for a long time and accelerating the aging of components, at this time, reduce the heat generation amount of the heating component so that the heat generation amount of the heating component returns to the state before the increase. By raising the temperature to reduce the humidity inside the sensor to the threshold value, condensation caused by the contact of ambient humid air with the low-temperature sensor surface is avoided.

[0085] In some embodiments, the specific process of the control unit 104 controlling the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor further includes: when the temperature inside the refrigerant sensor is less than or equal to the preset first temperature and the temperature difference is greater than the preset second temperature, increasing the heat generation amount of the heating component; determining whether the humidity inside the refrigerant sensor is less than the preset humidity value and whether the temperature inside the refrigerant sensor is greater than or equal to the preset third temperature; if the humidity inside the refrigerant sensor is less than the preset humidity value and the temperature inside the refrigerant sensor is greater than or equal to the preset third temperature, reducing the heat generation amount of the heating component; if the humidity inside the refrigerant sensor is greater than or equal to the preset humidity value, or the temperature inside the refrigerant sensor is less than the preset third temperature, keeping the heat generation amount of the heating component unchanged.

[0086] When the temperature inside the refrigerant sensor ≤ 0°C and the indoor ambient temperature - the temperature inside the refrigerant sensor > 0°C, significantly increase the heat generation of the heating component to raise the temperature inside the sensor to a preset third temperature and lower the humidity to a preset humidity value. By forcibly raising the temperature to break through the freezing point and drying the internal environment simultaneously, prevent water vapor from freezing into frost or condensing into dew inside the sensor, and solve the false alarm problem at the root cause.

[0087] In some embodiments, for the specific process of the control unit 104 to control the heat generation of the heating component according to the temperature and humidity inside the refrigerant sensor, it further includes: when the temperature inside the refrigerant sensor is less than or equal to a preset first temperature and the temperature difference is less than or equal to a preset second temperature, increase the heat generation of the heating component; determine whether the temperature inside the refrigerant sensor is greater than or equal to a preset fourth temperature; if the temperature inside the refrigerant sensor is greater than or equal to the preset fourth temperature, then reduce the heat generation of the heating component; if the temperature inside the refrigerant sensor is less than the preset fourth temperature, then keep the heat generation of the heating component unchanged.

[0088] When the temperature inside the refrigerant sensor ≤ 0°C and the indoor ambient temperature - the temperature inside the refrigerant sensor ≤ 0°C, increase the heat generation of the heating component to raise the temperature inside the sensor to a preset fourth temperature. In a low-temperature environment, maintain the temperature inside the sensor above the freezing point by heating to prevent the moisture in the air from directly sublimating into frost and ensure the reliability of refrigerant leakage detection.

[0089] In some embodiments, when the heating component is a resistor, when it is necessary to increase the heat generation of the heating component, the input voltage of the refrigerant sensor can be increased, and the increased input voltage V sensor = V in + k * V temp , V in is the rated input voltage of the refrigerant sensor, k is the proportionality coefficient, V temp = T room - T sensor , is the indoor ambient temperature, and is the temperature inside the refrigerant sensor. When it is necessary to reduce the heat generation of the heating component, the input voltage of the refrigerant sensor can be reduced, and the reduced input voltage V sensor = V in - k * V temp .

[0090] In some embodiments, when the air conditioner operates in the self-cleaning mode or defrosting mode, the temperature of the evaporator pipe will rise and fall sharply within a short period of time. At this time, according to the trend of the mode temperature change, intervene in the sensor temperature compensation in advance. Specifically, when the pipe temperature is about to drop, boost the sensor voltage by V sensor = Vin +k*V max Increase the internal resistance power of the sensor P = V 2 / R, to prevent the sensor from frosting due to a sharp drop in temperature until exiting the self-cleaning mode and defrosting mode. V max is the voltage compensation in the self-cleaning mode and defrosting mode.

[0091] Figure 3 This is a schematic flowchart of another embodiment of the control method of the air conditioner of the present invention. As Figure 3 shown, the method includes:

[0092] Step 1, after the air conditioner is powered on, detect the indoor temperature T r , the temperature T inside the refrigerant sensor s , and the humidity RH inside the refrigerant sensor. Determine whether the current air conditioner is in a special mode such as self-cleaning mode or defrosting mode. If the current is in a special mode such as self-cleaning mode or defrosting mode, then N minutes before the evaporator pipe temperature drops, increase the voltage V of the refrigerant sensor in advance sensor =V in +k*V max ; if the current is not in a special mode such as self-cleaning mode or defrosting mode, then execute Step 2.

[0093] Step 2, V temp =T r -T s , determine the magnitudes of V temp and T s .

[0094] If V temp >0°C, T s >0°C, and it has been maintained for t1 time, then increase the voltage V of the refrigerant sensor sensor =V in +k*V temp , so that RH≤A%, to prevent condensation inside the sensor. A% is the preset humidity value.

[0095] If V temp >0°C, T s ≤0°C, and it has been maintained for t2 time, then increase the voltage V of the refrigerant sensor sensor =V in +k*V temp , so that RH≤A%, T s ≥T1, to prevent frosting and condensation inside the sensor. T1 is the preset temperature value.

[0096] If V temp ≤0°C, T s >0°C, and it has been maintained for t3 time, then decrease the voltage V of the refrigerant sensor sensor =Vin -k*V temp to avoid overheating loss or aging of components due to excessive internal temperature of the sensor.

[0097] If V temp ≤ 0°C and T s ≤ 0°C, and it is maintained for t4 time, then increase the voltage V of the refrigerant sensor sensor = V in + k*V temp to make T s ≥ T2 to avoid frosting and condensation inside the sensor. T2 is a preset temperature value.

[0098] Since the processing and functions implemented by the device in this embodiment are basically corresponding to the embodiments, principles and examples of the foregoing method, for the details not described in the description of this embodiment, reference can be made to the relevant descriptions in the foregoing embodiments and will not be elaborated here.

[0099] Adopting the technical solution of the present invention, a heating component is provided inside the refrigerant sensor of the air conditioner. After the air conditioner is powered on, it is determined whether to prevent condensation and frosting inside the refrigerant sensor according to the internal temperature of the refrigerant sensor and the indoor temperature. If it is determined to prevent condensation and frosting inside the refrigerant sensor, the heat generation amount of the heating component is controlled according to the temperature and humidity inside the refrigerant sensor. Thus, by adjusting the heat generation amount of the heating component inside the refrigerant sensor according to the change trends of the temperature and humidity inside the refrigerant sensor and the room temperature, the humidity inside the sensor is kept low, avoiding false triggering of the refrigerant leakage alarm due to condensation and frosting inside the sensor, improving the accuracy of refrigerant leakage detection, and enhancing the operating stability of the air conditioner.

[0100] According to an embodiment of the present invention, there is also provided an air conditioner corresponding to the control device of the air conditioner. This air conditioner may include: the control device of the air conditioner described above.

[0101] Since the processing and functions implemented by the air conditioner in this embodiment are basically corresponding to the embodiments, principles and examples of the foregoing device, for the details not described in the description of this embodiment, reference can be made to the relevant descriptions in the foregoing embodiments and will not be elaborated here.

[0102] Adopting the technical solution of the present invention, a heating component is provided inside the refrigerant sensor of the air conditioner. After the air conditioner is powered on, it is determined whether to prevent condensation and frosting inside the refrigerant sensor according to the internal temperature of the refrigerant sensor and the indoor temperature. If it is determined to prevent condensation and frosting inside the refrigerant sensor, the heat generation amount of the heating component is controlled according to the temperature and humidity inside the refrigerant sensor. Thus, by adjusting the heat generation amount of the heating component inside the refrigerant sensor according to the change trends of the temperature and humidity inside the refrigerant sensor and the room temperature, the humidity inside the sensor is kept low, avoiding false triggering of the refrigerant leakage alarm due to condensation and frosting inside the sensor, improving the accuracy of refrigerant leakage detection, and enhancing the operating stability of the air conditioner.

[0103] According to an embodiment of the present invention, there is also provided a storage medium corresponding to the control method of an air conditioner. The storage medium includes a stored program, wherein when the program runs, it controls the device where the storage medium is located to execute the above-mentioned control method of the air conditioner.

[0104] Since the processing and functions implemented by the storage medium of this embodiment are basically corresponding to the embodiments, principles and examples of the foregoing method, for the parts not described in detail in the description of this embodiment, reference may be made to the relevant descriptions in the foregoing embodiments, and details will not be repeated here.

[0105] By adopting the technical solution of the present invention, a heating component is provided inside the refrigerant sensor of the air conditioner. After the air conditioner is powered on, it is determined whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor temperature. If it is determined to prevent condensation and frosting inside the refrigerant sensor, the heating quantity of the heating component is controlled according to the temperature and humidity inside the refrigerant sensor. Thus, by adjusting the heating quantity of the heating component inside the refrigerant sensor according to the changing trends of the temperature and humidity inside the refrigerant sensor and the room temperature, the humidity inside the sensor is kept relatively low, avoiding false triggering of the refrigerant leakage alarm due to condensation and frosting inside the sensor, improving the accuracy of refrigerant leakage detection, and enhancing the operating stability of the air conditioner.

[0106] According to an embodiment of the present invention, there is also provided a computer program product corresponding to the control method of an air conditioner. The computer program product includes a computer program, and when the computer program product is processed and executed, it realizes the steps of the above-mentioned control method of the air conditioner.

[0107] Since the processing and functions implemented by the computer program product of this embodiment are basically corresponding to the embodiments, principles and examples of the foregoing method, for the parts not described in detail in the description of this embodiment, reference may be made to the relevant descriptions in the foregoing embodiments, and details will not be repeated here.

[0108] By adopting the technical solution of the present invention, a heating component is provided inside the refrigerant sensor of the air conditioner. After the air conditioner is powered on, it is determined whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor temperature. If it is determined to prevent condensation and frosting inside the refrigerant sensor, the heating quantity of the heating component is controlled according to the temperature and humidity inside the refrigerant sensor. Thus, by adjusting the heating quantity of the heating component inside the refrigerant sensor according to the changing trends of the temperature and humidity inside the refrigerant sensor and the room temperature, the humidity inside the sensor is kept relatively low, avoiding false triggering of the refrigerant leakage alarm due to condensation and frosting inside the sensor, improving the accuracy of refrigerant leakage detection, and enhancing the operating stability of the air conditioner.

[0109] In summary, it is easy for those skilled in the art to understand that, on the premise of no conflict, the above-mentioned advantageous ways can be freely combined and superimposed.

[0110] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the scope of the claims of the present invention.

Claims

1. A control method for an air conditioner, characterized in that, The air conditioner includes a refrigerant sensor; the refrigerant sensor is used to detect whether the refrigerant leaks; a heating component is arranged inside the refrigerant sensor; The method includes: After the air conditioner is powered on, obtain the indoor ambient temperature, the temperature inside the refrigerant sensor, and the humidity inside the refrigerant sensor; Determine whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor ambient temperature; If it is determined to prevent condensation and frosting inside the refrigerant sensor, control the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor.

2. The control method of the air conditioner according to claim 1, characterized in that, Determining whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor ambient temperature includes: Record the difference between the indoor ambient temperature and the temperature inside the refrigerant sensor as the temperature difference, and judge the magnitude of the temperature inside the refrigerant sensor and the magnitude of the temperature difference; If the temperature inside the refrigerant sensor is greater than a preset first temperature, the temperature difference is greater than a preset second temperature, and it has been maintained for a preset first time, it is determined to prevent condensation and frosting inside the refrigerant sensor; If the temperature inside the refrigerant sensor is less than or equal to the preset first temperature, the temperature difference is greater than the preset second temperature, and it has been maintained for a preset second time, it is determined to prevent condensation and frosting inside the refrigerant sensor; If the temperature inside the refrigerant sensor is less than or equal to the preset first temperature, the temperature difference is less than or equal to the preset second temperature, and it has been maintained for a preset third time, it is determined to prevent condensation and frosting inside the refrigerant sensor.

3. The control method of the air conditioner according to claim 2, characterized in that, It also includes: If the temperature inside the refrigerant sensor is greater than the preset first temperature, the temperature difference is less than or equal to the preset second temperature, and it has been maintained for a preset fourth time, reduce the heat generation amount of the heating component.

4. The control method of the air conditioner according to claim 2, wherein, Controlling the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor includes: When the temperature inside the refrigerant sensor is greater than the preset first temperature and the temperature difference is greater than the preset second temperature, increase the heat generation amount of the heating component; Judge whether the humidity inside the refrigerant sensor is less than a preset humidity value; If the humidity inside the refrigerant sensor is less than the preset humidity value, reduce the heat generation amount of the heating component; If the humidity inside the refrigerant sensor is greater than or equal to the preset humidity value, keep the heat generation amount of the heating component unchanged.

5. The control method of the air conditioner according to claim 2, characterized in that, Controlling the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor also includes: When the temperature inside the refrigerant sensor is less than or equal to the preset first temperature and the temperature difference is greater than the preset second temperature, increase the heat generation amount of the heating component; Judge whether the humidity inside the refrigerant sensor is less than the preset humidity value and whether the temperature inside the refrigerant sensor is greater than or equal to a preset third temperature; If the humidity inside the refrigerant sensor is less than the preset humidity value and the temperature inside the refrigerant sensor is greater than or equal to the preset third temperature, reduce the heat generation amount of the heating component; If the humidity inside the refrigerant sensor is greater than or equal to a preset humidity value, or the temperature inside the refrigerant sensor is less than a preset third temperature, the heat generation amount of the heating component is kept unchanged.

6. The control method of the air conditioner according to claim 2, wherein Controlling the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor further includes: When the temperature inside the refrigerant sensor is less than or equal to a preset first temperature and the temperature difference is less than or equal to a preset second temperature, increasing the heat generation amount of the heating component; Judging whether the temperature inside the refrigerant sensor is greater than or equal to a preset fourth temperature; If the temperature inside the refrigerant sensor is greater than or equal to a preset fourth temperature, reducing the heat generation amount of the heating component; If the temperature inside the refrigerant sensor is less than a preset fourth temperature, keeping the heat generation amount of the heating component unchanged.

7. A control device for an air conditioner, characterized in that, The air conditioner includes a refrigerant sensor; the refrigerant sensor is used to detect whether the refrigerant leaks; a heating component is arranged inside the refrigerant sensor; The control device includes: An acquisition unit configured to acquire the indoor environmental temperature, the temperature inside the refrigerant sensor, and the humidity inside the refrigerant sensor after the air conditioner is powered on; A control unit configured to determine whether to prevent condensation and frosting inside the refrigerant sensor according to the temperature inside the refrigerant sensor and the indoor environmental temperature; The control unit is further configured to, if it is determined to prevent condensation and frosting inside the refrigerant sensor, control the heat generation amount of the heating component according to the temperature inside the refrigerant sensor and the humidity inside the refrigerant sensor.

8. An air conditioner, characterized in that, Including: The control device of the air conditioner according to claim 7.

9. A storage medium, characterized in that, The storage medium includes a stored program, wherein when the program runs, it controls the device where the storage medium is located to execute the control method of the air conditioner according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.