CN113311721A - Intelligent home control method, device, equipment and medium based on Internet of things - Google Patents
Intelligent home control method, device, equipment and medium based on Internet of things Download PDFInfo
- Publication number
- CN113311721A CN113311721A CN202110577963.8A CN202110577963A CN113311721A CN 113311721 A CN113311721 A CN 113311721A CN 202110577963 A CN202110577963 A CN 202110577963A CN 113311721 A CN113311721 A CN 113311721A
- Authority
- CN
- China
- Prior art keywords
- target
- air conditioner
- intelligent air
- human body
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000011217 control strategy Methods 0.000 claims abstract description 27
- 238000005286 illumination Methods 0.000 claims description 81
- 230000008859 change Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 15
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 15
- 238000001514 detection method Methods 0.000 claims description 7
- 238000003860 storage Methods 0.000 claims description 7
- 230000006698 induction Effects 0.000 claims 1
- 230000006855 networking Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 10
- 230000000694 effects Effects 0.000 description 8
- 238000004134 energy conservation Methods 0.000 description 7
- 238000005265 energy consumption Methods 0.000 description 7
- 230000036541 health Effects 0.000 description 7
- 238000004378 air conditioning Methods 0.000 description 6
- 238000003287 bathing Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000004936 stimulating effect Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000001816 cooling Methods 0.000 description 2
- 238000010791 quenching Methods 0.000 description 2
- 230000000171 quenching effect Effects 0.000 description 2
- 230000003860 sleep quality Effects 0.000 description 2
- 239000004984 smart glass Substances 0.000 description 2
- 230000000638 stimulation Effects 0.000 description 2
- 230000035922 thirst Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Air Conditioning Control Device (AREA)
Abstract
The invention provides an intelligent home control method, device, equipment and medium based on the Internet of things, wherein the method comprises the steps of detecting whether a target human body enters a target control area, and if so, automatically controlling a first light source in the target control area to be turned on; otherwise, the first light source is not automatically controlled to be turned on; judging whether the target intelligent air conditioner is in an operating state within a first preset time when the target human body enters a target control area, and if not, keeping the current state of the target intelligent air conditioner unchanged; if so, judging whether the current operating temperature of the target intelligent air conditioner is proper, and if so, keeping the current operating temperature of the target intelligent air conditioner unchanged; if not, automatically adjusting the current operating temperature of the target intelligent air conditioner to a preset first appropriate temperature; and detecting the state information of the target human body in the target control area, and executing a first control strategy according to the state information. The invention has the advantages that: the number of times of manual operation of the user can be reduced, and better experience is brought to the life of the user.
Description
Technical Field
The invention relates to the technical field of computers, in particular to an intelligent home control method, device, equipment and medium based on the Internet of things.
Background
With the continuous development of science and technology, people's life has also changed greatly, and electrical equipment has become an indispensable part in people's daily life. At present, various intelligent electrical equipment can be installed in the bedroom of user at home, wherein, intelligent lamp and intelligent air conditioner are the indispensable equipment in every bedroom. However, the existing intelligent lamp and the intelligent air conditioner mainly operate and control manually, and experience is poor. In view of the above problems, the present inventors have conducted extensive studies and have made the present invention.
Disclosure of Invention
The invention aims to provide an intelligent home control method, device, equipment and medium based on the Internet of things, and solves the problem that the experience is poor due to the fact that the existing intelligent lamp and the existing intelligent air conditioner are mainly controlled by manual operation.
In a first aspect, the invention provides an intelligent home control method based on the internet of things, and the control method comprises the following steps: detecting whether a target human body enters a target control area, and if so, automatically controlling a first light source in the target control area to be turned on; if not, the first light source is not automatically controlled to be turned on;
acquiring state data of a target intelligent air conditioner in a target control area within first preset time when a target human body enters the target control area, judging whether the target intelligent air conditioner is in an operating state or not based on the state data, and if not, keeping the current state of the target intelligent air conditioner unchanged; if so, detecting relevant equipment use data of the target human body before entering the target control area, judging whether the current operating temperature of the target intelligent air conditioner is proper or not based on the relevant equipment use data, and if so, keeping the current operating temperature of the target intelligent air conditioner unchanged; if not, automatically adjusting the current operating temperature of the target intelligent air conditioner to a preset first appropriate temperature;
after the target human body enters the target control area, detecting state information of the target human body in the target control area, and executing a first control strategy according to the state information, wherein the first control strategy comprises the following steps:
if the target human body is detected to be in a reading state before sleeping, the first light source is automatically turned off and the second light source is controlled to be turned on, and meanwhile, if the target intelligent air conditioner is in an operating state, the current operating temperature of the target intelligent air conditioner is automatically adjusted to a preset second appropriate temperature; if the target human body is detected to be in a sleep state, the first light source or the second light source is automatically turned off, and meanwhile, if the target intelligent air conditioner is in an operation state, the current operation temperature of the target intelligent air conditioner is automatically adjusted to a preset third proper temperature; if the target human body is detected to be in an out-of-bed state, keeping the first light source turned on, and meanwhile, keeping the current operating temperature of the target intelligent air conditioner unchanged if the target intelligent air conditioner is in an operating state;
when the target human body is in an out-of-bed state, if the target human body is detected to leave a target control area, automatically controlling the first light source to be turned off, meanwhile, if the target intelligent air conditioner is in an operation state, judging whether the target intelligent air conditioner executes a timed operation task, and if so, controlling the target intelligent air conditioner to continuously operate at the current operation temperature; and if not, controlling the target intelligent air conditioner to stop running.
Further, when it is detected that the target human body changes from the sleep state or the reading state before sleep to the out-of-bed state, a second control strategy is executed according to the state change, and the second control strategy comprises:
when the target human body is detected to be changed from the sleep state to the out-of-bed state, the second light source is automatically controlled to be turned on, and meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept to run continuously at the current running temperature; when the target human body is detected to be changed from the reading state before sleep to the out-of-bed state, the second light source is kept on, and meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept running at the current running temperature;
when the target human body is changed from a sleeping state or a reading state before sleeping into an out-of-bed state, detecting whether the target human body leaves the target control area, if so, judging whether the target human body returns to the target control area within a second preset time, if so, keeping a second light source on, and meanwhile, keeping the target intelligent air conditioner to continuously run at the current running temperature if the target intelligent air conditioner is in a running state;
if the target intelligent air conditioner does not return to the target control area within the second preset time, automatically controlling the second light source to be turned off, meanwhile, if the target intelligent air conditioner is in the running state, judging whether the target intelligent air conditioner is executing the timed running task, and if so, controlling the target intelligent air conditioner to continue running at the current running temperature; if not, controlling the target intelligent air conditioner to stop running;
and if the target human body is detected not to leave the target control area, keeping the second light source turned on, and meanwhile, keeping the target intelligent air conditioner to continuously operate at the current operating temperature if the target intelligent air conditioner is in an operating state.
Further, the detecting relevant device usage data of the target human body before entering the target control area, and the determining whether the current operating temperature of the target intelligent air conditioner is appropriate based on the relevant device usage data specifically includes: detecting related equipment use data of a target human body within a third preset time before the target human body enters a target control area, judging whether the related equipment use data comprise water heater use data or fitness equipment use data, if the related equipment use data comprise the water heater use data or the fitness equipment use data, continuously judging whether the current operating temperature of the target intelligent air conditioner is within a preset temperature range, and if the current operating temperature is within the preset temperature range, judging that the current operating temperature is proper; if the temperature is not within the preset temperature range, determining that the temperature is not appropriate;
if no water heater usage data or exercise machine usage data is included, it is determined to be appropriate.
Furthermore, the infrared human body sensing device is used for detecting whether a target human body enters or leaves the target control area, and comprises a first human body sensor arranged outside a door of the target control area and a second human body sensor arranged inside the door of the target control area.
Further, state information of the target human body in the target control area is detected through a pressure sensing device; the pressure sensing device comprises a first pressure sensor arranged on a sleeping area of the mattress and a second pressure sensor arranged on a backrest area of the bed backrest;
when the first pressure sensor detects that the target human body is positioned on the sleeping area and the second pressure sensor detects that the target human body leans against the backrest area, the target human body is judged to be in a reading state before sleeping; when the first pressure sensor detects that the target human body is positioned on the sleeping area and the second pressure sensor does not detect that the target human body leans against the backrest area, judging that the target human body is in a sleeping state; and when the first pressure sensor does not detect that the target human body is positioned on the sleeping area, judging that the target human body is in an out-of-bed state.
Further, when it is detected that the target human body enters the target control area, the method further comprises the following steps: detecting the illumination intensity in the target control area, and automatically controlling a first light source in the target control area to be turned on if the detected illumination intensity is smaller than a first preset illumination intensity; if the detected illumination intensity is greater than or equal to a first preset illumination intensity, the first light source is not automatically controlled to be turned on; the first preset illumination intensity is smaller than the illumination intensity of the second light source, and the illumination intensity of the second light source is smaller than the illumination intensity of the first light source.
Further, the illumination intensity is detected by an illumination intensity sensing device, wherein the illumination intensity sensing device comprises a first illumination intensity sensor arranged in the target control area and a second illumination intensity sensor arranged outside a window of the target control area; when the second illumination intensity sensor detects that the external illumination intensity exceeds the illumination intensity of the target control area and reaches a second preset illumination intensity, and meanwhile, the target control area does not detect the entrance of a target human body within a fifth preset time, controlling the intelligent curtain in the target control area to be automatically opened; and the fifth preset time is greater than the second preset time.
In a second aspect, the invention provides an intelligent home control device based on the internet of things, which is characterized in that: the control device comprises a detection control module, a first control module and a second control module;
the detection control module is used for detecting whether a target human body enters a target control area or not, and if so, automatically controlling a first light source in the target control area to be turned on; if not, the first light source is not automatically controlled to be turned on;
the first control module is used for acquiring state data of a target intelligent air conditioner in a target control area within a first preset time when a target human body enters the target control area, judging whether the target intelligent air conditioner is in an operating state or not based on the state data, and if not, keeping the current state of the target intelligent air conditioner unchanged; if so, detecting relevant equipment use data of the target human body before entering the target control area, judging whether the current operating temperature of the target intelligent air conditioner is proper or not based on the relevant equipment use data, and if so, keeping the current operating temperature of the target intelligent air conditioner unchanged; if not, automatically adjusting the current operating temperature of the target intelligent air conditioner to a preset first appropriate temperature;
the second control module is configured to detect state information of the target human body in the target control area after the target human body enters the target control area, and execute a first control policy according to the state information, where the first control policy includes:
if the target human body is detected to be in a reading state before sleeping, the first light source is automatically turned off and the second light source is controlled to be turned on, and meanwhile, if the target intelligent air conditioner is in an operating state, the current operating temperature of the target intelligent air conditioner is automatically adjusted to a preset second appropriate temperature; if the target human body is detected to be in a sleep state, the first light source or the second light source is automatically turned off, and meanwhile, if the target intelligent air conditioner is in an operation state, the current operation temperature of the target intelligent air conditioner is automatically adjusted to a preset third proper temperature; if the target human body is detected to be in an out-of-bed state, keeping the first light source turned on, and meanwhile, keeping the current operating temperature of the target intelligent air conditioner unchanged if the target intelligent air conditioner is in an operating state;
when the target human body is in an out-of-bed state, if the target human body is detected to leave a target control area, automatically controlling the first light source to be turned off, meanwhile, if the target intelligent air conditioner is in an operation state, judging whether the target intelligent air conditioner executes a timed operation task, and if so, controlling the target intelligent air conditioner to continuously operate at the current operation temperature; and if not, controlling the target intelligent air conditioner to stop running.
Further, when it is detected that the target human body changes from the sleep state or the reading state before sleep to the out-of-bed state, a second control strategy is executed according to the state change, and the second control strategy comprises:
when the target human body is detected to be changed from the sleep state to the out-of-bed state, the second light source is automatically controlled to be turned on, and meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept to run continuously at the current running temperature; when the target human body is detected to be changed from the reading state before sleep to the out-of-bed state, the second light source is kept on, and meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept running at the current running temperature;
when the target human body is changed from a sleeping state or a reading state before sleeping into an out-of-bed state, detecting whether the target human body leaves the target control area, if so, judging whether the target human body returns to the target control area within a second preset time, if so, keeping a second light source on, and meanwhile, keeping the target intelligent air conditioner to continuously run at the current running temperature if the target intelligent air conditioner is in a running state;
if the target intelligent air conditioner does not return to the target control area within the second preset time, automatically controlling the second light source to be turned off, meanwhile, if the target intelligent air conditioner is in the running state, judging whether the target intelligent air conditioner is executing the timed running task, and if so, controlling the target intelligent air conditioner to continue running at the current running temperature; if not, controlling the target intelligent air conditioner to stop running;
and if the target human body is detected not to leave the target control area, keeping the second light source turned on, and meanwhile, keeping the target intelligent air conditioner to continuously operate at the current operating temperature if the target intelligent air conditioner is in an operating state.
In a third aspect, the present invention provides 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 method of the first aspect when executing the program.
In a fourth aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method of the first aspect.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages: by combining the first control strategy and the second control strategy, the lighting illumination and the air-conditioning temperature in the target control area can be automatically controlled, so that the illumination and the air-conditioning temperature in the target control area can automatically change along with the change of the state of the user, the manual operation times of the user are reduced, and better experience can be brought to the life of the user. The automatic control of the lighting can ensure that the effect of turning off the lamp when a person turns on the lamp can be realized under the condition of completely not needing manual operation, the hands of a user are liberated to be convenient for directly taking things to enter and exit a bedroom, the electric energy loss caused by manually forgetting to turn off the lamp is avoided, and the automatic switching control of two lamps in a target control area can be realized; the automatic control of the air conditioner temperature ensures that the manual intervention process can be reduced after a user opens the target intelligent air conditioner, the discomfort problem caused by the fact that the user forgets to adjust the temperature due to too low running temperature of the target intelligent air conditioner is avoided, and the problem of electric energy consumption caused by the fact that the user forgets to close the target intelligent air conditioner is avoided.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
Fig. 1 is an execution flow chart of an intelligent home control method based on the internet of things in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an intelligent home control device based on the internet of things in the second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the invention;
fig. 4 is a schematic structural diagram of a medium according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Example one
The embodiment provides an intelligent home control method based on the internet of things, as shown in fig. 1, the control method includes:
detecting whether a target human body enters a target control area, and if so, automatically controlling a first light source in the target control area to be turned on so as to realize illumination of the target control area; if not, the first light source is not automatically controlled to be turned on, so that the purpose of energy conservation is achieved;
acquiring state data of a target intelligent air conditioner in a target control area within first preset time when a target human body enters the target control area, judging whether the target intelligent air conditioner is in an operating state or not based on the state data, and if not, keeping the current state of the target intelligent air conditioner unchanged; if so, detecting relevant equipment use data of the target human body before entering the target control area, judging whether the current operating temperature of the target intelligent air conditioner is proper or not based on the relevant equipment use data, and if so, keeping the current operating temperature of the target intelligent air conditioner unchanged; if not, automatically adjusting the current operating temperature of the target intelligent air conditioner to a preset first appropriate temperature; in hot summer, in order to achieve the cooling effect, the temperature of the air conditioner in a room is usually adjusted to be lower by a user, and if the user returns to the room after bathing or moves, the user usually does not pay attention to the adjustment of the temperature of the air conditioner, so that the body health of the user is easily affected by the excessively low temperature; according to the invention, after the user enters the target control area, whether the current operating temperature is proper or not is automatically judged according to the related equipment use data of the user before the user enters the target control area, and if the current operating temperature is not proper, the current operating temperature is automatically adjusted to the preset first proper temperature, so that the influence of the over-low temperature on the body health of the user can be effectively prevented. In the technical scheme of the invention, the target intelligent air conditioner can automatically run according to a set timed running task, or can be actively started when a user enters a target control area last time or after the user enters the target control area this time, if the user actively starts after entering the target control area this time, the state data cannot be acquired when the target human body is detected to enter the target control area, so that the state data can be acquired within the first preset time when the user enters the target control area, and the actual use requirement can be well met; the first preset time can be set according to actual needs, for example, the first preset time can be set to 5 minutes; in order to better meet the actual use requirement, the specific value range of the first preset time can be 3-10 minutes. When the invention is implemented specifically, in order to be beneficial to the health of users, the value range of the first proper temperature can be 25-27 ℃, and the specific value can be adjusted according to the habits of different users; for example, the first suitable temperature is set to 26 ℃, and when the user enters the target control area after bathing or exercise, if the current operating temperature of the target intelligent air conditioner is 23 ℃, the current operating temperature is determined to be unsuitable, and the current operating temperature of the target intelligent air conditioner is automatically adjusted to the preset 26 ℃.
After the target human body enters the target control area, detecting state information of the target human body in the target control area, and executing a first control strategy according to the state information, wherein the first control strategy comprises the following steps:
if the target human body is detected to be in a reading state before sleeping, the first light source is automatically turned off and the second light source is controlled to be turned on, and meanwhile, if the target intelligent air conditioner is in an operating state, the current operating temperature of the target intelligent air conditioner is automatically adjusted to a preset second appropriate temperature; when the user is in a reading state before sleeping, if the first light source is continuously started, reading and sleeping are not facilitated, therefore, when the user is detected to be in the reading state before sleeping, the first light source is automatically turned off, and the second light source is controlled to be turned on; meanwhile, when the user is in a reading state before sleeping, the user usually only wears the thin pajamas and leans on the backrest of the bed, and at the moment, if the operating temperature of the target intelligent air conditioner is low, the user is easy to catch a cold; in specific implementation, the value range of the second suitable temperature can be 24-26 ℃, and the specific value can be adjusted according to habits of different users; for example, the second suitable temperature is set to 25 ℃, and when the user enters a reading state before sleeping, the current operating temperature of the target intelligent air conditioner is automatically adjusted to the preset 25 ℃.
If the target human body is detected to be in a sleep state, the first light source or the second light source is automatically turned off, and meanwhile, if the target intelligent air conditioner is in an operation state, the current operation temperature of the target intelligent air conditioner is automatically adjusted to a preset third proper temperature; if the target human body is detected to be in an out-of-bed state, keeping the first light source turned on, and meanwhile, keeping the current operating temperature of the target intelligent air conditioner unchanged if the target intelligent air conditioner is in an operating state; when the user is in the sleep state, the light source is not expected to be turned on, so that the first light source or the second light source is automatically turned off when the user is detected to be in the sleep state, and the user can fall asleep conveniently; meanwhile, when the intelligent air conditioner is in a sleep state, if the operating temperature of the intelligent air conditioner is too high or too low, the sleep of the user is not facilitated, therefore, when the intelligent air conditioner detects that the user is in the sleep state, the current operating temperature of the target intelligent air conditioner is automatically adjusted to a preset third proper temperature, and the sleep of the user is facilitated; in the specific implementation of the invention, the value range of the third suitable temperature can be 25-28 ℃, and the specific value can be adjusted according to the habits of different users; for example, the third suitable temperature is set to be 27 ℃, and when the user enters the sleep state, the current operating temperature of the target smart air conditioner is automatically adjusted to the preset 27 ℃. Because the existing intelligent air conditioners are all provided with the sleep operation mode, in order to better ensure the sleep quality of a user, the invention can also adopt the mode that the current operation mode of the target intelligent air conditioner is automatically switched to the sleep operation mode when the user is detected to be in the sleep state.
When the target human body is in an out-of-bed state, if the target human body is detected to leave a target control area, the first light source is automatically controlled to be turned off so as to achieve the purpose of energy conservation, meanwhile, if the target intelligent air conditioner is in an operation state, whether the target intelligent air conditioner executes a timed operation task is judged, and if yes, the target intelligent air conditioner is controlled to continue to operate at the current operation temperature; and if not, controlling the target intelligent air conditioner to stop running. During specific implementation, if a user sets a timed operation task for the target intelligent air conditioner, the user is indicated to continuously return to the target control area after leaving the target control area, so that the target intelligent air conditioner is continuously operated at the current operation temperature; if the timed operation task is not set, the user may not return to the target control area, and the target intelligent air conditioner can be controlled to stop operating at the moment, so that electric energy consumption caused by the fact that the user forgets to turn off the target intelligent air conditioner is avoided.
Because in the actual use process, the user may also leave the target control area (such as the toilet) for a short time because of something, at this time, although the target intelligent air conditioner is not set with the timed operation task, the user wants the target intelligent air conditioner not to be turned off, and for the convenience of actual use, the technical solution of the present invention further includes: if the target intelligent air conditioner is not provided with the timed operation task, the target intelligent air conditioner is kept to operate at the current operation temperature, whether the target human body enters the target control area again within the sixth preset time is continuously judged, and if yes, the target intelligent air conditioner is continuously kept to operate at the current operation temperature; if not, controlling the target intelligent air conditioner to stop running; the value range of the sixth preset time can be set to be 5-10 minutes, and the specific value can be adjusted according to the use habits of different users; for example, the sixth preset time is set to 10 minutes, the user controls the target smart air conditioner to stop operating if the user does not return to the target control area within 10 minutes.
In the specific implementation of the invention, the target control area can be the whole area of a bedroom; the first light source may be a main lighting lamp (e.g. ceiling lamp) for illumination during activities in the bedroom; the second light source may be a bedside lamp for illumination when reading before sleep. The technical scheme of the invention can realize the automatic control of the illumination and the air conditioner temperature in the whole process of entering the target control area from the outside of the target control area and moving in the target control area, and comprises the steps of automatically controlling the switching of the first light source and the second light source in the target control area according to different state information of a user and automatically adjusting the running temperature of the target intelligent air conditioner.
In the embodiment of the present invention, when it is detected that the target human body changes from the sleep state or the reading state before sleep to the out-of-bed state, a second control strategy is executed according to the state change, where the second control strategy includes:
when the target human body is detected to be changed from the sleep state to the out-of-bed state, the second light source is automatically controlled to be turned on, and meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept to run continuously at the current running temperature, namely, the target intelligent air conditioner is kept to run continuously at the third suitable temperature which is automatically adjusted when the target intelligent air conditioner falls asleep or in the sleep running mode which is automatically switched; of course, if the user actively adjusts the operating temperature of the target intelligent air conditioner, the operating temperature actively adjusted by the user is kept to continue to operate; according to the invention, when the user is detected to be changed from the sleep state to the out-of-bed state, the second light source in the target control area is automatically controlled to be turned on, so that the trouble that the user needs to search for a mechanical control switch in a dark state after leaving from the bed in the past can be avoided, the second light source is controlled to be turned on, and the second light source is a bedside lamp with soft light, so that the stimulation of strong light to the user getting from the bed can be avoided under the condition of meeting the illumination requirement; meanwhile, as the user just leaves from the bed, if the operation temperature of the target intelligent air conditioner is adjusted, the user can not adapt, so that the target intelligent air conditioner is kept to continue to operate at the current operation temperature;
when the target human body is detected to be changed from the reading state before sleep to the out-of-bed state, the second light source is kept on, and meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept to run continuously at the current running temperature, namely, the target intelligent air conditioner is kept to run continuously at the second proper temperature automatically adjusted when the target intelligent air conditioner is reading before sleep; of course, if the user actively adjusts the operating temperature of the target intelligent air conditioner, the operating temperature actively adjusted by the user is kept to continue to operate; according to the invention, when the situation that the user changes from the reading state before sleeping to the out-of-bed state is detected, the second light source is automatically kept on, so that the user can conveniently get off the bed to move, and the strong light can be prevented from stimulating the user getting off the bed; meanwhile, as the user just gets off the bed, if the operation temperature of the target intelligent air conditioner is adjusted, the user is possibly not suitable, so the method keeps the target intelligent air conditioner to continuously operate at the current operation temperature;
when the target human body is changed from a sleeping state or a reading state before sleeping into an out-of-bed state, detecting whether the target human body leaves the target control area, if so, judging whether the target human body returns to the target control area within a second preset time, if so, keeping a second light source on, and meanwhile, keeping the target intelligent air conditioner to continuously run at the current running temperature if the target intelligent air conditioner is in a running state; if the user leaves the target control area and returns to the target control area within the second preset time, the user only leaves the target control area (such as the toilet), and the user can conveniently return to the target control area by keeping the second light source on at the moment, so that the user can be prevented from being stimulated by strong light; meanwhile, as the user only leaves the target control area for a short time, if the operation temperature of the target intelligent air conditioner is adjusted, the user is possibly not suitable, so that the target intelligent air conditioner is kept to continuously operate at the current operation temperature;
if the target intelligent air conditioner does not return to the target control area within the second preset time, automatically controlling the second light source to be turned off, meanwhile, if the target intelligent air conditioner is in the running state, judging whether the target intelligent air conditioner is executing the timed running task, and if so, controlling the target intelligent air conditioner to continue running at the current running temperature; if not, controlling the target intelligent air conditioner to stop running; if the user does not return to the target control area within the second preset time after leaving the target control area, the user is indicated that the user may not enter the target control area again within a short time, and the second light source is automatically controlled to be turned off at the moment so as to achieve the purpose of energy conservation. Meanwhile, if the target intelligent air conditioner is provided with a timed operation task, the user does not want to close the target intelligent air conditioner, and possibly returns to a target control area subsequently, and the target intelligent air conditioner continues to operate at the current operation temperature; if the timing operation task is not set, controlling the target intelligent air conditioner to stop operating so as to avoid electric energy consumption caused by forgetting to turn off the target intelligent air conditioner by a user; the value range of the second preset time can be set to be 5-15 minutes, and the specific value can be adjusted according to the use habits of different users; for example, the second preset time is set to 12 minutes, and if the user does not return to the target control area within 12 minutes, the second light source is controlled to be turned off and the target smart air conditioner is controlled to stop operating.
If the target human body is detected not to leave the target control area, the second light source is kept on, so that the user can be conveniently illuminated, and meanwhile, strong light is prevented from stimulating the user; meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept running at the current running temperature, so that the phenomenon that the user is not suitable due to the change of the running temperature is avoided. Of course, if the user continues to change back to the sleep state or the reading before sleep state from the out-of-bed state, execution is performed according to the first control strategy. Through the second control strategy, the lighting requirement and the temperature control requirement of a user when the user leaves a bed for a short time can be greatly facilitated, for example, the user can automatically control the second light source to be turned on for lighting when going to a toilet, getting up to drink water, quenching thirst and the like, great convenience can be brought to the user when the user gets up at night, and simultaneously, the user is prevented from being uncomfortable due to the temperature change of the target intelligent air conditioner.
By combining the first control strategy and the second control strategy, the lighting illumination and the air-conditioning temperature in the target control area can be automatically controlled, so that the illumination and the air-conditioning temperature in the target control area can automatically change along with the change of the state of the user, the manual operation times of the user are reduced, and better experience can be brought to the life of the user. The automatic control of the lighting can ensure that the effect of turning off the lamp when a person turns on the lamp can be realized under the condition of completely not needing manual operation, the hands of a user are liberated to be convenient for directly taking things to enter and exit a bedroom, the electric energy loss caused by manually forgetting to turn off the lamp is avoided, and the automatic switching control of two lamps in a target control area can be realized; the automatic control of the air conditioner temperature ensures that the manual intervention process can be reduced after a user opens the target intelligent air conditioner, the discomfort problem caused by the fact that the user forgets to adjust the temperature due to too low running temperature of the target intelligent air conditioner is avoided, and the problem of electric energy consumption caused by the fact that the user forgets to close the target intelligent air conditioner is avoided.
In the embodiment of the present invention, the detecting related device usage data of the target human body before entering the target control area, and the determining whether the current operating temperature of the target intelligent air conditioner is suitable based on the related device usage data specifically includes: detecting related equipment use data of a target human body within a third preset time before the target human body enters a target control area, judging whether the related equipment use data comprise water heater use data or fitness equipment use data, if the related equipment use data comprise the water heater use data or the fitness equipment use data, continuously judging whether the current operating temperature of the target intelligent air conditioner is within a preset temperature range, and if the current operating temperature is within the preset temperature range, judging that the current operating temperature is proper; if the temperature is not within the preset temperature range, determining that the temperature is not appropriate; for example, the preset temperature range may be set to be 25 ℃ to 27 ℃, and when the current operating temperature of the target intelligent air conditioner is not within the range of 25 ℃ to 27 ℃, the target intelligent air conditioner is determined to be inappropriate, otherwise, the target intelligent air conditioner is determined to be appropriate;
if no water heater usage data or exercise machine usage data is included, it is determined to be appropriate. When the intelligent bathing device is used specifically, if a user takes a bath or enters a target control area after a period of time after the user takes exercise, the normally set operating temperature cannot influence the health of the user; therefore, when the use data of the related equipment is detected and the current operating temperature of the target intelligent air conditioner is not appropriate within the third preset time, the current operating temperature of the target intelligent air conditioner is automatically adjusted to the preset first appropriate temperature, and better experience can be brought to a user. The value range of the third preset time can be 10-20 minutes, and the specific value can be adjusted according to the use habits of different users; for example, if the third preset time is set to 15 minutes, it is determined to be appropriate if no water heater usage data or no exercise machine usage data is detected within 15 minutes before the user enters the target control area. When the system is implemented specifically, the data used by the body builder can be actively uploaded to the server by the body builder in the process that a user uses the body builder (such as a treadmill); the water heater use data can be collected by a flow sensor arranged at the water inlet end of the water heater and actively uploaded to a service end.
In the embodiment of the invention, the infrared human body sensing device is used for detecting the entrance or exit of the target human body into or from the target control area, and comprises a first human body sensor arranged outside a door of the target control area and a second human body sensor arranged inside the door of the target control area. In specific implementation, if the time when the first human body sensor senses the target human body is earlier than that of the second human body sensor, the target human body is determined to enter the target control area; and if the time that the first human body sensor senses the target human body is later than that of the second human body sensor, the target human body is judged to be away from the target control area. The target human body entering and exiting target control area can be effectively judged through the cooperation of the first human body sensor and the second human body sensor. Meanwhile, in order to reduce interference and improve the identification precision of a target human body, the first human body sensor and the second human body sensor both adopt pyroelectric infrared sensors.
In the embodiment of the invention, the state information of the target human body in the target control area is detected through the pressure sensing device; the pressure sensing device comprises a first pressure sensor arranged on a sleeping area of the mattress and a second pressure sensor arranged on a backrest area of the bed backrest; in order to achieve more accurate detection, the number of the first pressure sensors and the second pressure sensors may be provided in plurality, for example, the second pressure sensors may be provided on both sides of the bed back. During specific work, a signal of a target human body entering a sleep area is detected through a first pressure sensor; a signal of the target person leaning against the backrest region is detected by the second pressure sensor.
In the embodiment of the invention, when the first pressure sensor detects that the target human body is positioned on the sleeping area and the second pressure sensor detects that the target human body leans against the backrest area, the target human body is judged to be in a reading state before sleeping; when the first pressure sensor detects that the target human body is positioned on the sleeping area and the second pressure sensor does not detect that the target human body leans against the backrest area, judging that the target human body is in a sleeping state; and when the first pressure sensor does not detect that the target human body is positioned on the sleeping area, judging that the target human body is in an out-of-bed state.
In this embodiment of the present invention, the automatically adjusting the current operating temperature of the target intelligent air conditioner to the preset first suitable temperature specifically includes: after the current operating temperature of the target intelligent air conditioner is automatically adjusted to the preset first proper temperature, if the target human body is out of bed within the fourth preset time, the operating temperature of the target intelligent air conditioner is automatically adjusted back to the original operating temperature. After the operating temperature of the target intelligent air conditioner is automatically adjusted to the first proper temperature for a period of time, the body state of the user can be slowly restored to the normal state, and therefore better experience is brought to the user.
In the embodiment of the present invention, when it is detected that the target human body enters the target control area, the method further includes: detecting the illumination intensity in the target control area, and if the detected illumination intensity is smaller than a first preset illumination intensity, automatically controlling a first light source in the target control area to be turned on so as to illuminate the target control area; if the detected illumination intensity is greater than or equal to the first preset illumination intensity, the first light source is not automatically controlled to be turned on, because the illumination intensity is greater than or equal to the first preset illumination intensity, the illumination requirement can be met, and at the moment, a user can actively determine whether to turn on the light source. For example, if the curtain is pulled open in the daytime, the external light enters the target control area to meet the lighting requirement, and at the moment, the light source does not need to be turned on, so that the purpose of energy conservation is achieved.
In the embodiment of the invention, the first preset illumination intensity is smaller than the illumination intensity of the second light source, because the second light source is started in the target control area when the user gets up from the bed and leaves the target control area, in order to avoid that the user leaves the target control area for a short time and then the first light source is started by mistake, the first preset illumination intensity is set to be smaller than the illumination intensity of the second light source; the illumination intensity of the second light source is smaller than that of the first light source, so that different scene use requirements can be met through the cooperation of the first light source and the second light source. In addition, it should be noted that in the specific use process, only one lamp is controlled to be in the on state at any time when illumination is needed, that is, either the first light source or the second light source is turned on, so that the purpose of energy saving can be well achieved.
In the embodiment of the invention, the illumination intensity is detected by the illumination intensity sensing device, and the illumination intensity sensing device comprises a first illumination intensity sensor arranged in the target control area so as to detect the illumination intensity in the target control area.
In the embodiment of the present invention, the illumination intensity sensing device further includes a second illumination intensity sensor disposed outside the window of the target control area; when the second illumination intensity sensor detects that the external illumination intensity exceeds the illumination intensity of the target control area and reaches a second preset illumination intensity, and meanwhile, the target control area does not detect the entrance of a target human body within a fifth preset time, controlling the intelligent curtain in the target control area to be automatically opened; the fifth preset time is longer than the second preset time, and the user may need to rest in the daytime, so that the user is inconvenient to open the intelligent curtain automatically if the user leaves the target control area for a short time, and the intelligent curtain is controlled to open automatically when the user does not return to the target control area within the fifth preset time. Because many users are installed with intelligent curtains in bedrooms, and during the daytime, if the intelligent curtains are in a closed state, the difference value of the illumination intensity between the inside and the outside of the target control area is larger; according to the invention, the intelligent curtain is controlled to be automatically opened by adopting the mode that the external illumination intensity exceeds the illumination intensity of the target control area to reach the second preset illumination intensity, and when the target human body is not detected to enter the target control area within the fifth preset time, the intelligent curtain is controlled to be automatically opened, so that a user can control the intelligent curtain to be opened without manual operation in the daytime; of course, if the user is within the target control area and the smart window covering is in the closed state, the smart window covering is not automatically controlled to open. The fifth preset time may be selectively set according to the second preset time, for example, the second preset time is set to 10 minutes, and the fifth preset time may be set to 12 minutes.
Based on the same inventive concept, the application also provides a device corresponding to the method in the first embodiment, which is detailed in the second embodiment.
Example two
In this embodiment, an intelligent home control device based on the internet of things is provided, as shown in fig. 2, the control device includes a detection control module, a first control module, and a second control module;
the detection control module is used for detecting whether a target human body enters a target control area or not, and if so, automatically controlling a first light source in the target control area to be turned on so as to realize illumination of the target control area; if not, the first light source is not automatically controlled to be turned on, so that the purpose of energy conservation is achieved;
the first control module is used for acquiring state data of a target intelligent air conditioner in a target control area within a first preset time when a target human body enters the target control area, judging whether the target intelligent air conditioner is in an operating state or not based on the state data, and if not, keeping the current state of the target intelligent air conditioner unchanged; if so, detecting relevant equipment use data of the target human body before entering the target control area, judging whether the current operating temperature of the target intelligent air conditioner is proper or not based on the relevant equipment use data, and if so, keeping the current operating temperature of the target intelligent air conditioner unchanged; if not, automatically adjusting the current operating temperature of the target intelligent air conditioner to a preset first appropriate temperature; in hot summer, in order to achieve the cooling effect, the temperature of the air conditioner in a room is usually adjusted to be lower by a user, and if the user returns to the room after bathing or moves, the user usually does not pay attention to the adjustment of the temperature of the air conditioner, so that the body health of the user is easily affected by the excessively low temperature; according to the invention, after the user enters the target control area, whether the current operating temperature is proper or not is automatically judged according to the related equipment use data of the user before the user enters the target control area, and if the current operating temperature is not proper, the current operating temperature is automatically adjusted to the preset first proper temperature, so that the influence of the over-low temperature on the body health of the user can be effectively prevented. In the technical scheme of the invention, the target intelligent air conditioner can automatically run according to a set timed running task, or can be actively started when a user enters a target control area last time or after the user enters the target control area this time, if the user actively starts after entering the target control area this time, the state data cannot be acquired when the target human body is detected to enter the target control area, so that the state data can be acquired within the first preset time when the user enters the target control area, and the actual use requirement can be well met; the first preset time can be set according to actual needs, for example, the first preset time can be set to 5 minutes; in order to better meet the actual use requirement, the specific value range of the first preset time can be 3-10 minutes. When the invention is implemented specifically, in order to be beneficial to the health of users, the value range of the first proper temperature can be 25-27 ℃, and the specific value can be adjusted according to the habits of different users; for example, the first suitable temperature is set to 26 ℃, and when the user enters the target control area after bathing or exercise, if the current operating temperature of the target intelligent air conditioner is 23 ℃, the current operating temperature is determined to be unsuitable, and the current operating temperature of the target intelligent air conditioner is automatically adjusted to the preset 26 ℃.
The second control module is configured to detect state information of the target human body in the target control area after the target human body enters the target control area, and execute a first control policy according to the state information, where the first control policy includes:
if the target human body is detected to be in a reading state before sleeping, the first light source is automatically turned off and the second light source is controlled to be turned on, and meanwhile, if the target intelligent air conditioner is in an operating state, the current operating temperature of the target intelligent air conditioner is automatically adjusted to a preset second appropriate temperature; when the user is in a reading state before sleeping, if the first light source is continuously started, reading and sleeping are not facilitated, therefore, when the user is detected to be in the reading state before sleeping, the first light source is automatically turned off, and the second light source is controlled to be turned on; meanwhile, when the user is in a reading state before sleeping, the user usually only wears the thin pajamas and leans on the backrest of the bed, and at the moment, if the operating temperature of the target intelligent air conditioner is low, the user is easy to catch a cold; in specific implementation, the value range of the second suitable temperature can be 24-26 ℃, and the specific value can be adjusted according to habits of different users; for example, the second suitable temperature is set to 25 ℃, and when the user enters a reading state before sleeping, the current operating temperature of the target intelligent air conditioner is automatically adjusted to the preset 25 ℃.
If the target human body is detected to be in a sleep state, the first light source or the second light source is automatically turned off, and meanwhile, if the target intelligent air conditioner is in an operation state, the current operation temperature of the target intelligent air conditioner is automatically adjusted to a preset third proper temperature; if the target human body is detected to be in an out-of-bed state, keeping the first light source turned on, and meanwhile, keeping the current operating temperature of the target intelligent air conditioner unchanged if the target intelligent air conditioner is in an operating state; when the user is in the sleep state, the light source is not expected to be turned on, so that the first light source or the second light source is automatically turned off when the user is detected to be in the sleep state, and the user can fall asleep conveniently; meanwhile, when the intelligent air conditioner is in a sleep state, if the operating temperature of the intelligent air conditioner is too high or too low, the sleep of the user is not facilitated, therefore, when the intelligent air conditioner detects that the user is in the sleep state, the current operating temperature of the target intelligent air conditioner is automatically adjusted to a preset third proper temperature, and the sleep of the user is facilitated; in the specific implementation of the invention, the value range of the third suitable temperature can be 25-28 ℃, and the specific value can be adjusted according to the habits of different users; for example, the third suitable temperature is set to be 27 ℃, and when the user enters the sleep state, the current operating temperature of the target smart air conditioner is automatically adjusted to the preset 27 ℃. Because the existing intelligent air conditioners are all provided with the sleep operation mode, in order to better ensure the sleep quality of a user, the invention can also adopt the mode that the current operation mode of the target intelligent air conditioner is automatically switched to the sleep operation mode when the user is detected to be in the sleep state.
When the target human body is in an out-of-bed state, if the target human body is detected to leave a target control area, the first light source is automatically controlled to be turned off so as to achieve the purpose of energy conservation, meanwhile, if the target intelligent air conditioner is in an operation state, whether the target intelligent air conditioner executes a timed operation task is judged, and if yes, the target intelligent air conditioner is controlled to continue to operate at the current operation temperature; and if not, controlling the target intelligent air conditioner to stop running. During specific implementation, if a user sets a timed operation task for the target intelligent air conditioner, the user is indicated to continuously return to the target control area after leaving the target control area, so that the target intelligent air conditioner is continuously operated at the current operation temperature; if the timed operation task is not set, the user may not return to the target control area, and the target intelligent air conditioner can be controlled to stop operating at the moment, so that electric energy consumption caused by the fact that the user forgets to turn off the target intelligent air conditioner is avoided.
Because in the actual use process, the user may also leave the target control area (such as the toilet) for a short time because of something, at this time, although the target intelligent air conditioner is not set with the timed operation task, the user wants the target intelligent air conditioner not to be turned off, and for the convenience of actual use, the technical solution of the present invention further includes: if the target intelligent air conditioner is not provided with the timed operation task, the target intelligent air conditioner is kept to operate at the current operation temperature, whether the target human body enters the target control area again within the sixth preset time is continuously judged, and if yes, the target intelligent air conditioner is continuously kept to operate at the current operation temperature; if not, controlling the target intelligent air conditioner to stop running; the value range of the sixth preset time can be set to be 5-10 minutes, and the specific value can be adjusted according to the use habits of different users; for example, the sixth preset time is set to 10 minutes, the user controls the target smart air conditioner to stop operating if the user does not return to the target control area within 10 minutes.
In the specific implementation of the invention, the target control area can be the whole area of a bedroom; the first light source may be a main lighting lamp (e.g. ceiling lamp) for illumination during activities in the bedroom; the second light source may be a bedside lamp for illumination when reading before sleep. The technical scheme of the invention can realize the automatic control of the illumination and the air conditioner temperature in the whole process of entering the target control area from the outside of the target control area and moving in the target control area, and comprises the steps of automatically controlling the switching of the first light source and the second light source in the target control area according to different state information of a user and automatically adjusting the running temperature of the target intelligent air conditioner.
In the embodiment of the present invention, when it is detected that the target human body changes from the sleep state or the reading state before sleep to the out-of-bed state, a second control strategy is executed according to the state change, where the second control strategy includes:
when the target human body is detected to be changed from the sleep state to the out-of-bed state, the second light source is automatically controlled to be turned on, and meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept to run continuously at the current running temperature, namely, the target intelligent air conditioner is kept to run continuously at the third suitable temperature which is automatically adjusted when the target intelligent air conditioner falls asleep or in the sleep running mode which is automatically switched; of course, if the user actively adjusts the operating temperature of the target intelligent air conditioner, the operating temperature actively adjusted by the user is kept to continue to operate; according to the invention, when the user is detected to be changed from the sleep state to the out-of-bed state, the second light source in the target control area is automatically controlled to be turned on, so that the trouble that the user needs to search for a mechanical control switch in a dark state after leaving from the bed in the past can be avoided, the second light source is controlled to be turned on, and the second light source is a bedside lamp with soft light, so that the stimulation of strong light to the user getting from the bed can be avoided under the condition of meeting the illumination requirement; meanwhile, as the user just leaves from the bed, if the operation temperature of the target intelligent air conditioner is adjusted, the user can not adapt, so that the target intelligent air conditioner is kept to continue to operate at the current operation temperature;
when the target human body is detected to be changed from the reading state before sleep to the out-of-bed state, the second light source is kept on, and meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept to run continuously at the current running temperature, namely, the target intelligent air conditioner is kept to run continuously at the second proper temperature automatically adjusted when the target intelligent air conditioner is reading before sleep; of course, if the user actively adjusts the operating temperature of the target intelligent air conditioner, the operating temperature actively adjusted by the user is kept to continue to operate; according to the invention, when the situation that the user changes from the reading state before sleeping to the out-of-bed state is detected, the second light source is automatically kept on, so that the user can conveniently get off the bed to move, and the strong light can be prevented from stimulating the user getting off the bed; meanwhile, as the user just gets off the bed, if the operation temperature of the target intelligent air conditioner is adjusted, the user is possibly not suitable, so the method keeps the target intelligent air conditioner to continuously operate at the current operation temperature;
when the target human body is changed from a sleeping state or a reading state before sleeping into an out-of-bed state, detecting whether the target human body leaves the target control area, if so, judging whether the target human body returns to the target control area within a second preset time, if so, keeping a second light source on, and meanwhile, keeping the target intelligent air conditioner to continuously run at the current running temperature if the target intelligent air conditioner is in a running state; if the user leaves the target control area and returns to the target control area within the second preset time, the user only leaves the target control area (such as the toilet), and the user can conveniently return to the target control area by keeping the second light source on at the moment, so that the user can be prevented from being stimulated by strong light; meanwhile, as the user only leaves the target control area for a short time, if the operation temperature of the target intelligent air conditioner is adjusted, the user is possibly not suitable, so that the target intelligent air conditioner is kept to continuously operate at the current operation temperature;
if the target intelligent air conditioner does not return to the target control area within the second preset time, automatically controlling the second light source to be turned off, meanwhile, if the target intelligent air conditioner is in the running state, judging whether the target intelligent air conditioner is executing the timed running task, and if so, controlling the target intelligent air conditioner to continue running at the current running temperature; if not, controlling the target intelligent air conditioner to stop running; if the user does not return to the target control area within the second preset time after leaving the target control area, the user is indicated that the user may not enter the target control area again within a short time, and the second light source is automatically controlled to be turned off at the moment so as to achieve the purpose of energy conservation. Meanwhile, if the target intelligent air conditioner is provided with a timed operation task, the user does not want to close the target intelligent air conditioner, and possibly returns to a target control area subsequently, and the target intelligent air conditioner continues to operate at the current operation temperature; if the timing operation task is not set, controlling the target intelligent air conditioner to stop operating so as to avoid electric energy consumption caused by forgetting to turn off the target intelligent air conditioner by a user; the value range of the second preset time can be set to be 5-15 minutes, and the specific value can be adjusted according to the use habits of different users; for example, the second preset time is set to 12 minutes, and if the user does not return to the target control area within 12 minutes, the second light source is controlled to be turned off and the target smart air conditioner is controlled to stop operating.
If the target human body is detected not to leave the target control area, the second light source is kept on, so that the user can be conveniently illuminated, and meanwhile, strong light is prevented from stimulating the user; meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept running at the current running temperature, so that the phenomenon that the user is not suitable due to the change of the running temperature is avoided. Of course, if the user continues to change back to the sleep state or the reading before sleep state from the out-of-bed state, execution is performed according to the first control strategy. Through the second control strategy, the lighting requirement and the temperature control requirement of a user when the user leaves a bed for a short time can be greatly facilitated, for example, the user can automatically control the second light source to be turned on for lighting when going to a toilet, getting up to drink water, quenching thirst and the like, great convenience can be brought to the user when the user gets up at night, and simultaneously, the user is prevented from being uncomfortable due to the temperature change of the target intelligent air conditioner.
By combining the first control strategy and the second control strategy, the lighting illumination and the air-conditioning temperature in the target control area can be automatically controlled, so that the illumination and the air-conditioning temperature in the target control area can automatically change along with the change of the state of the user, the manual operation times of the user are reduced, and better experience can be brought to the life of the user. The automatic control of the lighting can ensure that the effect of turning off the lamp when a person turns on the lamp can be realized under the condition of completely not needing manual operation, the hands of a user are liberated to be convenient for directly taking things to enter and exit a bedroom, the electric energy loss caused by manually forgetting to turn off the lamp is avoided, and the automatic switching control of two lamps in a target control area can be realized; the automatic control of the air conditioner temperature ensures that the manual intervention process can be reduced after a user opens the target intelligent air conditioner, the discomfort problem caused by the fact that the user forgets to adjust the temperature due to too low running temperature of the target intelligent air conditioner is avoided, and the problem of electric energy consumption caused by the fact that the user forgets to close the target intelligent air conditioner is avoided. Other details of the control device of the present invention are the same as those described in the first embodiment of the present invention, and please refer to the description in the first embodiment, which will not be repeated herein.
Since the apparatus described in the second embodiment of the present invention is an apparatus used for implementing the method of the first embodiment of the present invention, based on the method described in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the apparatus, and thus the details are not described herein. All the devices adopted in the method of the first embodiment of the present invention belong to the protection scope of the present invention.
Based on the same inventive concept, the application provides an electronic device embodiment corresponding to the first embodiment, which is detailed in the third embodiment.
EXAMPLE III
The embodiment provides an electronic device, as shown in fig. 3, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, any one of the first embodiment modes may be implemented.
Since the electronic device described in this embodiment is a device used for implementing the method in the first embodiment of the present application, based on the method described in the first embodiment of the present application, a specific implementation of the electronic device in this embodiment and various variations thereof can be understood by those skilled in the art, and therefore, how to implement the method in the first embodiment of the present application by the electronic device is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the application provides a storage medium corresponding to the fourth embodiment, which is described in detail in the fourth embodiment.
Example four
The present embodiment provides a computer-readable storage medium, as shown in fig. 4, on which a computer program is stored, and when the computer program is executed by a processor, any one of the embodiments can be implemented.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Claims (10)
1. An intelligent home control method based on the Internet of things is characterized in that: the control method comprises the following steps: detecting whether a target human body enters a target control area, and if so, automatically controlling a first light source in the target control area to be turned on; if not, the first light source is not automatically controlled to be turned on;
acquiring state data of a target intelligent air conditioner in a target control area within first preset time when a target human body enters the target control area, judging whether the target intelligent air conditioner is in an operating state or not based on the state data, and if not, keeping the current state of the target intelligent air conditioner unchanged; if so, detecting relevant equipment use data of the target human body before entering the target control area, judging whether the current operating temperature of the target intelligent air conditioner is proper or not based on the relevant equipment use data, and if so, keeping the current operating temperature of the target intelligent air conditioner unchanged; if not, automatically adjusting the current operating temperature of the target intelligent air conditioner to a preset first appropriate temperature;
after the target human body enters the target control area, detecting state information of the target human body in the target control area, and executing a first control strategy according to the state information, wherein the first control strategy comprises the following steps:
if the target human body is detected to be in a reading state before sleeping, the first light source is automatically turned off and the second light source is controlled to be turned on, and meanwhile, if the target intelligent air conditioner is in an operating state, the current operating temperature of the target intelligent air conditioner is automatically adjusted to a preset second appropriate temperature; if the target human body is detected to be in a sleep state, the first light source or the second light source is automatically turned off, and meanwhile, if the target intelligent air conditioner is in an operation state, the current operation temperature of the target intelligent air conditioner is automatically adjusted to a preset third proper temperature; if the target human body is detected to be in an out-of-bed state, keeping the first light source turned on, and meanwhile, keeping the current operating temperature of the target intelligent air conditioner unchanged if the target intelligent air conditioner is in an operating state;
when the target human body is in an out-of-bed state, if the target human body is detected to leave a target control area, automatically controlling the first light source to be turned off, meanwhile, if the target intelligent air conditioner is in an operation state, judging whether the target intelligent air conditioner executes a timed operation task, and if so, controlling the target intelligent air conditioner to continuously operate at the current operation temperature; and if not, controlling the target intelligent air conditioner to stop running.
2. The intelligent home control method based on the Internet of things according to claim 1, characterized in that: when detecting that the target human body is changed from a sleep state or a reading state before sleep to an out-of-bed state, executing a second control strategy according to the state change, wherein the second control strategy comprises the following steps:
when the target human body is detected to be changed from the sleep state to the out-of-bed state, the second light source is automatically controlled to be turned on, and meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept to run continuously at the current running temperature; when the target human body is detected to be changed from the reading state before sleep to the out-of-bed state, the second light source is kept on, and meanwhile, if the target intelligent air conditioner is in the running state, the target intelligent air conditioner is kept running at the current running temperature;
when the target human body is changed from a sleeping state or a reading state before sleeping into an out-of-bed state, detecting whether the target human body leaves the target control area, if so, judging whether the target human body returns to the target control area within a second preset time, if so, keeping a second light source on, and meanwhile, keeping the target intelligent air conditioner to continuously run at the current running temperature if the target intelligent air conditioner is in a running state;
if the target intelligent air conditioner does not return to the target control area within the second preset time, automatically controlling the second light source to be turned off, meanwhile, if the target intelligent air conditioner is in the running state, judging whether the target intelligent air conditioner is executing the timed running task, and if so, controlling the target intelligent air conditioner to continue running at the current running temperature; if not, controlling the target intelligent air conditioner to stop running;
and if the target human body is detected not to leave the target control area, keeping the second light source turned on, and meanwhile, keeping the target intelligent air conditioner to continuously operate at the current operating temperature if the target intelligent air conditioner is in an operating state.
3. The intelligent home control method based on the Internet of things according to claim 2, characterized in that: the detecting of relevant device usage data of the target human body before entering the target control area and the judging of whether the current operating temperature of the target intelligent air conditioner is suitable based on the relevant device usage data specifically include: detecting related equipment use data of a target human body within a third preset time before the target human body enters a target control area, judging whether the related equipment use data comprise water heater use data or fitness equipment use data, if the related equipment use data comprise the water heater use data or the fitness equipment use data, continuously judging whether the current operating temperature of the target intelligent air conditioner is within a preset temperature range, and if the current operating temperature is within the preset temperature range, judging that the current operating temperature is proper; if the temperature is not within the preset temperature range, determining that the temperature is not appropriate;
if no water heater usage data or exercise machine usage data is included, it is determined to be appropriate.
4. The intelligent home control method based on the Internet of things according to claim 1, characterized in that: the infrared human body induction device is used for detecting whether a target human body enters or leaves a target control area, and comprises a first human body inductor arranged outside a door of the target control area and a second human body inductor arranged inside the door of the target control area.
5. The intelligent home control method based on the Internet of things according to claim 1, characterized in that: detecting state information of a target human body in a target control area through a pressure sensing device; the pressure sensing device comprises a first pressure sensor arranged on a sleeping area of the mattress and a second pressure sensor arranged on a backrest area of the bed backrest;
when the first pressure sensor detects that the target human body is positioned on the sleeping area and the second pressure sensor detects that the target human body leans against the backrest area, the target human body is judged to be in a reading state before sleeping; when the first pressure sensor detects that the target human body is positioned on the sleeping area and the second pressure sensor does not detect that the target human body leans against the backrest area, judging that the target human body is in a sleeping state; and when the first pressure sensor does not detect that the target human body is positioned on the sleeping area, judging that the target human body is in an out-of-bed state.
6. The intelligent home control method based on the Internet of things according to claim 2, characterized in that: when detecting that the target human body enters the target control area, the method further comprises the following steps: detecting the illumination intensity in the target control area, and automatically controlling a first light source in the target control area to be turned on if the detected illumination intensity is smaller than a first preset illumination intensity; if the detected illumination intensity is greater than or equal to a first preset illumination intensity, the first light source is not automatically controlled to be turned on;
the first preset illumination intensity is smaller than the illumination intensity of the second light source, and the illumination intensity of the second light source is smaller than the illumination intensity of the first light source.
7. The intelligent home control method based on the Internet of things according to claim 6, wherein: detecting the illumination intensity through an illumination intensity sensing device, wherein the illumination intensity sensing device comprises a first illumination intensity sensor arranged in a target control area and a second illumination intensity sensor arranged outside a window of the target control area;
when the second illumination intensity sensor detects that the external illumination intensity exceeds the illumination intensity of the target control area and reaches a second preset illumination intensity, and meanwhile, the target control area does not detect the entrance of a target human body within a fifth preset time, controlling the intelligent curtain in the target control area to be automatically opened; and the fifth preset time is greater than the second preset time.
8. The utility model provides an intelligence house controlling means based on thing networking which characterized in that: the control device comprises a detection control module, a first control module and a second control module;
the detection control module is used for detecting whether a target human body enters a target control area or not, and if so, automatically controlling a first light source in the target control area to be turned on; if not, the first light source is not automatically controlled to be turned on;
the first control module is used for acquiring state data of a target intelligent air conditioner in a target control area within a first preset time when a target human body enters the target control area, judging whether the target intelligent air conditioner is in an operating state or not based on the state data, and if not, keeping the current state of the target intelligent air conditioner unchanged; if so, detecting relevant equipment use data of the target human body before entering the target control area, judging whether the current operating temperature of the target intelligent air conditioner is proper or not based on the relevant equipment use data, and if so, keeping the current operating temperature of the target intelligent air conditioner unchanged; if not, automatically adjusting the current operating temperature of the target intelligent air conditioner to a preset first appropriate temperature;
the second control module is configured to detect state information of the target human body in the target control area after the target human body enters the target control area, and execute a first control policy according to the state information, where the first control policy includes:
if the target human body is detected to be in a reading state before sleeping, the first light source is automatically turned off and the second light source is controlled to be turned on, and meanwhile, if the target intelligent air conditioner is in an operating state, the current operating temperature of the target intelligent air conditioner is automatically adjusted to a preset second appropriate temperature; if the target human body is detected to be in a sleep state, the first light source or the second light source is automatically turned off, and meanwhile, if the target intelligent air conditioner is in an operation state, the current operation temperature of the target intelligent air conditioner is automatically adjusted to a preset third proper temperature; if the target human body is detected to be in an out-of-bed state, keeping the first light source turned on, and meanwhile, keeping the current operating temperature of the target intelligent air conditioner unchanged if the target intelligent air conditioner is in an operating state;
when the target human body is in an out-of-bed state, if the target human body is detected to leave a target control area, automatically controlling the first light source to be turned off, meanwhile, if the target intelligent air conditioner is in an operation state, judging whether the target intelligent air conditioner executes a timed operation task, and if so, controlling the target intelligent air conditioner to continuously operate at the current operation temperature; and if not, controlling the target intelligent air conditioner to stop running.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110577963.8A CN113311721A (en) | 2021-05-26 | 2021-05-26 | Intelligent home control method, device, equipment and medium based on Internet of things |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110577963.8A CN113311721A (en) | 2021-05-26 | 2021-05-26 | Intelligent home control method, device, equipment and medium based on Internet of things |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113311721A true CN113311721A (en) | 2021-08-27 |
Family
ID=77375103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110577963.8A Withdrawn CN113311721A (en) | 2021-05-26 | 2021-05-26 | Intelligent home control method, device, equipment and medium based on Internet of things |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113311721A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113842035A (en) * | 2020-06-28 | 2021-12-28 | 浙江绍兴苏泊尔生活电器有限公司 | Heat preservation control method and system for household electrical appliance and household electrical appliance |
CN114237065A (en) * | 2021-12-16 | 2022-03-25 | 珠海格力电器股份有限公司 | Smart home control method and device, storage medium and electronic equipment |
CN114625019A (en) * | 2022-03-29 | 2022-06-14 | 深圳市诚丰乐琪科技有限公司 | Intelligent household equipment control method and device based on Internet of things |
-
2021
- 2021-05-26 CN CN202110577963.8A patent/CN113311721A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113842035A (en) * | 2020-06-28 | 2021-12-28 | 浙江绍兴苏泊尔生活电器有限公司 | Heat preservation control method and system for household electrical appliance and household electrical appliance |
CN114237065A (en) * | 2021-12-16 | 2022-03-25 | 珠海格力电器股份有限公司 | Smart home control method and device, storage medium and electronic equipment |
CN114625019A (en) * | 2022-03-29 | 2022-06-14 | 深圳市诚丰乐琪科技有限公司 | Intelligent household equipment control method and device based on Internet of things |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11960264B2 (en) | Load control system responsive to sensors and mobile devices | |
JP5300602B2 (en) | Air conditioner | |
CN113311721A (en) | Intelligent home control method, device, equipment and medium based on Internet of things | |
CN104713200B (en) | The control method and control device of air conditioner | |
CN203432022U (en) | Control device for remote indoor air-conditioning and humiture detection | |
CN103673194B (en) | Air conditioner and control method thereof | |
CN103673197B (en) | Air conditioner and control method thereof | |
CN103940041A (en) | Air-conditioner and comfortable sleeping control method and system thereof | |
CN105873319A (en) | Light control method and terminal equipment | |
CN103673195B (en) | Air conditioner and control method thereof | |
CN104089373A (en) | Method for controlling air conditioner and air conditioner | |
CN113710967A (en) | Environment control system and environment control method | |
CN103673196A (en) | Air conditioner and control method thereof | |
CN109405224A (en) | Control method and device of air conditioner, storage medium and air conditioner | |
KR101206522B1 (en) | System and method for energy management using context awareness | |
CN112923519A (en) | Intelligent ventilation method, intelligent ventilation system and computer readable storage medium | |
CN111726271B (en) | Electrical equipment configuration method under night condition and intelligent home system | |
JPH09189442A (en) | Environment control device and method | |
WO2023115917A1 (en) | Method and apparatus for controlling air conditioner, and air conditioner | |
CN112303804A (en) | Control method and system for indoor air conditioning mode and lighting mode and storage medium | |
CN113639378A (en) | Sleep control method and device of air conditioner, air conditioner and storage medium | |
JP2021121773A (en) | Apparatus cooperation system, controller, method for controlling apparatus cooperation system and program | |
CN202734166U (en) | Air conditioner | |
CN111459042B (en) | Control method and system of household appliance, television and storage medium | |
CN113660755B (en) | Intelligent household light control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210827 |