Method and device for controlling household appliance, terminal and computer readable storage medium
By combining smart door locks with terminal devices, the user status can be judged based on the door type and environmental parameters, solving the problem of the existing technology that cannot accurately judge the usage scenario, realizing personalized control of home appliances, and improving user experience.
Patent Information
- Application Number
- CN202410272712.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-11
- Publication Date
- 2025-09-12
AI Technical Summary
The existing technology cannot accurately determine the usage scenario when the user unlocks the door, resulting in the inability to meet the home appliance control needs in different usage scenarios.
Through the communication between the smart door lock and the terminal device, combined with the door type and door lock data, the user's going out or returning home status is judged, and the operation of home appliances is controlled in combination with indoor and outdoor environmental parameters.
It achieves accurate control of home appliances according to different user scenarios, meets the user's personalized needs in scenarios such as going out and returning home, and improves the user experience.
Smart Images

Figure CN120630771A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart home appliances, for example, to a method and device, a terminal, and a computer-readable storage medium for controlling home appliances. Background Art
[0002] Currently, there are multiple combination commands in the industry for home scenes, such as turning on lights, opening curtains, playing music, etc., but users are usually required to press the home button on the mobile app or the centralized control panel to control the home scene. The command path is cumbersome and difficult to operate.
[0003] Related art discloses a method for controlling home appliances, which obtains the user's home status information when the user returns home, and determines the user's specific identity through the home status information, so as to call the user-defined temperature-related instructions, and then automatically start the air conditioner and water heater through the temperature linkage instructions. The step of obtaining the home status information of the setting object includes obtaining the unlocking information of the setting object through a smart door lock, and using it as the home status information. According to the home status information, the step of determining the setting object corresponding to it includes: determining the setting object for returning home based on the fingerprint information of the unlocking information. The home appliance that performs the work of obtaining the home status information and the device that determines the corresponding temperature linkage instructions through the home status information and enables the air conditioner and water heater to operate can be any device or smart home appliance that can realize the above functions.
[0004] During the implementation of the embodiments of the present disclosure, it was found that at least the following problems exist in the related art:
[0005] Related technologies use smart door locks to identify users and automatically control air conditioners and water heaters, simplifying operations for homebound scenarios. However, in practice, users unlock their doors for more than just homebound scenarios, including those for going to work and other different scenarios. Therefore, solutions using these technologies are overly simplistic, considering only the homebound scenario and failing to meet users' control needs in diverse scenarios.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to ordinary technicians in this field. Summary of the Invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not intended to be an extensive review, nor to identify key / critical elements or to delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a method and apparatus, a terminal, and a computer-readable storage medium for controlling home appliances to accurately determine the user's usage scenario, thereby controlling the home appliances to perform different operations to meet the user's control needs in different usage scenarios.
[0009] In some embodiments, the method is applied to a terminal device, which is communicatively connected to a smart door lock, and the smart door lock is set on the door body; the method includes: when the smart door lock is opened, determining the user's status based on the type of door body and the data of the smart door lock; controlling the operation of home appliances based on the user's status, indoor environmental parameters and / or outdoor environmental parameters.
[0010] Optionally, the user's status is determined based on the type of door body and the data of the smart door lock, including: when the door body type is a two-way swing door, receiving data associated with the current door opening direction sent by the smart door lock; when the current door opening direction is the same as the preset exit direction, determining that the user is going out; when the current door opening direction is the same as the preset return direction, determining that the user is returning home.
[0011] Optionally, determining the user's status based on the type of door body and the data of the smart door lock also includes: when the door body type is a one-way swing door, receiving status parameters sent by the smart door lock; when the smart door lock changes from an unlocked state to a locked state and the door is not opened within a first time period, determining that the user has gone out; when the smart door lock changes from a locked state to an unlocked state and the door is opened within a second time period, determining that the user has returned home.
[0012] Optionally, the operation of home appliances is controlled according to the user's status, indoor environmental parameters and / or outdoor environmental parameters, including: detecting the current time; when the current time is within the working time period and it is determined that the user is going out, judging whether to turn on the smart window according to the outdoor environmental parameters; when the current time is within the off-get off work time period and it is determined that the user is returning home, judging whether to turn on the air conditioner according to the indoor environmental parameters.
[0013] Optionally, judging whether to open the smart window is based on outdoor environmental parameters, including: when the concentration of particulate matter in the outdoor environment is less than a set concentration threshold, controlling the smart window to open.
[0014] Optionally, judging whether to turn on the air conditioner according to indoor environmental parameters includes: when the indoor environmental temperature is outside a comfortable temperature range, controlling the air conditioner to adjust the indoor temperature to within the comfortable temperature range.
[0015] Optionally, when the current time is within the off-get off work period and it is determined that the user has returned home, it also includes: detecting the indoor light intensity; when the indoor light intensity is less than the set light intensity, controlling to turn on the smart light.
[0016] In some embodiments, the device includes: a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for controlling a home appliance when executing the program instructions.
[0017] In some embodiments, the terminal includes:
[0018] The terminal body is connected to the smart door lock, and the smart door lock is set on the door body; and
[0019] The above-mentioned device for controlling home appliances is installed in the terminal body.
[0020] In some embodiments, the computer-readable storage medium stores program instructions, and when the program instructions are executed, the method for controlling a home appliance is executed.
[0021] The method and apparatus, terminal, and computer-readable storage medium for controlling home appliances provided by the embodiments of the present disclosure can achieve the following technical effects:
[0022] When the smart door lock is opened, the user's status is determined based on the door type and the smart door lock data. Home appliances are then controlled based on the user's status, indoor environmental parameters, and / or outdoor environmental parameters. This more accurate determination of the user's status based on the door type and smart door lock data allows for different user scenarios. This allows for comprehensive control of home appliances based on the user, indoor, and outdoor parameters, better meeting the user's control needs in different scenarios.
[0023] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] One or more embodiments are exemplarily described by corresponding drawings. These exemplary descriptions and drawings do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings do not constitute a scale limitation. In addition,
[0025] Figure 1 is a schematic diagram of a method for controlling a home appliance provided by an embodiment of the present disclosure;
[0026] Figure 2 is a schematic diagram of another method for controlling a home appliance provided by an embodiment of the present disclosure;
[0027] Figure 3 is a schematic diagram of another method for controlling a home appliance provided by an embodiment of the present disclosure;
[0028] Figure 4 is a schematic diagram of another method for controlling a home appliance provided by an embodiment of the present disclosure;
[0029] Figure 5 is a schematic diagram of a device for controlling home appliances provided by an embodiment of the present disclosure;
[0030] Figure 6 It is a schematic diagram of a terminal provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] In order to be able to understand the features and technical content of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The accompanying drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the sake of convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0032] In the description and claims of the embodiments of the present disclosure, as well as in the accompanying drawings, the terms "first," "second," and the like are used to distinguish similar items and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate to describe the embodiments of the present disclosure herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions.
[0033] Unless otherwise stated, the term "plurality" means two or more.
[0034] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.
[0035] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.
[0036] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0037] In the embodiments of the present disclosure, smart home appliances refer to home appliance products that are formed by introducing microprocessors, sensor technology, and network communication technology into home appliances. They have the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of smart home appliances often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, smart home appliances can realize remote control and management of smart home appliances by users by connecting to electronic devices.
[0038] In the disclosed embodiments, a terminal device refers to an electronic device with a wireless connection function. The terminal device can communicate with the above-mentioned smart home appliances by connecting to the Internet, or can communicate with the above-mentioned smart home appliances directly through Bluetooth, WiFi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or a vehicle-mounted device built into a hover car, or any combination thereof. Mobile devices may include, for example, mobile phones, smart home devices, wearable devices, smart mobile devices, virtual reality devices, etc., or any combination thereof, wherein wearable devices include, for example, smart watches, smart bracelets, pedometers, etc.
[0039] The disclosed embodiments disclose a terminal that is communicatively connected to various smart home appliances. These smart home appliances include smart door locks, smart windows, air conditioners, smart lights, and / or other appliances. The smart door lock is located on the entrance door. The terminal includes a processor that is electrically connected to the aforementioned electrical components and is used to control their operation. The terminal can be a centralized control panel or other terminal device installed on each smart home appliance.
[0040] Figures 1 to 4 This is a schematic diagram of a method for controlling a home appliance provided by an embodiment of the present disclosure. Any of the following methods can be executed in a terminal, or in a server or terminal device that is communicatively connected to the terminal. In the embodiments of the present disclosure, the terminal is used as the execution subject to illustrate the solution.
[0041] Based on the above terminal structure, such as Figure 1 As shown, an embodiment of the present disclosure provides a method for controlling a home appliance, including:
[0042] S01, when the smart door lock is opened, the terminal determines the user's status based on the type of door and the data of the smart door lock.
[0043] In step S01, the door type includes a two-way swing door, a one-way swing door, and any other door type. The data of the smart door lock includes the door opening direction sensed by the smart door lock through the sensor and the state change sequence of the smart door lock and the unlocked state.
[0044] S02: The terminal controls the operation of the home appliance according to the user's status, indoor environmental parameters and / or outdoor environmental parameters.
[0045] In step S02, the user's status includes going out, returning home, and any other status. Indoor environmental parameters include indoor temperature, indoor humidity, outdoor carbon dioxide concentration, and other indoor environmental parameters. Outdoor environmental parameters include outdoor particulate matter concentration, outdoor temperature, outdoor humidity, outdoor carbon dioxide concentration, and other outdoor environmental parameters. Home appliances include any smart home appliances that are communicatively connected to the terminal and are used to adjust the above parameters such as temperature, humidity, and particulate matter concentration within a set parameter range. Examples include air conditioners, smart door locks, smart windows, and smart curtains.
[0046] Using the method for controlling home appliances provided by the embodiments of the present disclosure, when a smart door lock is opened, the user's status is determined based on the door type and the smart door lock data, and the operation of the home appliances is controlled based on the user's status, indoor environmental parameters, and / or outdoor environmental parameters. The door type and smart door lock data can more accurately determine the user's status, thereby determining different user usage scenarios. The operation of the home appliances can then be comprehensively controlled based on the user, indoor, and outdoor parameters, thereby better meeting the user's control needs in different usage scenarios.
[0047] Based on the above terminal structure, such as Figure 2 As shown, an embodiment of the present disclosure provides a method for controlling a home appliance, including:
[0048] S21, when the smart door lock is opened and the door type is a two-way swing door, the terminal receives data associated with the current door opening direction sent by the smart door lock.
[0049] In step S21, the data associated with the current door opening direction includes the door's movement direction, door position, and / or door rotation angle. Specifically, the door's movement direction can be detected using a motion sensor such as an accelerometer or gyroscope. When the door opens or closes, the motion sensor can capture subtle changes in the door's movement and determine the door opening direction accordingly. A position sensor, such as a Hall effect sensor, can detect whether the door is open or closed. When the door changes from a closed state to an open state, the position sensor captures this change and determines the door's opening direction. An angle sensor measures the door's rotation angle, and the door's opening direction can be determined by analyzing the changes in the door's rotation angle. The door opening direction can be determined by combining one or more of the above parameters. For example, when the door opening direction detected by the motion sensor, position sensor, and angle sensor is inward, the door opening direction is determined to be inward; when the door opening direction detected by the motion sensor and position sensor is outward, the door opening direction is determined to be outward.
[0050] S22: When the current door opening direction is the same as the preset exit direction, the terminal determines that the user is leaving the house.
[0051] S23, when the current door opening direction is the same as the preset home-returning direction, the terminal determines that the user has returned home.
[0052] S02: The terminal controls the operation of the home appliance according to the user's status, indoor environmental parameters and / or outdoor environmental parameters.
[0053] Among them, the preset door opening direction and home returning direction can be any direction. For example, the default preset direction for going out is to open the door outward, and the preset direction for returning home is to open the door inward; or, according to different user habits, the preset direction for going out can also be set to open the door inward, and the preset direction for returning home can be set to open the door outward.
[0054] Using the method for controlling home appliances provided by the embodiment of the present disclosure, when the door body is a two-way swing door, the terminal receives data associated with the current door opening direction sent by the smart door lock. When the current door opening direction is the same as the preset exit direction, the terminal determines that the user is leaving the house. When the current door opening direction is the same as the preset return direction, the terminal determines that the user is returning home. Since a two-way swing door can be opened both inward and outward, the terminal senses the direction in which the user opens the door through the smart door lock and compares it with the preset exit direction and the preset return direction, thereby more accurately determining whether the user is using the scene for leaving the house or returning home.
[0055] Based on the above terminal structure, such as Figure 3 As shown, an embodiment of the present disclosure provides a method for controlling a home appliance, including:
[0056] S21, when the smart door lock is opened and the door type is a two-way swing door, the terminal receives data associated with the current door opening direction sent by the smart door lock.
[0057] S22: When the current door opening direction is the same as the preset exit direction, the terminal determines that the user is leaving the house.
[0058] S23, when the current door opening direction is the same as the preset home-returning direction, the terminal determines that the user has returned home.
[0059] S31, when the smart door lock is opened and the door type is a one-way swing door, the terminal receives the status parameters sent by the smart door lock.
[0060] S32, when the smart door lock changes from an unlocked state to a locked state and the door is not opened within the first time period, the terminal determines that the user has gone out.
[0061] S33, when the smart door lock changes from a locked state to an unlocked state and the door is opened within the second time period, the terminal determines that the user has returned home.
[0062] S02: The terminal controls the operation of the home appliance according to the user's status, indoor environmental parameters and / or outdoor environmental parameters.
[0063] The second duration is shorter than the first duration. Specifically, the terminal can determine the first duration based on user habits. Specifically, when the smart door lock is first installed or when the user first starts using it, a one- or two-week learning period can be set. During the learning period, the terminal records all of the user's door opening and closing behaviors, including the time, frequency, and pattern. By analyzing this data, the terminal can initially infer the user's habits and patterns when leaving the house. After the learning period, the terminal can perform statistical analysis on the collected data. For example, it can calculate the average number of door openings per day, the average duration of each time spent outside the house, and peak and trough times for time spent outside the house. The terminal can then determine the first duration based on this statistical data. Similarly, the terminal can determine the second duration based on user habits by analyzing the user's past behavior data, including the time it takes to lock and unlock the door, as well as subsequent door opening behaviors. The second duration is then calculated by calculating the average time between unlocking and opening the door. Of course, the first and second durations can also be customized by the user.
[0064] Using the method for controlling home appliances provided by the embodiment of the present disclosure, when the door body is a one-way swing door, since the one-way swing door can only be opened in one direction, inward or outward, it is impossible to determine whether the user is going out or returning home based on the direction of the door opening. Therefore, the terminal receives the status parameters sent by the smart door lock, and determines that the user has gone out when the smart door lock changes from an unlocked state to a locked state and has not opened the door within a first time period. Since the user needs to open the door from the inside first when going out, the smart door lock is in an unlocked state at this time. After the user opens the door, the door needs to be locked. When locking the door, the smart door lock changes to a locked state. Therefore, the user's action of going out can be determined by the change of the smart door lock from an unlocked state to a locked state. Since the user needs to unlock the smart door lock first when returning home, that is, the smart door lock changes from a locked state to an unlocked state, and then opens the door body to enter the room, therefore, when the smart door lock changes from a locked state to an unlocked state and opens the door within a second time period, the terminal determines that the user has returned home.
[0065] Based on the above terminal structure, such as Figure 4 As shown, an embodiment of the present disclosure provides a method for controlling a home appliance, including:
[0066] S01, when the smart door lock is opened, the terminal determines the user's status based on the type of door and the data of the smart door lock.
[0067] S41, the terminal detects the current time.
[0068] S42: When the current time is within the working hours and it is determined that the user is going out, the terminal determines whether to open the smart window based on outdoor environmental parameters.
[0069] S43: When the current time is within the off-get off work period and it is determined that the user has returned home, the terminal determines whether to turn on the air conditioner based on indoor environmental parameters.
[0070] Among them, the working time period and the off-get off work time period can be determined by user-defined settings.
[0071] Using the method for controlling home appliances provided by the embodiment of the present disclosure, since the user has different control requirements when going out or returning home at different time periods, it may still be impossible to accurately determine the user's usage scenario based solely on the user's status. Therefore, the current usage scenario is comprehensively determined based on the user's status and the current time. The current time is detected. When the current time is within the working time period and it is determined that the user is going out, this is the usage scenario of the user going out to work. Therefore, the terminal determines whether to turn on the smart window based on the outdoor environmental parameters. When the current time is within the off-get off work time period and it is determined that the user is returning home, this is the scenario of the user returning home from get off work. Therefore, the terminal determines whether to turn on the air conditioner based on the indoor environmental parameters.
[0072] Optionally, the terminal determines whether to open the smart window based on outdoor environmental parameters, including: when the outdoor environmental particulate matter concentration is less than a set concentration threshold, the terminal controls the smart window to open.
[0073] When the outdoor particulate matter concentration is greater than or equal to the set concentration threshold, the terminal controls the closing of the smart windows and monitors the indoor particulate matter concentration. When the indoor particulate matter concentration is greater than or equal to the set concentration threshold, the terminal activates the purification device to purify the indoor air. When it rains outside, the terminal controls the closing of the smart windows.
[0074] The terminal can also determine whether to open the smart window based on a combination of outdoor and indoor environmental parameters. For example, when the outdoor particulate matter concentration is less than a set concentration threshold or the indoor carbon dioxide concentration is greater than a set carbon dioxide concentration threshold, the terminal controls the opening of the smart window.
[0075] This way, when a user leaves for work, they can determine whether to open smart windows for ventilation, thereby preventing bacterial growth caused by stagnant indoor air. When the outdoor particulate matter concentration is greater than or equal to the set concentration threshold, indicating that the outdoor environment is polluted, the smart doors and windows are closed to reduce the indoor pollution. When the outdoor particulate matter concentration is less than the set concentration threshold, the terminal controls the opening of smart windows for ventilation, reducing indoor bacterial growth and maintaining the user's health.
[0076] Optionally, the terminal determines whether to turn on the air conditioner based on indoor environmental parameters, including: when the indoor environmental temperature is outside the comfortable temperature range, the terminal controls the air conditioner to adjust the indoor temperature to within the comfortable temperature range.
[0077] This way, when a user returns home from get off work, the terminal can determine whether to turn on the air conditioner based on indoor environmental parameters, thereby determining whether to maintain a comfortable temperature range for the user, alleviating the user's fatigue from work and improving the user experience. Therefore, if the indoor ambient temperature is outside the comfortable temperature range, the terminal controls the air conditioner to adjust the indoor temperature to within the comfortable temperature range.
[0078] Optionally, when the current time is within the off-get off work period and it is determined that the user has returned home, it also includes: the terminal detecting the indoor light intensity; when the indoor light intensity is less than the set light intensity, the terminal controls to turn on the smart light.
[0079] In this way, when the user returns home from get off work, the terminal detects the indoor light intensity. When the indoor light intensity is less than the set light intensity, the terminal controls the smart light to turn on, avoiding the situation where the indoor light is dim when the user returns home, thereby improving the user experience.
[0080] Combine Figure 5 As shown, an embodiment of the present disclosure provides a device 800 for controlling a home appliance, comprising a processor 801 and a memory 802. Optionally, the device may further comprise a communication interface 803 and a bus 804. The processor 801, the communication interface 803, and the memory 802 may communicate with each other via the bus 804. The communication interface 803 may be used for information transmission. The processor 801 may call logic instructions in the memory 802 to execute the method for controlling a home appliance of the above embodiment.
[0081] In addition, the logic instructions in the memory 802 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0082] Memory 802, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present disclosure. Processor 801 executes the program instructions / modules stored in memory 802 to execute functional applications and process data, thereby implementing the methods for controlling home appliances in the above-described embodiments.
[0083] The memory 802 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal device. Furthermore, the memory 802 may include high-speed random access memory and non-volatile memory.
[0084] Combine Figure 6As shown, an embodiment of the present disclosure provides a terminal 900, comprising: a terminal body, and the above-mentioned device 800 for controlling home appliances. The device 800 for controlling home appliances is installed in the terminal body. The installation relationship described here is not limited to placement inside the terminal, but also includes installation connections with other components of the terminal, including but not limited to physical connections, electrical connections, or signal transmission connections. It can be understood by those skilled in the art that the device 800 for controlling home appliances can be adapted to a feasible terminal body, thereby realizing other feasible embodiments.
[0085] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for controlling a home appliance.
[0086] The technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or other media that can store program code.
[0087] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to also include plural forms. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variations "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the sentence "comprising a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.
[0088] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0089] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units can be merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, and can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected to implement this embodiment according to actual needs. In addition, the functional units in the embodiments of the present disclosure may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0090] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the systems, methods and computer program products according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of the code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or action, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for controlling a home appliance, characterized in that: Applied to a terminal device, the terminal device is connected to a smart door lock, and the smart door lock is set on the door body; the method includes: When the smart door lock is opened, the user's status is determined based on the type of door and the data of the smart door lock; Control the operation of home appliances based on the user's status, indoor environmental parameters and / or outdoor environmental parameters.
2. The method according to claim 1, characterized in that Determine the user's status based on the door type and smart door lock data, including: When the door is a two-way swing door, it receives data related to the current door opening direction sent by the smart door lock; When the current door opening direction is the same as the preset exit direction, it is determined that the user has exited the door; When the current door opening direction is the same as the preset home direction, it is determined that the user has returned home.
3. The method according to claim 2, characterized in that Determine the user's status based on the door type and smart door lock data, including: When the door type is a one-way swing door, receive the status parameters sent by the smart door lock; When the smart door lock changes from an unlocked state to a locked state and the door is not opened within the first time period, it is determined that the user has left the house; When the smart door lock changes from a locked state to an unlocked state and the door is opened within the second time period, it is determined that the user has returned home.
4. The method according to any one of claims 1 to 3, characterized in that Control the operation of home appliances based on user status, indoor environmental parameters, and / or outdoor environmental parameters, including: Detect the current time; When the current time is during working hours and it is determined that the user is going out, the smart window is determined to be opened based on outdoor environmental parameters; When the current time is within the off-get off work period and it is determined that the user has returned home, whether to turn on the air conditioner is determined based on the indoor environmental parameters.
5. The method according to claim 4, characterized in that Determine whether to open the smart window based on outdoor environmental parameters, including: When the outdoor particulate matter concentration is lower than the set concentration threshold, the smart window is controlled to open.
6. The method according to claim 4, characterized in that Determine whether to turn on the air conditioner based on indoor environmental parameters, including: When the indoor ambient temperature is outside the comfortable temperature range, the air conditioner is controlled to adjust the indoor temperature to within the comfortable temperature range.
7. The method according to claim 4, characterized in that When the current time is during the off-get off work period and the user is determined to have returned home, the following also applies: Detect indoor light intensity; When the indoor light intensity is lower than the set light intensity, the smart light is turned on.
8. A device for controlling a home appliance, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for controlling a home appliance according to any one of claims 1 to 7 when running the program instructions.
9. A terminal, characterized in that: include: The terminal body is connected to the smart door lock in communication with the smart door lock, which is set on the door body; as well as, The device for controlling a home appliance according to claim 8 is installed in the terminal body.
10. A computer-readable storage medium storing program instructions, characterized in that: When the program instructions are executed, the computer is configured to execute the method for controlling a home appliance according to any one of claims 1 to 7.