CN114137842A - Scene configuration method and device, electronic equipment and storage medium - Google Patents
Scene configuration method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114137842A CN114137842A CN202111284324.9A CN202111284324A CN114137842A CN 114137842 A CN114137842 A CN 114137842A CN 202111284324 A CN202111284324 A CN 202111284324A CN 114137842 A CN114137842 A CN 114137842A
- Authority
- CN
- China
- Prior art keywords
- scene
- main
- duplicate
- configuration
- target
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000010200 validation analysis Methods 0.000 claims abstract description 71
- 230000009471 action Effects 0.000 claims description 24
- 230000008569 process Effects 0.000 abstract description 12
- 230000008859 change Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total 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]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
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)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a scene configuration method, a scene configuration device, electronic equipment and a storage medium, wherein a corresponding main scene is obtained according to a main scene ID when a user terminal performs scene configuration, a target duplicate scene is selected from a plurality of duplicate scenes corresponding to the main scene, a target dimension scene condition and a corresponding target duplicate scene validation rule selected from the target duplicate scene by the user terminal are obtained, and an intelligent home scene is configured based on the target dimension scene condition and the target duplicate scene validation rule. According to the invention, by adding a plurality of duplicate scenes to each main scene and setting the multi-dimensional scene conditions and the corresponding duplicate scene validation rules for each duplicate scene, the user can configure different rules according to different expectations based on the scene validation rules of each main scene and each duplicate scene when creating a new scene, so that the execution requirements of the user for different scenes under different environments of the same scene are met, the content of the current scene rules does not need to be modified in the whole process, and time and labor are saved.
Description
Technical Field
The invention relates to the technical field of smart home, in particular to a scene configuration method and device, electronic equipment and a storage medium.
Background
Along with the development of the internet of things, the intelligent household equipment is more and more common, so that an intelligent family scene can be constructed based on the intelligent household equipment, and linkage control of the intelligent household equipment is realized.
When a user performs scene configuration, the method may be applied to various functions of various smart home devices. For a situation that multiple specific scenes exist under one function, for example, for a getting-up function of an alarm clock, the set scene may be a weekday or a weekend, in the prior art, because a unique rule of a scene, that is, one rule corresponds to one scene, if a user needs to configure different rules according to different expectations for the same scene, the user needs to create multiple scenes, and each time a new scene is created, current scene rule content needs to be continuously modified based on environmental factors and the like, which is time-consuming and labor-consuming.
Disclosure of Invention
In view of the above, the present invention discloses a scene configuration method, a scene configuration device, an electronic device, and a storage medium, so that each time a user creates a new scene, different rules can be configured according to different expectations based on scene validation rules of each main scene and each replica scene, thereby satisfying the user's requirements for different scene executions in different environments of the same scene, and the whole process does not need to modify the current scene rule content, thereby saving time and labor.
A method of scene configuration, comprising:
determining a main scene ID of a user terminal during scene configuration;
acquiring a corresponding main scene according to the main scene ID;
selecting a target duplicate scene from a plurality of duplicate scenes corresponding to the main scene, wherein each duplicate scene is created based on a multi-dimensional scene condition and a corresponding duplicate scene validation rule;
returning the target copy scene to the user terminal, and acquiring target dimension scene conditions and corresponding target copy scene validation rules selected by the user terminal from the target copy scene;
and configuring an intelligent home scene based on the target dimension scene condition and the target copy scene validation rule.
Optionally, the determining the main scene ID of the user terminal during scene configuration specifically includes:
acquiring a main scene selection instruction sent by the user terminal during scene configuration, and recording the main scene selection instruction as a first main scene selection instruction;
and selecting the main scene ID corresponding to the first main scene selection instruction from a first main scene list, wherein the first main scene list is created in advance by a user corresponding to the user terminal.
Optionally, the determining the main scene ID of the user terminal during scene configuration specifically includes:
determining a family ID to which a user ID corresponding to the user terminal belongs;
finding a corresponding main scene list according to the family ID, and recording the main scene list as a second main scene list;
acquiring a main scene selection instruction sent by the user terminal during scene configuration, and recording the main scene selection instruction as a second main scene selection instruction;
selecting the main scene ID corresponding to the second main scene selection instruction from the second main scene list.
Optionally, the determining the main scene ID of the user terminal during scene configuration specifically includes:
acquiring a target device identifier sent by the user terminal during scene configuration;
finding a corresponding main scene list according to the target equipment identifier, and recording the main scene list as a third main scene list;
acquiring a main scene selection instruction sent by the user terminal, and recording the main scene selection instruction as a third main scene selection instruction;
selecting the main scene ID corresponding to the third main scene selection instruction from the third main scene list.
Optionally, the method further includes:
acquiring a duplicate scene configuration instruction sent by the user terminal, wherein the duplicate scene configuration instruction comprises a duplicate scene identifier and duplicate scene configuration information;
and updating the scene configuration information of the duplicate scene corresponding to the duplicate scene identification by using the duplicate scene configuration information.
Optionally, after configuring the smart home scene based on the target dimension scene condition and the target copy scene validation rule, the method further includes:
acquiring equipment state reporting information sent by each intelligent household equipment;
judging whether the equipment state reporting information meets the configured triggering condition of the intelligent home scene;
and if so, controlling each corresponding intelligent household device in the intelligent household scene to execute the action of the corresponding copy scene.
Optionally, the method further includes:
and when the equipment state report information does not meet the trigger condition of the intelligent home scene, controlling each corresponding intelligent home equipment in the intelligent home scene to only execute the action of the main scene.
A scene configuration apparatus comprising:
a main scene ID determining unit, configured to determine a main scene ID of the user terminal when performing scene configuration;
a main scene obtaining unit, configured to obtain a corresponding main scene according to the main scene ID;
the copy scene selection unit is used for selecting a target copy scene from a plurality of copy scenes corresponding to the main scene, wherein each copy scene is created based on a multi-dimensional scene condition and a corresponding copy scene validation rule;
the scene information selection unit is used for returning the target copy scene to the user terminal and acquiring a target dimension scene condition and a corresponding target copy scene validation rule selected from the target copy scene by the user terminal;
and the scene configuration unit is used for configuring the intelligent household scene based on the target dimension scene condition and the target copy scene validation rule.
Optionally, the method further includes:
a configuration instruction obtaining unit, configured to obtain a duplicate scene configuration instruction sent by the user terminal, where the duplicate scene configuration instruction includes a duplicate scene identifier and duplicate scene configuration information;
and the information updating unit is used for updating the scene configuration information of the duplicate scene corresponding to the duplicate scene identifier by using the duplicate scene configuration information.
An electronic device comprising a memory and a processor;
the memory is to store at least one instruction;
the processor is configured to execute the at least one instruction to implement the scene configuration method as described above.
A computer readable storage medium storing at least one instruction which, when executed by a processor, implements a scene configuration method as described above.
The technical scheme includes that the invention discloses a scene configuration method, a scene configuration device, electronic equipment and a storage medium, a main scene ID of a user terminal during scene configuration is determined, a corresponding main scene is obtained according to the main scene ID, the main scene is pre-created based on scene basic information, a target duplicate scene is selected from a plurality of duplicate scenes corresponding to the main scene, the target duplicate scene is returned to the user terminal, a target dimension scene condition and a corresponding target duplicate scene validation rule selected from the target duplicate scene by the user terminal are obtained, and an intelligent home scene is configured based on the target dimension scene condition and the target duplicate scene validation rule. According to the invention, a plurality of duplicate scenes are added to each main scene, and the multi-dimensional scene conditions and the corresponding duplicate scene validation rules are set for each duplicate scene, so that a user can configure different rules according to different expectations based on the scene validation rules of each main scene and each duplicate scene when creating a new scene, thereby meeting the execution requirements of the user for different scenes under different environments of the same scene, and the whole process does not need to modify the content of the current scene rules, so that time and labor are saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the disclosed drawings without creative efforts.
Fig. 1 is a flowchart of a scene configuration method disclosed in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a scene configuration apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a scene configuration method, a scene configuration device, electronic equipment and a storage medium, wherein a main scene ID of a user terminal during scene configuration is determined, a corresponding main scene is obtained according to the main scene ID, the main scene is pre-created based on scene basic information, a target copy scene is selected from a plurality of copy scenes corresponding to the main scene, the target copy scene is returned to the user terminal, a target dimension scene condition and a corresponding target copy scene validation rule selected from the target copy scene by the user terminal are obtained, and an intelligent home scene is configured based on the target dimension scene condition and the target copy scene validation rule. According to the invention, a plurality of duplicate scenes are added to each main scene, and the multi-dimensional scene conditions and the corresponding duplicate scene validation rules are set for each duplicate scene, so that a user can configure different rules according to different expectations based on the scene validation rules of each main scene and each duplicate scene when creating a new scene, thereby meeting the execution requirements of the user for different scenes under different environments of the same scene, and the whole process does not need to modify the content of the current scene rules, so that time and labor are saved.
Referring to fig. 1, a flowchart of a scene configuration method disclosed in the embodiment of the present invention includes:
step S101, determining a main scene ID when a user terminal performs scene configuration;
it should be noted that each main scene has a unique corresponding ID, that is, a main scene ID.
In this embodiment, the user terminal may be a terminal device such as a smart phone, a tablet computer, or an intelligent bracelet, which has a communication function with the scene engine, and the user may configure the smart home scene through the user terminal.
Step S102, acquiring a corresponding main scene according to the main scene ID;
in this embodiment, the corresponding relationship between each main scene and the main scene ID is pre-stored, so that the corresponding main scene can be uniquely determined according to the main scene ID of the user terminal during scene configuration.
The main scene is created in advance based on scene basic information, and the scene basic information comprises: scene name, scene validation time period (scene validation start time and scene validation end time), scene type (including manual execution scene and automatic execution scene), scene icon, scene identification (including space, user, etc.), and other business strategy information.
S103, selecting a target copy scene from a plurality of copy scenes corresponding to the main scene;
in order to distinguish each of the main scenes from the duplicate scenes, a unique corresponding ID may be assigned to each of the main scenes and the duplicate scenes, and there is an association between the main scene ID and the corresponding duplicate scene ID. For example, the primary scene is getting up, the unique identifier of the primary scene is ID1, and the corresponding duplicate scenes include: a weekday get up and a weekend get up.
The unique identifier corresponding to the weekday get-up is ID1-1, the enablement is expressed as: true, the scene validation rule is: once a week to friday.
The unique identifier corresponding to weekend getting up is ID1-2, the enablement is expressed as: false, the scenario validation rule is: six days per week.
Wherein, the scene information that the weekday gets up and the weekend gets up is corresponding is: and (5) specific rules of the scene.
Each duplicate scene can be understood as a specific scene condition and action rule, that is, a set of completely new scene rule contents, which are different from the rule contents of the main scene.
In practical application, if a user needs to trigger different scene validation rules under a multi-dimensional scene condition, a duplicate scene needs to be created after a main scene is created, and the duplicate scene validation rules are added to the duplicate scene.
In this embodiment, each replica scene is created based on the multidimensional scene condition and the corresponding replica scene validation rule.
If the scene comes home:
copy scenario a: if the sun falls into the mountain, the lamp is turned on;
copy scenario B: if the sun falls into the mountain, turning on the lamp, turning on the humidifier and playing music;
copy scenario a validation rule: the old user comes back to be effective;
copy scenario B validation rule: dad mom returns to being valid.
Multidimensional scene conditions include, but are not limited to: time, trigger user (different trigger user trigger results are different), trigger device side and user biometrics. The time can be specific time, season, holiday, and other time contents. When the terminal device is triggered, for example, a user executes the same scene away from home in a panel or a door lock, the execution content of the duplicate scene is different. User biometrics, such as the user performing the same scene with a fingerprint and NFC card.
In practical applications, the multi-dimensional scene condition may include other conditions besides the above conditions, for example, an ambient temperature, and when the ambient temperature reaches a preset temperature, a certain copy scene becomes effective.
Step S104, returning the target copy scene to the user terminal, and acquiring target dimension scene conditions and corresponding target copy scene validation rules selected by the user terminal from the target copy scene;
because different dimensional scene conditions and copy scene validation rules corresponding to different copy scenes, the scene engine needs to return the target copy scene to the user terminal, and the user terminal selects the final target dimensional scene condition and the corresponding target copy scene validation rule.
And S105, configuring an intelligent home scene based on the target dimension scene condition and the target copy scene validation rule.
Specifically, after receiving the target dimension scene condition and the target copy scene validation rule sent by the user terminal, the scene engine may configure the smart home scene based on the target dimension scene condition and the target copy scene validation rule, and configure the obtained smart home scene as an action rule corresponding to the target copy scene actually. After the intelligent home scene configuration is completed, the scene engine can monitor the state change of each intelligent home device, and execute a specific scene by controlling each intelligent home device under the condition that the triggering condition of the intelligent home scene is met.
In summary, the invention discloses a scene configuration method, which includes determining a main scene ID of a user terminal during scene configuration, acquiring a corresponding main scene according to the main scene ID, pre-creating the main scene based on scene basic information, selecting a target duplicate scene from a plurality of duplicate scenes corresponding to the main scene, returning the target duplicate scene to the user terminal, acquiring target dimension scene conditions and corresponding target duplicate scene validation rules selected from the target duplicate scenes by the user terminal, and configuring an intelligent home scene based on the target dimension scene conditions and the target duplicate scene validation rules. According to the invention, a plurality of duplicate scenes are added to each main scene, and the multi-dimensional scene conditions and the corresponding duplicate scene validation rules are set for each duplicate scene, so that a user can configure different rules according to different expectations based on the scene validation rules of each main scene and each duplicate scene when creating a new scene, thereby meeting the execution requirements of the user for different scenes under different environments of the same scene, and the whole process does not need to modify the content of the current scene rules, so that time and labor are saved.
In practical applications, there are various ways to acquire a scene ID, which are illustrated below:
(1) for the case of personal scenes, the primary scene ID is determined by the user
Acquiring a main scene selection instruction sent by a user terminal during scene configuration, and recording the main scene selection instruction as a first main scene selection instruction;
and selecting a main scene ID corresponding to the first main scene selection instruction from the first main scene list, wherein the first main scene list is created in advance by a user corresponding to the user terminal.
In practical application, a user can create a master scene list according to actual needs of the user.
(2) For the case of home scenario, the master scenario ID is determined by the home
Determining a family ID to which a user ID corresponding to the user terminal belongs;
finding a corresponding main scene list according to the family ID, and recording the main scene list as a second main scene list;
acquiring a main scene selection instruction sent by a user terminal during scene configuration, and recording the main scene selection instruction as a second main scene selection instruction;
and selecting the main scene ID corresponding to the second main scene selection instruction from the second main scene list.
In this embodiment, each family has a corresponding ID, i.e., a family ID, and each family ID corresponds to IDs of all family members of the family, so that the family ID to which it belongs can be determined from the user ID.
(3) For device-dependent scenarios, determining a master scenario ID by a target device
Acquiring a target device identifier sent by a user terminal during scene configuration;
searching a corresponding main scene list according to the target equipment identifier, and recording the main scene list as a third main scene list;
acquiring a main scene selection instruction sent by a user terminal, and recording the main scene selection instruction as a third main scene selection instruction;
and selecting the main scene ID corresponding to the third main scene selection instruction from the third main scene list.
In this embodiment, a user may determine, through a user terminal, to configure an intelligent home device that needs linkage control in an intelligent home scene, where the user terminal uses the intelligent home device that needs linkage control as a target device, and sends a device identifier of the target device, that is, a target device identifier to a scene engine.
Correspondingly, after receiving the target device identifier sent by the user terminal, the scene engine can determine the smart home devices related to the smart home scene configuration of the current user.
In practical application, a user may send a target device identifier through sound box (using user voice) broadcasting, NFC (Near Field Communication), collision and collision, and the like. The target device identification can also be sent through device control, message sending (including short message, APP message, WeChat public number message and the like), time delay and the like.
In practical application, the user can also update the configuration information of the duplicate scene.
Therefore, to further optimize the above embodiment, the scene configuration method may further include:
acquiring a duplicate scene configuration instruction sent by a user terminal, wherein the duplicate scene configuration instruction comprises a duplicate scene identifier and duplicate scene configuration information;
and updating the scene configuration information of the duplicate scene corresponding to the duplicate scene identification by using the duplicate scene configuration information.
In this embodiment, the duplicate scene configuration information includes: the method comprises the steps of multidimensional scene conditions and duplicate scene validation rules, wherein the duplicate scene validation rules support all rules of multidimensional scene condition arrangement, such as condition contents of equipment state, weather, time, user, NFC collision and the like.
In order to further optimize the above embodiment, after the smart home scene is obtained in step S106, the scene configuration method may further include:
acquiring equipment state reporting information sent by each intelligent household equipment;
judging whether the equipment state reporting information meets the configured triggering condition of the intelligent home scene;
and if so, controlling each corresponding intelligent household device in the intelligent household scene to execute the action of the corresponding copy scene.
The triggering conditions of the intelligent household scene comprise: the method comprises the following steps of a main scene trigger condition, a duplicate scene trigger condition and a duplicate scene validation rule.
In the operation process of each intelligent household device, the operation of a user may change the device state of the intelligent household device, for example, the user inputs a fingerprint through the intelligent door lock after arriving at home to control the intelligent door lock to open the door, and before the intelligent door lock opens the door, the intelligent household scene is changed. In this embodiment, device state reporting information sent by each smart home device is obtained, and if the device state reporting information meets the configured triggering condition of the smart home scene, each corresponding smart home device in the smart home scene is controlled to execute an action of the replica scene.
Specifically, when the device state reporting information meets the configured triggering condition of the smart home scene (for example, the semantics of the triggering scene is identified by voice interaction) triggering scene:
1) and when the scene engine judges that the main scene trigger condition is met according to the main scene condition, executing the scene action. The scene action execution process is as follows:
1.1) collecting the multidimensional parameters required by the duplicate scene validation rule and the duplicate scene trigger condition (for example: the task, time, space occupied, etc. of a device state change or voice conversation);
1.2) sequentially judging whether each copy scene validation rule and the copy scene trigger condition are met, and if so, executing the action of the corresponding copy scene;
1.3) if all the copy scene validation rules and the copy scene trigger conditions are not satisfied, executing the action of the main scene.
2) And when the scene engine judges that the main scene trigger condition is not met according to the main scene condition, the scene engine does not execute the scene action.
In this embodiment, when the device state reporting information does not satisfy the trigger condition of the smart home scenario, each corresponding smart home device in the smart home scenario is controlled to execute only the action of the main scenario.
It should be particularly noted that when the action of the main scene or the duplicate scene is executed, the scene engine sends a device command to the target device to save the scene action, and the target device executes the save action and returns the execution result after receiving the device command.
In practical application, the main scenes may be grouped, scenes of the same type (for example, the same type is home and away) are added into the same scene group, and meanwhile, an effective rule is added to the scene group, as shown in table 1:
TABLE 1 Main scene
Corresponding to the embodiment of the scene configuration method, the invention also discloses a scene configuration device, and in practical application, the scene configuration device can be a scene engine.
Referring to fig. 2, a schematic structural diagram of a scene configuration apparatus disclosed in an embodiment of the present invention includes:
a main scene ID determining unit 201, configured to determine a main scene ID of the user terminal when performing scene configuration;
it should be noted that each main scene has a unique corresponding ID, that is, a main scene ID.
In this embodiment, the user terminal may be a terminal device such as a smart phone, a tablet computer, or an intelligent bracelet, which has a communication function with the scene engine, and the user may configure the smart home scene through the user terminal.
A main scene obtaining unit 202, configured to obtain a corresponding main scene according to the main scene ID;
in this embodiment, the corresponding relationship between each main scene and the main scene ID is pre-stored, so that the corresponding main scene can be uniquely determined according to the main scene ID of the user terminal during scene configuration.
The main scene is created in advance based on scene basic information, and the scene basic information comprises: scene name, scene validation time period (scene validation start time and scene validation end time), scene type (including manual execution scene and automatic execution scene), scene icon, scene identification (including space, user, etc.), and other business strategy information.
A duplicate scene selecting unit 203, configured to select a target duplicate scene from multiple duplicate scenes corresponding to the main scene, where each duplicate scene is created based on a multidimensional scene condition and a corresponding duplicate scene validation rule;
in order to distinguish each of the main scenes from the duplicate scenes, a unique corresponding ID may be assigned to each of the main scenes and the duplicate scenes, and there is an association between the main scene ID and the corresponding duplicate scene ID. For example, the primary scene is getting up, the unique identifier of the primary scene is ID1, and the corresponding duplicate scenes include: a weekday get up and a weekend get up.
A scene information selecting unit 204, configured to return the target duplicate scene to the user terminal, and obtain a target dimension scene condition and a corresponding target duplicate scene validation rule that are selected by the user terminal from the target duplicate scene;
because different dimensional scene conditions and copy scene validation rules corresponding to different copy scenes, the scene engine needs to return the target copy scene to the user terminal, and the user terminal selects the final target dimensional scene condition and the corresponding target copy scene validation rule.
A scene configuration unit 205, configured to configure an intelligent home scene based on the target dimension scene condition and the target replica scene validation rule.
Specifically, after receiving the target dimension scene condition and the target copy scene validation rule sent by the user terminal, the scene engine may configure the smart home scene based on the target dimension scene condition and the target copy scene validation rule, and configure the obtained smart home scene as an action rule corresponding to the target copy scene actually. After the intelligent home scene configuration is completed, the scene engine can monitor the state change of each intelligent home device, and execute a specific scene by controlling each intelligent home device under the condition that the triggering condition of the intelligent home scene is met.
In summary, the invention discloses a scene configuration device, which determines a main scene ID of a user terminal during scene configuration, acquires a corresponding main scene according to the main scene ID, the main scene is created in advance based on scene basic information, selects a target duplicate scene from a plurality of duplicate scenes corresponding to the main scene, returns the target duplicate scene to the user terminal, acquires a target dimension scene condition and a corresponding target duplicate scene validation rule selected from the target duplicate scene by the user terminal, and configures an intelligent home scene based on the target dimension scene condition and the target duplicate scene validation rule. According to the invention, a plurality of duplicate scenes are added to each main scene, and the multi-dimensional scene conditions and the corresponding duplicate scene validation rules are set for each duplicate scene, so that a user can configure different rules according to different expectations based on the scene validation rules of each main scene and each duplicate scene when creating a new scene, thereby meeting the execution requirements of the user for different scenes under different environments of the same scene, and the whole process does not need to modify the content of the current scene rules, so that time and labor are saved.
In practical applications, there are various manners of acquiring the scene ID, and therefore, the main scene ID determining unit 201 may be specifically configured to:
acquiring a main scene selection instruction sent by the user terminal during scene configuration, and recording the main scene selection instruction as a first main scene selection instruction;
and selecting the main scene ID corresponding to the first main scene selection instruction from a first main scene list, wherein the first main scene list is created in advance by a user corresponding to the user terminal.
In practical application, a user can create a master scene list according to actual needs of the user.
The main scene ID determining unit 201 may be further specifically configured to:
determining a family ID to which a user ID corresponding to the user terminal belongs;
finding a corresponding main scene list according to the family ID, and recording the main scene list as a second main scene list;
acquiring a main scene selection instruction sent by the user terminal during scene configuration, and recording the main scene selection instruction as a second main scene selection instruction;
selecting the main scene ID corresponding to the second main scene selection instruction from the second main scene list.
In this embodiment, each family has a corresponding ID, i.e., a family ID, and each family ID corresponds to IDs of all family members of the family, so that the family ID to which it belongs can be determined from the user ID.
The main scene ID determining unit 201 may be further specifically configured to:
acquiring a target device identifier sent by the user terminal during scene configuration;
finding a corresponding main scene list according to the target equipment identifier, and recording the main scene list as a third main scene list;
acquiring a main scene selection instruction sent by the user terminal, and recording the main scene selection instruction as a third main scene selection instruction;
selecting the main scene ID corresponding to the third main scene selection instruction from the third main scene list.
In practical application, the user can also update the configuration information of the duplicate scene.
Therefore, to further optimize the above embodiment, the scene configuration apparatus may further include:
a configuration instruction obtaining unit, configured to obtain a duplicate scene configuration instruction sent by the user terminal, where the duplicate scene configuration instruction includes a duplicate scene identifier and duplicate scene configuration information;
and the information updating unit is used for updating the scene configuration information of the duplicate scene corresponding to the duplicate scene identifier by using the duplicate scene configuration information.
In this embodiment, the duplicate scene configuration information includes: the method comprises the steps of multidimensional scene conditions and duplicate scene validation rules, wherein the duplicate scene validation rules support all rules of multidimensional scene condition arrangement, such as condition contents of equipment state, weather, time, user, NFC collision and the like.
To further optimize the above embodiment, the scene configuration apparatus may further include:
a reporting information obtaining unit, configured to obtain device state reporting information sent by each smart home device after the scene configuration unit configures the smart home scene based on the target dimension scene condition and the target replica scene validation rule;
the judging unit is used for judging whether the equipment state reporting information meets the configured triggering condition of the intelligent home scene;
and the duplicate scene execution unit is used for controlling each corresponding intelligent household device in the intelligent household scene to execute the action of the corresponding duplicate scene under the condition that the judgment unit judges that the intelligent household scene is positive.
And the main scene executing unit is used for controlling each corresponding intelligent household device in the intelligent household scene to only execute the action of the main scene under the condition that the judging unit judges that the intelligent household device is not the main scene.
The triggering conditions of the intelligent household scene comprise: the method comprises the following steps of a main scene trigger condition, a duplicate scene trigger condition and a duplicate scene validation rule.
In the operation process of each intelligent household device, the operation of a user may change the device state of the intelligent household device, for example, the user inputs a fingerprint through the intelligent door lock after arriving at home to control the intelligent door lock to open the door, and before the intelligent door lock opens the door, the intelligent household scene is changed. In this embodiment, device state reporting information sent by each smart home device is obtained, and if the device state reporting information meets the configured triggering condition of the smart home scene, each corresponding smart home device in the smart home scene is controlled to execute an action of the replica scene.
It should be noted that, for the specific working principle of each component in the device embodiment, please refer to the corresponding part of the method embodiment, which is not described herein again.
Corresponding to the embodiment, the invention also discloses an electronic device, which comprises a memory and a processor;
the memory is used for storing at least one instruction;
the processor is configured to execute the at least one instruction to implement the scene configuration method described above.
The invention also discloses a computer readable storage medium, which stores at least one instruction, and the at least one instruction realizes the scene configuration method when being executed by the processor.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (11)
1. A method for configuring a scene, comprising:
determining a main scene ID of a user terminal during scene configuration;
acquiring a corresponding main scene according to the main scene ID;
selecting a target duplicate scene from a plurality of duplicate scenes corresponding to the main scene, wherein each duplicate scene is created based on a multi-dimensional scene condition and a corresponding duplicate scene validation rule;
returning the target copy scene to the user terminal, and acquiring target dimension scene conditions and corresponding target copy scene validation rules selected by the user terminal from the target copy scene;
and configuring an intelligent home scene based on the target dimension scene condition and the target copy scene validation rule.
2. The method according to claim 1, wherein the determining the primary scene ID of the user terminal during the scene configuration specifically includes:
acquiring a main scene selection instruction sent by the user terminal during scene configuration, and recording the main scene selection instruction as a first main scene selection instruction;
and selecting the main scene ID corresponding to the first main scene selection instruction from a first main scene list, wherein the first main scene list is created in advance by a user corresponding to the user terminal.
3. The method according to claim 1, wherein the determining the primary scene ID of the user terminal during the scene configuration specifically includes:
determining a family ID to which a user ID corresponding to the user terminal belongs;
finding a corresponding main scene list according to the family ID, and recording the main scene list as a second main scene list;
acquiring a main scene selection instruction sent by the user terminal during scene configuration, and recording the main scene selection instruction as a second main scene selection instruction;
selecting the main scene ID corresponding to the second main scene selection instruction from the second main scene list.
4. The method according to claim 1, wherein the determining the primary scene ID of the user terminal during the scene configuration specifically includes:
acquiring a target device identifier sent by the user terminal during scene configuration;
finding a corresponding main scene list according to the target equipment identifier, and recording the main scene list as a third main scene list;
acquiring a main scene selection instruction sent by the user terminal, and recording the main scene selection instruction as a third main scene selection instruction;
selecting the main scene ID corresponding to the third main scene selection instruction from the third main scene list.
5. The scene configuration method according to claim 1, further comprising:
acquiring a duplicate scene configuration instruction sent by the user terminal, wherein the duplicate scene configuration instruction comprises a duplicate scene identifier and duplicate scene configuration information;
and updating the scene configuration information of the duplicate scene corresponding to the duplicate scene identification by using the duplicate scene configuration information.
6. The scene configuration method according to claim 1, further comprising, after configuring the smart home scene based on the target dimension scene condition and the target replica scene validation rule:
acquiring equipment state reporting information sent by each intelligent household equipment;
judging whether the equipment state reporting information meets the configured triggering condition of the intelligent home scene;
and if so, controlling each corresponding intelligent household device in the intelligent household scene to execute the action of the corresponding copy scene.
7. The scene configuration method according to claim 6, further comprising:
and when the equipment state report information does not meet the trigger condition of the intelligent home scene, controlling each corresponding intelligent home equipment in the intelligent home scene to only execute the action of the main scene.
8. A scene configuration apparatus, comprising:
a main scene ID determining unit, configured to determine a main scene ID of the user terminal when performing scene configuration;
a main scene obtaining unit, configured to obtain a corresponding main scene according to the main scene ID;
the copy scene selection unit is used for selecting a target copy scene from a plurality of copy scenes corresponding to the main scene, wherein each copy scene is created based on a multi-dimensional scene condition and a corresponding copy scene validation rule;
the scene information selection unit is used for returning the target copy scene to the user terminal and acquiring a target dimension scene condition and a corresponding target copy scene validation rule selected from the target copy scene by the user terminal;
and the scene configuration unit is used for configuring the intelligent household scene based on the target dimension scene condition and the target copy scene validation rule.
9. The scene configuration apparatus according to claim 8, further comprising:
a configuration instruction obtaining unit, configured to obtain a duplicate scene configuration instruction sent by the user terminal, where the duplicate scene configuration instruction includes a duplicate scene identifier and duplicate scene configuration information;
and the information updating unit is used for updating the scene configuration information of the duplicate scene corresponding to the duplicate scene identifier by using the duplicate scene configuration information.
10. An electronic device, comprising a memory and a processor;
the memory is to store at least one instruction;
the processor is configured to execute the at least one instruction to implement the scene configuration method according to any one of claims 1 to 7.
11. A computer-readable storage medium storing at least one instruction which, when executed by a processor, implements a scene configuration method as claimed in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111284324.9A CN114137842A (en) | 2021-11-01 | 2021-11-01 | Scene configuration method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111284324.9A CN114137842A (en) | 2021-11-01 | 2021-11-01 | Scene configuration method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114137842A true CN114137842A (en) | 2022-03-04 |
Family
ID=80391935
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111284324.9A Pending CN114137842A (en) | 2021-11-01 | 2021-11-01 | Scene configuration method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114137842A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174293A (en) * | 2022-05-30 | 2022-10-11 | 青岛海尔科技有限公司 | Scene information synchronization method and device, storage medium and electronic device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105807626A (en) * | 2016-05-17 | 2016-07-27 | 郝居杰 | Smart home control method and system |
CN108732936A (en) * | 2018-05-09 | 2018-11-02 | 青岛海信智慧家居***股份有限公司 | A kind of method and apparatus creating linkage scene information |
CN111487884A (en) * | 2020-04-20 | 2020-08-04 | 星络智能科技有限公司 | Storage medium, and intelligent household scene generation device and method |
CN111766798A (en) * | 2019-04-02 | 2020-10-13 | 青岛海信智慧家居***股份有限公司 | Intelligent household equipment control method and device |
CN111812993A (en) * | 2020-06-30 | 2020-10-23 | 广东科徕尼智能科技有限公司 | Scene linkage control method, device and storage medium |
CN111856956A (en) * | 2020-07-21 | 2020-10-30 | 青岛海信日立空调***有限公司 | Control method and control terminal for realizing scene interaction |
CN112199590A (en) * | 2020-10-10 | 2021-01-08 | 广东科徕尼智能科技有限公司 | Smart home based theme scene generation method and device and storage medium |
CN112488555A (en) * | 2020-12-11 | 2021-03-12 | 青岛海尔科技有限公司 | Intelligent scene configuration method and device, storage medium and electronic equipment |
CN113114779A (en) * | 2021-04-23 | 2021-07-13 | 杭州萤石软件有限公司 | Configuration method, terminal and system for linkage of Internet of things equipment |
CN113341754A (en) * | 2021-06-30 | 2021-09-03 | 青岛海尔科技有限公司 | Scene configuration method, scene engine, user terminal and intelligent home system |
-
2021
- 2021-11-01 CN CN202111284324.9A patent/CN114137842A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105807626A (en) * | 2016-05-17 | 2016-07-27 | 郝居杰 | Smart home control method and system |
CN108732936A (en) * | 2018-05-09 | 2018-11-02 | 青岛海信智慧家居***股份有限公司 | A kind of method and apparatus creating linkage scene information |
CN111766798A (en) * | 2019-04-02 | 2020-10-13 | 青岛海信智慧家居***股份有限公司 | Intelligent household equipment control method and device |
CN111487884A (en) * | 2020-04-20 | 2020-08-04 | 星络智能科技有限公司 | Storage medium, and intelligent household scene generation device and method |
CN111812993A (en) * | 2020-06-30 | 2020-10-23 | 广东科徕尼智能科技有限公司 | Scene linkage control method, device and storage medium |
CN111856956A (en) * | 2020-07-21 | 2020-10-30 | 青岛海信日立空调***有限公司 | Control method and control terminal for realizing scene interaction |
CN112199590A (en) * | 2020-10-10 | 2021-01-08 | 广东科徕尼智能科技有限公司 | Smart home based theme scene generation method and device and storage medium |
CN112488555A (en) * | 2020-12-11 | 2021-03-12 | 青岛海尔科技有限公司 | Intelligent scene configuration method and device, storage medium and electronic equipment |
CN113114779A (en) * | 2021-04-23 | 2021-07-13 | 杭州萤石软件有限公司 | Configuration method, terminal and system for linkage of Internet of things equipment |
CN113341754A (en) * | 2021-06-30 | 2021-09-03 | 青岛海尔科技有限公司 | Scene configuration method, scene engine, user terminal and intelligent home system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174293A (en) * | 2022-05-30 | 2022-10-11 | 青岛海尔科技有限公司 | Scene information synchronization method and device, storage medium and electronic device |
CN115174293B (en) * | 2022-05-30 | 2024-03-22 | 青岛海尔科技有限公司 | Scene information synchronization method and device, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10489221B2 (en) | Method for creating context aware application and user terminal | |
US20020085579A1 (en) | Shared registry with multiple keys for storing preferences and other applications on a local area network | |
CN109240991B (en) | File recommendation method and device, storage medium and intelligent terminal | |
CN103412788A (en) | Method and system for starting application rapidly based on user operation keys | |
CN105682011A (en) | Playback device Bluetooth module control method and device, and audio and video playing system | |
CN105573778A (en) | Method for starting application program and terminal | |
CN113225744A (en) | Intelligent device ad hoc network method, intelligent networking system and storage medium | |
CN107729764A (en) | Guard method, device, storage medium and the electronic equipment of sensitive information | |
CN114137842A (en) | Scene configuration method and device, electronic equipment and storage medium | |
CN108303902B (en) | Equipment control method, medium, equipment and device | |
WO2023168856A1 (en) | Associated scene recommendation method and device, storage medium, and electronic device | |
CN107797850A (en) | The method, apparatus and system of distributing real time system | |
CN111836339B (en) | Network equipment | |
CN114697150B (en) | Command issuing method and device, storage medium and electronic device | |
CN111464351A (en) | Network distribution method and device for intelligent household equipment, terminal equipment and storage medium | |
CN114124593B (en) | Multi-device calling method, device, control terminal and storage medium | |
CN111857477B (en) | Display control method and device, mobile terminal and storage medium | |
CN113204300A (en) | Method and system for automatically executing operation by equipment | |
CN108537300B (en) | Equipment control method, device, medium and computer equipment | |
CN115079579A (en) | Method and device for controlling intelligent voice equipment and intelligent voice equipment | |
CN112100226B (en) | Data query method and computer readable storage medium | |
CN108848250A (en) | Routing update method, device and equipment | |
CN114840557A (en) | Data query method and device, storage medium and electronic device | |
CN114675928A (en) | Container mirror image construction method and device, storage medium and electronic device | |
CN104572661A (en) | Terminal equipment and information processing method |
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 |