Home appliance control method, device, smart home system and door lock
By determining the user's identity on the smart door lock and sending target identification to control home equipment, it solves the security risk of illegal users controlling home equipment and improves the security of home equipment.
Patent Information
- Application Number
- CN202011243432.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-11-09
AI Technical Summary
Existing smart door locks fail to verify the user's identity when controlling home devices, resulting in illegal users possibly illegally controlling home devices, posing security risks.
After determining the target button operated by the user on the smart door lock, it is determined whether the user is a legitimate user, and if the user is a legitimate user, the target identification is sent to the control device so that it can control the home equipment according to the pre-stored automation rules.
It effectively prevents illegal users from illegally controlling home equipment through door locks, reduces potential safety hazards, and improves the security of home equipment.
Smart Images

Figure CN114460906B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and more specifically, to a method and device for controlling home appliances, a smart home system and a door lock. Background Art
[0002] With the gradual popularization of smart homes, smart door locks have become an indispensable smart device in smart home systems. Door locks can not only be used to control the state of the door, but also to control the home appliances in the house. Among them, the current way to control the home appliances in the house through door locks is: after the personnel operate the door lock, the home appliances corresponding to the operated button are directly controlled according to the button. Since the identity of the personnel is not verified, illegal users may illegally control the home appliances in the house through door locks, which poses certain safety risks. Summary of the invention
[0003] In view of this, the purpose of the present application is to provide a home appliance control method, device, smart home system, door lock and computer-readable storage medium to prevent illegal users from controlling home appliances through door locks.
[0004] The embodiments of the present application can be implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for controlling a home appliance, the method comprising:
[0006] Determining a target key according to a user operation, wherein the target key is a key operated by the user on an input keyboard of the door lock;
[0007] Determining whether the user who operates the target key is a legitimate user;
[0008] If so, the target identifier corresponding to the target button is sent to the control device, so that the control device controls the corresponding home appliance according to the target automation rule corresponding to the target identifier, wherein the target automation rule is used to instruct the target home appliance to execute the target instruction.
[0009] In a second aspect, an embodiment of the present application provides a method for controlling a home appliance, the method comprising:
[0010] The door lock determines a target key according to the user operation, wherein the target key is a key operated by the user on the input keyboard of the door lock;
[0011] The door lock determines whether the user who operates the target button is a legitimate user;
[0012] When the door lock is in the yes state, the target identifier corresponding to the target button is sent to the control device;
[0013] The control device obtains a target automation rule corresponding to the target identifier from pre-stored automation rules, wherein the target automation rule is used to instruct the target home device to execute a target instruction;
[0014] The control device controls the target home device to execute the target instruction according to the target automation rule.
[0015] In a third aspect, an embodiment of the present application provides a home appliance control device, the device comprising:
[0016] A first determination module, configured to determine a target key according to a user operation, wherein the target key is a key operated by the user on an input keyboard of the door lock;
[0017] A second determination module, used to determine whether the user who operates the target key is a legitimate user;
[0018] A sending module is used to send the target identifier corresponding to the target button to the control device when yes, so that the control device controls the corresponding home appliance according to the target automation rule corresponding to the target identifier, wherein the target automation rule is used to instruct the target home appliance to execute the target instruction.
[0019] In a fourth aspect, an embodiment of the present application provides a smart home system, the system comprising a door lock and a control device connected in communication,
[0020] The door lock is used to determine a target key according to a user operation, wherein the target key is a key operated by the user on an input keyboard of the door lock;
[0021] The door lock is further used to determine whether the user who operates the target key is a legitimate user;
[0022] The door lock is further configured to send the target identifier corresponding to the target button to a control device when yes;
[0023] The control device is used to obtain a target automation rule corresponding to the target identifier from pre-stored automation rules, and control the corresponding target home device to execute a target instruction according to the target automation rule, wherein the target automation rule is used to instruct the target home device to execute the target instruction.
[0024] In a fifth aspect, an embodiment of the present application provides a door lock, comprising a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the home appliance control method described in any one of the aforementioned embodiments.
[0025] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the home appliance control method as described in any one of the aforementioned embodiments is implemented.
[0026] The household appliance control method, device, smart home system, door lock and computer-readable storage medium provided by the embodiments of the present application, after determining the target button operated by the user, determine whether the user operating the target button is a legitimate user. If yes, send the target identifier corresponding to the target button to the control device, so that the control device controls the corresponding household appliance according to the target automation rule corresponding to the target identifier. The target automation rule is used to instruct the target household appliance to execute the target instruction. Therefore, by controlling the corresponding household appliance according to the target button only when it is determined that the user operating the target button is a legitimate user, it is possible to avoid illegal users illegally controlling household appliances through door locks and reduce safety hazards. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A schematic diagram of an application environment provided for an embodiment of the present application;
[0029] Figure 2 One of the flowcharts of the household appliance control method provided in the embodiment of the present application;
[0030] Figure 3 for Figure 2 A schematic flow chart of the sub-steps included in step S140;
[0031] Figure 4 The second flowchart of the household appliance control method provided in the embodiment of the present application;
[0032] Figure 5 for Figure 4 One of the flowchart diagrams of the sub-steps included in step S110;
[0033] Figure 6 for Figure 4 2 is a flow chart of the sub-steps included in step S110;
[0034] Figure 7 The third flowchart of the household appliance control method provided in the embodiment of the present application;
[0035] Figure 8 One of the structural schematic diagrams of the door lock provided in the embodiment of the present application;
[0036] Fig. 9 A fourth flowchart of the household appliance control method provided in an embodiment of the present application;
[0037] Fig.10 One of the block diagrams of the home appliance control device provided in the embodiment of the present application;
[0038] Fig.11 The second block diagram of the home appliance control device provided in the embodiment of the present application;
[0039] Fig.12 This is a second schematic diagram of the structure of the door lock provided in an embodiment of the present application.
[0040] Icons: 10-smart home system; 100-door lock; 101-main control chip; 102-door opening and closing detection unit; 103-keyboard unit; 104-user detection unit; 105-communication unit; 120-processor; 130-memory; 200-home appliance; 300-gateway; 400-router; 500-server; 600-home appliance control device; 610-first determination module; 620-second determination module; 630-sending module; 640-control module. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0042] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0043] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings. In addition, the terms "first", "second", etc., if used, are only used to distinguish the description and cannot be understood as indicating or implying relative importance. It should be noted that the features in the embodiments of the present application can be combined with each other without conflict.
[0044] At present, door locks can be used to control household appliances in the house. A specific keyboard is set on the front panel of the door lock, and the specific keyboard includes at least one specific key. Of course, it is understandable that the door lock is also provided with a keyboard for password input, and the keyboard for password input is a different keyboard from the above-mentioned specific keyboard. When the door lock senses that the door is closed for a period of time, if a key on the specific keyboard is pressed, the corresponding household appliance will be directly controlled according to the pressed key. However, if the user is followed by someone, when the user closes the door and turns to leave home, the follower may operate the keys on the specific keyboard on the door lock during this period of time, thereby achieving the purpose of illegally controlling the household appliances, which poses certain safety hazards.
[0045] Therefore, the inventor proposed a home appliance control method in an embodiment of the present application. After determining the target button operated by the user, it is determined whether the user operating the target button is a legitimate user. If so, the target identifier corresponding to the target button is sent to the control device, so that the control device controls the corresponding home appliance according to the target automation rule corresponding to the target identifier. This can prevent illegal users from illegally controlling home appliances in the house through door locks, thereby reducing safety hazards.
[0046] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0047] Please refer to Figure 1 , Figure 1 A schematic diagram of an application environment provided by an embodiment of the present application. The home appliance control method provided by an embodiment of the present application can be applied to Figure 1 In the smart home system 10 shown. The smart home system 10 may include a door lock 100, a control device and a home appliance 200 that are communicatively connected. The control device may be, but is not limited to, a gateway 300 or a server 500, etc. The server 500 may be a local server or a cloud server. The home appliance 200 may refer to a lamp, a curtain, an air conditioner, an electric curtain, etc.
[0048] When the control device is a gateway 300, the door lock 100 can send the target identifier corresponding to the target button to the gateway 300 when it is determined that the user operating the target button is a legitimate user, so that the gateway 300 can control the home device 200 corresponding to the target identifier according to the target identifier.
[0049] When the control device is a server 500, the door lock 100 can send the target identifier corresponding to the target button to the server 500 when it is determined that the user operating the target button is a legitimate user, so that the server 500 can control the home device 200 corresponding to the target identifier according to the target identifier.
[0050] The door lock 100 may be connected to the gateway 300 or the server 500 via Zigbee, WiFi, Bluetooth, NBIOT, etc. Optionally, the smart home system 10 may further include a router 400, and the gateway 300 may be connected to the server 500 via the router 400. Of course, the connection method between the various devices and the network connection method of the various devices in the embodiment of the present application are not limited.
[0051] Please refer to Figure 2 , Figure 2 This is one of the flow charts of the household appliance control method provided in the embodiment of the present application. The method can be applied to the door lock 100. The specific flow of the household appliance control method is explained in detail below.
[0052] Step S120: determining the target button according to the user operation.
[0053] When the user needs to control the home appliance, he will operate the keys on the input keyboard of the door lock. After the user completes the operation, the target key operated by the user can be determined, and the target key is the key operated by the user on the input keyboard of the door lock. For example, if the user presses the number key 1, the number key 1 can be determined as the target key.
[0054] Step S130, determining whether the user who operates the target key is a legitimate user.
[0055] After determining the target button or when the user operates the target button, it can be determined in any way whether the user operating the target button is a legitimate user. A legitimate user means that the user is a user with the authority to control the home device, not an illegal user; that is, the user's control of the home device is legal, not illegal.
[0056] If the user operating the target button is not a legitimate user, that is, the user operating the target button is an illegal user, the process may be terminated directly.
[0057] If the user who operates the target button is a legitimate user, step S140 is executed.
[0058] Step S140, sending the target identifier corresponding to the target button to the control device, so that the control device controls the corresponding home appliance according to the target automation rule corresponding to the target identifier.
[0059] At least one automation rule may be pre-stored in the control device, and one automation rule corresponds to at least one identifier. Optionally, the user may use a mobile terminal or other interactive terminal to configure and save the above automation rule in the control device in advance. Among them, one automation rule may include a home device identifier and control instructions corresponding to each home device identifier, and the automation rule is used to instruct one or more home devices to execute the corresponding control instructions.
[0060] After determining that the user operating the target button is a legitimate user, the target identifier corresponding to the target button can be sent to the control device. Among them, the identifier corresponding to a button is unique. The control device searches the stored automation rules according to the received target identifier, and uses the automation rules corresponding to the target identifier as the target automation rules. Then, the control device can send the corresponding target instruction to the corresponding target home appliance according to the target automation rules; the corresponding target home appliance executes the target instruction after receiving the target instruction. In this way, the purpose of the legitimate user operating the target button can be achieved. Among them, the target home appliance is the home appliance corresponding to the target home appliance identifier in the target automation rule, and the target instruction is the control instruction in the target automation rule.
[0061] For example, the user presses the number key 1, the identifier of the number key 1 is 1, and the automation rule corresponding to the identifier 1 is: if the number key 1 is pressed, turn off the air conditioner. Then, when the number key 1 is operated and the operating user is a legitimate user, the identifier 1 can be sent to the control device as the target identifier. The control device finds the target automation rule "if the number key 1 is pressed, turn off the air conditioner" according to the target identifier 1, and then sends the target instruction of turning off to the air conditioner; the air conditioner executes the target instruction.
[0062] The home appliance control method provided in the embodiment of the present application determines whether the user operating the target button is a legitimate user after determining the target button operated by the user. If yes, the target identifier corresponding to the target button is sent to the control device, so that the control device controls the corresponding home appliance according to the target automation rule corresponding to the target identifier. The target automation rule is used to instruct the target home appliance to execute the target instruction. Thus, by controlling the corresponding home appliance according to the target button only when it is determined that the user operating the target button is a legitimate user, it is possible to avoid illegal users illegally controlling home appliances through door locks and reduce safety hazards.
[0063] Optionally, as an optional implementation, the input keyboard operated by the user is a specific keyboard on the door lock. Since the specific keyboard on the door lock and the keyboard unit for password input are different keyboards, it is convenient for the user to choose to use different keyboards according to different purposes.
[0064] In actual applications, it is likely that multiple automation rules need to be set, which will result in the need for multiple buttons corresponding to the multiple automation rules in order to meet user needs. For example, there are two adults, a child, and a dog living in a family. When someone goes out, there will be many situations, such as: 1. There is another adult, child, or pet in the house; 2. All adults are out, and there is a child and a dog left in the house; 3. Everyone is out, and there is only a dog left in the house; 4. All people and pets are out. Each situation corresponds to a separate automation rule. If each automation rule is still made to correspond to a specific button, it will result in the need to set multiple specific buttons in the specific keyboard on the front panel of the door lock, which will increase the production cost.
[0065] In order to avoid increasing production costs while meeting diverse needs, as another optional implementation, the input keyboard operated by the user is a keyboard unit for password input on the door lock. The user can pre-configure the corresponding automation rules for each numeric key, or pre-configure the automation rules corresponding to the numeric key combination. For example, the numeric key combination 1 and 2 corresponds to an automation rule. If the identifier corresponding to the numeric key combination 1 and 2 is 12, then the identifier 12 corresponds to an automation rule. Therefore, by reusing the numeric keys 0 to 9 on the door lock for password input, it is possible to avoid setting multiple specific keys separately, while meeting diverse needs.
[0066] Among them, optionally, the automation rule can be expressed as "when xxx event occurs and satisfies yyy state, perform zzz action". xxx event means a pressed button; yyy state means a specific state, for example, when the indoor brightness is less than a certain threshold; zzz action means which home appliance should execute which instruction, for example, turning off the air conditioner. The zzz action can correspond to only one home appliance or multiple home appliances. Of course, it is understandable that the user may not set the above-mentioned "yyy state" when setting the automation rules.
[0067] The following is an example of an automation rule. Assume that an automation rule is "When button 1 is pressed and the indoor brightness is less than the preset brightness, the electric curtain is controlled to open". Then after button 1 is pressed, if the indoor brightness is less than the preset brightness, the electric curtain will be controlled to open, allowing outdoor ambient light to enter the room.
[0068] Optionally, in an implementation of this embodiment, when the user operates the target button, a facial image of the user can be obtained, and then the facial image can be compared with a pre-stored facial image of a legitimate person. If the similarity is greater than a threshold, it can be determined that the user operating the target button is a legitimate user. On the contrary, if the similarity is not greater than the threshold, it can be determined that the user operating the target button is not a legitimate user. Thus, through face recognition technology, it can be accurately determined whether the user operating the target button is a legitimate user.
[0069] Face recognition technology may require the device to have certain processing power, which may increase the cost. Figure 3 The method shown determines whether the user who operates the target key is a legitimate user. Figure 3 , Figure 3 for Figure 2 Schematic diagram of the flow of sub-steps included in step S140. Step S140 may include sub-steps S141 to S143.
[0070] Sub-step S141, determining whether there is a user in front of the door lock during the period from when the door is opened or closed to when the operation on the target button is received.
[0071] If there is always a user in front of the door lock, then sub-step S142 is executed. If there is not always a user in front of the door lock, then sub-step S143 is executed.
[0072] Sub-step S142, determining whether the user operating the target key is a legitimate user.
[0073] Sub-step S143, determining that the user operating the target key is not a legitimate user.
[0074] Normally, users who can open or close the door are legal users. If a legal user needs to control home appliances, he or she will directly operate the input keyboard on the door lock after opening or closing the door. During this period, the legal user is always in front of the door lock. The illegal person who follows the legal user generally operates the input keyboard on the door lock after the legal user leaves the door lock. That is, in the time period starting from the moment of opening or closing the door and ending at the moment of receiving the operation on the input keyboard, the legal user appears in front of the door lock at the beginning, there is no one in the middle, and finally the illegal person appears in front of the door lock. Therefore, it is possible to determine whether the user operating the target button is a legal user by detecting whether there is always a user in front of the door lock during the above time period.
[0075] Optionally, if a camera is installed near the door lock, it can be determined based on the video captured by the camera whether there is always a user in front of the door lock during the above time period.
[0076] The wavelength of infrared (energy) radiated by the human body is mainly concentrated at about 10,000 nm. According to this characteristic of the infrared wavelength of the human body, the infrared radiated by the human body can be detected by a corresponding detection device, thereby achieving the purpose of detecting human activity information. Optionally, an infrared human body detection unit can also be installed on the door lock, and the infrared human body detection unit is used to detect whether a user has been in front of the door lock during the above time period. The cost of the infrared human body detection unit is low. Therefore, the infrared human body detection unit can be used to determine whether a user has been in front of the door lock without increasing much cost.
[0077] If there is always a user in front of the door lock during the above time period, it can be determined that the user operating the target keyboard is a legitimate user, and then the target identifier corresponding to the target button is sent to the control device so that the control device can control the corresponding target home device according to the target identifier.
[0078] Please refer to Figure 4 , Figure 4 The second flowchart of the household appliance control method provided in the embodiment of the present application. In one embodiment of the present application, before step S120, the method may further include step S110.
[0079] Step S110, controlling the key corresponding to the automation rule to illuminate.
[0080] The control device or door lock may pre-store the correspondence between the automation rules and the keys. Since the user generally operates the input keyboard on the door lock after opening or closing the door, the keys corresponding to the automation rules may be controlled to light up after opening or closing the door to remind the user which keys on the input keyboard are valid keys that can control home appliances. Optionally, the keys corresponding to the automation rules may be controlled to light up in a first light-emitting state, and the specific state of the first light-emitting state may be set according to actual needs, such as always on, or flashing first and then always on, etc.
[0081] When configuring automation rules, users usually configure the smart scenes corresponding to the automation rules at the same time. That is, one smart scene corresponds to one automation rule, for example, scene 1: automation rule 1. The automation rule corresponds to the smart scene, which means that the automation rule is executed in the smart scene. By configuring smart scenes at the same time, you can reuse scenes and automation rules, avoiding the need to re-set automation rules when controlling the same home devices through other devices.
[0082] Please refer to Figure 5 , Figure 5 for Figure 4One of the flowcharts of the sub-steps included in step S110. In the case where the stored automation rules include automation rules corresponding to different smart scenes, step S110 may include sub-steps S111 and S112.
[0083] Sub-step S111, determining the buttons corresponding to the smart scenes respectively according to the pre-saved correspondence between the smart scenes and the identifiers and the correspondence between the buttons and the identifiers.
[0084] Sub-step S112, controlling the buttons corresponding to each of the smart scenes to illuminate in a first luminous state.
[0085] In this embodiment, the control device or door lock pre-stores the correspondence between the smart scene and the identifier, and the correspondence between the button and the identifier, so the button corresponding to the smart scene can be determined based on the above correspondence. There is also a correspondence between the smart scene and the automation rule, so the button corresponding to the smart scene determined is the button corresponding to at least a part of the automation rule. After determining the button to be controlled, the buttons corresponding to each smart scene can be controlled to emit light in the first light state.
[0086] Optionally, a first preset lighting effect control instruction may be pre-set, and when it is necessary to control a button to emit light in the first lighting state, the corresponding button may be controlled to emit light in the first lighting state according to the first preset lighting effect control instruction.
[0087] When the user goes out, some home appliances are still in working state. It will be troublesome for the user to go back and turn off the home appliances in working state before going out. To avoid the above situation, home appliances can be specified in advance, and automation rules corresponding to the specified home appliances can be set. Among them, the specified home appliances can be determined by the user from all home appliances in the house according to their own needs. In the case where the stored automation rules include automation rules corresponding to each specified home appliance, please refer to Figure 6 , Figure 6 for Figure 4 The second flowchart diagram of the sub-steps included in step S110. The step S110 may include sub-step S114 and sub-step S115.
[0088] Sub-step S114, determining the button corresponding to the designated home appliance currently in working state in the smart home system.
[0089] Sub-step S115, controlling the button corresponding to the designated home appliance currently in working state to illuminate in a first illumination state.
[0090] In this embodiment, the correspondence between each designated home appliance and the button can be pre-stored in the control device or the door lock. The control device can detect the working status of each designated home appliance in the smart home system. If a designated home appliance is in working status, the buttons corresponding to each designated home appliance currently in working status can be determined based on the stored correspondence between each designated home appliance and the button, and then the relevant information of the above buttons can be sent to the door lock. After receiving the relevant information of the above buttons, the door lock determines the corresponding button, and then controls the part of the buttons to light up according to the first light-emitting state. Optionally, the door lock can control the buttons corresponding to each designated home appliance currently in working status to light up according to the first preset lighting effect control instruction.
[0091] Optionally, the control device may also detect the designated home appliances currently in working state and send the device identification of the part of the home appliances to the door lock; after receiving the device identification, the door lock may determine the key to be controlled according to the pre-stored correspondence between the designated home appliances and the keys and the device identification, and then control the part of the keys to emit light according to the first light-emitting state. The correspondence between the designated home appliances and the keys may be represented by the correspondence between the device identification of the designated home appliances and the identification corresponding to the keys.
[0092] Optionally, a power meter may be connected in series between each household appliance and the mains, and the power meter is used to measure the real-time power consumption of the household appliance. After receiving the door closing status information sent by the door lock, the control device may determine the designated household appliance that is working according to the data of each power meter. Thus, the control device determines the designated household appliance that is in working state. Of course, it is understandable that the designated household appliance that is in working state may also be determined by other means.
[0093] Thus, when the user goes out, the button corresponding to the designated home appliance currently in working state can be controlled to light up to remind the user that the designated home appliance is working and whether it needs to be turned off. If the user needs to turn it off, the user can achieve the purpose by operating the corresponding button.
[0094] It is worth noting that the stored automation rules may only include the automation rules corresponding to different smart scenes, or may only include the automation rules corresponding to each designated home device, or may include both, which is determined by the user according to actual needs.
[0095] Please refer to Figure 7 , Figure 7 The third flowchart of the household appliance control method provided in the embodiment of the present application is shown in FIG. 1. In the present embodiment, after the target button is determined, the method may further include step S130.
[0096] Step S130, controlling the target key to emit light in a second light-emitting state, and controlling other keys on the input keyboard except the target key to emit light in a third light-emitting state.
[0097] In this embodiment, after the user operates a key, in order to give the user feedback, the target key can be controlled to emit light in the second light state, and the other keys on the input keyboard except the target key can be controlled to emit light in the third light state. The second light state is different from the third light state, and can be set according to actual needs. For example, before the user operates the target key, the light state of at least some of the keys on the input keyboard flashes first and then stays on. After the user operates the target key, the light state of the target key can be controlled to stay on, and other keys that flash first and then stay on can be controlled not to emit light or to flash.
[0098] Optionally, a second preset lighting effect control instruction and a third preset lighting effect control instruction can be pre-set. When user feedback is required, the target key can be controlled to illuminate in the second lighting state according to the two preset lighting effect control instructions; and the other keys on the input keyboard except the target key can be controlled to illuminate in the third lighting state according to the third preset lighting effect control instruction.
[0099] Optionally, as an optional implementation, in order to save power consumption and control household appliances, the door lock can enter a waiting state within a waiting period, wherein the waiting period is a period of a preset duration (e.g., 15 seconds) after the door is opened or closed. After the door lock enters the waiting state, if the user operates a key on the input keyboard, and the user is a legitimate user, the corresponding household appliance will be controlled according to the operated key. In this way, it can be avoided that the door lock is always in a state of waiting to receive an operation to control the household appliance. Of course, it is understandable that if a user operates the input keyboard when the door lock has not entered the waiting state, the operation can be considered as an operation of entering a password for opening the door, and whether to open the door can be determined based on the password entered by the user.
[0100] Optionally, after the door lock enters the waiting state, if it is detected that there is no user in front of the door lock, the waiting state can be directly exited.
[0101] If a user operates the input keypad of the door lock before the waiting period ends, it can be determined whether the user is a legitimate user, and if so, the identifier corresponding to the operated key is sent to the control device. Then, if there are keys that are still glowing, these keys can be made non-luminous and the waiting state can be exited.
[0102] If the user presses the "Cancel" key before the waiting time period ends, the user can stop waiting and directly exit the waiting state. If the user does not press the key at the end of the waiting time period, the user can also directly exit the waiting state.
[0103] Please refer to Figure 8 , Figure 8 This is one of the structural schematic diagrams of the door lock 100 provided in an embodiment of the present application. The door lock 100 may include a main control chip 101, a door opening and closing detection unit 102, a keyboard unit 103, a user detection unit 104, and a communication unit 105. The main control chip 101 is communicatively connected with the door opening and closing detection unit 102, the keyboard unit 103, the user detection unit 104, and the communication unit 105. The user detection unit 104 may be, but is not limited to, an infrared human body detection unit.
[0104] The main control chip 101 can be used to execute the above-mentioned home appliance control method.
[0105] The door opening and closing detection unit 102 is used to detect the opening and closing status of the door.
[0106] The keyboard unit 103 is used to receive the user's operation on the keys after opening or closing the door. At least part of the keys in the keyboard unit 103 correspond to home appliances, that is, the keys are associated with actions. The keyboard unit 103 can be a numeric keypad for password input, and the numeric keypad can include at least 10 numeric keys from 0 to 9 and a key representing the "cancel" function. Of course, it is understandable that the numeric keypad can also include a key with the "OK" function. When the "OK" key is selected, it can be used to indicate the end of the key operation. For example, when the keys selected by the user are "1", "2", and "OK" in sequence, it can be determined that the user has completed the key selection, and the selected numeric keys are "1" and "2" in sequence; when it is determined that the user is a legitimate user, the identifier 12 can be sent to the control device.
[0107] The user detection unit 104 is used to detect whether a user is in front of the door lock.
[0108] The communication unit 105 is used to realize the communication connection between the door lock 100 and other devices (such as control devices). The communication unit 105 can communicate with other devices based on Zigbee, WiFi, Bluetooth, NBIOT protocols, etc.
[0109] The working mode of the door lock 100 with the above structure is briefly described below.
[0110] When the door opening and closing detection unit 102 detects that the door is opened or closed, the door lock 100 enters a waiting state. When entering the waiting state, the main control chip 101 can control the key corresponding to the automation rule on the keyboard unit 103 to flash twice and then highlight it to indicate that the user's key operation is allowed to be received, and the key operation can be used to control home appliances. Optionally, the "Cancel" and "Confirm" keys can be controlled to flash twice and then highlight them at the same time. At the same time, the main control chip 101 turns on the user detection unit 104 to detect in real time whether there is a user in front of the door lock. The main control chip is also used to turn on a countdown timer for a certain duration (for example, 15 seconds).
[0111] When the door lock is in the waiting state, if the user detection unit 104 does not detect that there is a user in front of the door lock, the waiting state is immediately exited.
[0112] When the door lock is in the waiting state, if the numeric keys on the keyboard unit 103 are operated, for example, the numeric key N is operated, if the operating user is a legitimate user, the information "the user selected the numeric key N" can be immediately reported to the control device through the communication unit 105. The control device then obtains the automation rule corresponding to the numeric key N and controls the home appliance according to the corresponding automation rule. After receiving the operation on the numeric keys, the door lock 100 turns off the highlight state of other keys except the data key selected by the user for a certain period of time (for example, 1 second), and then exits the waiting state.
[0113] When the door lock is in the waiting state, if the cancel key on the keyboard unit 103 is pressed, the highlight state of other keys except the cancel key is turned off, and after a certain length of time (for example, 1 second), the waiting state is exited.
[0114] When the door lock is in the waiting state, if the countdown timer times out, the door lock 100 exits the waiting state.
[0115] When exiting the waiting state, the main control chip 101 turns off the highlighting of at least a portion of the keys in the keyboard unit 103 , turns off the counting of the countdown timer, and also turns off the real-time detection function of the user detection unit 104 .
[0116] Please refer to Fig. 9 , Fig. 9 This is a fourth flow chart of the household appliance control method provided in the embodiment of the present application. The method is briefly described below.
[0117] Step S210: The door lock determines the target button according to the user operation.
[0118] The target button is a button operated by a user on an input keyboard of the door lock.
[0119] Step S220: the door lock determines whether the user who operates the target button is a legitimate user.
[0120] When the user operating the target key is not a legitimate user, the process may be terminated directly. When the user operating the target key is a legitimate user, step S230 is executed.
[0121] Step S240: the door lock sends the target identifier corresponding to the target button to the control device.
[0122] Step S250: The control device obtains a target automation rule corresponding to the target identifier from pre-stored automation rules.
[0123] The target automation rule is used to instruct the target home device to execute the target instruction.
[0124] Step S260: The control device controls the target home appliance to execute the target instruction according to the target automation rule.
[0125] about Fig. 9 The specific description of the home appliance control method shown can refer to the above Figure 2 to Figure 7 The description of the household appliance control method shown will not be repeated here.
[0126] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing the home appliance control device 600 is given below. Fig.10 , Fig.10 This is one of the block diagrams of the home appliance control device 600 provided in the embodiment of the present application. It should be noted that the basic principle and technical effects of the home appliance control device 600 provided in this embodiment are the same as those of the above embodiments. For the sake of brief description, for parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiments. The home appliance control device 600 may include: a first determination module 610, a second determination module 620 and a sending module 630.
[0127] The first determination module 610 is used to determine a target key according to a user operation, wherein the target key is a key operated by the user on the input keyboard of the door lock.
[0128] The second determination module 620 is used to determine whether the user who operates the target key is a legitimate user.
[0129] The sending module 630 is used to send the target identifier corresponding to the target button to the control device when yes, so that the control device controls the corresponding home appliance according to the target automation rule corresponding to the target identifier. The target automation rule is used to instruct the target home appliance to execute the target instruction.
[0130] Optionally, in this embodiment, the second determination module 620 is specifically used to: determine whether there is a user in front of the door lock during the time period from opening or closing the door to receiving the operation of the target button; if so, determine that the user operating the target button is a legitimate user.
[0131] Optionally, in this embodiment, the second determination module 620 is specifically configured to: detect, by an infrared human body detection unit, whether the user has been in front of the door lock during the time period.
[0132] Please refer to Fig.11 , Fig.11 This is a second block diagram of the home appliance control device 600 provided in an embodiment of the present application. In this embodiment, the home appliance control device 600 may further include a control module 640 .
[0133] The control module 640 is used to control the lighting of the keys corresponding to the automation rules.
[0134] Optionally, in this embodiment, when the automation rules include automation rules corresponding to different smart scenes, the control module 640 is specifically used to: determine the buttons corresponding to each smart scene according to the pre-saved correspondence between the smart scene and the identifier and the correspondence between the button and the identifier; and control the buttons corresponding to each smart scene to illuminate in the first luminous state.
[0135] Optionally, in this embodiment, when the automation rules include automation rules corresponding to each designated home appliance, the control module 640 is specifically used to: determine the button corresponding to the designated home appliance currently in working state in the smart home system; control the button corresponding to the designated home appliance currently in working state to illuminate in a first lighting state.
[0136] Optionally, in this embodiment, the control module 640 is also used to: control the target key to illuminate in a second luminous state, and at the same time control other keys on the input keyboard except the target key to illuminate in a third luminous state, wherein the second luminous state is different from the third luminous state.
[0137] Please refer to Fig.12 , Fig.12 FIG2 is a second structural diagram of a door lock 100 provided in an embodiment of the present application. The embodiment of the present application also provides a door lock 100. Fig.12As shown, the door lock 100 may include one or more of the following components: a processor 120, a memory 130, and one or more applications, wherein the one or more applications may be stored in the memory 130 and configured to be executed by one or more processors 120, and the one or more programs are configured to execute the home appliance control method as described in the aforementioned method embodiment.
[0138] The processor 120 may include one or more processing cores. The processor 120 uses various interfaces and lines to connect the various parts of the entire door lock 100, and executes various functions and processes data of the door lock 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 130, and calling data stored in the memory 130. Optionally, the processor 120 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 120 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 120, but may be implemented separately through a communication chip.
[0139] The memory 130 may include a random access memory (RAM) or a read-only memory (ROM). The memory 130 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 130 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. A person skilled in the art may understand that Fig.12 The structure shown is only for illustration and does not limit the structure of the door lock 100. For example, the door lock 100 may also include Fig.12 More or fewer components as shown, or with Fig.12 Different configurations are shown.
[0140] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the home appliance control method are implemented.
[0141] In summary, the embodiments of the present application provide a method, device, smart home system, door lock and computer-readable storage medium for controlling home appliances. After determining the target button operated by the user, it is determined whether the user operating the target button is a legitimate user. If yes, the target identifier corresponding to the target button is sent to the control device, so that the control device controls the corresponding home appliance according to the target automation rule corresponding to the target identifier. The target automation rule is used to instruct the target home appliance to execute the target instruction. Therefore, by controlling the corresponding home appliance according to the target button only when it is determined that the user operating the target button is a legitimate user, it is possible to avoid illegal users illegally controlling the home appliances in the house through the door lock, thereby reducing safety hazards.
[0142] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0143] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0144] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0145] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for controlling household appliances, It is characterized in that The method comprises: Determining a target key according to a user operation, wherein the target key is a key operated by the user on an input keyboard of the door lock; Determining whether the user who operates the target key is a legitimate user; If yes, the target identifier corresponding to the target button is sent to the control device, so that the control device controls the corresponding home appliance according to the target automation rule corresponding to the target identifier, wherein the target automation rule is used to instruct the target home appliance to execute the target instruction; Wherein, determining whether the user operating the target button is a legitimate user includes: Determining whether a user has been in front of the door lock during a period from when the door is opened or closed to when the operation of the target button is received; If so, it is determined that the user operating the target key is a legitimate user.
2. The method according to claim 1, It is characterized in that The determining whether a user has been in front of the door lock during the period from when the door is opened or closed to when the operation on the target button is received comprises: An infrared human body detection unit is used to detect whether a user is always in front of the door lock during the time period.
3. The method according to claim 1, It is characterized in that Before determining the target key, the method further includes: Controls the lighting of the keys corresponding to the automation rules.
4. The method according to claim 3, It is characterized in that In the case where the automation rules include automation rules corresponding to different smart scenes, the controlling the keys corresponding to the automation rules to illuminate includes: Determine the buttons corresponding to the smart scenes according to the pre-saved corresponding relationships between the smart scenes and the identifiers and the corresponding relationships between the buttons and the identifiers; The buttons corresponding to the smart scenes are controlled to emit light in a first light-emitting state.
5. The method according to claim 3 or 4, It is characterized in that In the case where the automation rules include automation rules corresponding to the designated home appliances, the control of lighting the buttons corresponding to the automation rules includes: Determine the button corresponding to the designated home device currently in working state in the smart home system; The button corresponding to the designated household appliance currently in working state is controlled to emit light in a first light-emitting state.
6. The method according to claim 1, It is characterized in that After determining the target key, the method further includes: The target key is controlled to emit light in a second light-emitting state, and at the same time, other keys on the input keyboard except the target key are controlled to emit light in a third light-emitting state, wherein the second light-emitting state is different from the third light-emitting state.
7. A home appliance control device, It is characterized in that The device comprises: A first determination module, configured to determine a target key according to a user operation, wherein the target key is a key operated by the user on an input keyboard of the door lock; A second determination module, used to determine whether the user who operates the target key is a legitimate user; a sending module, configured to, when yes, send the target identifier corresponding to the target button to the control device, so that the control device controls the corresponding home appliance according to the target automation rule corresponding to the target identifier, wherein the target automation rule is used to instruct the target home appliance to execute the target instruction; Among them, the second determination module is specifically used to: determine whether there is a user in front of the door lock during the time period from opening or closing the door to receiving the operation of the target button; if so, determine that the user operating the target button is a legitimate user.
8. A smart home system, It is characterized in that The system includes a door lock and a control device connected in communication, The door lock is used to determine a target key according to a user operation, wherein the target key is a key operated by the user on an input keyboard of the door lock; The door lock is further used to determine whether the user who operates the target key is a legitimate user; The door lock is further configured to send the target identifier corresponding to the target button to a control device when yes; The control device is used to obtain a target automation rule corresponding to the target identifier from pre-stored automation rules, and control the corresponding target home device to execute the target instruction according to the target automation rule, wherein the target automation rule is used to instruct the target home device to execute the target instruction; The door lock is specifically used to determine whether a user has been in front of the door lock during the period from opening or closing the door to receiving an operation on the target button; if so, determine that the user operating the target button is a legitimate user.
9. A door lock, It is characterized in that It includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the home appliance control method described in any one of claims 1-6.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the home appliance control method according to any one of claims 1 to 6 is implemented.
