Air conditioner control method and system and air conditioner
1. An air conditioner control method, comprising:
acquiring indoor light brightness at the current moment;
if the current moment is judged and known to be within a first preset time period and the indoor light brightness is smaller than or equal to a first preset brightness, detecting whether a target object exists in a sensing area or not based on a sensing module configured in the air conditioner;
and if the target object exists in the induction area, controlling an induction lamp arranged in the air conditioner to be turned on.
2. The air conditioner control method according to claim 1, wherein the controlling of the turn-on of an induction lamp provided in the air conditioner further comprises:
and if the target object does not exist in the induction area, controlling the induction lamp to be turned off after a second preset time period.
3. The air conditioner control method according to claim 1, wherein the obtaining of the indoor light brightness at the current time further comprises:
and if the current time is judged and known not to be within the first preset time period or the indoor light brightness is greater than the first preset brightness or the target object does not exist in the induction area, controlling the induction lamp not to be started.
4. The air conditioner control method according to claim 1, wherein the detecting whether the target object exists in the sensing area based on a sensing module configured in the air conditioner specifically comprises:
receiving infrared light rays in the sensing area based on the sensing module;
and judging whether the target object exists in the sensing area or not based on the intensity information of the infrared light.
5. The air conditioner control method according to any one of claims 1 to 4, wherein the brightness of the induction lamp is equal to or less than a second preset brightness.
6. An air conditioning control system, comprising:
the data acquisition module is used for acquiring the indoor light brightness at the current moment;
the detection module is used for detecting whether a target object exists in a sensing area based on a sensing module configured in an air conditioner if the current moment is judged and known to be within a first preset time period and the indoor light brightness is less than or equal to a first preset brightness;
and the control module is used for controlling an induction lamp arranged in the air conditioner to be turned on if the target object exists in the induction area.
7. An air conditioner characterized by comprising the air conditioning control system according to claim 6.
8. The air conditioner according to claim 7, further comprising:
the sensing module is used for detecting whether a target object exists in the sensing area;
the induction lamp is used for lighting;
the induction module and the induction lamp are arranged in an indoor unit of the air conditioner and are connected with the air conditioner control system.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the air conditioning control method according to any one of claims 1 to 5 when executing the program.
10. A non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the air conditioning control method according to any one of claims 1 to 5.
Background
Indoor light can become dark at night, and if people in a room need to be lighted, indoor light is usually turned on manually; however, it is very inconvenient to turn on the indoor illuminating lamp in a dark environment, and the indoor illuminating lamp is easy to collide or fall down, and especially for the old who is inconvenient to move, it is more difficult to turn on the lamp in the dark environment.
At present, an air conditioner serving as intelligent household equipment becomes a standard configuration in many families, but the air conditioner on the market has a single function and does not fully utilize the function of the air conditioner.
Disclosure of Invention
The invention provides an air conditioner control method, an air conditioner control system and an air conditioner, which are used for overcoming the defect that the function of the air conditioner is not fully utilized in the prior art and realizing the function of providing illumination for the air conditioner in a dark environment with a target object.
The invention provides an air conditioner control method, which comprises the following steps:
acquiring indoor light brightness at the current moment;
if the current moment is judged and known to be within a first preset time period and the indoor light brightness is smaller than or equal to a first preset brightness, detecting whether a target object exists in a sensing area or not based on a sensing module configured in the air conditioner;
and if the target object exists in the induction area, controlling an induction lamp arranged in the air conditioner to be turned on.
According to the air conditioner control method provided by the invention, the induction lamp arranged in the air conditioner is controlled to be turned on, and then the method further comprises the following steps:
and if the target object does not exist in the induction area, controlling the induction lamp to be turned off after a second preset time period.
According to the air conditioner control method provided by the invention, the method for obtaining the indoor light brightness at the current moment further comprises the following steps:
and if the current time is judged and known not to be within the first preset time period or the indoor light brightness is greater than the first preset brightness or the target object does not exist in the induction area, controlling the induction lamp not to be started.
According to the air conditioner control method provided by the invention, whether a target object exists in a sensing area is detected based on a sensing module configured in an air conditioner, and the method specifically comprises the following steps:
receiving infrared light rays in the sensing area based on the sensing module;
and judging whether the target object exists in the sensing area or not based on the intensity information of the infrared light.
According to the air conditioner control method provided by the invention, the brightness of the induction lamp is less than or equal to a second preset brightness.
The present invention also provides an air conditioner control system, comprising:
the data acquisition module is used for acquiring the indoor light brightness at the current moment;
the detection module is used for detecting whether a target object exists in a sensing area based on a sensing module configured in an air conditioner if the current moment is judged and known to be within a first preset time period and the indoor light brightness is less than or equal to a first preset brightness;
and the control module is used for controlling an induction lamp arranged in the air conditioner to be turned on if the target object exists in the induction area.
The invention also provides an air conditioner which comprises the air conditioner control system.
According to the present invention, there is provided an air conditioner, further comprising:
the sensing module is used for detecting whether a target object exists in the sensing area;
the induction lamp is used for lighting;
the induction module and the induction lamp are arranged in an indoor unit of the air conditioner and are connected with the air conditioner control system.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the steps of the air conditioner control method.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any of the air conditioning control methods described above.
According to the air conditioner control method, the air conditioner control system and the air conditioner, the indoor light brightness at the current moment is obtained, when the indoor light brightness at the current moment is within the first preset time period and is smaller than or equal to the first preset brightness, whether the target object exists in the sensing area is detected based on the sensing module arranged in the air conditioner, if the target object exists in the sensing area, the sensing lamp arranged in the air conditioner is controlled to be turned on, the air conditioner, the sensing module and the night light are combined, the sensing lamp can be automatically turned on in the dark environment with the target object, the indoor lighting equipment does not need to be manually turned on in the dark environment by a user, the life of the user is facilitated, and the experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an air conditioner control method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an air conditioning control system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Because the existing air conditioner has a single function and is not connected with the illumination of the induction lamp, the embodiment of the invention provides an air conditioner control method.
Fig. 1 is a schematic flowchart of an air conditioner control method according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
s1, acquiring the indoor light brightness at the current moment;
s2, if the current time is judged and known to be within a first preset time period and the indoor light brightness is smaller than or equal to a first preset brightness, detecting whether a target object exists in a sensing area or not based on a sensing module configured in the air conditioner;
and S3, if the target object exists in the induction area, controlling an induction lamp arranged in the air conditioner to be turned on.
According to the air conditioner control method provided by the embodiment of the invention, the execution main body is the air conditioner controller, the air conditioner controller is arranged in the air conditioner and is electrically connected with the induction module and the induction lamp, and the induction module and the induction lamp can be respectively controlled.
Step S1 is performed first. After the air conditioner is powered on, the indoor light brightness at the current moment can be obtained. The current time refers to the current time and can be represented by Beijing time or time used by the place where the air conditioner is located. The current time may be obtained by a time obtaining device built in the air conditioner controller, and the current time may be 24 hours or 12 hours, which is not specifically limited in this embodiment of the present invention.
The indoor light brightness at the current moment is the corresponding indoor light brightness at the current moment, and can be obtained through a photosensitive sensor built in the air conditioner controller, and the indoor light brightness at the current moment can be represented by physical quantities such as luminous flux or illumination intensity, and the embodiment of the invention is not particularly limited to this.
For example, if the air conditioner is turned on at 15:00, the current time is 15:00, and the correspondingly obtained indoor light brightness is the indoor light brightness of 15: 00.
Then, step S2 is executed. After the indoor light brightness at the current moment is obtained, whether the current moment is within a first preset time period or not needs to be judged, and whether the indoor light brightness at the current moment is smaller than or equal to a first preset brightness or not needs to be judged.
The first preset time period and the first preset brightness may be set according to actual needs, which is not specifically limited in the embodiment of the present invention.
The first preset time period may be a black day time period, and may be, for example, a time period consisting of a combination of 19:00 to 24:00 and 00:00 to 07: 00; the first preset brightness can be set according to the representation mode of the indoor light brightness at the current moment; for example, if the indoor light brightness at the present time is expressed by luminous flux, the first preset brightness may be set to 2 lumens; if the indoor light brightness at the current time is characterized by the illumination intensity, the first preset brightness may be set to 0.5 lux. If the current time is 20:00, the acquired indoor light brightness of 20:00 is 1 lumen, and at this time, the current time is within a first preset time period, and the indoor light brightness of the current time is smaller than a first preset brightness, whether a target object exists in a sensing area can be detected based on a sensing module configured in the air conditioner.
The first preset time period and the first preset brightness can be set by an APP of a user on a user terminal, and the user terminal and the air conditioner controller can be connected through a wireless network. The number of the user terminals may be multiple, when the first preset time periods set by different user terminals are different, the maximum union of the different first preset time periods may be determined as the first preset time period, and when the first preset brightness set by different user terminals is different, the maximum first preset brightness may be determined as the first preset brightness.
For example, when the first preset time period and the first preset brightness set by the user terminal a on the APP are 18:00-24:00 and 0:00-05:00 and 5 lumens, respectively; the first preset time period and the first preset brightness set by the user terminal B on APP are 17:00-24:00 and 0:00-07:00 and 3 lumens respectively, and the determined first preset time period and the first preset brightness are 17:00-24:00 and 0:00-07:00 and 5 lumens respectively.
The sensing module arranged in the air conditioner is electrically connected with the air conditioner controller and can detect whether a target object exists in the sensing area, and the sensing module can be arranged in an indoor unit of the air conditioner. The sensing module may be an infrared detection device, an infrared sensor, and the like, which is not particularly limited in this embodiment of the present invention. The sensing module can detect the target object in the sensing area according to an infrared temperature measurement principle and the like.
The sensing area may be set according to actual needs, which is not particularly limited in the embodiment of the present invention. For example, the sensing area may be a space in front of the air conditioner, and the length, width and height of the space 0.3 m away from the indoor unit of the air conditioner are 1 m, 1 m and 1.5 m, respectively.
The target object includes objects with high body temperature and high radiation infrared ray intensity, such as human body or pets like cats and dogs.
Finally, step S3 is performed. And if the target object exists in the induction area, controlling an induction lamp arranged in the air conditioner to be turned on.
When a target object exists in the induction area, the induction module can detect the target object, at the moment, the induction module can send an induction pulse signal to the air conditioner controller, and after the air conditioner controller receives the induction pulse signal, an induction lamp arranged in the air conditioner can be driven to be turned on.
The induction lamp may be an LED lamp or other types of lamps, which are not specifically limited in this embodiment of the present invention, and the induction lamp may be configured at a suitable position on an indoor unit of an air conditioner.
According to the air conditioner control method in the embodiment of the invention, the indoor light brightness at the current moment is obtained, when the indoor light brightness at the current moment is within the first preset time period and is less than or equal to the first preset brightness, whether the target object exists in the sensing area is detected based on the sensing module arranged in the air conditioner, if the target object exists in the sensing area, the sensing lamp arranged in the air conditioner is controlled to be turned on, the air conditioner is combined with the sensing module and the night light, so that the sensing lamp can be automatically turned on in a dark environment with the target object, the user does not need to manually turn on indoor lighting equipment in the dark environment, the life of the user is facilitated, and the experience of the user is improved.
On the basis of the above embodiment, the air conditioner control method provided in the embodiment of the present invention is a method for controlling an induction lamp disposed in an air conditioner to be turned on, and the method further includes:
and if the target object does not exist in the induction area, controlling the induction lamp to be turned off after a second preset time period.
Specifically, in the embodiment of the present invention, after the induction lamp is controlled to be turned on, if it is determined that the target object does not exist in the induction area, the induction lamp may be controlled to be turned off after a second preset time period.
The second preset time period may be set according to actual needs, which is not specifically limited in the embodiment of the present invention. For example, the second preset time period may be set to 20s, that is, after the induction lamp is turned on, if the target object does not exist in the induction area, the air conditioner controller controls the induction lamp to be turned off after the induction lamp is turned on for 20 s.
After the response lamp is opened for the user illumination, the user may leave the response region after accomplishing the action, and at this moment, if the response lamp lasts the illumination, not only can influence user's rest, still can waste the electric energy. Therefore, when the user is not in the sensing area, the user can be considered to have no need of the illumination of the sensing lamp, and the sensing lamp can be controlled to be turned off after the second preset time period.
When the target object is a pet at home, because the pet does not stay in the sensing area all the time, when the pet does not exist in the sensing area, after the second preset time period, the sensing lamp can be controlled to be turned off, the influence on the user is reduced, and the electric energy is saved.
According to the air conditioner control method in the embodiment of the invention, after the induction lamp is started, if the target object does not exist in the induction area, the induction lamp is controlled to be turned off after the second preset time period, so that the influence of long-time starting of the induction lamp on the rest of a user is avoided, the influence of mistaken starting of the induction lamp on the user can be reduced to a certain extent, and meanwhile, the electric energy can be saved.
On the basis of the foregoing embodiment, the air conditioner control method according to an embodiment of the present invention further includes:
and if the current time is judged and known not to be within the first preset time period or the indoor light brightness is greater than the first preset brightness or the target object does not exist in the induction area, controlling the induction lamp not to be started.
Specifically, in the embodiment of the present invention, after the indoor light brightness at the current time is obtained, if it is determined that the current time is not within the first preset time period, or the indoor light brightness at the current time is greater than the first preset brightness or no target object exists in the sensing area, the sensing lamp is controlled not to be turned on.
If the current moment is not within the first preset time period, the current moment is the day, and even if the indoor light brightness of the current moment is smaller than or equal to the first preset brightness, the induction lamp does not need to be started. For example, when the first preset time period is a time period formed by combining 00:00-07:00 and 19:00-24:00, the current time is 12:00, and the current time is not in the first preset time period, the induction lamp is controlled not to be turned on at the moment.
If the indoor light brightness of the current moment is larger than the first preset brightness, the other indoor lighting devices are possibly turned on at the moment, the indoor is brighter, and even if the current moment is within the preset first time period, the induction lamp does not need to be turned on. For example, the first preset brightness is 5 lumens, and the acquired indoor light brightness at the current moment is 100 lumens, then the induction lamp is controlled not to be turned on at this moment.
If the target object does not exist in the sensing area, the requirement that the indoor user does not have illumination at the moment is indicated, and therefore, the sensing lamp is controlled not to be started even if the current moment is within a first preset time period and the indoor light brightness of the current moment is smaller than or equal to a first preset brightness.
According to the air conditioner control method in the embodiment of the invention, after the indoor light brightness at the current moment is obtained, if the current moment is not in the first preset time period or the indoor light brightness at the current moment is larger than the first preset brightness or no target object exists in the induction area, the induction lamp is controlled not to be started, so that the electric energy is saved, the requirements of a user can be better met, and the experience of the user is improved.
On the basis of the foregoing embodiment, the air conditioner control method according to the embodiment of the present invention is a method for detecting whether a target object exists in a sensing area based on a sensing module configured in an air conditioner, and specifically includes:
receiving infrared light rays in the sensing area based on the sensing module;
and judging whether the target object exists in the sensing area or not based on the intensity information of the infrared light.
Specifically, in the embodiment of the present invention, as can be seen from the above description, the sensing module configured in the air conditioner may be an infrared detection device or an infrared sensor, and any object having a temperature may radiate infrared rays outwards, and the intensity of the radiated infrared rays is related to the temperature of the object, so that the sensing module may receive infrared rays in the sensing area, and determine whether a target object exists in the sensing area according to intensity information of the infrared rays.
The intensity information of the infrared light may be represented by a wavelength of the infrared light, a wavelength range may be set, and when the intensity information of the received infrared light is represented by the wavelength of the infrared light, if the wavelength is within the set wavelength range, it is determined that a target object exists in the sensing region, and the wavelength range may be set according to actual needs.
According to the air conditioner control method in the embodiment of the invention, the infrared light in the sensing area is received through the sensing module, and whether the target object exists in the sensing area is judged based on the intensity information of the infrared light, so that the target object is detected more accurately, and misjudgment can be avoided.
On the basis of the above embodiment, in the air conditioner control method provided by the embodiment of the invention, the brightness of the induction lamp is less than or equal to the second preset brightness.
Specifically, in the embodiment of the present invention, the brightness of the induction lamp needs to be less than or equal to the second preset brightness. The second preset brightness can also be represented by physical quantities such as luminous flux or illumination intensity, and the setting of the second preset brightness can be set according to different physical quantity representations and in combination with actual needs.
According to the air conditioner control method in the embodiment of the invention, the brightness of the induction lamp is less than or equal to the second preset brightness, and after the induction lamp is turned on, a user does not feel dazzling in a dark environment, so that the use experience of the user is further improved.
As shown in fig. 2, on the basis of the above embodiment, an embodiment of the present invention provides an air conditioning control system, including:
a data obtaining module 201, configured to obtain indoor light brightness at a current time;
the detection module 202 is configured to detect whether a target object exists in a sensing area based on a sensing module configured in an air conditioner if it is judged and known that the current time is within a first preset time period and the indoor light brightness is less than or equal to a first preset brightness;
and the control module 203 is configured to control an induction lamp configured in the air conditioner to be turned on if the target object exists in the induction area.
On the basis of the above embodiment, in the air conditioner control system provided in the embodiment of the present invention, the control module is configured to control the induction lamp configured in the air conditioner to be turned on, and then is further configured to:
and if the target object does not exist in the induction area, controlling the induction lamp to be turned off after a second preset time period.
On the basis of the above embodiment, in the air conditioner control system provided in the embodiment of the present invention, after the data obtaining module obtains the indoor light brightness at the current time, the control module is further configured to:
and if the current time is judged and known not to be within the first preset time period or the indoor light brightness is greater than the first preset brightness or the target object does not exist in the induction area, controlling the induction lamp not to be started.
On the basis of the above embodiment, in the air conditioner control system provided in the embodiment of the present invention, the detection module specifically includes:
the receiving sub-module is used for receiving infrared light rays in the sensing area based on the sensing module;
and the judgment sub-module is used for judging whether the target object exists in the sensing area or not based on the intensity information of the infrared light.
On the basis of the above embodiment, in the air conditioner control system provided by the embodiment of the invention, the brightness of the induction lamp is less than or equal to a second preset brightness.
Specifically, the functions of the modules in the air conditioner control system provided in the embodiment of the present invention correspond to the operation flows of the steps in the above method embodiments one to one, and the achieved effects are also consistent.
The embodiment of the invention also provides an air conditioner, which comprises the air conditioner control system, wherein the air conditioner control system is used for acquiring the indoor light brightness at the current moment, and detecting whether a target object exists in a sensing area based on a sensing module configured in the air conditioner when the current moment is within a first preset time period and the indoor light brightness is less than or equal to a first preset brightness; and if the target object exists in the induction area, controlling an induction lamp configured in the air conditioner to be turned on.
The air conditioner provided by the embodiment of the invention is combined with the induction module and the induction lamp, so that the induction lamp can be automatically turned on in a dark environment with a target object, and a user does not need to manually turn on indoor lighting equipment in the dark environment, the life of the user is facilitated, and the experience of the user is improved.
On the basis of the above embodiment, the air conditioner provided in the embodiment of the present invention further includes:
the sensing module is used for detecting whether a target object exists in the sensing area;
the induction lamp is used for lighting;
the induction module and the induction lamp are arranged in an indoor unit of the air conditioner and are connected with the air conditioner control system.
The air conditioner provided by the embodiment of the invention comprises the sensing module and the sensing lamp, and can be used for detecting whether a target object exists in the sensing area or not and lighting the sensing area respectively, so that a user does not need to manually turn on indoor lighting equipment in a dark environment, and the daily life of the user is facilitated.
Fig. 3 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 3: a processor (processor)310, a communication Interface (communication Interface)320, a memory (memory)330 and a communication bus 340, wherein the processor 310, the communication Interface 320 and the memory 330 communicate with each other via the communication bus 340. The processor 310 may call logic instructions in the memory 330 to execute the air conditioner control method provided by the above embodiments, where the method includes: acquiring indoor light brightness at the current moment; if the current moment is judged and known to be within a first preset time period and the indoor light brightness is smaller than or equal to a first preset brightness, detecting whether a target object exists in a sensing area or not based on a sensing module configured in the air conditioner; and if the target object exists in the induction area, controlling an induction lamp arranged in the air conditioner to be turned on.
In addition, the logic instructions in the memory 330 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, enable the computer to execute the air conditioning control method provided by the above embodiments, the method comprising: acquiring indoor light brightness at the current moment; if the current moment is judged and known to be within a first preset time period and the indoor light brightness is smaller than or equal to a first preset brightness, detecting whether a target object exists in a sensing area or not based on a sensing module configured in the air conditioner; and if the target object exists in the induction area, controlling an induction lamp arranged in the air conditioner to be turned on.
In still another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, the computer program being implemented by a processor to perform the air conditioner control method provided in the above embodiments, the method including: acquiring indoor light brightness at the current moment; if the current moment is judged and known to be within a first preset time period and the indoor light brightness is smaller than or equal to a first preset brightness, detecting whether a target object exists in a sensing area or not based on a sensing module configured in the air conditioner; and if the target object exists in the induction area, controlling an induction lamp arranged in the air conditioner to be turned on.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:控制空调器的方法、存储介质和空调器