Device control method, device, storage medium and electronic device

By real-time detection of the content of harmful gases in the operating environment and automatically controlling the equipment for cleaning operations, the problem of low timeliness of equipment control is solved, efficient cleaning of harmful gases is achieved, and safety is improved.

CN115453900BActive Publication Date: 2025-02-11QINGDAO HAIER TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211021619.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-24
Publication Date
2025-02-11
Estimated Expiration
2042-08-24

AI Technical Summary

Technical Problem

In the prior art, the timeliness of equipment control is low, and it is difficult to deal with complex gas pollution, resulting in the extended manual cleaning operation time when harmful gases exceed the standard, which poses safety hazards.

Method used

By acquiring the first gas in the operating environment in which the device to be controlled is located, the first content of the gas element in the blacklist in the operating environment is determined based on the first gas, and when the first content is greater than or equal to the preset threshold value, the first content is greater than or equal to the preset threshold value. , the equipment to be controlled to perform a cleaning operation on the first gas.

Benefits of technology

Real-time detection and automated cleaning of harmful substance content in the operating environment, improve the timeliness of equipment control, and reduce the risk of harmful gases exceeding the standard.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115453900B_ABST
    Figure CN115453900B_ABST
Patent Text Reader

Abstract

The present application discloses a device control method, device, storage medium and electronic device, which relates to the field of smart home / intelligent home technology. The device control method includes: obtaining a first gas in the operating environment of the device to be controlled; based on the first gas, determining a first content of a gas element in a blacklist in the operating environment; and when the first content is greater than or equal to a preset threshold, controlling the device to be controlled to perform a cleaning operation on the first gas. The present application solves the technical problem of low timeliness of device control in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home / intelligent family technology, and more specifically, to a device control method, device, storage medium and electronic device. Background Art

[0002] Gas pollution is becoming more and more serious, especially in home scenarios, and may cause serious harm to users. For example, when users cook at home, they may unconsciously cause the flammable gas to exceed the standard. If they continue to use open flames in an environment where the flammable gas exceeds the standard, it is very likely that explosions and other dangerous problems will occur.

[0003] However, in the related art, the occurrence of the above-mentioned dangerous problems still relies more on the gas cleaning operation manually performed by the user, such as the user manually controlling the range hood to exhaust smoke, etc. However, the stability of the manually controlled equipment is low and it is difficult to deal with various complex situations that may arise in real life. Therefore, there is a problem of low timeliness of equipment control in the related art. Summary of the invention

[0004] The embodiments of the present application provide a device control method, apparatus, storage medium and electronic device to at least solve the technical problem of low timeliness of device control in the related art.

[0005] According to one aspect of an embodiment of the present application, a device control method is provided, including: obtaining a first gas in an operating environment in which a device to be controlled is located; based on the first gas, determining a first content of a gas element in a blacklist in the operating environment; and when the first content is greater than or equal to a preset threshold, controlling the device to be controlled to perform a cleaning operation on the first gas.

[0006] According to another aspect of an embodiment of the present application, a device control apparatus is also provided, including: an acquisition unit for acquiring a first gas in an operating environment in which the device to be controlled is located; a determination unit for determining a first content of a gas element in a blacklist in the operating environment based on the first gas; and a control unit for controlling the device to be controlled to perform a cleaning operation on the first gas when the first content is greater than or equal to a preset threshold.

[0007] As an optional scheme, the above-mentioned determination unit includes: a first acquisition module, used to obtain a set of gas elements in the above-mentioned first gas; a first determination module, used to determine at least one gas element matching the above-mentioned blacklist from the above-mentioned gas element set; and a second determination module, used to determine the above-mentioned first content based on the gas amount of the above-mentioned at least one gas element.

[0008] As an optional scheme, the above-mentioned second determination module includes: an acquisition submodule, used to obtain the preset weight values ​​corresponding to each type of gas element in the above-mentioned at least one gas element; a determination submodule, used to calculate the target gas quantity corresponding to the above-mentioned each type of gas element according to the above-mentioned preset weight values, and determine the above-mentioned first content based on the above-mentioned target gas quantity.

[0009] As an optional scheme, the above-mentioned control unit includes: a second acquisition module, used to obtain the first historical information of the above-mentioned device to be controlled when the above-mentioned first content is greater than or equal to the above-mentioned preset threshold value, wherein the above-mentioned first historical information is the historical information of the above-mentioned device to be controlled to perform the above-mentioned cleaning operation; a first execution module, used to control the above-mentioned device to be controlled to perform the above-mentioned cleaning operation on the above-mentioned first gas based on the above-mentioned first historical information.

[0010] As an optional solution, the control unit includes: a third acquisition module, used to obtain second historical information of the operating environment when the first content is greater than or equal to the preset threshold, wherein the second historical information is historical information of an operating event occurring in the operating environment; and a second execution module, used to control the controlled device to perform the cleaning operation on the first gas based on the second historical information.

[0011] As an optional solution, the above-mentioned device also includes: a first display module, used to display warning information on the client associated with the above-mentioned device to be controlled during the process of controlling the above-mentioned device to be controlled to perform a cleaning operation on the above-mentioned first gas, wherein the above-mentioned warning information is used to warn that the gas situation in the above-mentioned operating environment is abnormal.

