CN109725541B - Automatic generation method and device, electronic equipment and storage medium - Google Patents

Automatic generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109725541B
CN109725541B CN201811520855.1A CN201811520855A CN109725541B CN 109725541 B CN109725541 B CN 109725541B CN 201811520855 A CN201811520855 A CN 201811520855A CN 109725541 B CN109725541 B CN 109725541B
Authority
CN
China
Prior art keywords
automation
automatic
scheme
current scene
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811520855.1A
Other languages
Chinese (zh)
Other versions
CN109725541A (en
Inventor
邓婷
游延筠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN201811520855.1A priority Critical patent/CN109725541B/en
Publication of CN109725541A publication Critical patent/CN109725541A/en
Application granted granted Critical
Publication of CN109725541B publication Critical patent/CN109725541B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses an automatic generation method, an automatic generation device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring an automatic template, wherein the automatic template comprises at least one automatic scheme; matching an automation scheme in the automation template with the current scene to obtain an automation scheme meeting preset matching conditions; and automatically configuring an automatic scheme meeting preset matching conditions in the current scene. According to the method and the system, automatic configuration of an automatic scheme is realized through scene matching, the use threshold of a user is greatly reduced, automatic application can be rapidly popularized, and the user can easily configure and use the smart home.

Description

Automatic generation method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of smart home technologies, and in particular, to an automated generation method and apparatus, an electronic device, and a storage medium.
Background
The key point of the intelligent home is automation, namely, various phenomena in the home are automatically processed and various devices are configured according to an automation scheme. The automatic scheme is that if the current home scene meets a specific condition, a specific operation is executed. For example, if someone passes by, the light is turned on. If the temperature is higher than 30 ℃, the air conditioner is started. However, in the prior art, the configuration efficiency of the automation scheme is low, and the use threshold of the user during configuration is high.
Disclosure of Invention
In view of the foregoing, the present application provides an automated generation method, an automated generation device, an electronic device, and a storage medium, which can reduce a user usage threshold and improve configuration efficiency.
In a first aspect, an embodiment of the present application provides an automated generation method, where the method includes: acquiring an automatic template, wherein the automatic template comprises at least one automatic scheme; matching an automation scheme in the automation template with the current scene to obtain an automation scheme meeting preset matching conditions; and automatically configuring an automatic scheme meeting preset matching conditions in the current scene.
In a second aspect, an embodiment of the present application provides an automated generation apparatus, including: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an automatic template which comprises at least one automatic scheme; the matching module is used for matching the automation scheme in the automation template with the current scene to obtain the automation scheme meeting the preset matching condition; and the generation module is used for automatically configuring an automatic scheme meeting the preset matching condition in the current scene.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes: a memory; one or more processors coupled with the memory; one or more programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the above-described methods.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which program codes are stored, and the program codes can be called by a processor to execute the method according to the first aspect.
According to the automatic generation method and device, the electronic device and the storage medium, the automatic template is obtained firstly, the automatic template comprises at least one automatic scheme, then the automatic scheme in the automatic template is matched with the current scene, the automatic scheme meeting the preset matching condition is obtained, and finally the automatic scheme meeting the preset matching condition is automatically configured in the current scene. According to the method and the system, automatic configuration of an automatic scheme is realized through scene matching, the threshold of configuration automation is greatly reduced, the configuration efficiency is improved, automatic application can be rapidly popularized, and a user can easily configure and use the smart home.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic diagram of an application environment suitable for the embodiment of the present application.
FIG. 2 shows a flow diagram of an automated generation method according to one embodiment of the present application.
Fig. 3 shows a schematic flow diagram of an automated generation method according to another embodiment of the present application.
Fig. 4 shows a schematic flow diagram of steps S310 to S330 in an automated generation method according to another embodiment of the present application.
FIG. 5 illustrates a block diagram of modules of an automated generation apparatus according to one embodiment of the present application.
Fig. 6 is a block diagram of an electronic device for executing an automated generation method according to an embodiment of the present application.
Fig. 7 is a storage unit for storing or carrying program code implementing an automated generation method according to an embodiment of the present application.
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. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
At present, smart homes are more and more households, a user can purchase home equipment according to the needs of the user, remote control, linkage control and other automatic configuration of the home equipment are achieved through the internet of things technology, in the existing smart home scene, the user can control the home equipment or set an automatic scheme for running of the home equipment through an application program on a mobile phone terminal, the automatic scheme refers to linkage application built between a gateway or sub-equipment connected to the gateway, the automatic scheme comprises a triggering condition and an executing action, equipment in the automatic scheme comprises the triggering equipment and controlled equipment which are in communication connection, and when the triggering equipment meets the triggering condition, the controlled equipment executes the corresponding executing action. When the current home scene meets a specific condition, a specific operation is executed, for example, a user pushes a door open, and then a light is turned on.
In the prior art, after a user configures an automation scheme for one set of equipment according to the above operations, if other equipment needs to be configured with the same automation, the user often needs to select other equipment for manual setting, and although some prior arts can select the set automation scheme to configure other equipment, the user also needs to select corresponding trigger equipment and controlled equipment by himself, so that the operation is complex and the steps are complex, the configuration efficiency is low, and the use threshold of the user is high.
Based on the above problems, the inventor has found that after a series of researches are performed on the existing automatic generation method for smart home, most of the existing smart home technologies require a user to manually configure an automatic scheme, and when a plurality of sets of devices need to be configured, the existing technologies are generally configured with low efficiency, so that how to reduce the use threshold of the user and improve the configuration efficiency is very urgent and important.
In the research process, the inventor researches the difficulty of automatic configuration in the current smart home, and comprehensively considers the requirements of users in practical application, and provides an automatic generation method, an automatic generation device, electronic equipment and a storage medium in the embodiment of the application.
An application environment to which the present application relates will be described below.
Referring to fig. 1, fig. 1 is a schematic diagram of an application environment suitable for the embodiment of the present application. The automated generation method provided by the embodiment of the application can be applied to the smart home environment 100 shown in fig. 1. The smart home environment 100 includes a gateway 110, a server 120, and an electronic device 130. The server 200 may be a traditional server or a cloud server, which is not limited herein. The number of the gateways 110 is at least one, wherein the servers 120 are respectively connected with the at least one gateway 110, for example, the server 200 may be respectively connected with the at least one gateway 110 in a communication manner through a wireless network based on a router to perform data interaction between the servers 120 and the gateways 110.
Further, in the smart home environment 100, an electronic device 130 may be further included, wherein the electronic device 130 may include, but is not limited to, a door and window sensor, a smart switch, a lamp, an air conditioner, a curtain, a television, a refrigerator, and a fan. The number of the electronic devices 130 is at least one, and the at least one electronic device 130 is respectively connected to at least one gateway 110, for example, one gateway 110 is connected to multiple electronic devices 130, or multiple gateways 110 are connected to one electronic device 130, which is not limited herein. The gateway 110 and the electronic device 130 may be connected through bluetooth, WiFi, or ZigBee.
Further, in the intelligent control system 10, a mobile terminal 140 may be further included, where the mobile terminal 140 is connected to the gateway 110 through a wireless network, and the mobile terminal may include a personal computer, a smart phone, a tablet computer, a wearable electronic device, and the like, which are not limited herein. As a way, the mobile terminal 140 is used for interaction with a user, so that the user can wirelessly communicate with the gateway 110 through the mobile terminal 140 based on a router. In addition, the user can add an account information at the same time between the gateway 110 and the mobile terminal 140, and the information synchronization between the gateway 110 and the mobile terminal 140 is realized through the account information.
Specifically, the smart home environment 100 may execute a scenario, for example, the electronic device 130 may include a door and window sensor, an intelligent switch, and a lamp, and if an automation scheme "door and window are opened and then light is turned on" needs to be implemented, where the triggering condition is "door and window are opened", the execution action is "light on", based on the automation scheme, the triggering device is the door and window sensor, and the controlled device is an intelligent switch, where the intelligent switch is connected to the lamp. The automation scheme may be stored locally in the gateway 110, or may be stored in the server 120, and the path for executing the automation linkage may be through a local area network or a wide area network, where:
if the automatic execution is performed locally on the gateway 110 through the local area network path, the door and window sensor senses that the door and window is opened, the door and window opening event is reported to the gateway 110, after the gateway 110 receives the event, the electronic device corresponding to the execution action in the automation scheme is found according to the stored automation scheme, in this embodiment, the intelligent switch is notified to control the lighting, and therefore the automatic linkage of the lighting when the door and window is opened is realized.
If through the wide area network route, carry out automated execution at server 120, the door and window sensor senses that door and window is opened, report the event that door and window was opened to gateway 110, after gateway 110 received this event, report this event to server 120, server 120 finds the electronic equipment that corresponds with the execution action in this automation scheme according to the automation scheme of storage, be intelligent switch in this embodiment to inform intelligent switch control through gateway 110 and turn on the light, thereby realize that door and window opens then the automatic linkage of turning on the light.
Further, after the light is turned on, the execution result of the successful light-on may be fed back to the gateway 110, and after the gateway 110 receives the information, the current time, the automation scheme, and the execution result of the automation scheme are reported to the server 120 and stored by the server 120.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, an automated generation method is provided in the present embodiment. As will be explained in detail below with respect to the flow shown in fig. 2, the above-mentioned automated generation method may specifically include the following steps:
step S110: an automation template is obtained, the automation template including at least one automation scenario.
In this embodiment, automation refers to a linkage application built between a gateway or a sub-device connected to the gateway, and an automation scheme refers to an automation scheme, where the automation scheme includes a trigger condition and an execution action, and a device in the automation scheme includes a trigger device and a controlled device, which may be in communication connection through the gateway.
The trigger device can be various sensors such as a pressure sensor, a temperature sensor, a humidity sensor, a door and window sensor or a smoke sensor, and the controlled device can be a switch, a socket, a lamp, an infrared emitting device or a camera device. And when the trigger equipment meets the trigger condition, the gateway controls the controlled equipment to execute corresponding execution action. When the current home scene meets a specific condition, a specific operation is executed, for example, a user pushes a door open, and then a light is turned on.
In some embodiments, the automation scheme includes device information of the trigger device and the controlled device, and specifically, the device information may include an attribute identifier or an event identifier of the device, where the attribute identifier refers to an attribute or a state of the device itself, for example, attributes such as temperature and humidity of a temperature and humidity sensor, and states such as on and off states of a light, and the event identifier refers to a trigger action describing that an operation state of the device is changed, for example, a trigger action such as a single click, a double click, a long press, a short press, and the like of a switch.
It should be noted that the triggering device and the controlled device may be the same device, for example, the intelligent switch may be the triggering device and the controlled device at the same time, a temperature sensor is provided in the intelligent switch, and when the temperature detected by the intelligent switch is higher than a preset temperature, the intelligent switch is triggered to control the air conditioner to be turned on. It is understood that the triggering device for detecting whether the triggering condition is met is an intelligent switch, as is the controlled device for performing the corresponding execution action. The implementation principle of other similar devices is substantially the same as that of the aforementioned intelligent switch, and therefore, the description is not repeated herein, and the intelligent switch is taken as an example here for convenience of description, and does not limit the present solution.
In a specific application scenario, for example, the user sets an automatic scheme "open the door and then turn on the light", the triggering condition of the scheme is to open the door, the execution action is to control the light to be turned on by the intelligent switch, specifically, the triggering device is a door and window sensor, the intelligent switch connected to the light is a controlled device, and the light and the intelligent switch can be connected and communicated in a wired or wireless manner. At this moment, when the door and window sensor senses that the door is opened, the door and window sensor reports the event to the gateway, and after the gateway receives the event that the door and window is opened, the gateway informs the controlled device in the automation scheme of executing the execution action contained in the scheme according to the preset automation scheme.
In this embodiment, the automation template includes at least one automation scheme, that is, an automation template may be formed by packaging at least one automation scheme, the automation template may include all information of the automation scheme, such as trigger device, trigger condition, controlled device, execution action, device information of the trigger device and the controlled device, and in some embodiments, the automation template further includes a set time of the automation scheme and a list ID, where the set time is a set-up time of the automation scheme, and the list ID is used to distinguish each different automation scheme, and specifically, the automation template may be stored in the system in the form of an automation list as shown in table 1. The set time may be coordinated Universal Time (UTC), and UTC1, … …, utcN in table 1 indicates the set time of the automation scheme. It is understood that, in other embodiments, the set time may also be Greenwich Mean Time (GMT), local time, and the like, which is not limited herein.
TABLE 1
List ID Setting time Trigger device Trigger condition Controlled device Performing an action
1 utc1 Device A Condition 1 Device B Action 1
2 utc2 Device C Condition 2 Device D Action 2
... ... ... ... ... ...
N utcN ... ... ... ...
Step S120: and matching the automation scheme in the automation template with the current scene to obtain the automation scheme meeting the preset matching condition.
The current scene may be a current room or a current house including the current room, and the current scene includes at least one piece of device information.
In some embodiments, the matching of the automation scheme in the automation template with the current scene may be performed by matching device information of the automation scheme with device information included in the current scene, and when the device information of the trigger device and the controlled device of one automation scheme is matched with the device information included in the current scene, a preset matching condition is satisfied, and an automation scheme satisfying the preset matching condition may be obtained. Specifically, if the device information identical to the device information of the trigger device of the automation scheme can be matched in the current scene, and meanwhile, the device information identical to the device information of the controlled device of the automation scheme can be matched, at this time, the automation scheme meets the preset matching condition, and the automation scheme can be obtained.
In a specific application scenario, for example, an automation scheme including "open door then light on" is included in the automation template, the triggering condition of the scheme is to open the door, the execution action is to control the lamp to open by the intelligent switch, specifically, the triggering device is a door and window sensor, the intelligent switch connected to the lamp is a controlled device, and the lamp and the intelligent switch can be connected and communicated in a wired or wireless manner. At the moment, the current scene comprises a door and window sensor, an intelligent switch and a lamp, the equipment information corresponding to the door and window sensor is in a door opening or door closing state, the equipment information corresponding to the lamp is in a lamp opening or lamp closing state, and is consistent with the equipment information of the triggering equipment and the controlled equipment of the automatic scheme, and the automatic scheme meets the preset matching condition and is obtained.
Step S130: and automatically configuring an automatic scheme meeting preset matching conditions in the current scene.
In this embodiment, after the automation scheme meeting the preset matching condition is obtained, the automation scheme meeting the preset matching condition is automatically configured in the current scene.
In some embodiments, by matching the device information of the automation scenario with the device information included in the current scenario, when the device information of the trigger device and the controlled device of an automation scenario is included in the device information included in the current scenario, the automation scenario is considered to satisfy the preset matching condition.
It should be noted that, when the device information corresponding to the automation scheme is included in the device information of the smart device in the current scenario, the automation scheme may be considered to be matched with the device information in the current scenario. It can be understood that, in the present embodiment, the automation scheme matching the current scenario is not limited to the case where the device information of the automation scheme is completely consistent with the device information of the current scenario. Therefore, the application range of the automatic template can be expanded, the possibility of matching the automatic scheme with the current scene is improved, the automatic template can be conveniently applied to multiple scenes by a user, and the automatic application is popularized.
At this time, the device matching the current scene with the trigger device of the automation scheme is configured as the trigger device executing the automation scheme in the current scene, and the device matching the current scene with the controlled device of the automation scheme is configured as the controlled device executing the automation scheme in the current scene, so that the automation scheme meeting the preset matching condition is automatically configured in the current scene. Therefore, automatic configuration of an automatic scheme is realized through scene matching, the threshold of configuration automation is greatly reduced, the configuration efficiency is improved, automatic application can be rapidly popularized, and a user can easily configure and use the smart home.
Specifically, for example, the automatic template is obtained to include the device a, the device B, the device C, and the device D, and the current scene includes the device E, the device F, the device G, and the device H that are in one-to-one correspondence with the device a, the device B, the device C, and the device D. At this time, the device E, the device F, the device G, and the device H may be configured as a trigger device and a controlled device of one automation scheme in the current scenario, and a trigger device and a controlled device of another automation scheme, as shown in table 2.
TABLE 2
List ID Setting time Trigger device Trigger condition Controlled device Performing an action
1 utc1 Device A Condition 1 Device B Action 1
2 utc2 Device C Condition 2 Device D Action 2
3 utc3 Device E Condition 1 Apparatus F Action 1
4 utc3 Device G Condition 2 Plant H Action 2
In a specific application scenario, for example, a user acquires an automation template, where the automation template includes an automation scheme K of "open door and light on", where the trigger condition of the scheme is to open door and perform an action as turning on a light, specifically, the trigger device is a door and window sensor a1, the controlled device is a light a2, where the device information corresponding to the door and window sensor a1 is a state where a door and a window are opened or closed, and the device information corresponding to the light a2 is a state where a light is opened or closed. At this time, the current scene includes the door and window sensor B1 and the lamp B2, the device information corresponding to the door and window sensor B1 is a door and window opening or closing state, the device information corresponding to the lamp B2 is a lamp opening or closing state, and is matched with the device information of the triggering device and the controlled device of the automation scheme, and at this time, the automation scheme meets a preset matching condition, the automation scheme is obtained, the door and window sensor B1 is configured as the triggering device of the automation scheme K in the current scene, and the lamp B2 is configured as the controlled device of the automation scheme K, so that the door and window sensor B1 and the lamp B2 in the current scene can execute the automation scheme K, and "open the door and turn on the light" in the current scene is realized.
In some embodiments, when there are smart devices in the current scenario that correspond to the device information included in the automation template one to one, the automation schemes of the automation template may all be configured in the current scenario. When only the device information included in a part of the automation schemes in the automation template exists in the current scene, that is, another part of the automation schemes cannot be matched in the current scene, the other part of the automation schemes can be selected not to be configured, and only the part of the automation schemes which can be matched with the current scene is configured. Therefore, the threshold of creating automation can be greatly reduced, the situation that the whole automation template cannot be configured in the current scene because part of automation schemes in the automation template cannot be matched with the current scene is avoided, and the automation application can be rapidly popularized.
Specifically, for example, the automation template includes two automation schemes, where the first automation scheme relates to device a, device B, and the second automation scheme relates to device C and device D, and in the current scenario, only three devices, i.e., device E, device F and device G, are included, and the device information is the same as the device information of device a, device B and device C, respectively, at this time, the first automation scheme for designing device a and device B may be configured in the current scenario, i.e., the third automation scheme is created, and the triggering device is configured as device E, the controlled device is F, and the second automation scheme for designing device C and device D is not configured, as shown in table 3. Therefore, the threshold for establishing automation can be greatly reduced, and the application of automation can be rapidly popularized.
TABLE 3
List ID Setting time Trigger device Trigger condition Controlled device Performing an action
1 utc1 Device A Condition 1 Device B Action 1
2 utc2 Device C Condition 2 Device D Action 2
3 utc3 Device E Condition 1 Apparatus F Action 1
In this embodiment, after the automatic scheme is configured in the current scene, the configured automatic scheme may be added to an automatic list corresponding to the current scene, where the automatic list may be stored in the user terminal, the gateway, or the cloud. Step S120 and step S130 may be executed in the user terminal, may be executed in the cloud, and may also be executed in the gateway.
As one mode, steps S120 and S130 are executed at the user terminal, and the user terminal performs matching and configuration according to a locally stored automation list or requests the automation list from the cloud or the gateway, so as to obtain an updated automation list, and after configuring the automation scheme, sends the updated automation list to at least one of the cloud and the gateway for storage. Therefore, the automatic template can be used for quickly establishing and automatically configuring the current scene at the user terminal, the configuration efficiency is improved, the influence of network connection is reduced, and the matching and automatic configuration can be normally finished under the condition of poor network.
As another mode, the steps S120 and S130 are performed at the cloud, when the automation template needs to be applied, the user sends an application instruction to the cloud through the user terminal, matching and configuration are performed at the cloud, an updated automation list is obtained, and after the automation scheme is configured, the updated automation list is sent to at least one of the user terminal and the gateway for storage. Therefore, the processing memory of the user terminal is not occupied, and the configuration efficiency is improved.
As another mode, steps S120 and S130 are executed at the gateway, and when the automation template needs to be applied mechanically, the user sends an application instruction to the gateway through the user terminal, performs matching and configuration at the gateway to obtain an updated automation list, and after configuring the automation scheme, sends the updated automation list to at least one of the user terminal and the cloud for storage. Therefore, after the gateway executes matching and configuration, the automation scheme in the automation list can be directly executed, the automation list sent by the user terminal or the cloud end does not need to be waited for receiving, and the automation realization efficiency is improved.
The automatic generation method provided by this embodiment obtains an automatic template including at least one automatic scheme, matches the automatic scheme in the automatic template with a current scene to obtain an automatic scheme meeting a preset matching condition, and automatically configures the automatic scheme meeting the preset matching condition in the current scene. According to the method and the system, automatic configuration of an automatic scheme is realized through scene matching, the threshold of configuration automation is greatly reduced, the configuration efficiency is improved, automatic application can be rapidly popularized, and a user can easily configure and use the smart home.
Referring to fig. 3, another embodiment of the present application provides an automated generation method. As will be explained in detail below with respect to the flow shown in fig. 3, the above-mentioned automated generation method may specifically include the following steps:
step S201: an automation template is obtained, the automation template including at least one automation scenario.
In this embodiment, the detailed description of step S201 may refer to step S110, and is not repeated herein.
Step S202: and acquiring the equipment information of the intelligent equipment in the current scene.
In this embodiment, device information of a smart device in a current scene is obtained, where the current scene includes at least one smart device, and the device information of the smart device may include an attribute identifier or an event identifier of the device, where the attribute identifier refers to an attribute or a state of the device itself, such as an attribute of temperature and humidity of a temperature and humidity sensor, and a state of turning on and off a light, and the event identifier refers to a trigger action that describes a change of an operating state of the device, such as a single-click, a double-click, a long-press, and a short-press trigger action of a switch.
In this embodiment, the current scene may be a current room or a current house including the current room, and the current scene includes at least one piece of device information. The current scene can be within a preset range of the system, or within a user-defined range, specifically, the current scene can be selected as a current room, or a house containing the current room, and it can be understood that the user can select a scene range to be acquired by himself to meet the use requirements of different scenes.
In a specific application scenario, a user may select a current scene as a current room, and then the user may obtain information of the current room to perform configuration or other operations, specifically, obtain equipment information of existing equipment in the current room, for example, equipment such as a lamp and a sound box in the current room, and obtain equipment information of the lamp and the sound box in the current room, for example, the equipment information of the lamp includes a state that the lamp is turned on or off, and the equipment information of the sound box includes a state that the sound box is turned on or off, and a state that the volume is increased or decreased, so that a foundation may be laid for applying an automatic template in the current scene.
Step S203: and judging whether the equipment information corresponding to at least one automation scheme is matched with part or all of the equipment information of the current scene.
Step S204: and when the equipment information corresponding to at least one automation scheme is matched with part or all of the equipment information of the current scene, taking the automation scheme matched with the current scene as the automation scheme meeting the preset matching condition.
In this embodiment, the device information corresponding to the automation scheme includes device information of the trigger device and the controlled device, and when the device information of the trigger device and the controlled device of one automation scheme includes the device information included in the current scene, the automation scheme is considered to satisfy the preset matching condition. Wherein the device information comprises an attribute identification or an event identification.
It should be noted that, when the device information corresponding to the automation scheme is included in the device information of the smart device in the current scenario, the automation scheme may be considered to be matched with the device information in the current scenario. It can be understood that, in the present embodiment, the automation scheme matching the current scenario is not limited to the case where the device information of the automation scheme is completely consistent with the device information of the current scenario. Therefore, the application range of the automatic template can be expanded, the possibility of matching the automatic scheme with the current scene is improved, and the automatic template can be conveniently applied to multiple scenes by a user to popularize and apply the automation.
For example, the acquired automation template includes an automation scheme K of "turn on light when door is opened", the triggering device of the automation scheme K is the door and window sensor a1, the triggering condition is "open door", the controlled device is the lamp a2, and the execution action is "turn on light", where the device information of the door and window sensor a1 is the state of opening or closing door, and the device information of the lamp a2 is the state of turning on light or turning off light. At this time, if the smart device in the current scene includes the door/window sensor B1 and the lamp B2, where the device information corresponding to the door/window sensor B1 is the state of opening or closing a door/window, the device information corresponding to the lamp B2 includes the state of opening or closing a lamp and the brightness of the lamp is increased or decreased, at this time, the device information corresponding to the door/window sensor a1 is identical to the device information corresponding to the door/window sensor B1, and the device information corresponding to the lamp a2 is not completely identical to the device information of the lamp B2, but the device information corresponding to the lamp a2 is included in the device information of the lamp B2, that is, the device information corresponding to the automation scheme K is included in the device information in the current scene, at this time, it may be considered that the automation scheme K is matched with part or all of the device information in the current scene, at this time, there is at least one piece of device information corresponding to the automation scheme that is matched with part or all of the device information in the current scene, and taking the automation scheme matched with the current scene as the automation scheme meeting the preset matching condition.
In this embodiment, the current scenario may include only the smart device that matches the device information of the trigger device and the controlled device corresponding to the automation scheme, or may include other smart devices other than the aforementioned matched smart device, which is not limited herein. It can be understood that, as long as the device information of the intelligent device in the current scene matches with the device information of the trigger device and the controlled device of the automation scheme, it is considered that the device information corresponding to at least one automation scheme matches with part or all of the device information of the current scene.
Further, when the device information corresponding to at least one automation scheme is matched with part or all of the device information of the current scene, the automation scheme matched with the current scene is used as the automation scheme meeting the preset matching condition.
Step S205: and judging whether a plurality of identical equipment information exist in the current scene and the automatic scheme meeting the preset matching condition is matched.
In this embodiment, in the current scenario, there may be one or more pieces of device information that is matched with the automation scheme that meets the preset matching condition, that is, there may be matching between the device information of multiple identical intelligent devices and the device information of the automation scheme in the current scenario, specifically, there may be matching between the multiple identical pieces of device information and the device information of the trigger device in the automation scheme, or there may be matching between the multiple identical pieces of device information and the device information of the controlled device in the automation scheme, or there may be matching between the multiple identical pieces of device information and both the device information of the trigger device and the controlled device in the automation scheme.
Specifically, for example, corresponding to the device a in the automation scheme, in the current scene, there is a match between the device E, the device I, and the device J and the device a, that is, the device information of the device E, the device I, and the device J all includes the device information of the device a, and at this time, in the current scene, there are a plurality of same device information matched with the automation scheme that meets the preset matching condition.
It should be noted that, in this embodiment, the same device information may be completely the same or partially the same, for example, the device information corresponding to the two intelligent devices included in the current scene is not completely the same, but both include device information consistent with the device information in the automation scheme, specifically, for example, both the device E and the device I include device information a consistent with the device a in the automation scheme, meanwhile, the device E may further include other device information such as device information E, the device I may also include other device information such as device information I, and the device information E may be different from the device information I, at this time, it may still be considered that the same device information exists between the device E and the device I in the current scene and the automation scheme meeting the preset matching condition is matched. It can be understood that, as long as the device information of a plurality of intelligent devices in the current scene may include the device information of the automation scheme, it is considered that a plurality of same device information in the current scene matches the automation scheme that satisfies the preset matching condition.
In this embodiment, when there are a plurality of pieces of same device information matching the automation scheme satisfying the preset matching condition in the current scenario, step S206a may be executed, or step S206b may also be executed.
Step S206 a: when the plurality of identical device information are matched with the automation scheme meeting the preset matching condition in the current scene, the plurality of identical device information are subjected to priority sequencing according to a preset rule.
The preset rules can be according to the time sequence or the matching degree of the device information, the specific rules are not limited herein, can be preset by a system, and can also be customized according to the user requirements, so that the use requirements of the user in different scenes can be met. For example, the old devices can be configured with automation in a chronological order, so that the old devices can start implementing the automation scheme in the automation template. And then, according to the matching degree of the equipment information, the intelligent equipment with the highest matching degree of the equipment information is prioritized, so that the automatic adaptation degree is improved, errors caused by the fact that the equipment is not adapted during the configuration automation are reduced, the success rate of the automatic configuration by using the automatic template is ensured, and the system availability is improved. And automatic creation can be performed after priority sorting according to a preset rule, so that automatic configuration can be performed quickly, and the configuration efficiency is improved.
As a mode, when there is a plurality of pieces of identical device information matching the automation scheme satisfying the preset matching condition in the current scene, the plurality of pieces of identical device information may be prioritized according to the time order of device joining. Specifically, when the intelligent device in the current scene joins the gateway, the joining time of the intelligent device is stored in at least one of the gateway and the mobile terminal, the joining times of the multiple intelligent devices corresponding to the multiple identical device information are obtained, and priority ordering can be performed according to the sequence of the joining times, for example, the intelligent device which is joined first is prioritized, and the intelligent devices which are joined later are sequentially ordered according to the sequence of time. Therefore, subsequent operations can be performed according to the joining time sequence of the equipment, for example, old equipment can be preferentially configured for automation, and the old equipment can be preferentially started to realize an automation scheme in an automation template.
In a specific scene, such as an office space, priority sequencing is carried out on a plurality of same pieces of equipment information according to the time sequence of equipment addition, so that old equipment added in the same batch can be automatically configured, and because the same batch of equipment is probably purchased by the same batch of specific working people and has similar working habits, priority sequencing is carried out according to the time sequence of equipment addition, so that an automation scheme meeting the same working habit can be automatically and quickly configured on the same batch of equipment, the configuration efficiency is greatly improved while the use requirement is met, the method and the device are suitable for the condition that a user has no specific requirement on equipment configuring the automation scheme, the method and the device are also suitable for a large number of scenes of configurations and automatic creation, the use threshold of the user can be greatly reduced through automatic creation, and the automatic rapid popularization is realized.
Step S207 a: and automatically configuring an automatic scheme meeting preset matching conditions in the current scene based on the priority of the equipment information.
In this embodiment, based on the priority of the device information, an automation scheme meeting a preset matching condition is preferentially configured for the intelligent device with a higher priority in the current scene. Specifically, for example, when the priority of the plurality of identical pieces of device information is sorted according to the time sequence of device joining, an automation scheme may be automatically configured for the device joining first. The specific configuration method may refer to step S130.
In a specific application scenario, when a plurality of pieces of identical device information are matched with an automation scheme meeting a preset matching condition in a current scenario, priority ordering is performed on the plurality of pieces of identical device information according to a time sequence of device joining, for example, in the current scenario, an intelligent device matched with a device a meeting the automation scheme meeting the preset matching condition includes a device E, a device I and a device J, wherein the device a is a trigger device of the automation scheme, the priority ordering is obtained according to the time sequence of device joining, the device E, the device J and the device I are sequentially from first to last, and at this time, based on the priority, the device E is automatically configured as a trigger device corresponding to the automation scheme in the current scenario. Therefore, the method can carry out rapid creation automation according to the time sequence of equipment addition, is suitable for users and scenes without specific requirements on equipment for realizing an automation scheme, is suitable for large-batch configuration creation automation, and greatly improves configuration efficiency.
In some embodiments, after the automation scheme meeting the preset matching condition is automatically configured for the previously added device, the user may be further prompted whether to configure other intelligent devices matched with the automation scheme meeting the preset matching condition. Therefore, on the basis of rapid creation and configuration automation according to the time sequence, the user can continue to configure the intelligent equipment to be configured, the configuration efficiency is improved, and meanwhile, the use requirement of the user can be met.
In this embodiment, when there are a plurality of pieces of same device information matching the automation scheme satisfying the preset matching condition in the current scenario, step S206b may be executed.
Step S206 b: and when a plurality of same pieces of equipment information exist in the current scene and the automatic scheme meeting the preset matching conditions is matched, generating selection prompt information.
The selection prompt information is used for prompting the selection of the equipment information which needs to be automatically configured in the same equipment information.
Step S207 b: and acquiring a selection instruction, and automatically configuring an automatic scheme meeting a preset matching condition in the current scene according to the selection instruction.
In this embodiment, when a plurality of pieces of same device information are matched with an automation scheme meeting a preset matching condition in a current scene, selection prompt information may be generated to prompt a user to further confirm an intelligent device that needs to be automatically configured by applying the automation scheme in the automation template, so that automatic configuration is performed according to the selection of the user, and the user may configure the automation of the current scene according to the self-demand.
Step S208: and adding an automatic configuration label to the automatic scheme automatically configured in the current scene.
The automatic configuration label is used for marking that an automatic scheme is automatically configured in the current scene through an automatic template, so that the automatic configuration label is added to the automatic scheme automatically configured in the current scene, and the automatic scheme can be represented as being automatically configured in the current scene through the automatic template instead of being set manually, so that a user can distinguish or judge the reason of the fault or the abnormity of the intelligent equipment. Specifically, when the abnormal intelligent device is provided with the automatic configuration tag, the user can judge that the abnormal reason of the intelligent device is probably caused by improper configuration with an automatic configuration automatic scheme, so that the problem can be preferentially checked, and then whether the abnormal reason is caused by the device per se is judged, so that the efficiency of checking the problem and overhauling the device is improved.
In the present embodiment, after step S208, step S209 may be executed, and step S211 may also be executed.
Step S209: and acquiring a custom editing instruction.
In this embodiment, after the automatic configuration of the automation scheme meeting the preset matching condition, a custom editing instruction may be obtained for custom editing the automation scheme configured in the current scene. It should be noted that the custom editing may be executed immediately after the automatic configuration, or the custom editing may be performed on the automatic scheme by obtaining a custom editing instruction after the automatic scheme has been used for a period of time in the current scene, so that the user may edit and modify the automatic scheme as needed according to the experience after a period of time, thereby implementing flexible configuration of the automatic scheme, satisfying the user use requirement, and improving the user experience.
In some embodiments, before an automation scheme meeting a preset matching condition is automatically configured, a custom editing instruction can be obtained, so that the automation scheme can be edited and modified according to user requirements before the automation scheme is configured, the edited automation scheme can meet the use requirement, and the current scene is better adapted.
Step S210: and editing the configured automation scheme of the current scene according to the custom editing instruction, and deleting the automatic configuration tag of the custom-edited automation scheme.
The automatic configuration label of the automatic scheme which is edited by the user-defined mode is deleted, so that the automatic scheme is represented to be set manually, and is not generated by directly applying the automatic scheme configuration of the automatic template, the reason caused by the configuration is not needed to be considered when a user checks the reason of the abnormity, and the abnormity processing efficiency is improved.
Specifically, for example, in the current scene, the automation scheme K is configured to "turn on light when opening the door", the automation scheme K may be edited as "turn on light when opening the door and turn on the air conditioner" according to the custom editing instruction, at this time, the auto configuration tag of the automation scheme K subjected to the custom editing is deleted, and the air conditioner in the current scene is configured as the controlled device of the automation scheme K subjected to the custom editing, so that the automation function of the automation scheme K subjected to the custom editing may be implemented in the current scene.
In the embodiment, the automatic scheme can be more adaptive to the current scene or more meet the requirements of the user through the user-defined editing, so that the user can obtain reference from the obtained automatic template, the application range of the automatic template is expanded, the requirements of more users can be met, the user can edit and generate more automatic templates, the selectable automatic templates of the user are continuously expanded through sharing, and a more intelligent virtuous circle of the smart home is formed.
Step S211: and generating a new automation template based on the configured automation scheme of the current scene, and storing the new automation template in the current account.
The automatic scheme configured in the current scene may be edited without self-definition or edited with self-definition.
In this embodiment, a new automation template is generated based on the automation scheme configured in the current scenario, and the new automation template is stored in the current account. Specifically, one or more of the configured automation schemes of the current scenario may be selected, one or more of the configured automation schemes may be packaged to generate a new automation template, and the new automation template may be stored in the current account. The user can select an automation scheme to package into the automation template according to the requirement, flexible management of the automation scheme is achieved, the automation template can be shared by other users, the other users can apply the automation template of the current user, and the automation function in the automation template of the current user can be achieved in other scenes.
Specifically, for example, an automation scheme K1, and an automation scheme K2 have been configured in the current scene, and the current user may package the automation scheme K and the automation scheme K1 to generate an automation template K0, and store the automation template K0 in the current account of the current user.
And step S212, acquiring an account sharing instruction.
In this embodiment, the account sharing instruction is used to share the automation template stored in the current account with another account or upload the automation template to the cloud. Therefore, other users can apply the automatic template of the current user by sharing the automatic template, and the automatic function in the automatic template of the current user is realized in other scenes. Therefore, the automatic template which can be selected for use is continuously expanded, the existing automatic template can be used for reference and applied between users or among users, more and more applicable automation is provided for the intelligent home scene where the users are located, the automation function is realized on more devices, and the rapid popularization and the automatic application are facilitated.
As a manner, the user may send the automation template stored in the current account to other users by means of account sharing, for example, the user Y1 sends the automation template to the user Y2 by means of account sharing, so that the automation template may be obtained by the account of the user Y2, and may be configured, stored, and the like.
As another way, the user may also upload the automation template to the cloud for downloading by other users, so that other users may download the automation template to their own account. Specifically, the user can upload the automatic template to an official website of a corresponding product such as a gateway and intelligent equipment, and other users who purchase the product such as the gateway and the intelligent equipment can download and use the product conveniently.
In a specific application scenario, for example, an account a can select three automation schemes of "someone turns on light", "no person turns off light", and "turn off light regularly" to generate an automation template, then the automation template is sent to a user b, the user b can select to use the automation template after receiving the automation template, at this time, three automation schemes of "someone turns on light", "no person turns off light", and "turn off light regularly" can be automatically generated under the account of the user b, and the generated three automation schemes can be automatically operated, and the user b can perform custom editing on the three automation schemes, and can select any automation scheme to generate a new automation template to send to other users.
In another specific application scenario, such as an office space, automation generally needs to be set for stations, for example, different lamps are set for different stations, after an automation template is set, the corresponding relation between each lamp and each station does not need to be edited, the automation template is directly applied to the automation template, so that the automation can be conveniently generated, the automation template can be applied to selected equipment and a room, automation can be conveniently, quickly and massively configured, and the use requirements of users can be met.
Further, referring to fig. 5, fig. 5 shows a schematic flow chart of steps S310 to S330 in this embodiment, which may specifically include the following steps:
step S310: and judging whether a new device which is not automatically configured is added in the current scene.
In this embodiment, the new device that is not automatically configured may be a device that is newly added to the current account, or may be a device that is deleted in the original automation.
As a mode, the new equipment which is not automatically configured is equipment which is newly added to the current account, and the matching with the automatic template can be triggered when the equipment is newly added to the current account, so that the rapid creation and configuration automation of the new equipment are facilitated, the automatic function of the new equipment in the current scene is realized, and the quality of the intelligent home life of a user is improved.
As another mode, the new device that is not automatically configured is an original device that is automatically deleted, for example, the current scene includes a device L, the device L is a trigger device of the automation scheme K1, if the user deletes the automation scheme K1 in the current scene, the device L may be considered as a new device that is not automatically configured at this time, and meanwhile, the new device that is not automatically configured may be considered as being added to the current scene, so that the device L may be quickly reentered into the current scene to implement an automation function, and the quality of the smart home life of the user is improved. Therefore, after the automation of the equipment is deleted, the matching with the automatic template can be triggered, the reconfiguration automation of the new equipment is facilitated, and the automatic function of the new equipment in the current scene is realized.
Step S320: when new equipment which is not automatically configured is added in the current scene, matching the automation scheme in the automation template with the current scene after the new equipment is added, and acquiring the automation scheme meeting the preset matching condition.
In this embodiment, when a new device that is not automatically configured is added to the current scene, matching the automation scheme in the automation template with the current scene after the new device is added, and reference may be made to step S120 to obtain a specific description of the automation scheme that meets the preset matching condition, which is not described herein again.
Step S330: and automatically configuring an automatic scheme meeting preset matching conditions in the current scene after the new equipment is added.
In this embodiment, the detailed description of step S330 may refer to step S330, and is not repeated herein.
In this embodiment, by determining whether a new device not configured automatically is added in the current scene, when an automatic device not configured is newly added under the current account, the new device can be automatically matched with the automatic template to obtain an automatic scheme meeting the preset matching condition, and finally, the automatic scheme meeting the preset matching condition is automatically configured in the current scene. Therefore, the new equipment can be quickly created and configured automatically, so that the new equipment can quickly realize an automatic function in the current scene, and the configuration efficiency of the new equipment is improved.
The embodiment provides an automatic generation method, which includes acquiring an automatic template, matching the automatic template with equipment information of a current scene, and automatically configuring an automatic scheme meeting a preset matching condition after performing priority ranking on a plurality of same equipment information according to a preset rule when the plurality of same equipment information in the current scene is matched with the automatic scheme meeting the preset matching condition, so that a threshold for creating automation is reduced, automatic rapid configuration can be realized, and configuration efficiency is improved. By generating the selection prompt information, the user can flexibly configure the automation of the current scene according to the self requirement, errors possibly caused by configuration and creation automation can be reduced, and the fault tolerance is improved. By adding the automatic configuration label, a user can conveniently distinguish the error reasons of the equipment, and the efficiency of troubleshooting and equipment maintenance is improved. Through custom editing, the automation scheme better meets the actual requirements of users, the method is beneficial to the users to continuously expand the selectable automation templates, the users can refer to and apply more automation templates mechanically through sharing, more and more applicable automation is provided for the intelligent home scene where the users are located, the automation function is realized on more devices, and the method is beneficial to rapid popularization and automation application. In addition, the new equipment can be quickly created and configured automatically, so that the new equipment can quickly realize an automatic function in the current scene, and the configuration efficiency of the new equipment is improved.
It should be understood that although the steps in the flowcharts of fig. 2 and 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 5, fig. 5 is a block diagram illustrating an automated generation apparatus 400 according to an embodiment of the present application. As will be explained below with respect to the block diagram of modules shown in fig. 5, the automated generation apparatus 400 includes: an obtaining module 410, a matching module 420, and a generating module 430, wherein:
an obtaining module 410 is configured to obtain an automation template, the automation template including at least one automation scenario.
And the matching module 420 is configured to match the automation scheme in the automation template with the current scene, and acquire the automation scheme meeting the preset matching condition.
Further, in the present embodiment, the matching module 420 includes: the device comprises a device information acquisition unit, a matching condition judgment unit and a matching scheme determination unit, wherein:
the device information acquisition unit is used for acquiring the device information of the intelligent device in the current scene;
the matching condition judging unit is used for judging whether equipment information corresponding to at least one automation scheme is matched with part or all of the equipment information of the current scene;
and the matching scheme determining unit is used for taking the automatic scheme matched with the current scene as the automatic scheme meeting the preset matching condition when the equipment information corresponding to at least one automatic scheme is matched with part or all of the equipment information of the current scene.
And the generating module 430 is configured to automatically configure an automation scheme meeting a preset matching condition in the current scene.
Further, in the present embodiment, the generating module 430 includes: the device comprises a matching device judging unit, a device information sorting unit and a scheme automatic configuration unit, wherein:
the matching device judging unit is used for judging whether a plurality of identical device information are matched with the automation scheme meeting the preset matching condition in the current scene;
the equipment information sorting unit is used for sorting the priority of a plurality of pieces of same equipment information according to a preset rule when the plurality of pieces of same equipment information in the current scene are matched with the automation scheme meeting the preset matching condition;
and the scheme automatic configuration unit is used for automatically configuring an automatic scheme meeting the preset matching condition in the current scene based on the priority of the equipment information.
Further, the automated generation apparatus 400 further comprises: prompt information generation module, selection instruction acquisition module, label add module, edit instruction acquisition module, edit instruction processing module, new equipment judgment module, new equipment matching module, new equipment configuration module, template generation module and template sharing module, wherein:
and the prompt information generating module is used for generating selection prompt information, and the selection prompt information is used for prompting selection of equipment information which needs to be automatically configured in the same equipment information.
And the selection instruction acquisition module is used for acquiring a selection instruction and automatically configuring an automatic scheme meeting a preset matching condition in the current scene according to the selection instruction.
And the label adding module is used for adding an automatic configuration label to the automatic scheme automatically configured in the current scene.
And the editing instruction acquisition module is used for acquiring the custom editing instruction.
And the editing instruction processing module is used for editing the configured automatic scheme of the current scene according to the custom editing instruction and deleting the automatic configuration tag of the automatically edited automatic scheme.
And the new equipment judgment module is used for judging whether new equipment which is not automatically configured is added in the current scene.
And the new equipment matching module is used for matching the automation scheme in the automation template with the current scene after the new equipment is added when the new equipment which is not automatically configured is added in the current scene, so as to obtain the automation scheme meeting the preset matching condition.
And the new equipment configuration module is used for automatically configuring an automatic scheme meeting the preset matching conditions in the current scene after the new equipment is added.
And the template generating module is used for generating a new automation template based on the automation scheme configured in the current scene and storing the new automation template in the current account.
The template sharing module is used for acquiring an account sharing instruction, and the account sharing instruction is used for sharing the automatic template stored in the current account to other accounts or uploading the automatic template to the cloud.
The automatic generation device provided by the embodiment of the application acquires the automatic template, then matches the equipment information of the current scene, and automatically configures the automatic scheme meeting the preset matching condition after the priority ranking is carried out on the same equipment information according to the preset rule when the same equipment information is matched with the automatic scheme meeting the preset matching condition in the current scene, so that the automatic threshold for creating automation is reduced, the automatic rapid configuration can be realized, and the configuration efficiency is improved. By generating the selection prompt information, the user can flexibly configure the automation of the current scene according to the self requirement, errors possibly caused by configuration and creation automation can be reduced, and the fault tolerance is improved. By adding the automatic configuration label, a user can conveniently distinguish the error reasons of the equipment, and the efficiency of troubleshooting and equipment maintenance is improved. Through self-defined editing, the automation scheme is enabled to better meet the actual requirements of users, the users can expand the optionally-used automation templates continuously, the users can refer to and apply more automation templates mechanically through sharing, more and more applicable automation is provided for the smart home scene where the users are located, the automation functions are realized on more devices, and rapid popularization and automation application are facilitated. In addition, the new equipment can be quickly created and configured automatically, so that the new equipment can quickly realize an automatic function in the current scene, and the configuration efficiency of the new equipment is improved.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 6, a block diagram of an electronic device provided in an embodiment of the present application is shown. The electronic device 500 may be an electronic device capable of running an application, such as a smart phone, a tablet computer, a notebook computer, and a desktop computer. The electronic device 500 in the present application may include one or more of the following components: a processor 510, a memory 520, and one or more applications, wherein the one or more applications may be stored in the memory 520 and configured to be executed by the one or more processors 510, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 510 may include one or more processing cores. The processor 510 interfaces with various components throughout the electronic device 500 using various interfaces and circuitry to perform various functions of the electronic device 500 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 520 and invoking data stored in the memory 520. Alternatively, the processor 510 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 510 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 510, but may be implemented by a communication chip.
The Memory 520 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 520 may be used to store instructions, programs, code sets, or instruction sets. The memory 520 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The memory data area may also store data created during use by the electronic device 500 (e.g., phone books, audiovisual data, chat log data), etc.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
Referring to fig. 7, a block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. The computer-readable storage medium 600 has stored therein program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 for performing any of the method steps of the method described above. The program code can be read from and written to one or more computer program products. The program code 610 may be compressed, for example, in a suitable form.
To sum up, according to the automated generation method, the automated generation device, the electronic device, and the storage medium provided by the embodiments of the present application, the automated template is obtained first, the automated template includes at least one automated scheme, then the automated scheme in the automated template is matched with the current scene, the automated scheme meeting the preset matching condition is obtained, and finally the automated scheme meeting the preset matching condition is automatically configured in the current scene. According to the method and the system, automatic configuration of an automatic scheme is realized through scene matching, the threshold of configuration automation is greatly reduced, the configuration efficiency is improved, automatic application can be rapidly popularized, and a user can easily configure and use the smart home.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. An automated generation method, comprising:
after a preset or other account sharing automatic template is obtained, automatically matching trigger equipment and controlled equipment in each automatic scheme in the automatic template with equipment set under each subarea in a current scene; the automation template comprises at least one automation scheme, wherein the automation scheme comprises a trigger device and a corresponding trigger condition, and a controlled device and a corresponding execution action;
if at least one triggering device and controlled device in the automation scheme are matched with the device state of each device in each sub-area partially or completely, determining that the automation scheme is the automation scheme meeting the preset matching condition;
and automatically configuring the automatic schemes meeting the preset matching conditions for the sub-regions in the current scene in batches based on the matched triggering devices and controlled devices in the automatic schemes meeting the preset matching conditions, so that when the triggering devices under the sub-regions meet the triggering conditions in the automatic schemes meeting the preset matching conditions, the controlled devices under the sub-regions are controlled to execute corresponding execution actions.
2. The generation method of claim 1, wherein after the preset or other account-sharing automation template is obtained, automatically matching the trigger device and the controlled device in each automation scheme in the automation template with devices set under each sub-region in the current scene respectively comprises:
acquiring the equipment state of each equipment in the current scene;
judging whether the equipment state corresponding to at least one automation scheme is matched with the equipment state of part or all of the equipment in the current scene;
and when the equipment state corresponding to at least one automatic scheme is matched with part or all of the equipment states of the current scene, taking the automatic scheme matched with the current scene as the automatic scheme meeting the preset matching condition.
3. The generation method according to claim 2, wherein the taking of the automation scheme matching the current scene as the automation scheme satisfying a preset matching condition includes:
when the equipment states of the plurality of equipment in the current scene are matched with the equipment states corresponding to the automation scheme meeting the preset matching condition, carrying out priority sequencing on the equipment information of the plurality of equipment according to a preset rule;
and automatically configuring an automation scheme meeting the preset matching condition in the current scene based on the priority of the equipment information.
4. The generation method of claim 3, wherein the method further comprises:
generating selection prompt information, wherein the selection prompt information is used for prompting selection of equipment needing automatic configuration in a plurality of pieces of equipment with the same equipment state;
and acquiring a selection instruction, and automatically configuring an automatic scheme meeting the preset matching condition in the current scene according to the selection instruction.
5. The generation method of claim 1, wherein after the automatic batch configuration of the automation schemes meeting the preset matching condition for each sub-area in the current scene based on the triggering device and the controlled device matched in the automation schemes meeting the preset matching condition, the method further comprises:
and adding an automatic configuration label to the automatic scheme automatically configured in the current scene.
6. The generation method of claim 5, wherein the method further comprises:
acquiring a user-defined editing instruction;
and editing the configured automation scheme of the current scene according to the custom editing instruction, and deleting the automatic configuration tag of the custom-edited automation scheme.
7. The generation method of claim 1, wherein the method further comprises:
judging whether new equipment which is not automatically configured is added to the current scene;
when a new device which is not automatically configured is added to the current scene, matching the automatic scheme in the automatic template with the current scene after the new device is added to obtain an automatic scheme meeting preset matching conditions;
and automatically configuring an automatic scheme meeting the preset matching condition in the current scene after the new equipment is added.
8. The generation method of any one of claims 1 to 7, wherein the method further comprises:
generating a new automation template based on the configured automation scheme of the current scene, and storing the new automation template into the current account;
and obtaining an account sharing instruction, wherein the account sharing instruction is used for sharing the automatic template stored in the current account to other accounts or uploading the automatic template to a cloud.
9. An automated generation apparatus, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for automatically matching triggering equipment and controlled equipment in respective automation schemes in an automation template with equipment arranged under each subarea in a current scene after acquiring a preset or other account sharing automation template; the automation template comprises at least one automation scheme, wherein the automation scheme comprises a trigger device and a corresponding trigger condition, and a controlled device and a corresponding execution action;
the determining module is used for determining that the automatic scheme is the automatic scheme meeting the preset matching condition if at least one triggering device and controlled device in the automatic scheme are matched with the device states of all devices in all sub-areas partially or completely;
and the generating module is used for automatically configuring the automatic schemes meeting the preset matching conditions for the sub-areas in the current scene in batch based on the matched triggering devices and the controlled devices in the automatic schemes meeting the preset matching conditions, so that when the triggering devices under the sub-areas meet the triggering conditions in the automatic schemes meeting the preset matching conditions, the controlled devices under the sub-areas are controlled to execute corresponding execution actions.
10. An electronic device, comprising:
a memory;
one or more processors coupled with the memory;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-8.
11. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 8.
CN201811520855.1A 2018-12-12 2018-12-12 Automatic generation method and device, electronic equipment and storage medium Active CN109725541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811520855.1A CN109725541B (en) 2018-12-12 2018-12-12 Automatic generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811520855.1A CN109725541B (en) 2018-12-12 2018-12-12 Automatic generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109725541A CN109725541A (en) 2019-05-07
CN109725541B true CN109725541B (en) 2022-09-27

Family

ID=66294947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811520855.1A Active CN109725541B (en) 2018-12-12 2018-12-12 Automatic generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109725541B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020228032A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Scene pushing method, apparatus and system, and electronic device and storage medium
CN110324216B (en) * 2019-05-23 2021-10-26 深圳绿米联创科技有限公司 Automatic configuration method, device, system, server and storage medium
CN110928191A (en) * 2019-11-07 2020-03-27 深圳市欧瑞博科技有限公司 Separation control method, control panel, server and computer readable storage medium for smart home
CN110958147B (en) * 2019-12-06 2022-06-07 浩云科技股份有限公司 Internet of things equipment interconnection strategy configuration system
CN110830342A (en) * 2019-12-16 2020-02-21 联通物联网有限责任公司 Intelligent household equipment communication method and system
CN113009835A (en) * 2019-12-20 2021-06-22 西门子(中国)有限公司 Automatic configuration method and device of intelligent home system
CN111363661B (en) * 2020-03-06 2023-09-15 天地壹号饮料股份有限公司 Air detection mechanism and method for fruit vinegar fermentation tank and storage medium
CN114846415A (en) * 2020-03-20 2022-08-02 Oppo广东移动通信有限公司 Rule processing method and device and electronic equipment
CN111447123B (en) * 2020-03-24 2021-11-05 北京金山云网络技术有限公司 Smart home configuration method and device, electronic equipment and medium
CN111970180B (en) * 2020-08-11 2022-10-28 深圳市欧瑞博科技股份有限公司 Networking configuration method and device for intelligent household equipment, electronic equipment and storage medium
CN112073471B (en) * 2020-08-17 2023-07-21 青岛海尔科技有限公司 Control method and device of equipment, storage medium and electronic device
CN113759734A (en) * 2021-08-05 2021-12-07 珠海市晶讯物联技术有限公司 Internet of things equipment intelligent linkage realization method and device and Internet of things equipment platform
CN114237063A (en) * 2021-12-16 2022-03-25 深圳绿米联创科技有限公司 Scene control method, device and system, electronic equipment and medium
CN114237071A (en) * 2021-12-21 2022-03-25 美的集团股份有限公司 Sharing method of scene control scheme and scene control equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107657551A (en) * 2017-10-13 2018-02-02 北京玲珑新世纪商贸有限公司 The implementation method of total solution is lived by family based on information-based business model
CN108449241A (en) * 2018-02-09 2018-08-24 深圳绿米联创科技有限公司 Configuration method and device, the terminal of Intelligent household scene
CN108919658A (en) * 2018-06-27 2018-11-30 深圳绿米联创科技有限公司 Smart machine control method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898592B (en) * 2015-03-31 2017-11-28 联想(北京)有限公司 A kind of generation method and electronic equipment of the rule that links
CN107113792B (en) * 2015-06-23 2020-01-03 华为技术有限公司 Control information sending method, control information detection method, base station and user equipment
US10353360B2 (en) * 2015-10-19 2019-07-16 Ademco Inc. Method of smart scene management using big data pattern analysis
CN106100891A (en) * 2016-06-30 2016-11-09 北京小米移动软件有限公司 The method and device that intelligent scene is quickly shared
US10388072B2 (en) * 2016-10-31 2019-08-20 Verizon Patent And Licensing Inc. Methods and systems for dynamically customizing a scene for presentation to a user
CN106656692A (en) * 2016-11-09 2017-05-10 中磊电子(苏州)有限公司 Automatic rule selecting method and wireless communication device
CN108616430A (en) * 2018-04-03 2018-10-02 上海永天科技股份有限公司 Smart home automatic configuration method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107657551A (en) * 2017-10-13 2018-02-02 北京玲珑新世纪商贸有限公司 The implementation method of total solution is lived by family based on information-based business model
CN108449241A (en) * 2018-02-09 2018-08-24 深圳绿米联创科技有限公司 Configuration method and device, the terminal of Intelligent household scene
CN108919658A (en) * 2018-06-27 2018-11-30 深圳绿米联创科技有限公司 Smart machine control method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于综合信任的边缘计算资源协同研究;邓晓衡,等;《计算机研究与发展》;20180331;第449-477页 *

Also Published As

Publication number Publication date
CN109725541A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN109725541B (en) Automatic generation method and device, electronic equipment and storage medium
CN113412457B (en) Scene pushing method, device and system, electronic equipment and storage medium
CN109829106B (en) Automatic recommendation method and device, electronic equipment and storage medium
US11782590B2 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
WO2020223854A1 (en) Device network configuration method and apparatus, electronic device and storage medium
CN109587018B (en) Equipment configuration method, device, network system and mobile terminal
EP3016318B1 (en) Method and apparatus for customizing scene mode of intelligent device
CN110687811B (en) Method and device for scene configuration of smart home offline voice equipment
CN103970553B (en) A kind of control method of household appliances function upgrading
CN113348725B (en) Device operation method, device, gateway, electronic device and computer readable medium
CN110213102B (en) Device control method, device, electronic device and storage medium
US20220052866A1 (en) Smart home system control method and apparatus, electronic device
CN109753034B (en) Control method, control device, electronic equipment and storage medium
CN109918273B (en) Data display method and device, terminal equipment and storage medium
CN113168334A (en) Data processing method and device, electronic equipment and readable storage medium
CN109617963B (en) Equipment control method and device and Internet of things system
WO2020228030A1 (en) Device recommendation method and apparatus, electronic device, and storage medium
CN114007235A (en) Scene rule writing method and device, storage medium, processor and electronic equipment
CN107870571A (en) Control the method, apparatus and smart machine of smart machine
CN110831116A (en) Household appliance network distribution method, storage medium and terminal
CN110794773A (en) Click-type scene creating method and device
CN107241385B (en) Internet of things data acquisition system and method
CN113110093A (en) Control method, device and equipment of intelligent household control panel and storage medium
CN110324216B (en) Automatic configuration method, device, system, server and storage medium
CN109240098B (en) Equipment configuration method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant