Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a control method of an air conditioner for smart home, and aims to overcome the defect that the prior air conditioner is started in advance, which is easy to cause electricity consumption and energy consumption waste.
Therefore, the invention adopts the following technical scheme: a control method of an air conditioner for smart home comprises the following steps:
s1, sending an air conditioner refrigeration request and the time and time point when the user arrives at the air conditioner to the air conditioner by the user terminal;
s2, after receiving an air conditioner refrigeration request sent by a user terminal, the air conditioner detects the indoor air temperature of a room where the air conditioner is located in real time, records the time point of receiving the air conditioner refrigeration request sent by the user terminal as a first starting time point, and records the time point of a user arriving at the air conditioner as an ending time point;
s3, judging whether the time of the user reaching the air conditioner is longer than the preset time, if so, recording the time point which is before the ending time and is away from the ending time by the preset time as a second starting time, setting the time period from the second starting time to the ending time as the air conditioner running time period, and if not, setting the time period from the first starting time to the ending time as the air conditioner running time period;
s4, monitoring whether the current time is within an air conditioner operation time period, wherein the air conditioner operation time period comprises a first air conditioner operation time period and a second air conditioner operation time period after the first air conditioner operation time period, and respectively acquiring the time length of the first air conditioner operation time period, the time length of the second air conditioner operation time period and the time length of the air conditioner operation time period, wherein the time length of the first air conditioner operation time period is first preset time;
s5, when the current time is in a first air conditioner operation time period, controlling the air conditioner to operate for a first preset time at a preset output power;
s6, recording the indoor air temperature of the air conditioner just running at the preset output power as A1, and recording the indoor air temperature of the air conditioner after running at the preset output power for the first preset time as A2;
s7, calculating the lost refrigeration capacity of the air conditioner after the air conditioner is started according to the indoor air temperature A1, the indoor air temperature A2, the preset output power, the first preset time, the time length of the air conditioner operation time period and a preset lost refrigeration capacity estimation formula;
s8, judging whether the lost refrigeration capacity after the air conditioner is started is larger than the preset lost refrigeration capacity;
s9, if yes, controlling the air conditioner to be closed, and sending information of not opening the air conditioner to the user terminal;
s10, if not, calculating the average output power of the air conditioner in the second air conditioner operation time period according to the lost refrigeration capacity Q1, the indoor air temperature A1, the indoor air temperature A2, the preset output power, the first preset time, the time length of the second air conditioner operation time period and the preset air conditioner average output power estimation formula after the air conditioner is started;
and S11, when the current time is in the second air conditioner operation time period, controlling the air conditioner to operate at the average output power of the air conditioner in the second air conditioner operation time period.
And further, when the current time is not in the air conditioner operation time period and is behind the air conditioner operation time period, controlling the air conditioner to adjust the air temperature of the room where the air conditioner is located according to the preset target adjusting temperature.
Further, the preset time is 20-40 min, the first preset time is 4-8 min, and the preset target adjusting temperature is 20-26 ℃.
Further, the preset lost refrigeration capacity estimation formula is as follows:
Q1= [F×T1-cm(A1- A2)]×T/T1;
q1-lost refrigeration capacity after the air conditioner is started, F-preset output power, T1-first preset time, T-time length of an air conditioner operation time period, A1-indoor air temperature when the air conditioner just operates at the preset output power, A2-indoor air temperature after the air conditioner operates at the preset output power for the first preset time, c-specific heat capacity of air, and m-air quality of a room where the air conditioner is located.
Further, the preset air conditioner average output power estimation formula is as follows:
K= Q2/T2= [Q1+ cm(A1- A3)- F×T1]/T2;
k-average output power of the air conditioner in the second air conditioner running time period, Q1-lost refrigerating capacity of the air conditioner after being started, Q2-estimated refrigerating capacity of the air conditioner after running in the second air conditioner running time period, T2-time length of the second air conditioner running time period, F-preset output power, T1-first preset time, A1-indoor air temperature of the air conditioner just running at preset output power, A3-preset target regulation temperature, c-specific heat capacity of air, and m-air quality of a room where the air conditioner is located.
The invention has the beneficial effects that:
(1) the method comprises the steps that the air conditioner is controlled in two time periods in a distinguishing mode, the air conditioner is controlled to operate for a period of time at preset output power in a first time period with short time, the average output power of the air conditioner in a second time period is calculated according to detected indoor air temperature, the preset output power and a preset air conditioner average output power estimation formula, the air conditioner is controlled to operate at the calculated average output power in a second time period with long time, the indoor air temperature is enabled to be close to a preset target adjusting temperature when a user arrives at the air conditioner, and the requirement that the user can enjoy a comfortable environment when the user arrives at home is met, and meanwhile, redundant electricity consumption of the air conditioner is effectively reduced;
(2) the air conditioner is controlled to operate for a period of time at preset output power in a first period of time which is short in time, the lost refrigerating capacity of the air conditioner after the air conditioner is started is calculated according to the detected indoor air temperature, the preset output power and the preset lost refrigerating capacity estimation formula, the lost refrigerating capacity of the air conditioner after the air conditioner is started is compared with the preset lost refrigerating capacity, the air conditioner is controlled to be turned off and air conditioner information which is not turned on is sent to a user when the lost refrigerating capacity of the air conditioner after the air conditioner is started is larger than the preset lost refrigerating capacity, the waste of a large amount of power consumption energy of the air conditioner caused by the fact that the user enjoys a comfortable environment at home is avoided, and especially when external heat enters a room.
Detailed Description
The invention is explained in further detail below with reference to specific embodiments and with reference to the drawings.
Referring to fig. 1, air conditioner and user terminal all are connected with the high in the clouds server through wireless network in this embodiment, and user terminal passes through network (internet) and is connected with the air conditioner, and namely user terminal passes through wireless network connection high in the clouds server, and the high in the clouds server is connected with wireless router, and the air conditioner passes through wireless technologies such as wifi and is connected with wireless router.
The user terminal can be a smart phone, a tablet personal computer, an intelligent wearable device and the like, and is used for inquiring the time and the time point when the user arrives at the air conditioner according to the current position information of the user and the position information of the air conditioner, for example, the time and the time point when the user arrives at the air conditioner are obtained after the user inputs related position information and a trip mode through map software in the mobile phone, and is also used for sending an air conditioner refrigeration request to the air conditioner or receiving information sent by the air conditioner.
The air conditioner passes through wireless network and is connected with high in the clouds server, and then realizes the wireless connection with user terminal for receive the information that user terminal sent and send information to user terminal, still be used for controlling the relevant component of air conditioner and work with predetermined output power, the air conditioner still is connected with indoor temperature sensor, indoor temperature sensor installs in the room of air conditioner place for the indoor air temperature in the room of real-time detection air conditioner place, and indoor temperature sensor can adopt the air conditioner own temperature sensor, also can adopt the temperature sensor of independent installation in the room of air conditioner place.
The cloud server is used for receiving information sent by the user terminal and the air conditioner and sending information to the user terminal and the air conditioner, and the cloud server preferably adopts a control system or a server in an intelligent home system.
It should be noted that the connection method between the air conditioner and the user terminal in this embodiment is not limited to the above connection method, and other connection methods in the prior art may be adopted.
The control method of the air conditioner for smart home provided by the embodiment can be executed by a cloud server, an air conditioner and a user terminal, and the control method of the air conditioner for smart home includes the following steps:
and S1, sending an air conditioner cooling request and the time point when the user arrives at the air conditioner to the air conditioner by the user terminal.
Specifically, before the user goes home, the time and the time point when the user arrives at the air conditioner are inquired through map software in the user terminal, then the air-conditioning refrigeration request and the time point when the user arrives at the air conditioner are sent to the air conditioner, for example, the user is ready to go home at 17:00:00, the time when the user arrives at the air conditioner is 50min and the time point when the user arrives at the air conditioner is 17:50 are inquired in the map software of the mobile phone according to the current position information of the user, the position information of the air conditioner and the user travel mode, and the air-conditioning refrigeration request, the time when the user arrives at the air conditioner is 50min and the time point when the user arrives at the air conditioner is 17:50 are respectively sent to the.
And S2, after receiving the air-conditioning refrigeration request sent by the user terminal, the air conditioner detects the indoor air temperature of the room where the air conditioner is located in real time, records the time point of receiving the air-conditioning refrigeration request sent by the user terminal as a first starting time point, and records the time point of the user arriving at the air conditioner as an ending time point.
Specifically, the indoor air temperature of the room where the air conditioner is located can be detected by an indoor temperature sensor installed in the room where the air conditioner is located, the first starting time point is the time point when the air conditioner receives an air-conditioning refrigeration request sent by a user terminal, for example, when the user sends the air-conditioning refrigeration request through a mobile phone terminal at 17:00:00, the air conditioner receives the air-conditioning refrigeration request sent by the user at 17:00:05, and at this time, the first starting time point is 17:00: 05.
And S3, judging whether the time of the user reaching the air conditioner is longer than the preset time, if so, recording the time point which is before the ending time point and is far away from the ending time point by the preset time as a second starting time point, setting the time period from the second starting time point to the ending time point as the air conditioner operation time period, and if not, setting the time period from the first starting time point to the ending time point as the air conditioner operation time period.
Specifically, the preset time period is preferably 20min to 40min, and the preset time period is set in advance according to the size of a room where the air conditioner is located and the summer climate condition of the location of the air conditioner, in this embodiment, since the user has a demand for turning on the air conditioner in advance in hot summer, if the user returns home and sends a refrigeration request to the air conditioner, but the user is far away from home, at this time, if the air conditioner is turned on immediately after receiving the refrigeration request, although the user can also enjoy a comfortable environment at home immediately, the indoor and outdoor temperature difference in summer is large, and the radiation intensity of sunlight entering the room is large, especially when the external window is partially opened, the air conditioner is turned on too early, which may greatly waste power consumption, therefore, before the air conditioner is turned on, whether the time period for the user to reach the air conditioner is longer than the preset time period or not should be judged, and the. For example, the time point when the air conditioner receives the refrigeration request sent by the user is 17:00:05, the time when the user arrives at the air conditioner is 70min, the time when the air conditioner adjusts the indoor air temperature to the target adjustment temperature is 30min, namely the preset time duration is 30min, if the air conditioner is started immediately after the air conditioner receives the air conditioner refrigeration request sent by the user, the waste of electric energy for air conditioning is about 40min, in the embodiment, the actual operation time period of the air conditioner is determined by judging that the time when the user arrives at the air conditioner is greater than the preset time duration, and the operation time period of the air conditioner is 17:40: 05-18: 10:05 because the time when the user arrives at the air conditioner is greater than the preset time duration.
S4, monitoring whether the current time is within an air conditioner operation time period, wherein the air conditioner operation time period comprises a first air conditioner operation time period and a second air conditioner operation time period after the first air conditioner operation time period, and respectively acquiring the time length of the first air conditioner operation time period, the time length of the second air conditioner operation time period and the time length of the air conditioner operation time period, wherein the time length of the first air conditioner operation time period is first preset time.
Specifically, the air conditioner operation time period is divided into a first air conditioner operation time period with a short time length and a second air conditioner operation time period with a long time length, the first air conditioner operation time period is used for obtaining the lost refrigeration capacity after the air conditioner is started and the average output power of the air conditioner in the second air conditioner operation time period, the second air conditioner operation time period is used for controlling the air conditioner to operate at a reasonable output power, so that a room where the air conditioner is located is just close to a target regulation temperature when a user arrives at home, the first preset time is preferably 4-8 min, and the duration of the second air conditioner operation time period is preferably 4-8 times of the first preset time.
And S5, when the current time is in the first air conditioner operation time period, controlling the air conditioner to operate at the preset output power for a first preset time.
Specifically, in order to further reduce the energy consumption of the air conditioner, the prior art controls the air conditioner to operate at a specific output power, wherein a comparison table between the output power of the air conditioner and control parameters of each element is preset in the air conditioner, the air conditioner determines the control parameters of each element of the air conditioner corresponding to the specific output power according to the comparison table, and controls each element of the air conditioner to operate at a corresponding control parameter.
And S6, recording the indoor air temperature of the air conditioner just running at the preset output power as A1, and recording the indoor air temperature of the air conditioner after running at the preset output power for the first preset time as A2.
S7, calculating the lost refrigeration capacity of the air conditioner after the air conditioner is started (also called the lost refrigeration capacity of the air conditioner after the air conditioner operates in the air conditioner operation time period) according to the indoor air temperature A1, the indoor air temperature A2, the preset output power, the first preset time, the time length of the air conditioner operation time period and a preset lost refrigeration capacity estimation formula, wherein the preset lost refrigeration capacity estimation formula is as follows:
Q1= [F×T1-cm(A1- A2)]×T/T1;
Z1= F×T1;
Z2= cm(A1- A2) ;
Z3= F×T1-cm(A1- A2);
q1-the lost refrigeration capacity after the air conditioner is started, Z1-the actual refrigeration capacity of the air conditioner in the first air conditioner operation time period, Z2-the refrigeration capacity required by the room where the air conditioner is located due to temperature change in the first air conditioner operation time period, Z3-the lost refrigeration capacity of the air conditioner after the air conditioner is operated in the first air conditioner operation time period, F-the preset output power, T1-the first preset time, the time length of the T-air conditioner operation time period, A1-the indoor air temperature when the air conditioner is just operated at the preset output power, A2-the indoor air temperature after the air conditioner is operated at the preset output power for the first preset time, c-the air capacity, and m-the air quality of the room where the air conditioner is located.
Specifically, for a room where the air conditioner is located, the cooling capacity generated by the cooling operation of the air conditioner is mainly related to the sunlight heat entering the room, the indoor and outdoor temperature difference heat transfer, the external window ventilation heat exchange and the heat of the temperature change of the room, because the operation time of the air conditioner started in advance in the implementation is generally 30-60 min, the time is short, the external heat change formed by the sunlight heat entering the room, the indoor and outdoor temperature difference heat transfer and the external window ventilation heat exchange capacity in the short time period can be considered to be small, in the embodiment, the lost cooling capacity of the air conditioner in the air conditioner operation time period is estimated according to the air conditioner lost cooling capacity of the first air conditioner operation time period, wherein the lost cooling capacity of the air conditioner in the first operation time period is the actual cooling capacity of the air conditioner in the first operation time period and the temperature change of the room where the air conditioner is located in the first air conditioner operation time period due to the continuous operation of the preset output power of the air conditioner in the first Difference in required cooling capacity.
And S8, judging whether the lost refrigeration capacity after the air conditioner is started is larger than a preset lost refrigeration capacity, wherein the preset lost refrigeration capacity is preferably 10-30 kWh.
And S9, if yes, controlling the air conditioner to be closed, sending information of not opening the air conditioner to the user terminal, wherein the loss refrigerating capacity of the air conditioner after being opened is larger than the preset loss refrigerating capacity, which indicates that external heat enters a room where the air conditioner is located, the air conditioner is opened in advance, a large amount of power consumption and energy consumption are wasted, and the air conditioner is controlled to be closed and simultaneously reminds the user of saving power for the user.
S10, if not, calculating the average output power of the air conditioner in the second air conditioner operation time period according to the lost refrigeration capacity Q1, the indoor air temperature A1, the indoor air temperature A2, the preset output power, the first preset time, the time length of the second air conditioner operation time period and a preset air conditioner average output power estimation formula after the air conditioner is started, wherein the preset air conditioner average output power estimation formula is as follows:
K= Q2/T2= [Q1+ cm(A1- A3)- F×T1]/T2;
Z1= F×T1;
Z4= cm(A1- A3) ;
Q3= Q1+ cm(A1- A3);
z1-actual refrigerating capacity of the air conditioner in a first air conditioner operation time period, Z4-refrigerating capacity required by a room where the air conditioner is located due to temperature change in the air conditioner operation time period, K-average output power of the air conditioner in a second air conditioner operation time period, Q1-lost refrigerating capacity after the air conditioner is started, Q2-estimated refrigerating capacity after the air conditioner is operated in the second air conditioner operation time period, Q3-estimated refrigerating capacity after the air conditioner is operated in the air conditioner operation time period, T2-time length of the second air conditioner operation time period, F-preset output power, T1-first preset time, A1-indoor air temperature when the air conditioner is just operated at preset output power, A3-preset target regulation temperature, c-air capacity and m-specific heat capacity of the room where the air conditioner is located.
Specifically, since the lost refrigeration capacity of the air conditioner after the air conditioner operates in the air conditioner operation time period is calculated according to a preset lost refrigeration capacity estimation formula, the required refrigeration capacity Z4 of the room where the air conditioner is located due to temperature change in the air conditioner operation time period is cm (A1-A3), the estimated refrigeration capacity of the air conditioner after the air conditioner operates in the air conditioner operation time period is the sum of the lost refrigeration capacity of the air conditioner after the air conditioner operates in the air conditioner operation time period and the required refrigeration capacity of the room where the air conditioner is located due to temperature change in the air conditioner operation time period, and since the actual refrigeration capacity of the air conditioner in the first air conditioner operation time period is known, the estimated refrigeration capacity and the average output power of the air conditioner in the second air conditioner operation time period can be obtained through corresponding calculation. It should be noted that the preset target adjustment temperature may be set by a user or preset in the air conditioner by a manufacturer, and the preset target adjustment temperature is preferably 20 ℃ to 26 ℃.
And S11, when the current time is in the second air conditioner operation time period, controlling the air conditioner to operate at the average output power of the air conditioner in the second air conditioner operation time period.
Specifically, the control of the air conditioner to operate at the average output power of the air conditioner for the second air conditioner operation period may employ the prior art, that is, the air conditioner is preset with a comparison table of the air conditioner output power and the control parameters of each element, the air conditioner confirms the control parameters of each element of the air conditioner corresponding to the specific output power according to the comparison table and controls each element of the air conditioner to operate according to the corresponding control parameters, wherein, in order to better control the operation of the air conditioner, the preset air conditioner output power in the comparison table of the preset air conditioner output power and the control parameters of each element is preferably a range value, if the output power range with the preset output power of 500W-530W corresponds to the control parameter of a certain element, when the average output power of the air conditioner in the second air conditioner operation time period calculated in the embodiment is in the range of 500W-530W, and controlling each element of the air conditioner to operate according to the control parameter corresponding to the output power range of 500-530W.
In order to enable a user to enjoy a better temperature environment after arriving at home, when the current time is not in the air conditioner operation time period and is behind the air conditioner operation time period, the air conditioner is controlled to adjust the air temperature of the room where the air conditioner is located according to the preset target adjustment temperature.
It should be noted that, the control method of the air conditioner in the embodiment is not only suitable for refrigeration control, but also suitable for heating control based on similar principles, so that users can enjoy a warm environment in winter and do not waste a large amount of heating power consumption of the air conditioner.
The protection scope of the present invention is not limited to the above description, and any other products with the same or similar technical solutions as or to the present invention, regardless of the shape or structure, are within the protection scope of the present invention.