[0012] As an optional scheme, the above-mentioned device also includes: a fourth acquisition module, used to acquire the second gas in the above-mentioned operating environment after the above-mentioned device to be controlled performs a cleaning operation on the above-mentioned first gas; a third determination module, used to determine the second content of the gas elements in the above-mentioned blacklist in the above-mentioned operating environment based on the above-mentioned second gas after the above-mentioned device to be controlled performs a cleaning operation on the above-mentioned first gas; a second display module, used to display real-time information on the client associated with the above-mentioned device to be controlled after the above-mentioned device to be controlled performs a cleaning operation on the above-mentioned first gas, when the above-mentioned second content is less than the above-mentioned preset threshold, wherein the above-mentioned real-time information is used to prompt that the gas situation in the above-mentioned operating environment is normal.

[0013] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above device control method.

[0014] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the device control method through the computer program.

[0015] In an embodiment of the present application, a first gas in the operating environment where the device to be controlled is located is obtained; based on the first gas, a first content of a gas element in the blacklist in the operating environment is determined; when the first content is greater than or equal to a preset threshold, the device to be controlled is controlled to perform a cleaning operation on the first gas. By real-time detection of the content of harmful substances in the operating environment where the device to be controlled is located, and when the content of harmful substances exceeds the standard, the device to be controlled is promptly controlled to clean the gas in the operating environment so that the content of harmful substances is lower than the exceeding standard, the purpose of automatically detecting the content of harmful substances in the operating environment is achieved. Furthermore, when the content of harmful substances exceeds the standard, the device to be controlled is promptly controlled to perform a cleaning operation, thereby achieving the technical effect of improving the timeliness of device control, thereby solving the technical problem of low timeliness of device control in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0018] Figure 1 is a hardware environment schematic diagram of a device control method according to an embodiment of the present application;

[0019] Figure 2 is a schematic diagram of a process of an optional device control method according to an embodiment of the present application;

[0020] Figure 3 is a schematic diagram of an optional device control method according to an embodiment of the present application;

[0021] Figure 4 is a schematic diagram of another optional device control method according to an embodiment of the present application;

[0022] Figure 5 is a schematic diagram of another optional device control method according to an embodiment of the present application;

[0023] Figure 6 is a schematic diagram of another optional device control method according to an embodiment of the present application;

[0024] Figure 7 is a schematic diagram of an optional information processing device according to an embodiment of the present invention;

[0025] Figure 8 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] According to one aspect of an embodiment of the present application, a method for interacting with a smart home device is provided. The method for interacting with a smart home device is widely used in smart home (Smart Home), smart home, smart home device ecosystem, smart home (IntelligenceHouse) ecosystem and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the method for interacting with the smart home device can be applied to Figure 1In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0029] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0030] Optionally, as an optional implementation, as Figure 2 As shown, the device control method includes:

[0031] Step S202, obtaining a first gas in an operating environment of the device to be controlled;

[0032] Step S204, based on the first gas, determining a first content of a gas element in the blacklist in the operating environment;

[0033] Step S206, when the first content is greater than or equal to a preset threshold, controlling the device to be controlled to perform a cleaning operation on the first gas.

[0034] Optionally, in this embodiment, the device control method can be applied to home scenes but is not limited to it. In a kitchen environment in a home scene, since the fume gas formed by the combustion of gas and the heating of grease in the kitchen contains a variety of substances that are seriously harmful to the human body, the user's health is damaged due to the inevitable contact with a variety of substances that are seriously harmful to the human body during cooking in the kitchen environment. Not only that, when the user realizes that the harmful gas in the kitchen exceeds the standard, it is often necessary to manually perform gas cleaning operations, such as manually controlling the range hood to exhaust smoke. However, when the user realizes that the harmful gas in the kitchen exceeds the standard, the harmful gas content in the kitchen is often completely exceeded, and the manual execution of the gas cleaning operation requires a certain amount of time to reduce the harmful gas content in the kitchen to a standard that does not exceed the standard. In this way, the manual control of the device has the problem of poor timeliness.

[0035] By utilizing the above-mentioned device control method, the first content of the gas element in the blacklist in the kitchen environment can be obtained, and when the first content is not less than a preset threshold value, it is determined that the content of the gas element in the blacklist in the current kitchen environment has exceeded the standard, and the controlled device is controlled to perform a cleaning operation on the first gas in the current kitchen environment. This eliminates the need for the user to manually perform a gas cleaning operation, and can achieve automated cleaning operations on harmful gases with excessive content in the kitchen environment, thereby timely reducing the harmful gas content in the current kitchen environment.

[0036] Optionally, in this embodiment, the device control method can be applied in industrial scenarios but is not limited to it. In an industrial production environment, the production process of industrial materials is accompanied by the generation and transmission of various industrial waste gases. Industrial waste gases exceeding a certain concentration will damage the health of workers in the industrial production environment on the one hand, and will also cause great harm to the natural environment when subsequently discharged on the other hand. In addition, industrial waste gas contains a variety of pollution factors such as particulate matter, sulfur dioxide, carbon monoxide, etc., with complex components, difficult to handle, and low efficiency.

[0037] By utilizing the above-mentioned device control method, the first content of the gas elements in the blacklist in the industrial production environment can be obtained, and when the first content is not less than a preset threshold value, it is determined that the content of the gas elements in the blacklist in the current industrial production environment has exceeded the standard, and the controlled device is controlled to perform a cleaning operation on the first gas in the current environment. This eliminates the need for the user to manually perform a gas cleaning operation, and thus enables automated cleaning operations on the blacklisted gas elements whose content exceeds the standard in the industrial production environment, thereby reducing the content of the blacklisted gas elements in the current industrial production environment.

[0038] Optionally, in this embodiment, the device to be controlled is a device for detecting the content of the gas to be detected in the operating environment, and performing a cleaning operation on the gas in the operating environment when the content of the gas to be detected exceeds the standard; the device to be controlled may be, but is not limited to, a household device in a home scene, and may be, but is not limited to, a range hood, an air conditioner, an air purification device, etc. The gas element in the blacklist is at least one gas element pre-set by the user in the device to be controlled, and may be, but is not limited to, harmful substances that cause harm to human health. Taking a kitchen environment in an optional home scene as an example, since a variety of harmful substances such as carbon monoxide, carbon dioxide, nitrogen oxides, acrolein, benzopyrene, and combustible gases are generated during the cooking process of the user, any of which exceeds a certain content will directly or indirectly cause harm to human health. In this way, the device to be controlled may be, but is not limited to, an all-in-one detection device for a variety of possible harmful substances, and even in a kitchen environment with a large number of optional harmful substances, it can detect the corresponding content of each harmful gas in the operating environment in real time. The device to be controlled may be, but is not limited to being associated with other devices in the operating environment in which it is located. When it is detected that the content of a harmful substance in the operating environment is greater than or equal to a preset threshold, controlling the device to be controlled to perform a cleaning operation on the first gas in the operating environment may be, but is not limited to, controlling other devices associated with the device to be controlled to perform a cleaning operation on the first gas.

[0039] To further illustrate, the optional Figure 3 As shown, the device to be controlled 302 is in the operating environment 304, the gas element 308 in the blacklist is part of the gas elements in the first gas 306, and the first gas element 306 is the gas in the operating environment 304; assuming that the first content of the gas element 308 in the blacklist in the operating environment 304 is greater than or equal to a certain preset threshold, the device to be controlled 302 performs a cleaning operation on the first gas 306.

[0040] Through the embodiments provided by the present application, a first gas in the operating environment where the device to be controlled is located is obtained; based on the first gas, a first content of a gas element in a blacklist in the operating environment is determined; when the first content is greater than or equal to a preset threshold, the device to be controlled is controlled to perform a cleaning operation on the first gas. By real-time detection of the content of harmful substances in the operating environment where the device to be controlled is located, and when the content of harmful substances exceeds the standard, the device to be controlled is promptly controlled to clean the gas in the operating environment so that the content of harmful substances is lower than the exceeding standard, the purpose of automatically detecting the content of harmful substances in the operating environment is achieved. Furthermore, when the content of harmful substances exceeds the standard, the device to be controlled is promptly controlled to perform a cleaning operation, thereby achieving the technical effect of improving the timeliness of device control, thereby solving the technical problem of low timeliness of device control in related technologies.

[0041] As an optional solution, based on the first gas, determining a first content of a gas element in the blacklist in the operating environment includes:

[0042] S1, obtaining a set of gas elements in a first gas;

[0043] S2, determining at least one gas element matching the blacklist from the gas element set;

[0044] S3, determining a first content based on the gas amount of at least one gas element.

[0045] Optionally, in this embodiment, the gas elements in the blacklist may be but are not limited to at least one gas element pre-set by the user in the device to be controlled, may be but are not limited to harmful substances that cause harm to human health, and may be but are not limited to one or more of a variety of harmful substances such as carbon monoxide, carbon dioxide, nitrogen oxides, acrolein, benzopyrene, combustible gases, etc.

[0046] Through the embodiments provided by the present application, a set of gas elements in a first gas is obtained; at least one gas element matching a blacklist is determined from the set of gas elements; and a first content is determined based on the gas amount of at least one gas element. By taking the gas elements in the blacklist as specific gases to be detected, the purpose of accurately detecting one or more gases to be detected is achieved, thereby achieving the technical effect of ensuring the gas quality in the environment to be detected.

[0047] As an optional solution, determining the first content based on the gas amount of at least one gas element includes:

[0048] S1, obtaining preset weight values ​​corresponding to various types of gas elements in at least one gas element;

[0049] S2, calculating the target gas amount corresponding to each type of gas element according to the preset weight value, and determining the first content based on the target gas amount.

[0050] Optionally, in this embodiment, since the gas elements in the blacklist may include but are not limited to multiple gas elements, and different gas elements in the blacklist may cause different degrees of harm to human health, the process of determining the first content of the gas elements in the blacklist may include but is not limited to calculating the target gas quantity corresponding to each type of gas element according to the preset weight values ​​corresponding to the gas elements in the blacklist and determining the first content based on the target gas quantity.

[0051] To further illustrate, optionally, the gas elements in the blacklist are carbon monoxide and carbon dioxide. Since carbon monoxide is significantly more harmful to human health than carbon dioxide, and it is difficult for users to perceive carbon monoxide but has a more obvious concentration perception effect on carbon dioxide, optionally, it can be set in the form of the sum of the preset weight values ​​of the gas elements being 1, such as setting the preset weight value of carbon monoxide to 0.7 and the preset weight value of carbon dioxide to 0.3. Optionally, it can also be set in combination with the proportion of gas elements in a normal environment, parameters of a certain multiple preset by humans, and other information, such as setting the preset weight value of carbon monoxide to 5.0 and the preset weight value of carbon dioxide to 10.0. After obtaining the preset weights of carbon monoxide and carbon dioxide, the corresponding target gas amount is calculated and the first content is determined based on the target gas amount. Optionally, the calculation of the corresponding target gas amount can be, but not limited to, the product or division of the gas amount and the preset weight or other calculation forms, and no additional restrictions are made here. Similarly, the determination of the first content based on the target gas amount can be, but not limited to, the accumulation of each corresponding target gas amount or other calculation forms, and no additional restrictions are made here.

[0052] Through the embodiments provided in the present application, preset weight values ​​corresponding to each type of gas element in at least one gas element are obtained; the target gas amounts corresponding to each type of gas element are calculated according to the preset weight values, and the first content is determined based on the target gas amount.

[0053] As an optional solution, when the first content is greater than or equal to a preset threshold, controlling the device to be controlled to perform a cleaning operation on the first gas includes:

[0054] S1, when the first content is greater than or equal to a preset threshold, obtaining first historical information of the device to be controlled, wherein the first historical information is historical information of the device to be controlled to perform a cleaning operation;

[0055] S2, controlling the device to be controlled to perform a cleaning operation on the first gas based on the first historical information.

[0056] Optionally, in this embodiment, the first historical information is the historical information of the controlled device being controlled to perform a cleaning operation, which is used to record the user usage habit information of the controlled device in the past period of time. The user usage habit information includes the user's usage time habits and the user's gear usage habits. The user usage habit information can be but is not limited to being determined by the user's usage records of the controlled device for nearly N times in the past period of time, where N is a positive integer.

[0057] It should be noted that, when the first content is greater than or equal to a preset threshold, the first historical information of the device to be controlled is obtained, wherein the first historical information is the historical information of the device to be controlled to perform a cleaning operation; the device to be controlled is controlled to perform a cleaning operation on the first gas based on the first historical information. By controlling the controlled device to perform a cleaning operation through the historical first information including user habit information, the purpose of predicting user behavior based on user historical habits is achieved, and then the controlled device is controlled to perform the predicted user behavior in a timely manner, thereby achieving the technical effect of improving the timeliness of device control.

[0058] Further examples are given, as shown in Table 1, where the range hood is taken as the device to be controlled. The method for calculating the user's usage time habit is as follows: in the time dimension, the common time for the user to use the range hood is determined to be the following four time periods: 6:00 to 10:00 a.m., 10:00 to 1:00 p.m., 1:00 to 17:00 p.m., and 17:00 to 20:00 p.m.; further, 10 usage records of the range hood are obtained in each time period; in each time period, according to each usage record of the range hood, the usage records of the corresponding 15 minutes before and after are searched as a set, and the number of times the range hood is used in each set is calculated, which is defined as the parameter: number of times the range hood is used (openTime); in each time period, there are at most 10 sets of the last 10 usage records; the set of the number of times calculated according to the rule is given a time weight from 10 to 1 according to the time of each power-on record from near to far, which is defined as the parameter: time weight (important); in each time period, the final score of each set = openTime*important corresponding to the set, and the set data is determined to be used as the user habit data according to the final determined habit data set; the time in the data set is averaged, and the average value is taken as the user habit time.

[0059] Table 1

[0060]

[0061] To further illustrate, an optional example is shown in Table 2. Taking the range hood as the device to be controlled, the method for calculating the user's gear usage habits is as follows: in the time dimension, determine that the user's common time for using the range hood is the following four time periods: 6:00 to 10:00 a.m., 10:00 to 1:00 p.m., 1:00 to 17:00 p.m., and 17:00 to 20:00 p.m.; further obtain 10 usage records of the range hood in each time period; in each time period, find the 10 gear data based on each use record of the range hood, and group them according to the gear, which is defined here as the parameter: gear usage count (dwtime), 10 usage records, and a maximum of 10 sets appear; the set of gear counts calculated according to the rules is defined as the gear most recently used time in the set and is given a time weight, which is defined as the parameter: time weight (important); in each time period, the final score of each set = dwtime*important corresponding to the set, and the gear corresponding to this set data is determined to be the user's habitual gear.

[0062] Table 2

[0063]

[0064] Through the embodiments provided by the present application, the first historical information of the device to be controlled is obtained, wherein the first historical information is the historical information of the device to be controlled to perform a cleaning operation; based on the first historical information, the device to be controlled is controlled to perform a cleaning operation on the first gas. By controlling the controlled device to perform the cleaning operation through the historical first information including the user's habit information, the purpose of predicting the user's behavior according to the user's historical habits is achieved, and then the controlled device is controlled to perform the predicted user behavior in a timely manner, thereby achieving the technical effect of improving the timeliness of device control.

[0065] As an optional solution, when the first content is greater than or equal to a preset threshold, controlling the device to be controlled to perform a cleaning operation on the first gas includes:

[0066] S1, when the first content is greater than or equal to a preset threshold, obtaining second historical information of the operating environment, wherein the second historical information is historical information of an operating event occurring in the operating environment;

