CN109976172A - Method, apparatus, electronic equipment and the storage medium that set condition generates - Google Patents

Method, apparatus, electronic equipment and the storage medium that set condition generates Download PDF

Info

Publication number
CN109976172A
CN109976172A CN201910202402.2A CN201910202402A CN109976172A CN 109976172 A CN109976172 A CN 109976172A CN 201910202402 A CN201910202402 A CN 201910202402A CN 109976172 A CN109976172 A CN 109976172A
Authority
CN
China
Prior art keywords
trigger condition
condition
trigger
smart machine
information
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.)
Granted
Application number
CN201910202402.2A
Other languages
Chinese (zh)
Other versions
CN109976172B (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.)
Shenzhen Lumi United Technology Co Ltd
Original Assignee
Shenzhen 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 Shenzhen Lumi United Technology Co Ltd filed Critical Shenzhen Lumi United Technology Co Ltd
Priority to CN201910202402.2A priority Critical patent/CN109976172B/en
Publication of CN109976172A publication Critical patent/CN109976172A/en
Application granted granted Critical
Publication of CN109976172B publication Critical patent/CN109976172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the invention discloses method, apparatus, electronic equipment and storage mediums that a kind of set condition generates.The described method includes: obtaining smart machine linkage scheme, wherein, smart machine linkage scheme includes multiple trigger conditions, obtain multiple first trigger conditions for belonging to same decision logic in multiple trigger conditions and meeting specified requirements, multiple first trigger conditions are added in a set, set condition is generated.The present invention is gathered by will belong to same decision logic in multiple trigger conditions and meet the trigger condition of specified requirements, to simplify multiple trigger conditions of logic complexity in smart machine linkage scheme, user is allowed easily to configure and use smart home.

Description

Method, apparatus, electronic equipment and the storage medium that set condition generates
Technical field
The present invention relates to Smart Home technical field, the method, apparatus generated more particularly, to a kind of set condition, Electronic equipment and storage medium.
Background technique
For the equipment control in smart home system, automation linkage can be applied to control equipment.With intelligent biography The quantity of sensor equipment is added, and the playability of smart home product also enhances, while also causing user to automation linkage side The configuration of case generates the difficult phenomenon of configuration.
Summary of the invention
In view of the above problems, the invention proposes method, apparatus, electronic equipment and storages that a kind of set condition generates Medium, to improve the above problem.
In a first aspect, the present invention provides a kind of methods that set condition generates, which comprises obtain smart machine Linkage scheme, wherein the smart machine linkage scheme includes multiple trigger conditions;It obtains and belongs in the multiple trigger condition Same decision logic and multiple first trigger conditions for meeting specified requirements;The multiple first trigger condition is added to a collection In conjunction, set condition is generated.
Second aspect, the present invention provides the devices that a kind of set condition generates, and described device includes: the first acquisition mould Block, for obtaining smart machine linkage scheme, wherein the smart machine linkage scheme includes multiple trigger conditions;Second obtains Modulus block, for obtaining multiple first triggerings for belonging to same decision logic in the multiple trigger condition and meeting specified requirements Condition;Adding module generates set condition for the multiple first trigger condition to be added in a set.
The third aspect, the present invention provides a kind of electronic equipment, including one or more processors and memory;One Or multiple programs, wherein one or more of programs are stored in the memory and are configured as by one or more A processor executes, and one or more of programs are configured to carry out above-mentioned method.
Fourth aspect, the present invention provides a kind of computer-readable storage medium, the computer-readable storage is situated between Program code is stored in matter, said program code can be called by processor and execute the above method.
Method, apparatus, electronic equipment and the storage medium that a kind of set condition provided by the invention generates, obtain intelligence Equipment linkage scheme, wherein smart machine linkage scheme includes multiple trigger conditions, obtains and belongs in multiple trigger conditions together One decision logic and multiple first trigger conditions for meeting specified requirements, multiple first trigger conditions are added in a set, Generate set condition.To by will belong to same decision logic in multiple trigger conditions and meet the trigger condition of specified requirements Gathered, so that multiple trigger conditions of logic complexity in smart machine linkage scheme be simplified, so that user can be with Easily configure and use smart home.
The aspects of the invention or other aspects can more straightforwards in the following description.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows the application environment schematic diagram for the method that set condition provided in an embodiment of the present invention generates;
Fig. 2 shows the flow diagrams for the method that set condition provided in an embodiment of the present invention generates;
Fig. 3 shows the flow diagram for the method that set condition provided by one embodiment of the present invention generates;
Fig. 4 shows the flow diagram for the method that the set condition that another embodiment of the invention provides generates;
Fig. 5 shows the flow diagram for the method that the set condition that further embodiment of the present invention provides generates;
The flow diagram for the method that the set condition that Fig. 6 shows another embodiment of the present invention offer generates;
Fig. 7 shows the structural block diagram for the device that set condition provided in an embodiment of the present invention generates;
Fig. 8 shows the embodiment of the present invention for executing the electricity for the method that set condition according to an embodiment of the present invention generates The structural block diagram of sub- equipment;
What Fig. 9 showed the embodiment of the present invention realizes set condition according to an embodiment of the present invention for saving or carrying The storage unit of the program code of the method for generation.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Currently, smart home has benefited more and more families, user can purchase according to their own needs household and set It is standby, long-range control, linkage control and other automatic configurations etc. to these home equipments are realized by technology of Internet of things, In existing Intelligent household scene, user can pass through the application program controlling home equipment or each household of setting on mobile terminal Equipment operation smart machine link scheme, smart machine linkage scheme refer to gateway or be connected to gateway sub- equipment it Between the Application of Linkage Control that constructs, smart machine linkage scheme includes trigger condition and executes movement, in smart machine linkage scheme Equipment includes triggering equipment and controlled plant, and the two communication connection, when triggering equipment meets trigger condition, controlled plant is executed Movement is executed accordingly.So that specific operation is executed, for example, user when current household scene meets specified conditions It pushes door open, just turns on light.
And adding with the quantity of intelligent sensor units, the playability of smart home product also enhance, so that intelligence The trigger condition of equipment linkage can be many condition, and be able to achieve complicated and-or inverter logical operation, such logical operation, Contain various logic nesting.This certainly will will lead to user or engineering maintenance personnel to the condition of smart machine linkage scheme Configuration generates configuration difficulty, phenomenon difficult in maintenance.
Based on the above issues, inventor is to the current side handled for trigger condition of the smart home to logic complexity Method is found after having carried out a series of researchs, in order to which the trigger condition logic of simplified intelligent equipment linkage scheme is complicated, logic is nested The problem of, the nested logic of trigger condition can be realized with non-nested logic, simplify logic so that user or Engineering maintenance personnel are easily configured, understand many condition logic of smart machine linkage scheme.
Then, present inventors have proposed the method, apparatus of set condition provided in an embodiment of the present invention generation, electronic equipment And storage medium, by by belong in multiple trigger conditions same decision logic and meet specified requirements trigger condition carry out Set, so that multiple trigger conditions of logic complexity in smart machine linkage scheme be simplified, is easy user Ground configures and uses smart home.
First a kind of application environment according to the present invention will be introduced below.
Referring to Fig. 1, Fig. 1 is a kind of application environment schematic diagram suitable for the embodiment of the present invention.The embodiment of the present invention mentions The method that the set condition of confession generates can be applied in smart home system 10 as shown in Figure 1.The smart home system 10 In include gateway 110, server 120, home equipment 130.Wherein, server 120 can use traditional server, can also adopt With cloud server, it is not limited here.The quantity of gateway 110 is at least one, wherein server 120 respectively with this at least One gateway 110 connects, for example, server 120 can based on router by wireless network respectively at least one gateway 110 It is communicatively coupled, to carry out the data interaction between server 120 and gateway 110.
It further, can also include home equipment 130, wherein home equipment 130 can in smart home system 10 To include but is not limited to door and window sensor, intelligent switch, lamp, air-conditioning, curtain, TV, refrigerator, electric fan.Wherein, home equipment 130 quantity is at least one, which connects at least one gateway 110 respectively, for example, one Gateway 110 is connect with multiple home equipments 130, it is not limited here.Wherein, gateway 110 and home equipment 130 can pass through indigo plant The modes such as tooth, Wifi or ZigBee are attached.
It further, can also include mobile terminal 140 in intelligence control system 10, wherein mobile terminal 140 is logical It crosses wireless network and gateway 110 connects, which may include PC, smart phone, tablet computer, wearable electricity Sub- equipment etc., it is not limited here.As a kind of mode, which facilitates use for interacting between user Family can be carried out wireless communication based on router with gateway 110 by mobile terminal 140.In addition, user can be in 110 He of gateway Mobile terminal 140 adds an account information simultaneously, and the information of gateway 110 and mobile terminal 140 is realized by the account information It is synchronous.
Specifically, smart home system 10 can execute following scenes, for example, home equipment 130 may include that door and window passes If desired sensor, intelligent switch realize smart machine linkage scheme " door and window opening is then turned on light ", wherein trigger condition is " door and window Open ", execution movement is " turning on light ", and at this time based on this smart machine linkage scheme, triggering equipment is door and window sensor, controlled to set Standby is intelligent switch, and wherein intelligent switch is connect with lamp.Wherein smart machine linkage scheme can store local in gateway 110, It is stored in server 120, the path for executing smart machine linkage scheme can also pass through wide area by local area network Net, in which:
If by local area network path, in the local execution for carrying out smart machine linkage scheme of gateway 110, door and window sensor sense Door and window opening should be arrived, the event that door and window is opened is reported to gateway 110, after gateway 110 receives the event, according to the intelligence of storage Energy equipment linkage scheme, finds electronic equipment corresponding with the execution movement in the smart machine linkage scheme, in the present embodiment In be intelligent switch, notice intelligent switching control turn on light, thus realize door and window open then turn on light smart machine linkage scheme.
If carrying out the execution of smart machine linkage scheme, door and window sensor sensing in server 120 by wide area network path It is opened to door and window, the event that door and window is opened is reported to gateway 110, after gateway 110 receives the event, which is reported to Server 120, server 120 are found and holding in the smart machine linkage scheme according to the smart machine of storage linkage scheme Corresponding electronic equipment is made in action, is in the present embodiment intelligent switch, and notifies intelligent switching control to open by gateway 110 Lamp, to realize that door and window opens the smart machine linkage then turned on light.
Further, after turning on light, the implementing result successfully turned on light can be fed back to gateway 110, gateway 110 receives this After information, the implementing result of current time, smart machine linkage scheme and smart machine linkage scheme is reported into server 120, it is stored by server 120.
Various embodiments of the present invention are specifically described below in conjunction with attached drawing.
Referring to Fig. 2, the flow diagram of the method generated Fig. 2 shows set condition provided in an embodiment of the present invention. It will be explained in detail below for embodiment shown in Fig. 2, the method can specifically include following steps:
Step S110: smart machine linkage scheme is obtained, wherein the smart machine linkage scheme includes multiple triggering items Part.
In the present embodiment, smart machine linkage scheme, which refers to, to be constructed between gateway or the sub- equipment for being connected to gateway Application of Linkage Control, wherein smart machine linkage scheme includes trigger condition and executes movement, the equipment in smart machine linkage scheme Including triggering equipment and controlled plant, wherein triggering equipment is used to be based on the triggering for responding the trigger condition, controlled plant The trigger condition of equipment response executes this and executes movement.
Specifically, triggering equipment can be pressure sensor, temperature sensor, humidity sensor, door and window sensor or cigarette The various sensors such as mist sensor, controlled plant can be switch, socket, lamp, infrared launcher or cam device etc..When When triggering equipment meets trigger condition, the execution of gateway control controlled plant is corresponding to execute movement.So that in current household scene When meeting specified conditions, specific operation is executed, for example, user pushes door open, is just turned on light.
In the specific application scenarios, for example, one smart machine linkage scheme of user setting is that " enabling is then opened Lamp ", the trigger condition of this scheme are to open the door, and execution movement is that intelligent switching control lamp is opened, specifically, triggering equipment is door and window Sensor, the intelligent switch connecting with lamp are controlled plant, are can be between lamp and intelligent switch through wired or wireless side Formula is attached communication.At this point, this event is reported to gateway, gateway by door and window sensor when door and window sensor sensing is to opening the door After receiving the event that door and window is opened, according to above-mentioned preset smart machine linkage scheme, the smart machine linkage side is notified Controlled plant in case carry into execution a plan in include execute movement, in the present embodiment, i.e. notice intelligent switch is turned on light, thus real Now open the door, linkage corresponding to the smart machine linkage scheme turned on light.
In the present embodiment, smart machine linkage scheme be can store in mobile terminal, be stored in gateway, can be with It is stored in cloud.Obtaining smart machine linkage scheme can be the linkage scheme that acquisition for mobile terminal is stored in mobile terminal local Or the linkage scheme in gateway or cloud of being stored in is extracted, and it is also possible to gateway and obtains the linkage scheme for being stored in gateway, it can be with It is that cloud obtains the linkage scheme of storage beyond the clouds.
In the present embodiment, smart machine linkage scheme may include multiple trigger conditions, between multiple trigger condition It is attached by multiple decision logics, decision logic may include "AND" logic, "or" logic and " non-" logic etc..Its In, it can be same decision logic between multiple trigger condition, such as smart machine linkage option A 1 is that " door is opened and lamp Open and window opened, then air-conditioning is opened ", there are three option As 1 trigger condition " door opening ", " lamp opening " and " window opening ", It is same "AND" logic between these three trigger conditions, then such as smart machine linkage option A 2 is that " door is opened or lamp is opened Or infrared sensor detects that people is mobile, then air-conditioning is opened ", trigger condition that there are three option As 2 is " door opening ", " lamp is beaten Open " and " infrared sensor detect people mobile ", it is same "or" logic between these three trigger conditions.Smart machine linkage It can also be nested comprising multiple logics between multiple trigger conditions in scheme, it can including at least two decision logics, example If smart machine linkage option A 3 is that " (human body sensor in parlor detects someone's movement or the human body sensor inspection in kitchen The human body sensor for measuring someone's movement or balcony detects that someone is mobile) and (current time is 0 point at night to morning 7 Point or gateway are on the alert), then gateway is alarmed) " option A 3 includes five trigger conditions, between five trigger conditions Comprising two decision logics, "or" logic and "AND" logic.
In the present embodiment, optionally, the smart machine linkage scheme of acquisition can be the connection including multiple trigger conditions Dynamic scheme, and the logical relation between multiple trigger conditions may include that multiple logics are nested.As a result, to multiple trigger conditions into Row set processing, can be based on the multiple trigger conditions for having multiple logic nestings.
Step S120: it obtains and belongs to same decision logic in the multiple trigger condition and meet multiple the of specified requirements One trigger condition.
In the present embodiment, after obtaining smart machine linkage scheme available smart machine linkage scheme it is multiple Belong to same decision logic in trigger condition and meets multiple first trigger conditions of specified requirements.Wherein, belong to same judgement Logic, can be same "AND" logic, for example, smart machine linkage option A 1 be " door is opened and lamp is opened and window is opened, Then air-conditioning is opened ", there are three trigger condition " door opening ", " lamp opening " and " window openings " for option A 1, and these three triggering items Belong to same "AND" logic between part.It is also possible to belong to same "or" logic, such as smart machine linkage option A 2 is that " door is beaten Open or lamp is opened or infrared sensor detects that people is mobile, then air-conditioning is opened ", option A 2 is " door there are three trigger condition Opening ", " lamp opening " and " infrared sensor detects that people is mobile ", and belong to same "or" between these three trigger conditions and patrol Volume.
For the smart machine linkage scheme containing multiple logic nestings, it can extract and wherein belong to same decision logic Multiple first trigger conditions.Such as smart machine linkage option A 3 be " (human body sensor in parlor detect someone it is mobile or The human body sensor in kitchen detects that the human body sensor of someone's movement or balcony detects that someone is mobile) and (when current Between be on the alert for 0 point at night to 7 points of morning or gateway), then gateway is alarmed) ", option A 3 includes five triggering items Part, and include two logical operations between five trigger conditions, wherein " human body sensor in parlor detects trigger condition Someone is mobile ", " human body sensor in kitchen detects that someone is mobile " and " human body sensor of balcony detects that someone moves It is dynamic " between belong to same decision logic, then multiple first trigger conditions can be trigger condition " human body sensor in parlor detect It is mobile to someone ", " human body sensor in kitchen detects that someone is mobile " and " human body sensor of balcony detects that someone moves It is dynamic ", it can then extract trigger condition " human body sensor in parlor detects that someone is mobile ", " the human body sensor inspection in kitchen It is mobile to measure someone " and " human body sensor of balcony detects that someone is mobile ".
Further, meeting specified requirements can be the decision rule for meeting systemic presupposition, wherein can be multiple touching It is consistent to need to meet its corresponding triggering equipment in clockwork spring part, is also possible to need to meet multiple touching in multiple trigger condition Clockwork spring part detects same class object, for example, multiple trigger condition is all detection human body.The setting of specified requirements is only intended to pair Multiple trigger conditions screen to obtain multiple first trigger conditions that can be gathered, therefore the particular content of specified requirements does not limit It is fixed.
Step S130: the multiple first trigger condition is added in a set, generates set condition.
In the present embodiment, belong to same decision logic in the multiple trigger conditions for obtaining smart machine linkage scheme And after meeting multiple first trigger conditions of specified requirements, multiple first trigger condition can be added in a set, Generate set condition.Wherein, ID number can also be distributed for set condition, to distinguish and to use.For example, smart machine linkage side Case A3 be " (human body sensor in parlor detects that someone is mobile or the human body sensor in kitchen detect someone it is mobile or The human body sensor of balcony detects that someone is mobile) and (current time is in police for 0 point at night to 7 points of morning or gateway Ring state), then gateway is alarmed) ", wherein trigger condition 1 " human body sensor in parlor detects that someone is mobile ", trigger condition 2 " human body sensor in kitchen detects that someone is mobile " and trigger condition 3 " human body sensor of balcony detects that someone is mobile " It can be added to a set, set condition " non-bedroom region detection is mobile to someone " is generated, can also be the set item further Part distributes ID number a, and " gateway is in warning shape for trigger condition 4 " current time be at night 0 point to 7 points of morning " and trigger condition 5 State " can be added to another set, generate set condition " in when needing to alarm ", can be also another set condition point With ID number b, then smart machine linkage option A 3 can simplify are as follows: " if meeting set condition a and meeting set condition b, net Close alarm ".
Further, user is when creating similar smart machine linkage scheme next time, does not just have to add multiple the one by one One trigger condition, but can be quick by addition set condition, efficient creation smart machine linkage scheme.For example, with Family is not required to when the creation smart machine for sending warning message similar with above-mentioned smart machine linkage option A 3 links scheme Multiple trigger conditions are added one by one, it is only necessary to add set condition a, and set condition b, i.e., addition is " if meet set Condition a and meet set condition b, then send warning message " linkage scheme.
Prompt information can also be exported, for inquiring user after obtaining multiple first trigger conditions as a kind of mode Whether multiple first trigger condition is added in a set, it can be more flexible to the intelligence for having complex logic nesting with this Equipment linkage scheme carries out simplifying processing.Wherein, prompt information can be in the form of voice prompting, can also be to show on the screen The form shown.User after receiving prompt information, can click, voice, on the screen feed back and refer to by way of sliding etc. Show the command information multiple first trigger conditions being added in one set, system triggers items for multiple first according to command information Part is added to a set, and generates set condition.
Alternatively, the set more new command of user's triggering can also be received, wherein set more new command can be with Including creation set instruction, i.e. user can send multiple trigger conditions and multiple trigger condition is actively added to a collection It closes.Gathering more new command can also include addition instruction, i.e., trigger condition is added in set condition, such as can be in above-mentioned set Trigger condition " door in parlor is opened " is added in condition a, then gathering condition a can be updated to include " the human body sensor in parlor Detect that someone is mobile ", " human body sensor in kitchen detects that someone is mobile ", " human body sensor of balcony detects someone It is mobile " and " door in parlor is opened " four trigger conditions.Set more new command can also include deleting instruction, i.e., in set item Trigger condition is deleted in part, such as can delete trigger condition in above-mentioned set condition a " human body sensor in kitchen has detected People is mobile ", then gathering condition a and being updated to includes " human body sensor in parlor detects that someone moves " and " balcony Human body sensor detects that someone is mobile " two trigger conditions.Gathering more new command can also include modification instruction, that is, gather Modify trigger condition in condition, for example, can in above-mentioned set condition b by trigger condition " current time be at night 0 point to morning 7 Point " is revised as " current time is 0 point at night to 6 points of morning ", then gathering condition b can be updated to include that " current time is late Upper 0 point to 6 points of morning " and " gateway is on the alert " the two trigger conditions.
As another mode, when including different from above-mentioned set condition in the smart machine linkage scheme got When original set condition, can detecte the set condition whether include or part include original set condition, or whether with it is original Set condition has identical trigger condition, so that the registration of original set condition and the set condition is obtained, when registration height When registration threshold value, then the set condition and original set condition can be merged into compound set condition.For example, when obtaining Original set condition c into smart machine linkage scheme, wherein original set condition c includes that " door of entry is in open shape State ", " human body sensor in parlor detect someone mobile " and " human body sensor of balcony detects that someone is mobile " this three A trigger condition, the new set condition a of generation include " human body sensor in parlor detects that someone is mobile ", " people in kitchen Body sensor detects that someone is mobile " and " human body sensor of balcony detects that someone is mobile " these three trigger conditions.It is former There are set condition c and newly-generated set condition a there are two identical trigger conditions, it can be according to the number of identical trigger condition It obtains original set condition c and gathers the registration of condition a to be 67%, and registration threshold value is 50% to be lower than 67%, then it can be with Original set condition c is merged to obtain compound set condition with set condition a, wherein compound set condition includes the " door of entry It is in the open state ", " human body sensor in parlor detect someone mobile ", " human body sensor in kitchen detects that someone moves It is dynamic " and " human body sensor of balcony detects that someone is mobile " this four trigger conditions.It is further possible to pass through identification Whether the set condition is similar to original set condition, to obtain the registration of original set condition and the set condition, example Such as, newly-generated set condition a includes " human body sensor in parlor detects that someone is mobile ", " human body sensor in kitchen is examined It is mobile to measure someone " and " human body sensor of balcony detects that someone is mobile " these three trigger conditions, original set condition d Including " infrared sensor of balcony detect someone mobile " and " infrared sensor in parlor detects that someone is mobile " this two A trigger condition, although the corresponding triggering equipment of trigger condition in set condition a is human body sensor, original set condition d In the corresponding triggering equipment of trigger condition be infrared sensor, but the effect of two sensors is all used to detect region and is No someone is mobile, therefore the registration of available similar set condition a and original set condition d is 70%, is higher than registration Original set condition d and set condition a then can be merged into compound set condition by threshold value.By the above-mentioned means, set condition It continues to optimize and completely, is improved allocative efficiency, operation is simplified and rapid.
As a kind of mode, step S110- step S130 can be performed in mobile terminal, and mobile terminal is according to being locally stored Smart machine linkage scheme list or Xiang Yunduan or gateway requests smart machine link scheme list, be performed in mobile terminal and sentence Disconnected and addition, the smart machine linkage scheme updated, and the smart machine of update linkage scheme is sent to cloud and net At least one of pass is stored.So as to simplify in mobile terminal to smart machine linkage scheme, configuration is improved Efficiency, and reduce the influence of network connection, simplified operation can also be normally completed in the case where network is bad.
Alternatively, step S110- step S130 can be executed beyond the clouds, and user is sent by mobile terminal to be collected It closes instruction and arrives cloud, execute judgement and addition beyond the clouds, the smart machine linkage scheme updated, and the intelligence of update is set Standby linkage scheme is sent at least one of mobile terminal and gateway and is stored.The place of mobile terminal can be so not take up Memory is managed, allocative efficiency is improved.
As another mode, step S110- step S130 can be executed in gateway, and user is sent by mobile terminal to be collected It closes instruction and arrives gateway, execute judgement and addition in gateway, the smart machine linkage scheme updated, by the smart machine of update Linkage scheme is sent at least one of mobile terminal and cloud and is stored.
The method that set condition provided in an embodiment of the present invention generates obtains smart machine linkage scheme, wherein the intelligence Equipment linkage scheme includes multiple trigger conditions, obtains to belong in multiple trigger conditions and agrees to decision logic and meet specified requirements Multiple first trigger conditions, multiple first trigger conditions are added in a set, generate set condition.It will be more to pass through Belong to same decision logic in a trigger condition and meet the trigger condition of specified requirements and gathered, so that smart machine be joined Multiple trigger conditions of logic complexity are simplified in dynamic scheme, and user is allowed easily to configure and use smart home.
Referring to Fig. 3, Fig. 3 shows the process signal for the method that set condition provided by one embodiment of the present invention generates Figure.It will be explained in detail below for process shown in Fig. 3, the method can specifically include following steps:
Step S210: smart machine linkage scheme is obtained, wherein the smart machine linkage scheme includes multiple triggering items Part.
Wherein, the specific descriptions of step S210 please refer to step S110, and details are not described herein.
Step S220: multiple second trigger conditions for belonging to same decision logic in the multiple trigger condition are obtained.
In the present embodiment, after obtaining smart machine linkage scheme available smart machine linkage scheme it is multiple Belong to multiple second trigger conditions of same decision logic in trigger condition.Wherein, belong to same decision logic, can be same "AND" logic is also possible to same "or" logic.For the smart machine linkage scheme containing multiple logic nestings, can extract Wherein belong to multiple first trigger conditions of same logic.Such as smart machine linkage option A 3 is the " (human body sensor in parlor Detect that the human body sensor in someone's movement or kitchen detects that the human body sensor of someone's movement or balcony has detected People is mobile) and (current time is on the alert for 0 point at night to 7 points of morning or gateway), then gateway is alarmed) ", scheme A3 includes five trigger conditions, and includes two logical operations between five trigger conditions, wherein trigger condition be " parlor Human body sensor detects that someone is mobile ", " human body sensor in kitchen detects that someone is mobile " and " human sensing of balcony Device detects that someone is mobile " between belong to same decision logic, then multiple second trigger conditions can be trigger condition " parlor Human body sensor detects that someone is mobile ", " human body sensor in kitchen detects that someone is mobile " and " human sensing of balcony Device detects that someone is mobile ", it can then extract trigger condition " human body sensor in parlor detects that someone is mobile ", " kitchen Human body sensor detect that someone is mobile " and " human body sensor of balcony detects that someone is mobile ".
Step S230: obtaining the label information of the second trigger condition of each of the multiple second trigger condition respectively, Wherein, each second trigger condition corresponds at least one label information.
In the present embodiment, belong to same decision logic in the multiple trigger conditions for obtaining smart machine linkage scheme After multiple second trigger conditions, the label letter of the second trigger condition of each of multiple second trigger condition can be extracted respectively Breath.
As a kind of mode, the label information with the binding of each second trigger condition can be extracted, wherein label information can With when user inputs the second trigger condition, while input label, and label information and second trigger condition are bound, such as User is when inputting trigger condition " gateway is on the alert ", while input label information " safety ", and by " safety " and touches Clockwork spring part " gateway is on the alert " binding, system can be obtained when obtaining trigger condition " gateway is on the alert " The label information of the trigger condition is " safety ".Label information is also possible to user after inputting the second trigger condition, passes through and is It unites the label that selection matches with second trigger condition in preset label information, and by the label information and second triggering Condition binding.
Alternatively, the title that can extract each second trigger condition, is known by semantic analysis identification technology Alias claims to obtain keyword, and using keyword as the label of second trigger condition.For example, in input trigger condition " human body sensor in parlor detects that someone is mobile ", by semantics recognition technology, extracts keyword " parlor ", " sensor " And " movement ", then it can be by keyword " parlor ", " sensor " and " movement " as the trigger condition " human sensing in parlor Device detects that someone is mobile " label.
Step S240: the label information based on each second trigger condition, from the multiple second trigger condition Obtain the multiple first trigger condition, wherein deposit between the first trigger condition of each of the multiple first trigger condition In at least one identical label information.
In the present embodiment, after the label information for getting each second trigger condition, multiple second touchings can be checked Whether identical label information is had between clockwork spring part, if there are the more of same label information in multiple second trigger condition A trigger condition, then using this it is multiple there may be multiple trigger conditions of same label information as the first trigger condition carry out Set.For example, trigger condition 1 is " human body sensor in parlor detects that someone is mobile ", the label information of trigger condition 1 is " parlor ", " sensor " and " movement ", trigger condition 2 are " human body sensor in kitchen detects that someone is mobile ", trigger item The label information of part 2 is " kitchen ", " sensor " and " movement ", and trigger condition 3 is that " human body sensor of balcony has detected People is mobile ", the label information of trigger condition 3 is " balcony ", " sensor " and " movement ", available trigger condition 1, triggering Condition 2 and trigger condition 3 have identical label information " sensor " and " movement ", then can be by trigger condition 1, trigger condition 2 and trigger condition 3 as three the first trigger conditions carry out set operations.
Step S250: the multiple first trigger condition is added in a set, generates set condition.
Wherein, the specific descriptions of step S250 please refer to step S130, and details are not described herein.
The method that set condition provided by one embodiment of the present invention generates obtains smart machine linkage scheme, wherein should Smart machine linkage scheme includes multiple trigger conditions, obtains and belongs to multiple the second of same decision logic in multiple trigger conditions Trigger condition obtains the label information of the second trigger condition of each of multiple second trigger conditions, wherein each second respectively Trigger condition corresponds at least one label information, based on the label information of each second trigger condition, from multiple second triggering items Multiple first trigger conditions are obtained in part, wherein exist extremely between the first trigger condition of each of multiple first trigger conditions A few identical label information.Multiple first trigger condition is added to a set, generates set condition.Compared to Fig. 2 Shown in the method that generates of set condition, the present embodiment can also can be gathered according to the label information determination of trigger condition Trigger condition so that set condition generate method it is more flexible, and practicability it is stronger, simplification it is more efficient.
Referring to Fig. 4, the process that Fig. 4 shows the method that the set condition that another embodiment of the invention provides generates is shown It is intended to.It will be explained in detail below for process shown in Fig. 4, the method can specifically include following steps:
Step S310: smart machine linkage scheme is obtained, wherein the smart machine linkage scheme includes multiple triggering items Part.
Wherein, the specific descriptions of step S310 please refer to step S110, and details are not described herein.
Step S320: the multiple third trigger conditions for belonging to same decision logic in the multiple trigger condition are obtained.
In the present embodiment, after obtaining smart machine linkage scheme available smart machine linkage scheme it is multiple Belong to multiple third trigger conditions of same decision logic in trigger condition.Wherein, belong to same decision logic, can be same "AND" logic is also possible to same "or" logic.For the smart machine linkage scheme containing multiple logic nestings, can extract Wherein belong to multiple first trigger conditions of same logic.Such as smart machine linkage option A 3 is the " (human body sensor in parlor Detect that the human body sensor in someone's movement or kitchen detects that the human body sensor of someone's movement or balcony has detected People is mobile) and (current time is on the alert for 0 point at night to 7 points of morning or gateway), then gateway is alarmed) ", scheme A3 includes five trigger conditions, and includes two logical operations between five trigger conditions, wherein trigger condition be " parlor Human body sensor detects that someone is mobile ", " human body sensor in kitchen detects that someone is mobile " and " human sensing of balcony Device detects that someone is mobile " between belong to same decision logic, then multiple third trigger conditions can be trigger condition " parlor Human body sensor detects that someone is mobile ", " human body sensor in kitchen detects that someone is mobile " and " human sensing of balcony Device detects that someone is mobile ", it can then extract trigger condition " human body sensor in parlor detects that someone is mobile ", " kitchen Human body sensor detect that someone is mobile " and " human body sensor of balcony detects that someone is mobile ".
Step S330: the title of each third trigger condition in the multiple third trigger condition is obtained respectively.
In the present embodiment, multiple third trigger conditions of same decision logic are belonged in obtaining multiple trigger conditions Afterwards, the title of each third trigger condition can be extracted respectively from the multiple third trigger conditions got.For example, intelligence is set Standby linkage option A 3 is that " (human body sensor in parlor detects that the human body sensor in someone's movement or kitchen detects someone Mobile or balcony human body sensor detects that someone is mobile) and (current time is 0 point at night to 7 points of morning or net Pass is on the alert), then gateway is alarmed) ".Wherein, trigger condition " human body sensor in parlor detect someone mobile ", Belong between " human body sensor in kitchen detects that someone is mobile " and " human body sensor of balcony detects that someone is mobile " Same decision logic then obtains the title of these three trigger conditions respectively.
Step S340: the similarity between the title of the multiple third trigger condition is calculated.
In the present embodiment, after obtaining the title of each third trigger condition in multiple third trigger conditions respectively, The similarity between the title of this multiple third trigger condition can be calculated.
As a kind of mode, the number of words that can calculate identical word in title accounts for the ratio of title totality number of words as similar Degree.For example, entitled " human body sensor in parlor detect someone mobile " of trigger condition 1, trigger condition 2 it is entitled " human body sensor of balcony detects someone for " human body sensor in kitchen detect someone mobile ", trigger condition 3 entitled It is mobile ", then it can be concluded that identical number of words is 13 in these three trigger condition titles, and the total number of word of title is 15, can To pass through the numerical value by 13/15 result as similarity.
Alternatively, it can also be obtained by semantic analysis similar between the title of multiple third trigger conditions Degree.For example, entitled " human body sensor in parlor detect someone mobile " of trigger condition 1, trigger condition 2 it is entitled " human body sensor of balcony detects someone for " human body sensor in kitchen detect someone mobile ", trigger condition 3 entitled It is mobile ", similarity can be obtained by the result of semantics recognition.
Step S350: the similarity between the title based on the multiple third trigger condition is touched from the multiple third The multiple first trigger condition is obtained in clockwork spring part, wherein the similarity between the title of the multiple first trigger condition Higher than similarity threshold.
In the present embodiment, multiple third trigger conditions of same decision logic are belonged in getting multiple trigger conditions Afterwards, similarity is higher than multiple the of similarity threshold between the title of trigger condition in available multiple third trigger condition One trigger condition, then after the similarity between the title that multiple third trigger conditions are calculated, if the similarity is higher than phase Like degree threshold value, wherein similarity threshold can be user setting, is also possible to system setting, then can be higher than similarity The trigger condition of similarity threshold carries out set operation as the first trigger condition.For example, obtaining the " people in parlor of trigger condition 1 Body sensor detects that someone is mobile ", trigger condition 2 " human body sensor in kitchen detects that someone is mobile ", trigger condition 3 " human body sensor of balcony detects that someone is mobile ", trigger condition 4 " lamp in parlor is opened ", by calculating each trigger condition Title similarity, wherein the phase of the title of 3 these three trigger conditions of trigger condition 1, trigger condition 2 and trigger condition It is 85% like degree, and similarity threshold is 80%, then can regard trigger condition 1, trigger condition 2 and trigger condition 3 as three A first trigger condition carries out set operation.
Step S360: the multiple first trigger condition is added in a set, generates set condition.
Wherein, the specific descriptions of step S360 please refer to step S130, and details are not described herein.
The method that the set condition that another embodiment of the invention provides generates obtains smart machine linkage scheme, wherein The smart machine scheme that links includes multiple trigger conditions, obtains and belongs to multiple the of same decision logic in multiple trigger conditions Three trigger conditions, obtain the title of each trigger condition in multiple third trigger condition respectively, and calculate multiple third Similarity between the title of trigger condition, the similarity between the title based on multiple third trigger condition, from multiple Multiple first trigger conditions are obtained in third trigger condition, wherein the similarity between the title of multiple first trigger conditions is high In similarity threshold, multiple first trigger condition is added in a set, generates set condition.Compared to shown in Fig. 2 The method that set condition generates, the present embodiment can also can be collected according to the similarity determination between the title of trigger condition The trigger condition of conjunction generates the more efficient of set condition without artificially marking label.
Referring to Fig. 5, the process that Fig. 5 shows the method that the set condition that further embodiment of the present invention provides generates is shown It is intended to.It will be explained in detail below for process shown in fig. 5, the method can specifically include following steps:
Step S410: smart machine linkage scheme is obtained, wherein the smart machine linkage scheme includes multiple triggering items Part.
Wherein, the specific descriptions of step S410 please refer to step S110, and details are not described herein.
Step S420: multiple 4th trigger conditions for belonging to same decision logic in the multiple trigger condition are obtained.
In the present embodiment, after obtaining smart machine linkage scheme available smart machine linkage scheme it is multiple Belong to multiple 4th trigger conditions of same decision logic in trigger condition.Wherein, belong to same decision logic, can be same "AND" logic is also possible to same "or" logic.For the smart machine linkage scheme containing multiple logic nestings, can extract Wherein belong to multiple first trigger conditions of same logic.Such as smart machine linkage option A 3 is the " (human body sensor in parlor Detect that the human body sensor in someone's movement or kitchen detects that the human body sensor of someone's movement or balcony has detected People is mobile) and (current time is on the alert for 0 point at night to 7 points of morning or gateway), then gateway is alarmed) " scheme A3 includes five trigger conditions, and includes two logical operations between five trigger conditions, wherein trigger condition be " parlor Human body sensor detects that someone is mobile ", " human body sensor in kitchen detects that someone is mobile " and " human sensing of balcony Device detects that someone is mobile " between belong to same decision logic, then multiple 4th trigger conditions can be trigger condition " parlor Human body sensor detects that someone is mobile ", " human body sensor in kitchen detects that someone is mobile " and " human sensing of balcony Device detects that someone is mobile ", it can then extract trigger condition " human body sensor in parlor detects that someone is mobile ", " kitchen Human body sensor detect that someone is mobile " and " human body sensor of balcony detects that someone is mobile ".
Step S430: the corresponding triggering of the 4th trigger condition of each of the multiple 4th trigger condition is obtained respectively and is set It is standby.
In the present embodiment, multiple 4th trigger conditions of same decision logic are belonged in getting multiple trigger conditions Afterwards, it can detect respectively and obtain each of multiple 4th trigger conditions corresponding triggering equipment of the 4th trigger condition.For example, step Three the 4th trigger conditions for belonging to same decision logic in smart machine linkage option A 3 in rapid S420 are trigger condition 1 " human body sensor in parlor detect someone mobile ", trigger condition 2 " human body sensor in kitchen detects that someone is mobile " with And trigger condition 3 " human body sensor of balcony detects that someone is mobile ", wherein the triggering that can detecte trigger condition 1 is set Standby is human body sensor, and the triggering equipment of trigger condition 2 is human body sensor, and the triggering equipment of trigger condition 3 is human sensing Device.
Step S440: the characteristic information of the corresponding triggering equipment of each 4th trigger condition is obtained.
In the present embodiment, the corresponding triggering of the 4th trigger condition of each of multiple 4th trigger conditions is obtained respectively to set After standby, the characteristic information of the corresponding triggering equipment of available each 4th trigger condition.
Wherein, the characteristic information for triggering equipment can be the type of triggering equipment, for example, getting three the 4th triggerings Condition is respectively trigger condition 1 " human body sensor in parlor detects that someone is mobile ", " human sensing in kitchen of trigger condition 2 Device detects that someone is mobile " and trigger condition 3 " human body sensor of balcony detects that someone is mobile ", wherein trigger condition 1 The type of triggering equipment be human body sensor, the type of the triggering equipment of trigger condition 2 is human body sensor, trigger condition 3 Triggering equipment type be human body sensor.
The characteristic information of triggering equipment is also possible to trigger the attribute information of equipment, and attribute information is for characterizing triggering equipment Attribute or state, such as attributes such as temperature and humidity of Temperature Humidity Sensor, the states such as state that lamp opens and closes.Triggering The characteristic information of equipment can also be that the event information of triggering equipment, event information cause to trigger equipment generating state for characterizing The trigger action of variation, for example, the clicking, double-click of switch, long-pressing, the trigger actions such as short-press.Further, characteristic information also wraps Include any two or three in type information, attribute information and event information.
Step S450: the characteristic information based on the corresponding triggering equipment of each 4th trigger condition, from the multiple The multiple first trigger condition is obtained in 4th trigger condition, wherein the feature letter between the multiple first trigger condition Breath is consistent.
In the present embodiment, after obtaining the corresponding characteristic information for triggering equipment of each 4th trigger condition, if more There are the consistent multiple trigger conditions of characteristic information in a 4th trigger condition, then it can be consistent multiple by multiple characteristic information Trigger condition carries out set operation as multiple first trigger conditions.For example, obtaining the " human body sensor in parlor of trigger condition 1 Detect that someone is mobile ", trigger condition 2 " human body sensor in kitchen detects that someone is mobile ", " people of balcony of trigger condition 3 Body sensor detects that someone is mobile ", wherein 3 these three trigger conditions of trigger condition 1, trigger condition 2 and trigger condition The type for triggering equipment is all human body sensor, i.e. the characteristic information of triggering equipment is consistent, then can be by trigger condition 1, triggering Condition 2 and trigger condition 3 are as three the first trigger conditions progress set operations.
Step S460: the multiple first trigger condition is added in a set, generates set condition.
Wherein, the specific descriptions of step S460 please refer to step S130, and details are not described herein.
The method that the set condition that further embodiment of the present invention provides generates obtains smart machine linkage scheme, wherein The smart machine scheme that links includes multiple trigger conditions, obtains and belongs to multiple the of same decision logic in multiple trigger conditions Four trigger conditions obtain the corresponding triggering equipment of each trigger condition in multiple 4th trigger condition respectively, obtain each The characteristic information of the corresponding triggering equipment of 4th trigger condition, the feature based on the corresponding triggering equipment of each 4th trigger condition Information obtains multiple first trigger conditions from multiple 4th trigger conditions, wherein the feature between multiple first trigger conditions Information is consistent, and multiple first trigger condition is added in a set, generates set condition.Compared to set shown in Fig. 2 The method that condition generates, the present embodiment can also be by determining according to the characteristic information of the corresponding triggering equipment of multiple trigger conditions The trigger condition that can be gathered more can have what is be directed to expire to be judged that accuracy is higher according to triggering equipment itself Sufficient demand.
Referring to Fig. 6, the process that Fig. 6 shows the method that another set condition provided in an embodiment of the present invention generates is shown It is intended to.It will be explained in detail below for process shown in fig. 6, the method can specifically include following steps:
Step S510: smart machine linkage scheme is obtained, wherein the smart machine linkage scheme includes multiple triggering items Part.
Wherein, the specific descriptions of step S510 please refer to step S110, and details are not described herein.
Step S520: multiple 5th trigger conditions for belonging to same decision logic in the multiple trigger condition are obtained.
Wherein, the specific descriptions of step S520 please refer to step S220, and details are not described herein.
Step S530: obtaining the label information of the 5th trigger condition of each of the multiple 5th trigger condition respectively, Wherein, each 5th trigger condition corresponds at least one label information.
Wherein, the specific descriptions of step S530 please refer to step S230, and details are not described herein.
Step S540: the title of the 5th trigger condition of each of the multiple 5th trigger condition is obtained respectively, and is counted Calculate the similarity between the title of the multiple 5th trigger condition.
Wherein, the specific descriptions of step S540 please refer to step S330- step S340, and details are not described herein.
Step S550: the corresponding triggering of the 5th trigger condition of each of the multiple 5th trigger condition is obtained respectively and is set It is standby, and obtain the characteristic information of the corresponding triggering equipment of each 5th trigger condition.
Wherein, the specific descriptions of step S550 please refer to step S430- step S440, and details are not described herein.
Step S560: based on the information between the multiple 5th trigger condition, from the multiple 5th trigger condition Obtain the multiple first trigger condition, wherein the information between the multiple first trigger condition meets preset condition.
In the present embodiment, multiple 5th trigger conditions of same decision logic are belonged in getting multiple trigger conditions Afterwards, the information in this available multiple 5th trigger condition between trigger condition meets multiple first triggerings article of preset condition Part, wherein information between trigger condition can there are at least one identical label informations, triggering item between trigger condition Similarity between part title be higher than similarity threshold and the corresponding triggering equipment of trigger condition characteristic information it is consistent this three A information, preset condition then can be while meeting this three information.Then it can successively judge multiple 5th triggering Whether have in condition and meets between trigger condition that there are similar between at least one identical label information, trigger condition title Degree is higher than similarity threshold and the characteristic information of the corresponding triggering equipment of trigger condition is consistent, when multiple 5th trigger condition In have while meeting multiple trigger conditions of these three information, then will meet simultaneously multiple trigger conditions of these three information as First trigger condition.
Step S570: the multiple first trigger condition is added in a set, generates set condition.
Wherein, the specific descriptions of step S570 please refer to step S130, and details are not described herein.
It should be understood that although each step in the flow chart of Fig. 6 is successively shown according to the instruction of arrow, this A little steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these steps It executes there is no the limitation of stringent sequence, these steps can execute in other order.Moreover, at least part in Fig. 6 Step may include that perhaps these sub-steps of multiple stages or stage are executed in synchronization to multiple sub-steps It completes, but can execute at different times, the execution sequence in these sub-steps or stage, which is also not necessarily, successively to be carried out, But it can be executed in turn or alternately at least part of the sub-step or stage of other steps or other steps.
The method that the set condition that another embodiment of the present invention provides generates obtains smart machine linkage scheme, wherein The smart machine scheme that links includes multiple trigger conditions, obtains and belongs to multiple the of same decision logic in multiple trigger conditions Five trigger conditions obtain the label information of the 5th trigger condition of each of multiple 5th trigger conditions, wherein Mei Ge respectively Five trigger conditions correspond at least one label information, obtain the 5th trigger condition of each of multiple 5th trigger conditions respectively Title, and the similarity between the titles of multiple 5th trigger conditions is calculated, it is obtained in multiple 5th trigger condition respectively The corresponding triggering equipment of each trigger condition obtains the characteristic information of the corresponding triggering equipment of each 5th trigger condition, is based on Information between multiple 5th trigger condition obtains multiple first trigger conditions from multiple 5th trigger condition, wherein Information between multiple first trigger conditions meets preset condition, and multiple first trigger condition is added in a set, raw At set condition.Compared to the method that set condition shown in Fig. 2 generates, the present embodiment, which will can also meet simultaneously, to be included at least One identical label, the similarity of trigger condition title are higher than similarity threshold, the characteristic information one of corresponding triggering equipment The multiple trigger conditions caused are added to a set, thus by the way that the multiple trigger conditions for meeting multiple conditions simultaneously are assembled one A set condition allows to more accurately gather similar trigger condition.
Referring to Fig. 7, Fig. 7 shows the module frame chart for the device 200 that set condition provided in an embodiment of the present invention generates. It will be illustrated below for block diagram shown in Fig. 7, the device 200 that the set condition generates includes: the first acquisition module 210, second module 220 and adding module 230 are obtained, in which:
First obtains module 210, for obtaining smart machine linkage scheme, wherein the smart machine linkage scheme packet Include multiple trigger conditions.
Second obtains module 220, specifies for obtaining to belong to same decision logic in the multiple trigger condition and meet Multiple first trigger conditions of condition.
Further, described second module 220 is obtained further include: the second trigger condition acquisition submodule, label information obtain Take submodule and the first trigger condition acquisition submodule, in which:
Second trigger condition acquisition submodule belongs to the more of same decision logic for obtaining in the multiple trigger condition A second trigger condition.
Label information acquisition submodule triggers item for obtaining each of the multiple second trigger condition second respectively The label information of part, wherein each second trigger condition corresponds at least one label information.Further, the label Acquisition of information submodule further include: the first label information acquiring unit, in which:
First label acquiring unit, for obtaining the label information with each second trigger condition binding, wherein institute Stating label information is that user inputs or selects.
Further, the label information acquisition submodule further include: name acquiring unit and the second label information obtain Take unit, in which:
Name acquiring unit for obtaining the title of each second trigger condition, and extracts each second touching Keyword in the title of clockwork spring part.
Second label information acquiring unit is obtained for the keyword in the title based on each second trigger condition Take the label information of each second trigger condition.
Further, described second module 220 is obtained further include: third trigger condition acquisition submodule, name acquiring Module, computational submodule and third acquisition submodule, in which:
Third trigger condition acquisition submodule belongs to the more of same decision logic for obtaining in the multiple trigger condition A third trigger condition.
Name acquiring submodule, for obtaining each third trigger condition in the multiple third trigger condition respectively Title.
Computational submodule, the similarity between title for calculating the multiple third trigger condition.
Third acquisition submodule, for the similarity between the title based on the multiple third trigger condition, from described The multiple first trigger condition is obtained in multiple third trigger conditions, wherein the name of the multiple first trigger condition is referred to as Between similarity be higher than similarity threshold.
Further, described second module 220 is obtained further include: the 4th trigger condition acquisition submodule, triggering equipment obtain Take submodule, characteristic information acquisition submodule and the 4th acquisition submodule, in which:
4th trigger condition acquisition submodule belongs to the more of same decision logic for obtaining in the multiple trigger condition A 4th trigger condition.
Equipment acquisition submodule is triggered, for obtaining the triggering article of each of the multiple 4th trigger condition the 4th respectively The corresponding triggering equipment of part.
Characteristic information acquisition submodule, for obtaining the feature letter of the corresponding triggering equipment of each 4th trigger condition Breath.
4th acquisition submodule, for the characteristic information based on the corresponding triggering equipment of each 4th trigger condition, Obtain the multiple first trigger condition from the multiple 4th trigger condition, wherein the multiple first trigger condition it Between characteristic information it is consistent.
Adding module 230 generates set condition for the multiple first trigger condition to be added in a set.
Further, the device 200 that the set condition generates further include: output module, generation module, receiving module, Respond module, registration computing module and merging module, in which:
Output module, for exporting prompt information, the prompt information is for asking the user whether the multiple first Trigger condition is added in a set.
Generation module indicates that the instruction being added to the multiple first trigger condition in one set is believed for working as to receive When breath, the multiple first trigger condition is added in a set by response described instruction information, generates the set condition.
Receiving module, for receiving the set more new command of user's triggering.
Respond module, for responding the set more new command creation set condition, adding touching in the set condition Clockwork spring part deletes trigger condition in the set condition or modifies trigger condition in the set condition.
Registration computing module, for calculating the registration of original set condition and the set condition.
Merging module is used for when the registration is higher than registration threshold value, by original set condition and the collection Conjunction condition merges into compound set condition.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device and The specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, the mutual coupling of module can be electrical property, mechanical or other The coupling of form.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing module It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
A kind of electronic equipment provided by the invention is illustrated below in conjunction with Fig. 8.
Referring to Fig. 8, Fig. 8 shows the structural block diagram of a kind of electronic equipment provided in an embodiment of the present invention.In the present invention Electronic equipment 300 may include one or more such as lower component: processor 310, memory 320 and one or more journeys Sequence, wherein one or more programs can be stored in memory 320 and be configured as being held by one or more processors 310 Row, one or more programs are configured to carry out the method as described in preceding method embodiment.
Wherein, processor 310 may include one or more processing core.Processor 310 utilizes various interfaces and route The various pieces in entire electronic equipment 300 are connected, by running or executing the instruction being stored in memory 220, program, generation Code collection or instruction set, and the data being stored in memory 320 are called, execute the various functions and processing of electronic equipment 300 Data.Optionally, processor 310 can be using Digital Signal Processing (Digital Signal Processing, DSP), scene Programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 310 can integrating central processor (Central Processing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc. One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem It can not be integrated into processor 310, be realized separately through one piece of communication chip.
Memory 320 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Memory 320 can be used for store instruction, program, code, code set or instruction set.It deposits Reservoir 320 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system Enable, for realizing the instruction (such as semantics recognition function etc.) of at least one function, for realizing following each embodiments of the method Instruction etc..It storage data area can be with data that electronic equipment 300 is created in use (such as smart machine linkage side Case, trigger condition label, trigger equipment characteristic information) etc..
Referring to Fig. 9, it illustrates a kind of structural block diagrams of computer readable storage medium provided in an embodiment of the present invention. Program code is stored in the computer-readable storage medium 400, said program code can call execution above-mentioned by processor Method described in embodiment of the method.
Computer-readable storage medium can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer-readable storage medium 400 includes non-volatile Computer-readable medium (non-transitory computer-readable storage medium).It is computer-readable Storage medium 400 has the memory space for the program code 410 for executing any method and step in the above method.These program generations Code can read or be written to the production of this one or more computer program from one or more computer program product In product.Program code 410 can for example be compressed in a suitable form.
In conclusion method, apparatus, electronic equipment and storage that a kind of set condition provided by the invention generates are situated between Matter obtains smart machine linkage scheme, wherein smart machine linkage scheme includes multiple trigger conditions, obtains multiple triggerings Belong to same decision logic in condition and meet multiple first trigger conditions of specified requirements, multiple first trigger conditions are added Into a set, set condition is generated.To by will belong to same decision logic in multiple trigger conditions and meet specified item The trigger condition of part is gathered, so that multiple trigger conditions of logic complexity in smart machine linkage scheme are simplified, User is allowed easily to configure and use smart home.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (mobile terminal), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, and those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from technical solution of various embodiments of the present invention spirit and Range.

Claims (13)

1. a kind of method that set condition generates, which is characterized in that the described method includes:
Obtain smart machine linkage scheme, wherein the smart machine linkage scheme includes multiple trigger conditions;
Obtain multiple first trigger conditions for belonging to same decision logic in the multiple trigger condition and meeting specified requirements;
The multiple first trigger condition is added in a set, set condition is generated.
2. the method according to claim 1, wherein it is described obtain to belong in the multiple trigger condition same sentence Disconnected logic and multiple first trigger conditions for meeting specified requirements, comprising:
Obtain multiple second trigger conditions for belonging to same decision logic in the multiple trigger condition;
The label information of the second trigger condition of each of the multiple second trigger condition is obtained respectively, wherein described each Second trigger condition corresponds at least one label information;
Based on the label information of each second trigger condition, the multiple is obtained from the multiple second trigger condition One trigger condition, wherein it is identical that there are at least one between the first trigger condition of each of the multiple first trigger condition Label information.
3. according to the method described in claim 2, it is characterized in that, described obtain respectively in the multiple second trigger condition The label information of each second trigger condition, comprising:
Obtain the label information with each second trigger condition binding, wherein the label information is that user inputs or selects It selects.
4. according to the method described in claim 2, it is characterized in that, described obtain respectively in the multiple second trigger condition The label information of each second trigger condition, comprising:
The title of each second trigger condition is obtained, and extracts the key in the title of each second trigger condition Word;
Keyword in title based on each second trigger condition obtains the label letter of each second trigger condition Breath.
5. the method according to claim 1, wherein it is described obtain to belong in the multiple trigger condition same sentence Disconnected logic and multiple first trigger conditions for meeting specified requirements, comprising:
Obtain the multiple third trigger conditions for belonging to same decision logic in the multiple trigger condition;
The title of each third trigger condition in the multiple third trigger condition is obtained respectively;
Calculate the similarity between the title of the multiple third trigger condition;
Similarity between title based on the multiple third trigger condition obtains institute from the multiple third trigger condition State multiple first trigger conditions, wherein the similarity between the title of the multiple first trigger condition is higher than similarity threshold.
6. the method according to claim 1, wherein it is described obtain to belong in the multiple trigger condition same sentence Disconnected logic and multiple first trigger conditions for meeting specified requirements, comprising:
Obtain multiple 4th trigger conditions for belonging to same decision logic in the multiple trigger condition;
Each of the multiple 4th trigger condition corresponding triggering equipment of the 4th trigger condition is obtained respectively;
Obtain the characteristic information of the corresponding triggering equipment of each 4th trigger condition;
Based on the corresponding characteristic information for triggering equipment of each 4th trigger condition, from the multiple 4th trigger condition Obtain the multiple first trigger condition, wherein the characteristic information between the multiple first trigger condition is consistent.
7. according to the method described in claim 6, it is characterized in that, the characteristic information include type information, attribute information with And at least one of event information, wherein the type information is used to characterize the type of the triggering equipment, the attribute letter The attribute or state for characterizing the triggering equipment are ceased, the event information causes the triggering equipment that shape occurs for characterizing The trigger action of state variation.
8. method according to claim 1-7, which is characterized in that described to add the multiple first trigger condition It adds in a set, generates set condition, comprising:
Prompt information is exported, the prompt information is for asking the user whether the multiple first trigger condition being added to a collection In conjunction;
When receive instruction the multiple first trigger condition is added to the command information in a set when, respond described instruction The multiple first trigger condition is added in a set by information, generates the set condition.
9. method according to claim 1-7, which is characterized in that the method also includes:
Receive the set more new command of user's triggering;
It responds set more new command creation set condition, add in the set condition trigger condition, in the set Trigger condition is deleted in condition or modifies trigger condition in the set condition.
10. the method according to claim 1, wherein when smart machine linkage scheme includes and the collection When the different original set condition of conjunction condition, the method also includes:
Calculate the registration of original set condition and the set condition;
When the registration is higher than registration threshold value, original set condition and the set condition are merged into Composite Set Conjunction condition.
11. the device that a kind of set condition generates, which is characterized in that described device includes:
First obtains module, for obtaining smart machine linkage scheme, wherein the smart machine linkage scheme includes multiple touchings Clockwork spring part;
Second obtains module, belongs to same decision logic in the multiple trigger condition for obtaining and meets the more of specified requirements A first trigger condition;
Adding module generates set condition for the multiple first trigger condition to be added in a set.
12. a kind of electronic equipment characterized by comprising
Memory;
One or more processors are coupled with the memory;
One or more programs, wherein one or more of programs are stored in the memory and are configured as by institute One or more processors execution is stated, one or more of programs are configured to carry out as described in claim any one of 1-10 Method.
13. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium Sequence code, said program code can be called by processor and execute such as the described in any item methods of claim 1-10.
CN201910202402.2A 2019-03-11 2019-03-11 Method and device for generating set conditions, electronic equipment and storage medium Active CN109976172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910202402.2A CN109976172B (en) 2019-03-11 2019-03-11 Method and device for generating set conditions, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910202402.2A CN109976172B (en) 2019-03-11 2019-03-11 Method and device for generating set conditions, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109976172A true CN109976172A (en) 2019-07-05
CN109976172B CN109976172B (en) 2022-07-12

Family

ID=67079232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910202402.2A Active CN109976172B (en) 2019-03-11 2019-03-11 Method and device for generating set conditions, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109976172B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830342A (en) * 2019-12-16 2020-02-21 联通物联网有限责任公司 Intelligent household equipment communication method and system
CN111142398A (en) * 2019-12-30 2020-05-12 欧普照明股份有限公司 Equipment linkage method and device, electronic equipment and storage medium
CN112087492A (en) * 2020-08-12 2020-12-15 北京首钢自动化信息技术有限公司 Equipment management method and device, electronic equipment and storage medium
CN113050446A (en) * 2021-03-26 2021-06-29 广东好太太智能家居有限公司 Linkage control method and device for intelligent scene and storage medium
CN114070873A (en) * 2021-11-09 2022-02-18 浙江大华技术股份有限公司 Equipment linkage method and device in Internet of things, storage medium and electronic device
CN114091151A (en) * 2021-11-15 2022-02-25 国网江苏省电力有限公司扬州供电分公司 BIM model-based substation auxiliary equipment linkage logic verification method
CN115032901A (en) * 2021-12-22 2022-09-09 荣耀终端有限公司 Equipment control method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898434A (en) * 2015-04-03 2015-09-09 联想(北京)有限公司 Smart household equipment linkage rule setting method and smart household equipment linkage rule setting device
WO2017008398A1 (en) * 2015-07-13 2017-01-19 小米科技有限责任公司 Smart device control method and device
CN106547216A (en) * 2016-10-27 2017-03-29 北京小米移动软件有限公司 The method and device of intelligent scene trigger condition is set
CN108092861A (en) * 2017-12-13 2018-05-29 深圳绿米联创科技有限公司 Realize collocation method, the equipment linkage control method and device of equipment linkage
CN109445848A (en) * 2018-11-07 2019-03-08 深圳市云威物联科技有限公司 Equipment linkage method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898434A (en) * 2015-04-03 2015-09-09 联想(北京)有限公司 Smart household equipment linkage rule setting method and smart household equipment linkage rule setting device
WO2017008398A1 (en) * 2015-07-13 2017-01-19 小米科技有限责任公司 Smart device control method and device
CN106547216A (en) * 2016-10-27 2017-03-29 北京小米移动软件有限公司 The method and device of intelligent scene trigger condition is set
CN108092861A (en) * 2017-12-13 2018-05-29 深圳绿米联创科技有限公司 Realize collocation method, the equipment linkage control method and device of equipment linkage
CN109445848A (en) * 2018-11-07 2019-03-08 深圳市云威物联科技有限公司 Equipment linkage method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830342A (en) * 2019-12-16 2020-02-21 联通物联网有限责任公司 Intelligent household equipment communication method and system
CN111142398A (en) * 2019-12-30 2020-05-12 欧普照明股份有限公司 Equipment linkage method and device, electronic equipment and storage medium
CN112087492A (en) * 2020-08-12 2020-12-15 北京首钢自动化信息技术有限公司 Equipment management method and device, electronic equipment and storage medium
CN112087492B (en) * 2020-08-12 2023-05-12 北京首钢自动化信息技术有限公司 Device management method and device, electronic device and storage medium
CN113050446A (en) * 2021-03-26 2021-06-29 广东好太太智能家居有限公司 Linkage control method and device for intelligent scene and storage medium
CN114070873A (en) * 2021-11-09 2022-02-18 浙江大华技术股份有限公司 Equipment linkage method and device in Internet of things, storage medium and electronic device
CN114091151A (en) * 2021-11-15 2022-02-25 国网江苏省电力有限公司扬州供电分公司 BIM model-based substation auxiliary equipment linkage logic verification method
CN114091151B (en) * 2021-11-15 2023-03-31 国网江苏省电力有限公司扬州供电分公司 BIM model-based substation auxiliary equipment linkage logic verification method
CN115032901A (en) * 2021-12-22 2022-09-09 荣耀终端有限公司 Equipment control method and electronic equipment

Also Published As

Publication number Publication date
CN109976172B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN109976172A (en) Method, apparatus, electronic equipment and the storage medium that set condition generates
WO2020168725A1 (en) Voice control method and apparatus, storage medium and smart home system
US10489221B2 (en) Method for creating context aware application and user terminal
CN109725541A (en) Generation method, device, electronic equipment and the storage medium of automation
CN109951363B (en) Data processing method, device and system
CN109450745A (en) Information processing method, device, intelligence control system and intelligent gateway
CN108693784A (en) Management method, device, terminal device and the storage medium of home equipment
CN109445292B (en) Automatic execution result collection method, device, system and storage medium
AU2011301787B2 (en) Ontology-driven complex event processing
CN109445848A (en) Equipment linkage method and device
CN107632706A (en) The application data processing method and system of multi-modal visual human
CN102780651A (en) Method for inserting emotion data in instant messaging messages, client and system
CN109856980B (en) Intelligent household equipment recommendation method and device, Internet of things system and cloud server
CN106572007A (en) Intelligent gateway
CN110196557A (en) Apparatus control method, device, mobile terminal and storage medium
CN107850893A (en) Using contextual information event is generated on Intelligent programmable logic controller
CN109600309A (en) Exchange method, device, intelligent gateway and the storage medium of intelligent gateway
CN107370644A (en) Inter-linked controlling method, device, computer-readable recording medium and computer equipment
CN109547299A (en) Information processing method, device, intelligence control system, intelligent gateway and server
CN102866833A (en) Icon interactive system based on social network and method thereof
Fernández-Chaves et al. ViMantic, a distributed robotic architecture for semantic mapping in indoor environments
CN207147050U (en) A kind of intelligent refrigerator and intelligent refrigerator system
CN109936488A (en) Method, apparatus, electronic equipment and the storage medium of linkage scheme processing
CN108829301A (en) Replicate the method pasted and mobile terminal
Irene et al. Perlustration on existing techniques and applications in cloud computing for smart buildings using IoT

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