Disclosure of Invention
The invention aims to provide a method for automatically adjusting the operation mode of an air conditioner based on illuminance, which can intelligently adjust and control the operation mode of the air conditioner according to different behavior types.
It is a further object of the present invention to provide an air conditioner having the above-mentioned functions.
It is another further object of the present invention to address at least one of the problems of the prior art.
According to an aspect of the present invention, there is provided a method for automatically adjusting an operation mode of an air conditioner based on illuminance, comprising:
monitoring a change event of the illuminance of a set indoor space;
when monitoring that the illumination change event is triggered in the set indoor space, acquiring illumination change data of the set indoor space;
acquiring the trigger time of the illumination change event;
determining the behavior type of the triggering illumination intensity change event according to the illumination intensity change data and the triggering time;
the operation mode of the air conditioner belonging to the indoor space is automatically adjusted and set based on the behavior type.
Optionally, the method further includes:
and taking one day as a period, and dividing the period into a plurality of time periods which are spliced in sequence.
Optionally, acquiring the trigger time of the illuminance change event includes:
and determining the time period of the trigger time in the period.
Optionally, the method further comprises:
a behavior type comparison library is established in advance;
the behavior type comparison library stores a plurality of behavior types, reference time periods in a cycle corresponding to the behavior types and at least one set of reference illumination variation data of the reference time periods.
Optionally, determining the type of behavior triggering the illuminance change event according to the illuminance change data and the trigger time includes:
searching whether a reference time period identical to the time period of the trigger time exists in a behavior type comparison library or not;
if yes, judging whether the illumination variation data is matched with any group of illumination variation data in the reference time period;
and if so, determining that the behavior type corresponding to the reference time period is the behavior type of the illumination change event.
Optionally, the method further includes:
the plurality of illumination levels are divided in the order of the illumination value from small to large or from large to small.
Optionally, when the illuminance change event is monitored to be triggered in the set indoor space, the acquiring the illuminance change data of the set indoor space includes:
when the illuminance change event is monitored to be triggered in the set indoor space, respectively acquiring a first illuminance value of the set indoor space before the illuminance change event is triggered and a second illuminance value of the set indoor space after the illuminance change event is triggered;
respectively determining a first illuminance grade to which the first illuminance value belongs and a second illuminance grade to which the second illuminance value belongs;
illuminance level change data of the first illuminance level and the second illuminance level is acquired.
Optionally, the behavior type includes environmental behavior and/or user behavior;
environmental behaviors include morning day-to-day;
the user behavior includes at least one of a user getting up, a user starting a nap, a user ending a nap, a user leisure at night, a user rest at night, a user getting up at night, and a user ending at night.
Optionally, automatically adjusting the operation mode of the air conditioner deployed in the set indoor space based on the behavior type includes at least one of:
if the behavior type is morning brightness, adjusting the operation mode of the air conditioner to be a preheating mode;
if the behavior type is user getting up, adjusting the operation mode of the air conditioner to be a common mode;
if the behavior type is that the user starts to nap, adjusting the operation mode of the air conditioner to be a nap mode;
if the behavior type is that the user finishes the afternoon nap, the operation mode of the air conditioner is adjusted to be a common mode;
if the behavior type is leisure at night, adjusting the operation mode of the air conditioner to be a night leisure mode;
if the behavior type is that the user has a rest at night, the operation mode of the air conditioner is adjusted to be a sleep mode;
if the behavior type is that the user gets up at night, adjusting the operation mode of the air conditioner to be a night mode;
and if the behavior type is that the user finishes getting up at night, the operation mode of the air conditioner is adjusted to be a sleep mode.
According to another aspect of the present invention, there is also provided an air conditioner including:
an indoor unit;
a controller comprising a memory and a processor, the memory storing a computer program that when executed by the processor is for implementing a method for automatically adjusting an operating mode of an air conditioner based on illumination according to any of the above.
The invention provides a method for automatically adjusting an operation mode of an air conditioner based on illuminance and the air conditioner. Based on the method provided by the invention, the operation mode of the air conditioner is automatically adjusted after the action type causing the illumination change event is quickly determined by combining the trigger time of the illumination change event and the illumination change data before and after triggering, and the operation mode of the air conditioner can be intelligently adjusted according to the action type triggering the illumination change event under the condition of no need of manual adjustment of a user, so that the operation mode of the air conditioner accords with the corresponding action type, and the energy conservation and consumption reduction are realized while the requirements of the user are met.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Detailed Description
Fig. 1 is a flowchart illustrating a method for automatically adjusting an operation mode of an air conditioner based on illuminance according to an embodiment of the present invention, and referring to fig. 1, the method for automatically adjusting an operation mode of an air conditioner based on illuminance according to the embodiment may include:
step S102, monitoring a change event of illuminance of a set indoor space;
step S104, when the illumination change event is monitored to be triggered in the set indoor space, acquiring illumination change data of the set indoor space;
step S106, acquiring the trigger time of the illumination intensity change event;
step S108, determining the behavior type of the triggering illuminance change event according to the illuminance change data and the triggering time;
in step S110, the operation mode of the air conditioner belonging to the indoor space is automatically adjusted and set based on the behavior type.
The embodiment of the invention provides a method for automatically adjusting an operation mode of an air conditioner based on illuminance. Based on the method provided by the embodiment of the invention, the behavior type of the illumination change event caused by combining the triggering time of the illumination change event and the illumination change data before and after triggering is quickly determined, and the operation mode of the indoor space air conditioner is automatically adjusted and set according to the determined behavior type, so that the operation mode of the air conditioner can be intelligently adjusted according to the behavior type of the triggering illumination change event without manual adjustment of a user, the operation mode of the air conditioner is in accordance with the corresponding behavior type, and the energy conservation and consumption reduction are realized while the requirements of the user are met.
In step S102, the illumination intensity variation event of the set indoor space needs to be monitored, the set indoor space in this embodiment is a place for the user to live or leisure, such as a bedroom, a living room, and the like. When monitoring the illumination intensity change event of the set indoor space, the method mainly monitors the illumination intensity value of the set indoor space, and when monitoring whether the illumination intensity value of the set indoor space is obviously changed (for example, the illumination intensity value is changed in a certain range).
When it is detected that the illuminance change event is triggered in the set indoor space in step S104, the illuminance change data of the set indoor space is obtained. In this embodiment, the illuminance change data mainly includes a first illuminance value and a second illuminance value of the set indoor space before and after the trigger of the illuminance change event, and a difference between the first illuminance value and the second illuminance value is calculated as the illuminance change data. It should be noted that the illuminance mentioned in this embodiment refers to visible illuminance, and when the illuminance of the set indoor space is obtained, the illuminance can be obtained through an illuminance sensor (such as a visible illuminance sensor), the sensor can be disposed in the set indoor space or on the surface of the air conditioner in the set indoor space, and a wireless connection component (such as a WiFi, a bluetooth, and the like) can be disposed in the air conditioner, so that the communication connection between the air conditioner and the illuminance sensor is realized. The illuminance sensor can transmit the illuminance value of the set indoor space acquired at any time to the air conditioner, and the air conditioner performs unified analysis processing.
In another alternative embodiment of the present invention, the plurality of illumination levels may be divided in the order of the illumination values from small to large or from large to small. Further, the step S104 of acquiring the illuminance change data of the set indoor space when the illuminance change event is triggered may include: when the illuminance change event is monitored to be triggered in the set indoor space, respectively acquiring a first illuminance value of the set indoor space before the illuminance change event is triggered and a second illuminance value of the set indoor space after the illuminance change event is triggered; respectively determining a first illuminance grade to which the first illuminance value belongs and a second illuminance grade to which the second illuminance value belongs; illuminance level change data of the first illuminance level and the second illuminance level is acquired.
That is, the first illuminance value and the second illuminance value before and after the illuminance change event is triggered may be obtained, and then the level change of the illuminance in the indoor space due to the illuminance change event trigger may be set, so that the subsequent determination of the behavior type may be faster.
In this embodiment, the illuminance of the indoor space can be divided into six levels according to the sequence of the illuminance values from low to high, including: first-order (analogy of illuminance when turning off the light at night), second-order (analogy of illuminance when pulling the curtain at daytime), third-order (analogy of illuminance when turning off the light at cloudy day/evening), fourth-order (analogy of illuminance when turning on the light at night), fifth-order (analogy of illuminance when turning on the light at cloudy day/evening), and sixth-order (analogy of illuminance during the daytime at sunny day), actual value ranges of the illuminance values of the respective levels can be expressed as: the illuminance value is less than P and is a first grade, the illuminance value is positioned between P → Q and is a second grade, the illuminance value is positioned between Q → R and is a third grade, the illuminance value is positioned between R → S and is a fourth grade, the illuminance value is positioned between S → T and is a fifth grade, and the illuminance value is more than T and is a sixth grade. The specific values of the illuminance values P to T may be set according to geographical locations, weather, and the like, which is not limited in the present invention. In addition, the division of the level of the illuminance value mentioned in the above embodiment is only one implementation manner, and in practical applications, the illuminance value may be divided into other multiple levels by other manners, which is not limited in the present invention.
Further, referring to the above step S106, in addition to acquiring the illuminance change data, the trigger time of the illuminance change event needs to be acquired. That is, the time when the illuminance value in the indoor space changes is set, the trigger time may be a time point or a time period, and specifically, the trigger time may be selected according to the change range of the illuminance value in the indoor space. For example, when gradually transitioning from evening to night, the time of triggering the illuminance change event may be a time period lasting half an hour or several tens of minutes, and the time of triggering the illuminance change event may be a point in time when the user pulls the curtain. In general, the trigger time for acquiring the illuminance variation event is mostly a time point, which may be as accurate as minutes, such as 18 points and 30 minutes, and may be acquired through networking of the air conditioner, or through a timer with a time recording function provided on the air conditioner.
In an optional embodiment of the present invention, a day may be used as a period, and the period is divided into a plurality of time periods which are spliced in sequence. Further, after acquiring the trigger time of the illuminance variation event in step S106, a time period to which the trigger time belongs in the cycle may be determined.
That is, 24 hours of a day may be divided into a plurality of time periods. In the present embodiment, the distribution may be divided into 9 time segments from 0 to 24, and the distribution is represented by time segments 1 to 9, as shown in fig. 2, time a → time B is time segment 1, time B → time C is time segment 2, time C → time D is time segment 3, time D → time E is time segment 4, time E → time F is time segment 5, time F → time G is time segment 6, time G → time H is time segment 7, time H → time J is time segment 8, and time J → time a' is time segment 9. Where A' is the next cycle (i.e., the starting time of the next day, same as A). The specific time points of the time a to the time J may be changed according to the specific geographical location of the set indoor space, the season of the indoor space, the weather condition, and other environmental factors, which is not limited in the present invention. In addition, the time period division mentioned in the above embodiment is only one realizable manner, and in practical application, the time period division in one day may also be performed in other manners, and the number of the time periods may also be set according to different manners, which is not limited in the present invention.
Referring to step S108, after the illuminance change data of the set indoor space and the trigger time of the illuminance change event are acquired, the behavior type of the trigger illuminance change event may be determined based on the illuminance change data and the trigger time.
As mentioned above, after acquiring the trigger time of the illuminance variation event, the time period to which the trigger time belongs in the period of one day may also be determined. Thus, the time period when the illumination change event is triggered and the illumination change data may be combined when determining the type of activity that triggered the illumination change event.
In an optional embodiment of the present invention, a behavior type comparison library may be established in advance; the behavior type comparison library stores a plurality of behavior types, reference time periods in a cycle corresponding to the behavior types and at least one set of reference illumination variation data of the reference time periods. In practical application, because the behavior types possibly occurring in each time period within one day can be preliminarily estimated in the set indoor space, the embodiment of the invention firstly establishes the behavior type comparison library corresponding to the behavior types, the reference time period and the reference illumination variation data, can provide data support for subsequently determining the behavior types triggering the illumination variation events, and further can efficiently adjust the air conditioner after rapidly determining the behavior types.
That is, the step S108 may further include: firstly, searching whether a reference time period identical to the time period of trigger time exists in a behavior type comparison library; secondly, if the illuminance variation data exists, judging whether the illuminance variation data is matched with any group of illuminance variation data in the reference time period; and finally, if the reference time period is matched with the illumination intensity change event, determining that the behavior type corresponding to the reference time period is the behavior type of the illumination intensity change event. Optionally, the behavior type in this embodiment may include an environmental behavior and/or a user behavior; wherein the environmental behavior may include morning brightness. The user behavior may include at least one of the user getting up, the user starting a nap, the user ending a nap, the user leisure at night, the user resting at night, the user getting up at night, and the user ending at night. In practical applications, other types may also be included, and are not described herein.
In this embodiment, since the illuminance change data caused by the behavior type that may occur in each time period is determined in advance, the behavior type that triggers the current illuminance change event can be determined quickly and accurately by matching the same illuminance conversion data in the same time period with the behavior type comparison library established in advance according to the time period.
In addition, in the above embodiments, the illuminance change data may be illuminance level change data according to a set indoor space triggered by the illuminance change event. Therefore, when determining the behavior type, the determination may be performed according to the time period when the illumination event is triggered and the illumination level change data, and the behavior comparison database is pre-established according to the time period, the illumination level change data and the behavior type.
Fig. 3 is a schematic diagram of a behavior type comparison chart according to an embodiment of the present invention. The six light intensity levels and nine time periods mentioned in the above embodiments are taken as examples. As shown in fig. 3, in the behavior type comparison chart of the present embodiment, the behavior types corresponding to the illuminance level change data for each time period may be as follows:
(1) when the illuminance level of the set indoor space is increased from the first level to the second level due to the triggering of the illuminance change event in the time period 1, determining that the behavior type is morning brightness;
(2) when the illuminance level of the set indoor space is increased from the second level to the sixth level due to the triggering of the illuminance change event in the time period 2, determining that the behavior type is user getting up;
(3) when the illuminance level of the set indoor space is reduced from six levels (or five levels or three levels) to two levels due to the triggering of the illuminance change event in the time period 4, determining that the behavior type is that the user starts to have a nap;
(4) when the illuminance level of the set indoor space is increased from second level to sixth level (or fifth level or third level) due to the triggering of the illuminance change event in the time period 5, determining that the behavior type is that the user finishes the afternoon nap;
(5) when the illuminance level of the set indoor space is reduced from six levels to four levels or is increased from three levels to four levels due to the triggering of the illuminance change event in the time period 7, determining the behavior type as the night leisure of the user;
(6) when the illuminance level of the set indoor space is reduced from four levels (or two levels) to one level due to the triggering of the illuminance change event in the time period 8, determining the behavior type as the rest of the user at night;
(7) when the illuminance level of the set indoor space is increased from the first level to the fourth level (or the second level) due to the triggering of the illuminance change event in the time period 9, determining that the behavior type is that the user is getting up at night;
(8) when the illuminance level of the set indoor space drops from four levels (or two levels) to one level due to the illuminance change event trigger at the time period 9, it is determined that the behavior type is the end of the user's night.
Finally, the above step 110 is executed to automatically adjust and set the operation mode of the air conditioners deployed in the indoor space based on the behavior type. In this embodiment, the operation modes of the corresponding different air conditioners may be set for different behavior types, which are specifically as follows:
and if the behavior type is morning brightness, adjusting the operation mode of the air conditioner to be a preheating mode. The preset mode is that the compressor of the air conditioner runs at low frequency, so that the air conditioner is preheated, and the lowest power consumption state of the system heat is maintained. This mode can be applied to the case where the winter or indoor temperature value is lower than the set temperature value (e.g., 16 ℃). In practical application, no adjustment is made if the compressor is running at the time; assuming the compressor is off, a preheat mode is entered and the compressor is operated at a low frequency.
And if the behavior type is user getting up, adjusting the operation mode of the air conditioner to be a common mode. The normal mode, i.e. the normal use state of the air conditioner, may be operated by preset parameters such as a set frequency and a set temperature value (specifically, may be set individually for the user). If the air conditioner is in the sleep mode at that time, immediately ending the sleep mode, and switching to the common mode; if the air conditioner is in the normal mode, no adjustment is performed.
And if the behavior type is that the user starts to have a nap, adjusting the operation mode of the air conditioner to be a nap mode. In the afternoon nap mode, the air speed of the air conditioner is reduced, the air deflector is arranged at an angle which does not directly blow a human body, the brightness of the display screen is dimmed, and the set temperature of the air conditioner is adjusted according to a specific curve of the afternoon nap mode.
And if the behavior type is that the user finishes the afternoon nap, adjusting the operation mode of the air conditioner to be a common mode. If the afternoon nap mode is entered before, the afternoon nap mode can be ended, and the normal mode is recovered.
And if the behavior type is leisure at night, adjusting the operation mode of the air conditioner to be a night leisure mode. In the night rest mode, the wind speed is reduced, the air deflector is arranged at the angle of directly blowing the human body, the display screen is normally lightened, and the set temperature of the air conditioner is the same as that in the common mode.
And if the behavior type is that the user has a rest at night, adjusting the operation mode of the air conditioner to be a sleep mode. In the sleep mode, the wind speed is reduced, the air deflector is arranged at an angle which is not directly blown to a human body, the display screen is turned off, and the set temperature of the air conditioner is adjusted according to a specific curve of the sleep mode.
And if the behavior type is that the user is in the night, adjusting the operation mode of the air conditioner to be in the night mode. In the night mode, the wind speed is increased, the air deflector is arranged at the angle of directly blowing the human body, the display screen is normally lightened, and the set temperature of the air conditioner is the same as that in the common mode.
And if the behavior type is that the user finishes getting up at night, the operation mode of the air conditioner is adjusted to be a sleep mode.
In the scheme provided by the embodiment of the invention, the action type causing the illumination change event is quickly determined by combining the trigger time of the illumination change event and the illumination change data before and after triggering, the operation mode of the indoor space air conditioner is automatically adjusted and set according to the determined action type, the operation mode of the air conditioner can be intelligently adjusted according to the action type triggering the illumination change event under the condition of no need of manual adjustment of a user, so that the operation mode of the air conditioner accords with the corresponding action type, and the energy conservation and consumption reduction are realized while the user requirements are met.
Furthermore, the embodiment of the invention can also pre-establish a behavior type comparison library corresponding to the behavior type, the reference time period and the reference illumination variation data, can provide data support for subsequently determining the behavior type triggering the illumination variation event, and can further efficiently adjust the air conditioner after rapidly determining the behavior type. In addition, the embodiment of the invention also determines the operation modes of different air conditioners according to different behavior types, so that the air conditioner can intelligently provide services conforming to the current scene for the user according to the behavior types of the user or the environment, and the use experience of the user is effectively improved.
Based on the same inventive concept, an embodiment of the present invention further provides an air conditioner 400, as shown in fig. 4, the air conditioner 400 may include: an indoor unit 410 and a controller 420. The controller 420 may include a memory 421 and a processor 422, wherein the memory 421 stores a computer program, and the computer program is executed by the processor 422 to implement the method for automatically adjusting the operation mode of the air conditioner based on the illuminance according to any of the embodiments.
Generally, the indoor unit of the air conditioner may further include a refrigeration system implemented by using a compression refrigeration cycle, wherein the compression refrigeration cycle implements heat transfer by using a compression phase change cycle of a refrigerant heat exchanger, a compressor, a condenser and a throttling device. In the air conditioner, the refrigerating system can also be provided with a four-way valve to change the flow direction of the refrigerant, so that the heat exchanger of the indoor unit is alternately used as an evaporator or a condenser to realize the refrigerating or heating function. Since the compression refrigeration cycle in the air conditioner is well known to those skilled in the art, the operation principle and structure thereof will not be described herein.
Thus, it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been illustrated and described in detail herein, many other variations or modifications consistent with the principles of the invention may be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Accordingly, the scope of the invention should be understood and interpreted to cover all such other variations or modifications.