[0067] S2, controlling the device to be controlled to perform a cleaning operation on the first gas based on the second historical information.

[0068] Optionally, in this embodiment, the second historical information is historical information of operation events occurring in the operation environment, and is used to record historical information of operation events performed by the user in the operation environment in the past period of time, wherein the operation events may all be events that generate harmful gases, such as cooking operations, juice extraction operations, and even food corruption events. Since the user's behavior operations in the operation environment are not limited to a single event, there is a certain period of time when the user's high-frequency operations lead to excessive increase in harmful gases and the controlled equipment cannot be cleaned up in a short period of time, thereby causing damage to the user's health.

[0069] By utilizing the above-mentioned method of controlling the controlled device to perform a cleaning operation on the first gas based on the second historical information, some operations that have occurred in the operating environment can be obtained through the second historical information. Optionally, the second historical information can include but is not limited to frequency information indicating the user performing operation events in a certain time period in the operating environment, such as indicating that the user has a low operation frequency in the operating environment in the morning or a high operation frequency in the operating environment at noon, wherein the frequency of the user performing operation events in the operating environment determines the initial speed of the controlled device performing the cleaning operation on the gas. When the frequency of operation events is high, the initial speed of controlling the controlled device to perform the cleaning operation is high; and when the operation frequency is low, the initial speed of controlling the controlled device to perform the cleaning operation is low; and even if the controlled device is to perform a cleaning operation on the gas in the operating environment, based on the above-mentioned method, accurate and reasonable cleaning operations can be performed on the current environment according to the historical second information, without generating unnecessary waste of resources, and the rationality of control can be achieved based on more stringent control requirements.

[0070] It should be noted that, when the first content is greater than or equal to the preset threshold, the second historical information of the operating environment is obtained, wherein the second historical information is the historical information of the operating events occurring in the operating environment; and the controlled device is controlled to perform a cleaning operation on the first gas based on the second historical information. The controlled device is controlled to perform a cleaning operation by using the historical second information including the operating events in the operating environment, and the user operation event frequency is determined according to the historical operation event information of the operating environment, thereby achieving the purpose of precise operation control of the controlled device, thereby achieving the technical effect of improving the efficiency of device control.

[0071] To further illustrate, an optional example is shown in Table 3. Taking the range hood as the device to be controlled, the method for calculating the frequency of user-executed operation events is as follows: in the time dimension, determine that the common time for users to use the range hood is the following four time periods: 6:00 to 10:00 a.m., 10:00 to 1:00 p.m., 1:00 to 17:00 p.m., and 17:00 to 20:00 p.m.; further obtain 10 operation events in the operation environment in each time period; in each time period, according to each operation event, find the operation event records of the corresponding 15 minutes before and after, as a set, calculate the number of operation events in each set, defined as parameter: number of operation events (actionTime); in each time period, there are at most 10 sets of operation events in the operation environment in the last 10 times; according to the set of the number calculated by the rule, give a time weight from 10 to 1 according to the recording time of each operation event from near to far, defined as parameter: time weight (important); in each time period, the final score of each set = actionTime*important corresponding to the set, and determine to use this set data as the frequency set of operation events in the user's operation environment.

[0072] Table 3

[0073]

[0074] Through the embodiments provided by the present application, the second historical information of the operating environment is obtained, wherein the second historical information is the historical information of the operating events occurring in the operating environment; based on the second historical information, the controlled device is controlled to perform a cleaning operation on the first gas. The controlled device is controlled to perform a cleaning operation by using the historical second information including the operating events in the operating environment, and the user operation event frequency is determined according to the historical operation event information of the operating environment, thereby achieving the purpose of precise operation control of the controlled device, thereby achieving the technical effect of improving the efficiency of device control.

[0075] As an optional solution, in the process of controlling the device to be controlled to perform a cleaning operation on the first gas, the method further includes:

[0076] S1, displaying a warning message on a client associated with the device to be controlled, wherein the warning message is used to warn of abnormal gas conditions in the operating environment.

[0077] Optionally, in this embodiment, during the process of controlling the device to be controlled to perform a cleaning operation on the first gas, a warning message is displayed on the client associated with the device to be controlled, wherein the warning message may be, but is not limited to, warning the user that the gas situation in the operating environment is abnormal. Optionally, the warning message may be, but is not limited to, displaying to the user the status of the cleaning operation currently performed by the device to be controlled on the first gas, such as the status display information in the intelligent ventilation opening. Optionally, the warning message may be, but is not limited to, providing the user with instruction information for autonomously starting or closing the cleaning operation performed on the first gas.

[0078] To further illustrate, the optional Figure 4 As shown, when the gas content in the blacklist in the operating environment of the device to be controlled is greater than or equal to a certain threshold, the device to be controlled is controlled to perform a cleaning operation on the first gas, and a warning message 404 is displayed on the client 402 associated with the device to be controlled. The warning message 404 may include, but is not limited to, information "The current environmental gas situation is abnormal, and is being processed!" and current cleaning operation status information "Intelligent ventilation is turned on". Optionally, the user can start or turn off the cleaning operation performed on the first gas by himself.

[0079] Through the embodiments provided in the present application, warning information is displayed on a client associated with the device to be controlled, wherein the warning information is used to warn of abnormal gas conditions in the operating environment.

[0080] As an optional solution, after controlling the device to be controlled to perform a cleaning operation on the first gas, the method further includes:

[0081] S1, obtaining a second gas in an operating environment;

[0082] S2, determining a second content of a gas element in the blacklist in the operating environment based on the second gas;

[0083] S3, when the second content is less than a preset threshold, real-time information is displayed on a client associated with the device to be controlled, wherein the real-time information is used to prompt that the gas situation in the operating environment is normal.

[0084] Optionally, in this embodiment, the second gas is the gas in the operating environment of the device to be controlled after the device to be controlled performs a cleaning operation on the first gas, and the second content is the gas content of the gas elements in the blacklist in the operating environment of the device to be controlled after the device to be controlled performs a cleaning operation on the first gas.

[0085] To further illustrate, the optional Figure 5As shown, after controlling the device to be controlled to perform a cleaning operation on the first gas, re-detect whether the content of the gas elements in the blacklist of the operating environment exceeds the standard. When the second content of the gas elements in the blacklist in the operating environment is less than the preset threshold, it can be considered that the gas situation in the operating environment is normal, and then display information 504 is displayed on the client 502 associated with the device to be controlled. The display information 504 may include but is not limited to "The current environmental gas situation is normal!" and the current cleaning operation status information "Smart ventilation is turned off".

[0086] Through the embodiments provided in the present application, a second gas in the operating environment is obtained; based on the second gas, a second content of the gas elements in the blacklist in the operating environment is determined; when the second content is less than a preset threshold, real-time information is displayed on a client associated with the device to be controlled, wherein the real-time information is used to indicate that the gas situation in the operating environment is normal.

[0087] As an alternative, for example Figure 6 As shown, for ease of understanding, the device control method is applied to the scenario where the user is cooking in the kitchen: the range hood is the device to be controlled, the kitchen is the operating environment, and the combustible gas and other harmful gases generated during the cooking process, such as carbon monoxide, carbon dioxide, nitrogen oxides, acrolein, and benzopyrene, are the gas elements in the blacklist.

[0088] Step S602, start the detection device: collect gas data in the operating environment, wherein the gas data is used to determine the subsequent range hood action, and the detection device is used to detect the concentration of carbon monoxide, carbon dioxide, nitrogen oxides, acrolein, benzopyrene, and combustible gas, and determine whether it exceeds the standard, and upload the relevant data to the cloud in real time;

[0089] Step S604, whether the combustible gas exceeds the standard: according to the gas data collected by the detection device, determine whether the combustible gas exceeds the standard, if the combustible gas exceeds the standard, execute step S606, otherwise execute step S614;

[0090] Step S606, whether the range hood is turned on: when the detection device detects that the combustible gas exceeds the standard, determine whether the range hood is turned on. If the range hood is turned on, execute step S610; otherwise, execute step S608;

[0091] Step S608, power on: start the range hood;

[0092] Step S610, adjust the range hood gear: when it is detected that the combustible gas exceeds the standard and the range hood is in the on state, adjust the range hood gear. When the combustible gas exceeds the standard, an explosion may occur, which is very dangerous and may occur immediately. It is necessary to adjust the range hood to the maximum air volume and quickly change the air to ensure that the concentration of combustible gas does not exceed the standard;

[0093] Step S612, sending information to the user APP: while adjusting the range hood gear, the APP sends a notification message to inform the user, wherein the APP is also used to receive system push messages and notify the user that harmful gases exceed the standard. The APP is also used to open the switch for the user, user settings, whether to perform intelligent air exchange, and display the current environment and processing status;

[0094] Step S614, any of the other five gas indicators exceeds the standard: if the combustible gas content does not exceed the standard, determine whether the content indicators of the other five gases exceed the standard. If any of the content indicators of the other five gases exceeds the standard, execute step S616, otherwise execute step S628;

[0095] Step S616, whether the range hood is turned on: if any of the other five gas content indicators exceeds the standard, determine whether the range hood is turned on. If the range hood is turned on, execute step S618; otherwise, execute step S620;

[0096] Step S618, adjust the range hood gear: if any of the other five gas content indicators is detected to be excessive and the range hood is already turned on, adjust the range hood gear. If the user has already turned on the range hood, it means that the current gear is too low and cannot remove harmful gases in time, and then the range hood will be increased by one gear;

[0097] Step S620, power on: start the range hood;

[0098] Step S622, learning the user's habits and setting the range hood gear: learning the user's habits and setting the range hood gear according to the range hood gear that the user used to set;

[0099] Step S624, learning user habits and predicting user cooking time: learning user habits and forming a user cooking time prediction based on user cooking time data; after predicting the user's cooking time, turning on the kitchen hood for ventilation five minutes in advance to ensure that the user has a good air environment before entering the kitchen;

[0100] It should be noted that the above-mentioned learning of user habits includes: collecting the user's range hood on / off and gear data, and generating a user portrait based on the user, time, space, context, intention and other data, and associating big data tags (device usage information, people, space). Based on the user data, it is predicted that the user may cook every day, and the gear of the range hood that is used to be turned on. In this way, the air can be accurately changed for the user before cooking to create a comfortable kitchen environment.

