Disclosure of Invention
The embodiment of the application provides a control method and device for smart home, a storage medium and an electronic device, and aims to at least solve the technical problem that a smart door lock cannot be linked with the smart home.
According to an aspect of an embodiment of the present application, a method for controlling smart home is provided, including: under the condition that the opening and closing state of the intelligent door lock changes, acquiring the stress state of the intelligent door lock; and controlling the intelligent home in the house according to the stress state of the intelligent door lock.
Optionally, when the state of the intelligent door lock is changed from closed to open, and when the intelligent home in the house is controlled according to the stress state of the intelligent door lock, and when the external pressure is detected when the intelligent door lock is opened, the intelligent home in the house is started; and under the condition that the pressure of the inner side is detected when the intelligent door lock is opened, controlling the intelligent home in the house according to the stress state of the intelligent door lock when the intelligent door lock is changed from opening to closing.
Optionally, when the intelligent home in the room is controlled according to the stress state of the intelligent door lock when the intelligent door lock is changed from the open state to the closed state, under the condition that the external pressure is detected when the intelligent door lock is closed, the intelligent home in the room is controlled according to the existence state of the user in the room; and under the condition that the inner side pressure is detected when the intelligent door lock is closed, controlling the intelligent home in the house according to the number of users in the house.
Optionally, when the intelligent home in the house is controlled according to the existence state of the user in the house, the working state of the intelligent home in the house is maintained under the condition that the user in the house is detected; and closing the intelligent home in the house under the condition that the user does not exist in the house.
Optionally, when the intelligent home is controlled according to the number of the users in the house, the working mode of the intelligent home is adjusted to be the working mode matched with the number of the users when the number of the users in the house is larger than a preset value; and under the condition that the number of the indoor users is not more than the preset value, the working state of the indoor intelligent home is kept.
Optionally, before controlling the smart home in the house according to the number of the users in the house, receiving a configuration instruction; and configuring the preset value according to the instruction of the configuration instruction.
Optionally, when controlling the smart home in the house according to the presence state of the user in the house, the user in the house is detected as follows: collecting indoor information by using an indoor sensor; and determining whether the user exists in the room or not by utilizing the information collected by the sensor.
According to another aspect of the embodiments of the present application, there is also provided a control device for smart home, including: the intelligent door lock comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring the stress state of the intelligent door lock under the condition that the opening and closing state of the intelligent door lock is changed; and the control unit is used for controlling the intelligent home in the house according to the stress state of the intelligent door lock.
Optionally, the control unit is further configured to, when the state of the smart door lock is changed from closed to open, control the smart home in the room according to a stress state of the smart door lock, and start the smart home in the room when the external pressure is detected when the smart door lock is opened; and under the condition that the pressure of the inner side is detected when the intelligent door lock is opened, controlling the intelligent home in the house according to the stress state of the intelligent door lock when the intelligent door lock is changed from opening to closing.
Optionally, the control unit is further configured to, when the smart home in the room is controlled according to the stress state of the smart door lock when the smart door lock is turned from the open state to the closed state, control the smart home in the room according to the existence state of the user in the room when the external pressure is detected when the smart door lock is turned off; and under the condition that the inner side pressure is detected when the intelligent door lock is closed, controlling the intelligent home in the house according to the number of users in the house.
Optionally, the control unit is further configured to, when controlling the smart home in the house according to the presence state of the user in the house, maintain the operating state of the smart home in the house when detecting that the user is present in the house; and closing the intelligent home in the house under the condition that the user does not exist in the house.
Optionally, the control unit is further configured to, when the smart home in the house is controlled according to the number of the users in the house, adjust the working mode of the smart home to a working mode matched with the number of the users when the number of the users in the house is greater than a preset value; and under the condition that the number of the indoor users is not more than the preset value, the working state of the indoor intelligent home is kept.
Optionally, the control unit is further configured to receive a configuration instruction before controlling the smart home in the room according to the number of the users in the room; and configuring the preset value according to the instruction of the configuration instruction.
Optionally, the control unit is further configured to detect the user in the room as follows when controlling the smart home in the room according to the presence state of the user in the room: collecting indoor information by using an indoor sensor; and determining whether the user exists in the room or not by utilizing the information collected by the sensor.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program which, when executed, performs the above-described method.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above method through the computer program.
In the embodiment of the application, the direction of stress on the door handle is detected through the pressure sensor, so that the condition of user access is confirmed, household appliances are linked according to preset conditions, the identification of the condition of user access is realized, the household appliances are linked to be opened, switched or closed according to different access conditions, the intelligent household is more intelligent in linkage, and the technical problem that the intelligent door lock cannot be linked with the intelligent household can be solved.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The intelligent door lock cannot judge the condition of the user entering and exiting, and can only be linked with the power-on starting of the household appliance after the user sends a home entering signal. When a user leaves home or opens and closes the door from the inside of a room, the door lock cannot be judged, and the intelligent household appliances cannot be linked to be closed or switched to other scene modes.
The door opening and closing of the user or the family and guest cannot be identified, and the household appliance cannot be closed in a linkage manner; the problem that the user entering and exiting conditions cannot be judged is solved, and according to one aspect of the embodiment of the application, an embodiment of a control method of smart home is provided. Fig. 1 is a flowchart of an optional smart home control method according to an embodiment of the present application, and as shown in fig. 1, the method may include the following steps:
and step S1, acquiring the stress state of the intelligent door lock under the condition that the opening and closing state of the intelligent door lock is changed.
And step S2, controlling the smart home in the house according to the stress state of the smart door lock.
Optionally, when the state of the smart door lock is changed from closed to open, and when the smart home in the room is controlled according to the stress state of the smart door lock, and when the external pressure is detected when the smart door lock is opened, the smart home in the room (such as a smart lamp, a window, a water dispenser, and the like) is started; and under the condition that the pressure of the inner side is detected when the intelligent door lock is opened, controlling the intelligent home in the house according to the stress state of the intelligent door lock when the intelligent door lock is changed from opening to closing.
It should be noted that, a pressure sensor is installed on the door lock handle, if the door is of an outward opening type, the outside pressure is the pressure towards the outside sensed by the handle, otherwise, the inside pressure is the pressure towards the inside sensed by the handle; if the door is of the inward opening type, the outside pressure is the pressure towards the inside sensed by the handle, and the inside pressure is the pressure towards the outside sensed by the handle.
Optionally, when the intelligent home in the room is controlled according to the stress state of the intelligent door lock when the intelligent door lock is changed from the open state to the closed state, under the condition that the external pressure is detected when the intelligent door lock is closed, the intelligent home in the room is controlled according to the existence state of the user in the room; and under the condition that the inner side pressure is detected when the intelligent door lock is closed, controlling the intelligent home in the house according to the number of users in the house.
Optionally, when the intelligent home in the house is controlled according to the existence state of the user in the house, the working state of the intelligent home in the house is maintained under the condition that the user in the house is detected; and closing the intelligent home in the house under the condition that the user does not exist in the house.
Optionally, when the intelligent home is controlled according to the number of the users in the house, the working mode of the intelligent home is adjusted to be a working mode matched with the number of the users, such as a guest-meeting mode, when the number of the users in the house is larger than a preset value; and under the condition that the number of the indoor users is not more than the preset value, the working state of the indoor intelligent home is kept.
Optionally, before controlling the smart home in the house according to the number of the users in the house, receiving a configuration instruction; and configuring the preset value according to the instruction of the configuration instruction.
Optionally, when controlling the smart home in the house according to the presence state of the user in the house, the user in the house is detected as follows: collecting indoor information by using an indoor sensor; and determining whether the user exists in the room or not by utilizing the information collected by the sensor.
Through the steps, the direction of stress on the door handle is detected through the pressure sensor, so that the user access condition is confirmed, the household appliances are linked according to preset conditions, the identification of the user access condition is realized, the household appliances are linked to be opened, switched into modes or closed according to different access conditions, the intelligent household is more intelligent in linkage, and the technical problem that the intelligent door lock cannot be linked with the intelligent household can be solved.
As an alternative example, as shown in fig. 2, the following further details the technical solution of the present application with reference to specific embodiments.
S11: the user opens the door to unlock the door lock.
S12: whether the direction in which the user opens the door to apply the pressure to the door handle is the inside or the outside is identified, and if the direction is the outside (that is, corresponding to the door entry), S13 is executed, and if the direction is the inside, S14 is executed.
S13: and starting the corresponding intelligent household products in a linkage manner according to the preset setting of the user.
S14: whether the direction of the pressure applied to the door handle when the user closes the door is inside or outside is identified, and if so, S15 is executed, and if so, S18 is executed.
S15: and the linkage AI micro-sensor detects whether a person exists in the room, if so, S16 is executed, otherwise, S17 is executed.
S16: and the corresponding household appliance or the switch is linked to be turned off or powered off.
S17: and the intelligent household product is not linked.
S18: and the linkage AI micro-sensor identifies whether the number of the people increasing indoors is larger than a preset value of a user, if so, S19 is executed, otherwise, S110 is executed.
S19: and the linkage hall lamp or the scene switch starts the guest-meeting mode.
S110: and the intelligent household product is not linked.
According to the scheme, the inner side direction and the outer side direction of the door lock opened and closed by a user are identified through the pressure sensor on the door handle. The mode sequence of the user switch is identified to confirm the entering and exiting conditions of the user under the scenes of door opening by going home, door closing by leaving home, door opening and closing by welcoming guests and the like.
When the door of the user is opened from the outside, the door lock outputs a user return signal to the gateway, and the home appliances preset in the intelligent home management platform by the user are linked to start working, such as a ceiling lamp of a living room, an air conditioner of the living room and a bedroom, an air purifier, a curtain motor and the like.
After the door is opened from the inner side and closed from the outer side, the AI micro-sensor is linked to identify whether people are still in the room or not, if no people exist, the AI micro-sensor outputs a leaving signal, and the electrical appliances such as an indoor air conditioner, a television, an air purifier, a lamp and the like which work in all weather are linked to be closed. If still people are at home, the linkage signal is not output, and the indoor electric appliance is prevented from being turned off by mistake.
After the door opening and closing of the inner side of the user are identified, the AI micro sensor is linked to detect whether the number of people increased indoors is larger than the number of people preset by the user, whether the number of people visited by the user is judged, the number of people is increased to exceed a preset value, a visitor-meeting signal is output, the number of the light-on of the living room is increased in a linked manner, and the color temperature and the brightness of light are changed.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
According to another aspect of the embodiment of the application, a control device of the smart home for implementing the control method of the smart home is also provided. Fig. 3 is a schematic diagram of an alternative control device for smart home according to an embodiment of the present application, and as shown in fig. 3, the device may include:
the acquiring unit 31 is used for acquiring the stress state of the intelligent door lock under the condition that the opening and closing state of the intelligent door lock is changed; and the control unit 33 is used for controlling the intelligent home in the house according to the stress state of the intelligent door lock.
It should be noted that the acquiring unit 31 in this embodiment may be configured to execute step S1 in this embodiment, and the controlling unit 33 in this embodiment may be configured to execute step S2 in this embodiment.
Through the module, the direction of stress on the door handle is detected through the pressure sensor, so that the user access condition is confirmed, the household appliances are linked according to preset conditions, the identification of the user access condition is realized, the household appliances are linked to be opened, switched or closed according to different access conditions, the intelligent household is more intelligent in linkage, and the technical problem that the intelligent door lock cannot be linked with the intelligent household can be solved.
Optionally, the control unit is further configured to, when the state of the smart door lock is changed from closed to open, control the smart home in the room according to a stress state of the smart door lock, and start the smart home in the room when the external pressure is detected when the smart door lock is opened; and under the condition that the pressure of the inner side is detected when the intelligent door lock is opened, controlling the intelligent home in the house according to the stress state of the intelligent door lock when the intelligent door lock is changed from opening to closing.
Optionally, the control unit is further configured to, when the smart home in the room is controlled according to the stress state of the smart door lock when the smart door lock is turned from the open state to the closed state, control the smart home in the room according to the existence state of the user in the room when the external pressure is detected when the smart door lock is turned off; and under the condition that the inner side pressure is detected when the intelligent door lock is closed, controlling the intelligent home in the house according to the number of users in the house.
Optionally, the control unit is further configured to, when controlling the smart home in the house according to the presence state of the user in the house, maintain the operating state of the smart home in the house when detecting that the user is present in the house; and closing the intelligent home in the house under the condition that the user does not exist in the house.
Optionally, the control unit is further configured to, when the smart home in the house is controlled according to the number of the users in the house, adjust the working mode of the smart home to a working mode matched with the number of the users when the number of the users in the house is greater than a preset value; and under the condition that the number of the indoor users is not more than the preset value, the working state of the indoor intelligent home is kept.
Optionally, the control unit is further configured to receive a configuration instruction before controlling the smart home in the room according to the number of the users in the room; and configuring the preset value according to the instruction of the configuration instruction.
Optionally, the control unit is further configured to detect the user in the room as follows when controlling the smart home in the room according to the presence state of the user in the room: collecting indoor information by using an indoor sensor; and determining whether the user exists in the room or not by utilizing the information collected by the sensor.
According to the scheme, the inner side direction and the outer side direction of the door lock opened and closed by a user are identified through the pressure sensor on the door handle. The mode sequence of the user switch is identified to confirm the entering and exiting conditions of the user under the scenes of door opening by going home, door closing by leaving home, door opening and closing by welcoming guests and the like.
When the door of the user is opened from the outside, the door lock outputs a user return signal to the gateway, and the home appliances preset in the intelligent home management platform by the user are linked to start working, such as a ceiling lamp of a living room, an air conditioner of the living room and a bedroom, an air purifier, a curtain motor and the like.
After the door is opened from the inner side and closed from the outer side, the AI micro-sensor is linked to identify whether people are still in the room or not, if no people exist, the AI micro-sensor outputs a leaving signal, and the electrical appliances such as an indoor air conditioner, a television, an air purifier, a lamp and the like which work in all weather are linked to be closed. If still people are at home, the linkage signal is not output, and the indoor electric appliance is prevented from being turned off by mistake.
After the door opening and closing of the inner side of the user are identified, the AI micro sensor is linked to detect whether the number of people increased indoors is larger than the number of people preset by the user, whether the number of people visited by the user is judged, the number of people is increased to exceed a preset value, a visitor-meeting signal is output, the number of the light-on of the living room is increased in a linked manner, and the color temperature and the brightness of light are changed.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules as a part of the apparatus may run in a corresponding hardware environment, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to another aspect of the embodiment of the application, a server or a terminal for implementing the control method of the smart home is also provided.
Fig. 4 is a block diagram of a terminal according to an embodiment of the present application, and as shown in fig. 4, the terminal may include: one or more processors 201 (only one shown),memory 203, and transmission means 205, as shown in fig. 4, the terminal may further comprise an input-output device 207.
Thememory 203 may be configured to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for controlling a smart home in the embodiment of the present application, and the processor 201 executes various functional applications and data processing by running the software programs and modules stored in thememory 203, that is, implements the method for controlling a smart home. Thememory 203 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, thememory 203 may further include memory located remotely from the processor 201, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Thetransmission device 205 is used for receiving or sending data via a network, and can also be used for data transmission between a processor and a memory. Examples of the network may include a wired network and a wireless network. In one example, thetransmission device 205 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, thetransmission device 205 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Wherein thememory 203 is specifically used for storing application programs.
The processor 201 may call the application stored in thememory 203 via the transmission means 205 to perform the following steps:
under the condition that the opening and closing state of the intelligent door lock changes, acquiring the stress state of the intelligent door lock; and controlling the intelligent home in the house according to the stress state of the intelligent door lock.
The processor 201 is further configured to perform the following steps:
when the state of the intelligent door lock is changed from closing to opening, the intelligent home in a room is controlled according to the stress state of the intelligent door lock, and the intelligent home in the room is started under the condition that the external pressure is detected when the intelligent door lock is opened; and under the condition that the pressure of the inner side is detected when the intelligent door lock is opened, controlling the intelligent home in the house according to the stress state of the intelligent door lock when the intelligent door lock is changed from opening to closing.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 4 is a diagram illustrating the structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present application also provide a storage medium. Optionally, in this embodiment, the storage medium may be configured to execute a program code of a control method of a smart home.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
under the condition that the opening and closing state of the intelligent door lock changes, acquiring the stress state of the intelligent door lock; and controlling the intelligent home in the house according to the stress state of the intelligent door lock.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
when the state of the intelligent door lock is changed from closing to opening, the intelligent home in a room is controlled according to the stress state of the intelligent door lock, and the intelligent home in the room is started under the condition that the external pressure is detected when the intelligent door lock is opened; and under the condition that the pressure of the inner side is detected when the intelligent door lock is opened, controlling the intelligent home in the house according to the stress state of the intelligent door lock when the intelligent door lock is changed from opening to closing.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.