[0101] Step S626, whether the range hood is turned on: judging whether the range hood is turned on or off according to the collected sensor over-limit data; if the range hood is turned on, executing step S628; otherwise, executing step S630;

[0102] Step S628, end the process;

[0103] Step S630, power on: start the range hood;

[0104] Step S632, learning user habits and setting the range hood gear: learning user habits and setting the range hood gear according to the range hood gear that the user was accustomed to setting before.

[0105] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0106] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0107] According to another aspect of the embodiments of the present application, a device control apparatus for implementing the above device control method is also provided. Figure 7 As shown, the device comprises:

[0108] An acquisition unit 702 is used to acquire a first gas in an operating environment where the device to be controlled is located;

[0109] A determination unit 704 is used to determine a first content of a gas element in a blacklist in the operating environment based on the first gas;

[0110] The control unit 706 is used to control the device to be controlled to perform a cleaning operation on the first gas when the first content is greater than or equal to a preset threshold.

[0111] As an optional solution, the above-mentioned determination unit 704 includes: a first acquisition module, used to obtain a set of gas elements in the first gas; a first determination module, used to determine at least one gas element matching the blacklist from the gas element set; and a second determination module, used to determine the first content based on the gas amount of at least one gas element.

[0112] As an optional scheme, the above-mentioned second determination module includes: an acquisition submodule, used to obtain preset weight values ​​corresponding to each type of gas element in at least one gas element; a determination submodule, used to calculate the target gas quantity corresponding to each type of gas element according to the preset weight value, and determine the first content based on the target gas quantity.

[0113] As an optional solution, the above-mentioned control unit 706 includes: a second acquisition module, used to obtain first historical information of the device to be controlled when the first content is greater than or equal to a preset threshold, wherein the first historical information is historical information of the device to be controlled being controlled to perform a cleaning operation; a first execution module, used to control the device to be controlled to perform a cleaning operation on the first gas based on the first historical information.

[0114] As an optional solution, the above-mentioned control unit 706 includes: a third acquisition module, used to obtain second historical information of the operating environment when the first content is greater than or equal to a preset threshold, wherein the second historical information is historical information of an operating event occurring in the operating environment; and a second execution module, used to control the controlled device to perform a cleaning operation on the first gas based on the second historical information.

[0115] As an optional solution, the above-mentioned device also includes: a first display module, which is used to display warning information on the client associated with the controlled device during the process of controlling the controlled device to perform a cleaning operation on the first gas, wherein the warning information is used to warn of abnormal gas conditions in the operating environment.

[0116] As an optional solution, the above-mentioned device also includes: a fourth acquisition module, used to acquire a second gas in the operating environment after controlling the device to be controlled to perform a cleaning operation on the first gas; a third determination module, used to determine a second content of the gas elements in the blacklist in the operating environment based on the second gas after controlling the device to be controlled to perform a cleaning operation on the first gas; a second display module, used to display real-time information on a client associated with the device to be controlled after controlling the device to be controlled to perform a cleaning operation on the first gas, when the second content is less than a preset threshold, wherein the real-time information is used to prompt that the gas situation in the operating environment is normal.

[0117] For specific embodiments, reference may be made to the examples shown in the above-mentioned device control method, which will not be described in detail in this example.

[0118] According to another aspect of the embodiments of the present application, an electronic device for implementing the above device control method is also provided. Figure 8 As shown, the electronic device includes a memory 802 and a processor 804. The memory 802 stores a computer program, and the processor 804 is configured to execute the steps in any of the above method embodiments through the computer program.

[0119] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0120] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0121] S1, obtaining a first gas in an operating environment where a device to be controlled is located;

[0122] S2, based on the first gas, determining a first content of a gas element in the blacklist in the operating environment;

[0123] S3, when the first content is greater than or equal to a preset threshold, controlling the device to be controlled to perform a cleaning operation on the first gas.

[0124] Alternatively, a person skilled in the art may understand that: Figure 8 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 8 The structure of the electronic device is not limited. Figure 8 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 8 Different configurations are shown.

[0125] Among them, the memory 802 can be used to store software programs and modules, such as program instructions / modules corresponding to the device control method and apparatus in the embodiments of the present application. The processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, that is, to implement the above-mentioned device control method. The memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 802 may further include a memory remotely located relative to the processor 804, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 802 may specifically be used, but is not limited to, to store information such as a first content, a preset threshold, etc. As an example, such as Figure 8 As shown, the memory 802 may include but is not limited to the acquisition unit 702, the determination unit 704, and the control unit 706 in the device control apparatus. In addition, it may also include but is not limited to other module units in the device control apparatus, which will not be described in detail in this example.

[0126] Optionally, the transmission device 806 is used to receive or send data via a network. Specific examples of the network may include wired networks and wireless networks. In one example, the transmission device 806 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 806 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0127] In addition, the electronic device further includes: a display 808 for displaying information such as the first content and the preset threshold; and a connection bus 810 for connecting various module components in the electronic device.

[0128] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.

[0129] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.

[0130] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0131] It should be noted that the computer system of the electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0132] The computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory and the random access memory are connected to each other through a bus. The input / output interface (I / O interface) is also connected to the bus.

[0133] The following components are connected to the input / output interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0134] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions defined in the system of the present application are executed.

[0135] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.

[0136] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0137] S1, obtaining a first gas in an operating environment where a device to be controlled is located;

[0138] S2, based on the first gas, determining a first content of a gas element in the blacklist in the operating environment;

[0139] S3, when the first content is greater than or equal to a preset threshold, controlling the device to be controlled to perform a cleaning operation on the first gas.

[0140] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0141] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0142] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0143] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0144] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0145] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0146] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0147] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A device control method, characterized in that: include: Acquire a first gas in an operating environment where the device to be controlled is located; Based on the first gas, determining a first content of a gas element in a blacklist in the operating environment; When the first content is greater than or equal to a preset threshold, performing one of the following cleaning operations: controlling the device to be controlled to perform a cleaning operation on the first gas based on first historical information of the device to be controlled, wherein the first historical information is historical information of the device to be controlled to perform the cleaning operation, and is used to record the user's usage time habits and the user's usage gear habits of the device to be controlled; Controlling the device to be controlled to perform a cleaning operation on the first gas based on second historical information of the device to be controlled, wherein the second historical information is historical information of an operation event occurring in the operation environment, and the operation event is an event of generating harmful gas; Before controlling the device to be controlled to perform a cleaning operation on the first gas based on the first historical information of the device to be controlled, the method further includes: acquiring the user's usage time habits; Wherein, obtaining the user's usage time habits includes: Acquire at least one time period during which the user uses the device to be controlled; Obtain N usage records associated with each time period in the at least one time period, where N is a positive integer; establish one-to-one corresponding sets for the N usage records to obtain N sets, wherein: The i-th set includes the usage records of the device to be controlled within a preset time period before and after the i-th usage record; Obtaining a habit score corresponding to each of the N sets, wherein the habit score corresponding to the i-th set is the number of usage records contained in the i-th set multiplied by the habit weight corresponding to the i-th set, wherein the habit weight is determined based on the time sequence of the i-th usage record in the N usage records; The set with the highest habit score in each time period is obtained to obtain at least one set, and the average value of the usage time indicated by the usage records corresponding to the at least one set is determined as the user's usage time habit.

2. The method according to claim 1, characterized in that The determining, based on the first gas, a first content of a gas element in the blacklist in the operating environment includes: Acquire a set of gas elements in the first gas; Determining at least one gas element matching the blacklist from the set of gas elements; The first content is determined based on the gas amount of the at least one gas element.

3. The method according to claim 2, characterized in that The determining the first content based on the gas amount of the at least one gas element comprises: Obtaining preset weight values ​​corresponding to various types of gas elements in the at least one gas element; The target gas amounts corresponding to the various gas elements are calculated according to the preset weight values, and the first content is determined based on the target gas amounts.

4. The method according to any one of claims 1 to 3, characterized in that In the process of controlling the device to be controlled to perform a cleaning operation on the first gas, the method further includes: A warning message is displayed on a client associated with the device to be controlled, wherein the warning message is used to warn that the gas situation in the operating environment is abnormal.

5. The method according to claim 4, characterized in that After controlling the device to be controlled to perform a cleaning operation on the first gas, the method further includes: Acquiring a second gas in the operating environment; Based on the second gas, determining a second content of the gas element in the blacklist in the operating environment; When the second content is less than the preset threshold, real-time information is displayed on a client associated with the device to be controlled, wherein the real-time information is used to prompt that the gas situation in the operating environment is normal.

6. A device control device, characterized in that: include: An acquisition unit, used for acquiring a first gas in an operating environment where the device to be controlled is located; a determining unit, configured to determine, based on the first gas, a first content of a gas element in a blacklist in the operating environment; A control unit, configured to perform one of the following cleaning operations when the first content is greater than or equal to a preset threshold: Based on the first historical information of the device to be controlled, the device to be controlled is controlled to perform a cleaning operation on the first gas, wherein the first historical information is historical information of the device to be controlled to perform the cleaning operation, and is used to record the user's usage time habits and the user's usage gear habits of the device to be controlled; Controlling the device to be controlled to perform a cleaning operation on the first gas based on second historical information of the device to be controlled, wherein the second historical information is historical information of an operation event occurring in the operation environment, and the operation event is an event of generating harmful gas; The device is further configured to obtain the user's usage time habit before controlling the device to be controlled to perform a cleaning operation on the first gas based on the first historical information of the device to be controlled; The device is also used to obtain at least one time period in which the user uses the device to be controlled; obtain N usage records associated with each time period in the at least one time period, where N is a positive integer; establish one-to-one corresponding sets for the N usage records to obtain N sets, wherein the i-th set contains the usage records of the device to be controlled within a preset time period before and after the i-th usage record; obtain the habit scores corresponding to each of the N sets, wherein the habit score corresponding to the i-th set is the number of usage records contained in the i-th set multiplied by the habit weight corresponding to the i-th set, wherein the habit weight is determined based on the time sequence of the i-th usage record in the N usage records; obtain the set with the highest habit score in each time period to obtain at least one set, and determine the average value of the usage time indicated by the usage records corresponding to the at least one set as the user's usage time habit.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 5 when executed.

8. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 5 through the computer program.

Citation Information

Patent Citations

  • Ventilation control method and device and air conditioner

    CN105823180A

  • Air conditioner control method and control device as well as air conditioner

    CN113685982A