A method for automatically generating a scenario-based control scheme and a scenario-based control device
By recording and analyzing user operation instructions and generating scenario-based control solutions, the problem of insufficient intelligence of existing smart home devices is solved, automated control is realized, and user experience is improved.
Patent Information
- Application Number
- CN202111572257.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-12-21
AI Technical Summary
Although the control methods of existing smart home devices are intelligent, their intelligence is insufficient, resulting in the inability to work effectively when the user is not fully operated, affecting the user experience.
Provides an automatic generation method of scenario-based control scheme. By recording user operation instructions and generating scenario-based control schemes based on preset conditions, smart home devices can automatically apply appropriate control schemes to reduce repeated user operations.
It improves the intelligence of smart home devices, simplifies user operations, improves user experience, and ensures that the device automatically applies scenario-based control solutions at the right time.
Smart Images

Figure CN114326423B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home, and more specifically, to a method for automatically generating a scenario-based control solution and a scenario-based control device. Background Art
[0002] With the popularity of smart homes, people's daily lives are becoming more and more convenient. At present, when using daily homes, users usually control smart home devices one by one through mobile terminals, so as to achieve the effect of accurately controlling smart home devices. However, in practice, it is found that although the current control method of smart home devices can achieve intelligence to a certain extent, its intelligence level is far from enough, so that when users do not fully operate, smart home devices cannot work effectively, thus affecting the user experience. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a method for automatically generating a scenario-based control solution and a scenario-based control device, which can automatically record each operation of the user and automatically generate a suitable scenario-based control solution based on the recorded operations, so that the smart home device can automatically apply the scenario-based control solution at the appropriate time, thereby avoiding repeated operations by the user, thereby improving the intelligence of the smart home device and improving the user experience.
[0004] A first aspect of an embodiment of the present application provides a method for automatically generating a scenario-based control solution, the method being applied to a scenario-based control device, the method comprising:
[0005] Acquire multiple operation instructions within a detection time window;
[0006] Confirming that the multiple operation instructions meet the preset scene generation conditions, generating a scene-based control solution according to the multiple operation instructions,
[0007] The step of confirming that the plurality of operation instructions meet the preset scenario generation conditions and generating a scenario-based control scheme according to the plurality of operation instructions includes:
[0008] Determine that the operation times of the multiple operation instructions match a preset operation times, and generate a home appliance control scene based on the multiple operation instructions.
[0009] In the above implementation process, the method can record all operation instructions within a preset time period through the scenario control device when the user operates the smart home device, and judge in real time whether the automatically recorded operation instructions can generate a scenario control plan, and automatically generate a scenario control plan when the operation instructions meet the conditions, so that the smart home device can directly call the scenario control plan during future use.
[0010] Furthermore, the step of confirming that the multiple operation instructions meet preset scenario generation conditions and generating a scenario-based control solution according to the multiple operation instructions includes:
[0011] Determining an operation sequence among the multiple operation instructions;
[0012] Confirm whether the operation sequence is consistent with a preset logical operation sequence, and generate a home appliance control scene based on the multiple operation instructions.
[0013] Furthermore, the step of confirming that the multiple operation instructions match the preset scene generation conditions and generating a scene-based control solution according to the multiple operation instructions includes:
[0014] determining a plurality of operation time intervals between the plurality of operation instructions;
[0015] Confirm that the multiple operation time intervals match a preset time interval threshold, and generate a home appliance control scene based on the multiple operation instructions.
[0016] Furthermore, the plurality of operation instructions include a corresponding household appliance combination relationship between the operation instructions and a time interval relationship between the operation instructions;
[0017] The step of determining that the operation times of the plurality of operation instructions match the preset operation times, and generating a home appliance control scene based on the plurality of operation instructions comprises:
[0018] Determine that a combination relationship of home appliances corresponding to the multiple operation instructions and a time interval relationship between the operation instructions match a preset scenario, and generate a home appliance control scenario based on the multiple operation instructions;
[0019] Wherein, the multiple operation instructions are input by more than two input devices.
[0020] Furthermore, the input device includes buttons on the home appliance control panel, an application, a remote controller, and a speaker.
[0021] Furthermore, the method further comprises:
[0022] It is confirmed that the detection time window is not started when the operation instruction is obtained, and the detection time window is started.
[0023] Furthermore, the step of confirming that the multiple operation instructions meet the preset scenario generation conditions and generating a scenario-based control solution according to the multiple operation instructions includes:
[0024] Extracting continuous associated instructions from the multiple operation instructions;
[0025] Counting the occurrence frequency of the continuous associated instructions in the instruction record database;
[0026] When it is confirmed that the occurrence frequency is greater than a preset frequency threshold, a scenario-based control solution is generated according to the continuous association instructions.
[0027] Furthermore, the step of generating a scenario-based control scheme according to the multiple operation instructions includes:
[0028] extracting a plurality of valid instructions from the plurality of operation instructions;
[0029] constructing the plurality of valid instructions into an instruction sequence;
[0030] Acquiring scenario information matching the instruction sequence;
[0031] A scenario-based control solution is generated according to the instruction sequence and the scenario-based information.
[0032] Furthermore, the step of extracting a plurality of valid instructions from the plurality of operation instructions comprises:
[0033] A plurality of valid instructions are extracted according to the operation sequence and the operation dependency among the plurality of operation instructions.
[0034] A second aspect of an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the processor is used to read a program stored in the memory, and the program is used to execute the method for automatically generating a scenario-based control solution described in the first aspect of the embodiment of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 A schematic diagram of a flow chart of a method for automatically generating a scenario-based control solution provided in an embodiment of the present application;
[0037] Figure 2 A schematic diagram of the structure of a scenario-based control device provided in an embodiment of the present application;
[0038] Figure 3 A flowchart of an application method of a scenario-based control solution provided in an embodiment of the present application;
[0039] Figure 4 A schematic diagram of the structure of a scenario-based control device provided in an embodiment of the present application;
[0040] Figure 5 A flowchart of an application method of a scenario-based control solution provided in an embodiment of the present application;
[0041] Figure 6 A schematic diagram of the structure of a scenario-based control device provided in an embodiment of the present application;
[0042] Figure 7 A flowchart of an application method of a scenario-based control solution provided in an embodiment of the present application;
[0043] Figure 8 A schematic diagram of the structure of a scenario-based control device provided in an embodiment of the present application;
[0044] Fig. 9 A flowchart of an application method of a scenario-based control solution provided in an embodiment of the present application;
[0045] Fig.10 A flowchart of an application method of a scenario-based control solution provided in an embodiment of the present application;
[0046] Fig.11 A schematic diagram of the structure of a scenario-based control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0048] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0049] Example 1
[0050] Please see Figure 1 , Figure 1 A flow chart of a method for automatically generating a scenario-based control solution is provided for an embodiment of the present application. The method for automatically generating a scenario-based control solution is applied to a scenario-based control device, and the method includes:
[0051] S101: When an operation instruction of a user to at least one smart home device is detected, start recording multiple operation instructions within a detection time window.
[0052] In this embodiment, a local area network may include many smart home devices, wherein the local area network may be a home local area network or an outdoor local area network.
[0053] In this embodiment, when the user operates at least one smart home device, the user can send an operation instruction through the control device. At this time, the scenario control device can capture the operation instruction sent by the control device and record the operation instruction.
[0054] In this embodiment, the control device that sends the operation instruction can be a user's mobile phone or a controller of a smart home device (such as a remote control of a smart air conditioner or a remote control of a smart TV).
[0055] In this embodiment, there is no limitation on the signal type of the operation instruction.
[0056] In this embodiment, the scenario control device has multiple communication functions, and the communication function is used to represent a wifi communication function, a bluetooth communication function, an infrared communication function, and the like.
[0057] In this embodiment, the scenario control device captures all the operation instructions that can be captured in real time, and these operation instructions are the operation instructions when the user normally operates the smart home device. Therefore, this scenario control device can complete the capture and recording of the operation instructions without interfering with the normal use of the smart home device.
[0058] In this embodiment, when the user turns on a group of associated smart home devices such as a TV and a speaker, the user may turn on the TV and set the signal source of the TV through the TV remote control, and then send a signal to control the speaker to turn on through the mobile phone. In this scenario, the scenario control device can capture the operation instructions sent by the remote control, and can also capture the operation instructions sent by the mobile phone. It can be seen that the scenario control device can capture all instructions and record them during normal use by the user.
[0059] In this embodiment, the scenario-based control device can effectively obtain all operating instructions, so that subsequent steps can be scenario-customized based on all operating instructions, thereby achieving effective generation of scenario-based control solutions.
[0060] In this embodiment, the operation instructions include switch instructions, volume adjustment instructions, signal source adjustment instructions, etc. Among them, the operation instructions for different smart home devices may be different, and for these different operation instructions, the scene control device can capture and record them all, and mark or number them accordingly according to different smart home devices. For example, an operation instruction is sent to a refrigerator of model XXX, which is used to control the refrigerator to perform operation YYY; the operation instruction can be "XXX: YYY" when the record is put into the warehouse.
[0061] In this embodiment, the operation instruction may also be a voice instruction, and the scenario control device has a voice recognition function and a voice conversion function.
[0062] In this embodiment, the detection time window is a preset detection duration.
[0063] In this embodiment, when the method detects the user's operation instructions for controlling the smart home, it is considered that the user starts to control the smart home, and a detection time window is opened with this moment as the starting point, and all operation instructions of the user in this detection time window are recorded.
[0064] In this embodiment, the length of the detection time window may be ΔT, and the time when the first operation instruction is received is t1, and the detection end time t2 = t1 + ΔT can be calculated. It can be seen that all operation instructions during the period from t1 to t2 will be recorded.
[0065] In this embodiment, the detection time window is preset, and the general operation duration will not be longer than the detection time window. Therefore, if multiple operation instructions corresponding to the operation duration exceeding the detection time window are received, it is highly likely that many invalid operation instructions will be included.
[0066] In this embodiment, the method can detect the validity of the operation instructions in real time. If 80% of the operation instructions are valid, the detection time window is dynamically adjusted so that the operation instructions can be fully recorded, avoiding the situation where the operation instructions are not fully recorded due to a short detection time window.
[0067] In this embodiment, the multiple operation instructions may include repeated operation instructions, and the scenario-based control device accepts them all, and the analysis and processing process is left to subsequent steps.
[0068] S102: Determine the operation sequence among multiple operation instructions.
[0069] In this embodiment, the multiple operation instructions are basically not issued at the same time, because the multiple operation instructions have an operation sequence.
[0070] In this embodiment, the method may first perform a validity check on a plurality of operation instructions, identify invalid instructions, and then determine the operation sequence of all valid instructions.
[0071] In this embodiment, the operation sequence refers to the sequence of each instruction in the plurality of operation instructions. For example, the method may number all the operation instructions, with the numbers of the first received instructions being small and the numbers of the later received instructions being gradually increased.
[0072] S103, determine whether the operation sequence is consistent with the preset logical operation sequence, if so, execute steps S104 to S105; if not, end this process.
[0073] In this embodiment, after determining the operation sequence, the method can determine whether the operation instruction complies with the normal logical operation sequence according to the specific operation content of the operation instruction.
[0074] In this embodiment, the normal logic operation sequence is the preset logic operation sequence, but this method encapsulates the normal logic operation sequence into the scenario control device.
[0075] For example, when operating a TV, a user usually turns it on first and then performs subsequent operations. This operation sequence conforms to normal logic, so it is a normal logical operation sequence. However, when operating a TV, a user turns it off first and then performs subsequent operations. This operation sequence is considered to be inconsistent with normal logic, so it is not a normal logical operation sequence.
[0076] In this embodiment, according to the above examples, it can be seen that the logical operation sequence stored in the scenario control device conforms to the behavioral cognition of normal users. When it is detected that the operation sequence of multiple users conforms to the logical operation sequence, it means that the user operation is a normal and orderly forward operation; otherwise, the user operation is considered invalid, and the process of generating this scenario control solution ends.
[0077] S104: Determine multiple operation time intervals between multiple operation instructions.
[0078] In this embodiment, the operation time interval includes multiple levels of meanings, which essentially refers to the operation time interval between each operation instruction, because normally the operation time interval between each operation instruction is neither too small nor too large.
[0079] In this embodiment, the first level of the above multi-level meaning is used to indicate that the user's operation is normal, and an operation instruction is sent every few seconds. The second level of the above multi-level meaning is used to indicate that the operation used is based on the actual operation object, such as turning on the TV. It takes 5 seconds to turn on the TV. At this time, the operation time interval is 5 seconds, and the normal operation time interval for the TV to play channels and adjust the volume is 1 second. Therefore, the method can determine the validity of the operation through multiple operation time intervals, and only execute the subsequent steps if it is valid.
[0080] S105, determining whether the time intervals of the multiple operations are all greater than a preset time interval threshold, if so, executing steps S106 to S107; if not, ending the process.
[0081] In this embodiment, step S105 focuses on judging the validity of the time interval between the operation instructions of the first level. The effect of implementing this implementation is to avoid the occurrence of continuous random pressing, and when the operation instruction is considered to be continuous random pressing, the generation of the scenario control scheme is prohibited.
[0082] In this embodiment, the time interval threshold may be 200 ms or 500 ms, and this threshold may be determined according to actual conditions.
[0083] S106. Counting the first occurrence frequencies of multiple operation instructions in a preset instruction record database; the instruction database includes all recorded operation instructions.
[0084] In this embodiment, the instruction database includes all operation instructions, wherein these operation instructions usually correspond to multiple smart home devices, and in this case specifically refer to the operation instructions for the controlled smart home devices. It is understandable that the user has performed multiple operations on the smart home device, and the scenario control device has recorded multiple operation instructions that meet the detection time window.
[0085] In this embodiment, the first occurrence frequency indicates the ratio between the number of occurrences of the multiple operation instructions captured this time and the number of all the operation instructions. Generally speaking, the first occurrence frequency is used to indicate that a group of operation instructions used to control the same TV set has a higher frequency of occurrence; specifically, if the user has operated 50 times, and this group of operation instructions has been used 20 times, then 20 / 50=40% is calculated as the first occurrence probability.
[0086] S107, determining whether the first occurrence frequency is greater than a preset first frequency threshold, if so, executing steps S108 to S109; if not, terminating the process.
[0087] In this embodiment, the preset first frequency threshold is used to determine whether the multiple operation instructions corresponding to the above-mentioned first occurrence frequency are a group of commonly used operation instructions.
[0088] For example, the method has determined that the first occurrence probability is 40%, and the first frequency threshold is 25%, which means that the group of operation instructions is frequently used, and the subsequent process is executed.
[0089] As an optional implementation, the method further includes:
[0090] When the first occurrence frequency is not greater than a first frequency threshold, extracting continuous associated instructions from the multiple operation instructions;
[0091] Counting the second occurrence frequency of the consecutive associated instructions in the instruction record database;
[0092] When the second occurrence frequency is greater than a preset second frequency threshold, a scenario-based control scheme is generated according to the continuous association instructions.
[0093] In this embodiment, when it is determined that the multiple operation instructions are not a group of commonly used operation instructions, the method can extract continuously associated instructions with strong correlation from the multiple operation instructions, and determine whether the continuously associated instructions appear frequently.
[0094] In this embodiment, the consecutive associated instructions are determined by instruction association.
[0095] In this embodiment, the continuous associated instruction also includes a plurality of operation instructions, but the number of the operation instructions in the continuous associated instruction is less than the number of the original plurality of operation instructions.
[0096] In this embodiment, the method can further determine whether there are multiple operation instructions that can generate a scenario-based control solution through a smaller number of instructions.
[0097] In this embodiment, the second frequency threshold is usually greater than the first frequency threshold.
[0098] S108. Counting third occurrence frequencies of the plurality of operation instructions occurring at a specified time in the instruction record database.
[0099] In this embodiment, when a plurality of operation instructions constitute a group of operation instructions, and the group of operation instructions has appeared multiple times, the method may further determine whether the group of operation instructions appears within a fixed time period.
[0100] For example, when the group of operation instructions is a plurality of operation instructions for controlling turning on the air conditioner, adjusting the temperature, adjusting the air supply, and adjusting the wind direction, it is determined whether the group of operation instructions is often input at 8 pm. The ratio of the number of times the group of operation instructions is input at 8 pm to the number of detection days is the third occurrence frequency.
[0101] S109, determining whether the third occurrence frequency is greater than a preset third frequency threshold, if so, executing step S110; if not, executing steps S111 to S113.
[0102] In this embodiment, the third occurrence frequency being greater than the third frequency threshold means that this group of multiple operation instructions do appear at a high frequency at the same time.
[0103] S110, generating a scenario-based control solution according to multiple operation instructions.
[0104] In this embodiment, the scenario-based control solution is a scenario-based control solution that the user often uses at a specified time every day.
[0105] As an optional implementation, the step of generating a scenario-based control solution according to the multiple operation instructions includes:
[0106] A home appliance control scene is generated based on the multiple operation instructions.
[0107] In this embodiment, the multiple operation instructions include a corresponding home appliance combination relationship between the operation instructions and a time interval relationship between the operation instructions.
[0108] As a further optional implementation manner, the step of determining that the operation times of the multiple operation instructions match the preset operation times, and generating the home appliance control scene based on the multiple operation instructions includes:
[0109] Determine that a combination relationship of home appliances corresponding to the multiple operation instructions and a time interval relationship between the operation instructions match a preset scenario, and generate a home appliance control scenario based on the multiple operation instructions;
[0110] Wherein, the multiple operation instructions are input by more than two input devices.
[0111] In this embodiment, the input device includes buttons on the home appliance control panel, an application program, a remote controller, and a speaker.
[0112] S111. Extracting consecutive associated instructions from a plurality of operation instructions.
[0113] In this embodiment, the continuous associated instructions are multiple operation instructions, and the number of the multiple operation instructions is smaller than the original multiple operation instructions.
[0114] S112. Counting the fourth occurrence frequency of the consecutive associated instructions in the instruction record database.
[0115] In this embodiment, the fourth occurrence frequency is the occurrence frequency of the continuous associated instructions in the database.
[0116] S113: When the fourth occurrence frequency is greater than a preset fourth frequency threshold, a scenario-based control solution is generated according to the continuous association instruction.
[0117] In this embodiment, if the fourth occurrence frequency is greater than the fourth frequency threshold, it means that the continuously associated instructions are a set of instructions that the user uses every day.
[0118] In this embodiment, generating a scenario-based control scheme according to the continuous association instruction can greatly improve the effectiveness and control accuracy of the scenario-based control scheme.
[0119] In this embodiment, the executor of the method is a scenario-based control device, which may be a computer device with multiple communication functions or other smart devices such as smart phones and tablet computers, and this embodiment does not impose any limitation on this.
[0120] In this embodiment, the scenario control device may be one of at least one smart home device, that is, one of the at least one smart home device is a scenario control device.
[0121] It can be seen that the method for automatically generating the scenario-based control scheme described in the present embodiment can record all operation instructions within a preset time period through the scenario-based control device when the user operates the smart home device, and judge in real time whether the automatically recorded operation instructions can generate a scenario-based control scheme, and automatically generate a scenario-based control scheme when the operation instructions meet the conditions, so that the smart home device can directly call the scenario-based control scheme during future use.
[0122] Example 2
[0123] Please see Figure 2 , Figure 2 This is a schematic diagram of the structure of a scenario control device provided in an embodiment of the present application. Figure 2 As shown, the scenario control device includes:
[0124] The recording unit 210 is configured to start recording a plurality of operation instructions within a detection time window when an operation instruction of a user to at least one smart home device is detected;
[0125] A first judging unit 220, used to judge whether a plurality of operation instructions meet a preset scene generation condition;
[0126] The first generating unit 230 is used to generate a scenario-based control solution according to the multiple operating instructions when the multiple operating instructions meet the scenario generation conditions.
[0127] As an optional implementation manner, the first determination unit 220 includes:
[0128] A determination subunit 221 is used to determine the operation sequence between multiple operation instructions;
[0129] The first judging subunit 222 is used to judge whether the operation sequence is consistent with the preset logical operation sequence;
[0130] The determination subunit 221 is used to determine that the multiple operation instructions meet the scene generation condition when the operation sequence does not violate the logical operation sequence.
[0131] As an optional implementation manner, the first determination unit 220 includes:
[0132] A determination subunit 221, configured to determine a plurality of operation time intervals between a plurality of operation instructions;
[0133] The first judging subunit 222 is used to judge whether the multiple operation time intervals are all greater than a preset time interval threshold;
[0134] The determination subunit 221 is used to determine that the multiple operation instructions meet the scene generation condition when the multiple operation time intervals are all greater than the time interval threshold.
[0135] As an optional implementation manner, the first generating unit 230 includes:
[0136] A counting subunit 231 is used to count the first occurrence frequencies of the plurality of operation instructions in a preset instruction record database when the plurality of operation instructions meet the scenario generation condition; the instruction database includes all recorded operation instructions;
[0137] The second judging subunit 232 is used to judge whether the first occurrence frequency is greater than a preset first frequency threshold;
[0138] The generating subunit 233 is used to generate a scenario-based control solution according to a plurality of operation instructions when the first occurrence frequency is greater than a first frequency threshold.
[0139] As an optional implementation manner, the first generating unit 230 further includes:
[0140] A first extraction subunit 234, configured to extract continuous associated instructions from a plurality of operation instructions when the first occurrence frequency is not greater than a first frequency threshold;
[0141] A statistical subunit 231, used for counting the second occurrence frequency of the consecutive associated instructions in the instruction record database;
[0142] The generating subunit 233 is used to generate a scenario-based control scheme according to the continuous association instruction when the second occurrence frequency is greater than a preset second frequency threshold.
[0143] As an optional implementation, the generating subunit 233 includes:
[0144] A statistical module, for counting, in an instruction record database, third occurrence frequencies of a plurality of operation instructions occurring at a specified time when the first occurrence frequency is greater than a first frequency threshold;
[0145] A judging module, used to judge whether the third occurrence frequency is greater than a preset third frequency threshold;
[0146] A generation module is used to generate a scenario-based control solution according to multiple operation instructions when the third occurrence frequency is greater than a third frequency threshold.
[0147] As an optional implementation manner, the generating subunit 233 further includes:
[0148] an extraction module, configured to extract continuous associated instructions from a plurality of operation instructions when the third occurrence frequency is not greater than a third frequency threshold;
[0149] A statistical module, used for counting the fourth occurrence frequency of the consecutive associated instructions in the instruction record database;
[0150] A generation module is used to generate a scenario-based control solution according to continuous association instructions when the fourth occurrence frequency is greater than a preset fourth frequency threshold.
[0151] As an optional implementation manner, the first generating unit 230 includes:
[0152] A first extraction subunit 234, used for extracting a plurality of valid instructions from a plurality of operation instructions;
[0153] A construction subunit 235, for constructing a plurality of valid instructions into an instruction sequence;
[0154] A first acquisition subunit 236, used to acquire scenario information matching the instruction sequence;
[0155] The generation subunit 233 is used to generate a scenario-based control solution based on the instruction sequence and scenario-based information.
[0156] As an optional implementation, the first extraction subunit 234 is specifically configured to extract multiple valid instructions according to the operation sequence and operation correlation between the multiple operation instructions.
[0157] In the embodiments of the present application, the explanation of the scenario-based control device can refer to the description in Embodiment 1, and no further elaboration will be given in this embodiment.
[0158] It can be seen that the scenario control device described in this embodiment can exist as a separate auxiliary device. The scenario control device can capture and record user operation instructions through its own infrared communication function, wifi communication function and various other communication functions; and when the scenario control device records the user's operation instructions, it automatically determines whether a scenario control scheme can be generated, and automatically generates a scenario control scheme. It can be seen that the scenario control device can automatically generate a scenario control scheme, and can also automatically apply the scenario control scheme to smart home devices through various communication functions, which is conducive to realizing the intelligence of smart home scenario control.
[0159] Example 3
[0160] Please see Figure 3 , Figure 3 A flow chart of an application method of a scenario-based control solution is provided for an embodiment of the present application. The application method of the scenario-based control solution is applied to a scenario-based control device, and the method includes:
[0161] S701: Generate a scenario-based control solution according to a user's operation instruction on at least one smart home device.
[0162] In this embodiment, the user operates at least one smart home device. In this embodiment, the number of operation instructions is not limited.
[0163] In this embodiment, the method can generate a scenario-based control solution based on multiple operation instructions sent by the user to at least one smart home device.
[0164] In this embodiment, the scenario-based control solution automatically generates an automation control solution for the current scene, and the scenario-based control solution is used to control all smart home devices in the current scene.
[0165] In this embodiment, the scenario control scheme is automatically generated according to the user's operation, but the scenario control scheme is not necessarily the optimal control scheme. Therefore, the user can also continuously adjust and optimize the scenario control scheme. In short, the scenario control scheme can be understood as a customized control scheme for multiple smart home devices for the current scene.
[0166] In this embodiment, although the scenario control device provides such a scenario control scheme generation method, in practice, manufacturers usually preset many factory preset control schemes for scenarios. Such factory preset control schemes are obtained by debugging, calibrating and optimizing the smart home device before it leaves the factory, so when the smart home device uses such factory preset control schemes, it can usually achieve the best use effect.
[0167] In this embodiment, the scenario-based control device can preferentially capture the user's operating instructions for the smart home device, and generate a scenario-based control solution according to the operating instructions.
[0168] In this embodiment, the scenario-based control scheme can be used to control smart home devices for scenario-based control, but generally speaking, the scenario-based control scheme is not the optimal control scheme, that is, it still needs to be continuously learned and optimized according to the user's operating instructions to obtain the optimal scenario-based control scheme.
[0169] S702: Obtain a smart home device type, a smart home device function, and a smart home device parameter corresponding to at least one smart home device.
[0170] In this embodiment, since there are usually many smart home devices, the method targets a complete scene. Therefore, in the process of recommendation, it is necessary to first clarify what the scene is, and then make recommendations. The process of clarifying what the scene is is actually to determine what the smart home device is, and what the smart home device is needs to be determined by the type and capability of the smart home device.
[0171] In this embodiment, the type of the smart home device is used to indicate that the smart home device is a certain type of a lamp type, a kitchenware type, a home appliance type, etc.
[0172] In this embodiment, the capabilities of the smart home device include functions and parameters of the smart home device, wherein the functions of the smart home device are used to indicate what the smart home device can do, and the parameters of the smart home device are used to indicate how much capability the smart home device has to complete the above functions.
[0173] In this embodiment, the functions of the smart home device may include controlling the brightness of lights by levels and controlling the amount of heat dissipated by electric heaters by levels.
[0174] In this embodiment, the parameters of the smart home device may include how bright a light can be and how dark it can be; they may also include how hot the electric heater can be and how cold it can be.
[0175] In this embodiment, the method can obtain the smart home device type, smart home device function and smart home device parameters corresponding to each smart home device, and execute subsequent steps based on this.
[0176] S703: Match at least one preset home device corresponding to the smart home device type, smart home device function and smart home device parameter in the manufacturer's preset home device library.
[0177] In this embodiment, the manufacturer preset home device library includes information of all smart home devices manufactured by the manufacturer. It is understandable that the information of the smart home devices used by the user must be stored in the manufacturer preset home device library.
[0178] In this embodiment, the preset home device is a smart home device that is matched to the above type, function, and parameters. Among them, a group of smart home device types, smart home device functions, and smart home device parameters can usually match multiple preset home devices.
[0179] In this embodiment, the method can match all corresponding preset home devices according to the smart home device type, smart home device function and smart home device parameter. Then, the method can freely combine the preset home devices to obtain the most matching set of preset home devices.
[0180] In this embodiment, in the process of combining all the acquired preset home appliances, the method can obtain other information in the current scene, and filter the preset home appliances according to the other information, so as to obtain at least one preset home appliance that best matches the current scene.
[0181] In this embodiment, at least one preset home appliance can be considered as a preset home appliance combination. It can be understood that at least one preset home appliance and the preset home appliance combination are used to represent the same meaning, that is, at least one preset home appliance obtained by matching.
[0182] In this embodiment, the most ideal situation is to match a preset home device combination that is completely consistent with the smart home device combination.
[0183] In this embodiment, the ideal situation is not easy to obtain, so this method can obtain an approximate preset home appliance combination. Among them, the approximate situation includes many kinds, and this embodiment only gives the following two examples:
[0184] Example 1: The smart home device combination is a hall lamp and a smart speaker, and the preset home devices are a bedroom lamp and a smart speaker. Although the functions and parameters of the lamps are different, they are essentially the same, so the manufacturer's preset control solution can be recommended based on this;
[0185] Example 2: The smart home device combination is five lights, and the preset home device is six lights. Although the number of lights is different, both of them control the lights accordingly, and their essence is the same. Therefore, the manufacturer's preset control solution can be recommended based on this.
[0186] S704: Obtain the user's personal preference information.
[0187] In this embodiment, the personal preference information includes the user's personal age, the user's personal preferences, etc. The user's personal preferences may be the type of songs the user likes or other preferences, which are not limited in this embodiment.
[0188] S705: In the manufacturer preset scene library, match the manufacturer preset scene corresponding to the personal preference information and at least one preset home appliance.
[0189] In this embodiment, the method can match a factory preset scene corresponding to at least one preset home appliance in the factory preset scene library; and then perform homogenization processing on the factory preset scene according to the personal preference information to obtain a new factory preset scene. In this way, a factory preset scene that matches the user's operating habits can be matched.
[0190] For example, the user is an elderly person who prefers light music. Then, the factory preset scene should be a scene where the elderly listen to light music. Therefore, the corresponding factory preset control solution can be used to control the indoor temperature to be comfortable and control the smart speaker to play light music.
[0191] S706: Obtain a factory preset control solution that matches the factory preset scenario.
[0192] In this embodiment, the factory preset scenes are not as monotonous as in the above example. In fact, the factory preset scenes include a lot, such as watching TV and adjusting the volume of the TV and the corresponding sound box, such as just returning home to turn on the air conditioner and boil water, etc.
[0193] In this embodiment, for each manufacturer-preset scenario, the manufacturer will preset a manufacturer-preset control solution.
[0194] In this embodiment, the manufacturer's preset control scheme can be stored in the cloud or in a scenario-based control device, and there is no limitation on this in this embodiment.
[0195] S707: Obtain a preset home appliance type, a preset home appliance function, and a preset home appliance parameter of at least one preset home appliance in a manufacturer's preset control solution.
[0196] In this embodiment, similar to the smart home device type, smart home device function and smart home device parameters of the smart home, the preset home device type, preset home device function and preset home device parameters are used to represent the type and capability of at least one preset home device applicable to the manufacturer's preset control scheme.
[0197] In this embodiment, the at least one preset home appliance is the preset home appliance obtained in the above steps.
[0198] In this embodiment, each preset home appliance corresponds to a preset home appliance type, a preset home appliance function, and a preset home appliance parameter.
[0199] S708. Calculate a first approximation between a preset home appliance type and a smart home appliance type, calculate a second approximation between a preset home appliance function and a smart home appliance function, and calculate a third approximation between a preset home appliance parameter and a smart home appliance parameter.
[0200] In this embodiment, the first similarity is used to indicate whether the preset home device type and the smart home device type are similar or the same type. For example, an electric heater and an electric stove are both indoor heating types, but they are not the same devices.
[0201] In this embodiment, the method can calculate based on the major category comparison result (0 or 1) and the first weight to obtain the major category similarity; then the method can calculate based on the minor category comparison result (0 or 1) and the second weight to obtain the minor category similarity; finally, the sum of the major category similarity and the minor category similarity is calculated and used as the first similarity.
[0202] In this embodiment, the second similarity is used to indicate whether the functions of the preset home device type and the smart home device are similar or the same. If they are similar, it means that the two are not the same device, but have similar functions, such as lighting and heating.
[0203] In this embodiment, the method has corresponding similarity scores for similar device types, identical device types, or different device types (eg, 0 for different, 0.5 for similar, and 1 for identical), and the scoring result is the second similarity.
[0204] In this embodiment, the third similarity is used to indicate whether the parameters of the preset home device type and the smart home device are the same or similar, wherein the third similarity includes many sub-values, and the sub-values are used to indicate the score of whether each parameter is similar or the same. The method can obtain the third similarity by weighted calculation and value, wherein the calculation process is not described in detail in this embodiment.
[0205] S709: Calculate the approximation between the manufacturer's preset control solution and the scenario-based control solution based on the first approximation, the second approximation, and the third approximation.
[0206] In this embodiment, this step is intended to comprehensively calculate the approximation between the manufacturer's preset control solution and the scenario-based control solution through multiple approximation values, thereby improving the accuracy and credibility of the approximation.
[0207] In this embodiment, the above calculation method may also be a weighted summation method, which will not be elaborated in this embodiment.
[0208] S710. Determine whether the similarity between the manufacturer's preset control solution and the scenario-based control solution is greater than a preset similarity threshold. If so, execute step S711; if not, execute steps S712 to S713.
[0209] In this embodiment, being greater than the preset similarity threshold means that the manufacturer's preset control solution meets the current scenario and can be used to control smart home devices, thereby avoiding further adjustments and optimizations by the user.
[0210] In this embodiment, being less than the preset similarity threshold means that there is a relatively large difference between the manufacturer's preset control solution and the scenario-based control solution, and it is not recommended to use the manufacturer's preset control solution for control.
[0211] S711. Recommend the factory preset control scheme.
[0212] In this embodiment, the method may recommend a factory preset control solution to the user, and the method may also recommend a factory preset control solution to at least one smart home device, which is not limited in this embodiment.
[0213] In this embodiment, when the method recommends a factory preset control solution to at least one smart home device, the at least one smart home device may perform corresponding automatic control according to the factory preset control solution.
[0214] S712: Determine other home devices except at least one smart home device in at least one preset home device.
[0215] In this embodiment, the method can eliminate at least one smart home device from at least one preset home device to obtain the other home device that is not in the current scene. The other home device and at least one smart home device can be combined to obtain at least one preset home device. It can be understood that the current scene is consistent with the manufacturer's preset scene only by lacking this other home device.
[0216] In this embodiment, based on the above situation, the scenario control device can detect whether the other home appliance exists. If so, step S713 is executed; if not, the user is recommended to purchase the other home appliance.
[0217] S713: Output startup prompt information that matches other home appliances.
[0218] In this embodiment, the startup prompt information can be output to the user or to other home appliances.
[0219] In this embodiment, when the startup prompt information is output to the user, it is used to notify the user that the other home devices can be turned on to achieve a better smart home usage effect.
[0220] In this embodiment, when the startup prompt information is output to other home appliances, it is used to automatically control the other home appliances to automatically start and realize the intelligent operation of the smart home.
[0221] In this embodiment, the executor of the method is a scenario-based control device, which may be a computer device with multiple communication functions or other smart home devices such as a smart phone or a tablet computer, and this embodiment does not impose any limitation on this.
[0222] In this embodiment, the scenario control device may be one of at least one smart home device, that is, one of the at least one smart home device is a scenario control device.
[0223] It can be seen that the application method of the scenario-based control scheme described in this embodiment can first complete the generation of the scenario-based control scheme, and then find a similar factory preset control scheme based on the generated scenario-based control scheme, until a factory preset control scheme similar to or even identical to the scenario-based control scheme is found, and the method starts to recommend the factory preset control scheme, so that the user or the smart home device can use the factory preset control scheme to automatically control the smart home device. It can be seen that the implementation of this implementation method can automatically match the factory preset control scheme suitable for the current scene based on the user's operation, so that the smart home device can realize automatic control according to the factory preset control scheme, thereby improving the user's experience.
[0224] Example 4
[0225] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a scenario control device provided in an embodiment of the present application. Figure 4 As shown, the scenario control device includes:
[0226] A second generating unit 810 is used to generate a scenario-based control solution according to an operation instruction of a user on at least one smart home device;
[0227] A matching unit 820, configured to match a factory preset scene corresponding to at least one smart home device in a factory preset scene library;
[0228] The second acquisition unit 830 is used to acquire a factory preset control solution that matches the factory preset scenario;
[0229] The second judgment unit 840 is used to judge whether the similarity between the manufacturer's preset control solution and the scenario-based control solution is greater than a preset similarity threshold;
[0230] The recommendation unit 850 is used to recommend the manufacturer's preset control solution when the similarity between the manufacturer's preset control solution and the scenario-based control solution is greater than a preset similarity threshold.
[0231] As an optional implementation, the matching unit 820 includes:
[0232] A second acquisition subunit 821 is used to acquire a smart home device type, a smart home device function and a smart home device parameter corresponding to at least one smart home device;
[0233] The second matching subunit 822 is used to match at least one preset home device corresponding to the smart home device type, smart home device function and smart home device parameter in the manufacturer's preset home device library;
[0234] The second matching subunit 822 is further used to match a manufacturer preset scene corresponding to at least one preset home appliance in the manufacturer preset scene library.
[0235] As an optional implementation, the matching unit 820 includes:
[0236] The second acquisition subunit 821 is used to acquire the user's personal preference information;
[0237] The second matching subunit 822 is used to match the factory preset scene corresponding to the personal preference information and at least one smart home device in the factory preset scene library.
[0238] As an optional implementation, the scenario control device further includes:
[0239] The second acquisition unit 830 is used to acquire a preset home appliance type, a preset home appliance function and a preset home appliance parameter of at least one preset home appliance in a manufacturer's preset control scheme;
[0240] The second acquisition unit 830 is further used to acquire the smart home device type, smart home device function and smart home device parameters of at least one smart home device in the scenario control solution;
[0241] A calculation unit 860, configured to calculate a first similarity between a preset home device type and a smart home device type, calculate a second similarity between a preset home device function and a smart home device function, and calculate a third similarity between a preset home device parameter and a smart home device parameter;
[0242] The calculation unit 860 is further used to calculate the approximation between the manufacturer's preset control solution and the scenario-based control solution based on the first approximation, the second approximation and the third approximation.
[0243] In this embodiment, after the calculation unit 860 calculates the similarity between the manufacturer's preset control scheme and the scenario-based control scheme, it triggers the second judgment unit 840 to execute an operation of determining whether the similarity between the manufacturer's preset control scheme and the scenario-based control scheme is greater than a preset similarity threshold.
[0244] As an optional implementation, the scenario control device further includes:
[0245] The second acquisition unit 830 is further configured to acquire at least one preset home appliance corresponding to the manufacturer's preset scene when the similarity between the manufacturer's preset control solution and the scenario-based control solution is not greater than a preset similarity threshold;
[0246] A second determining unit 870 is used to determine other home devices except at least one smart home device in at least one preset home device;
[0247] The output unit 820 is used to output startup prompt information matching other home appliances.
[0248] Example 5
[0249] Please see Figure 5 , Figure 5 A flow chart of an application method of a scenario-based control solution is provided for an embodiment of the present application. The application method of the scenario-based control solution is applied to a scenario-based control device of a first user, and the application method of the scenario-based control solution includes:
[0250] S901. Generate a scenario-based control solution according to an operation instruction of a first user on at least one smart home device.
[0251] In this embodiment, the first user is used to refer to the user of the current home local area network, and the subsequent second user is used to refer to the user of the corresponding home local area network.
[0252] In this embodiment, the home local area network generally includes at least one smart home device, regardless of whether it is the current home corresponding to the first user or the corresponding home corresponding to the second user.
[0253] In this embodiment, it can be seen from the explanation of the first user and the second user that the first user and the second user may be the same user. The core of the method is to share the scenario control scheme used by the smart home device in the local area network where the first user is located with the smart home device in the local area network where the second user is located.
[0254] For example, the first user is the user himself, and the second user is a friend, then the method is the process of the user himself sharing his scene control solution with the friend. Among them, when the friend is a relative of the user, the method does not need to control the smart home devices of the relative one by one, thereby simplifying the user's operation and improving the intelligence of the use of smart home devices.
[0255] For example, when the user is a young person and the friend is an elderly person, the young person can set up a scenario control solution based on the smart home devices in his own home, and push this solution to the smart home devices in the elderly's home, so that the smart home devices in the elderly's home can use the scenario control solution. In this way, the young person does not need to go to the elderly's home to perform the corresponding settings, thereby achieving the effect of remote control and replacement operation; at the same time, the main effect of this method can be reflected in that the young person can experience the effect of the smart home device working, so that the scenario control solution shared with the elderly is appropriate, rather than the existing stiff effect of transferring parameters to control smart home devices.
[0256] In this embodiment, after the first user controls the scenario control device to generate a scenario control plan, when the first user is on a business trip or visiting a relative's house, the first user can obtain the scenario control plan as the second user to perform intelligent control of the smart home devices in the current environment, thereby avoiding repeated control.
[0257] In this embodiment, in theory, the second user can receive the scenario-based control solution intact, and in this case, it is only necessary that the home smart home device of the first user and the home smart home device of the second user are the same.
[0258] In this embodiment, the method always needs to perform subsequent adaptive adjustment, but for the above-mentioned identical home smart home devices, the adjustment control scheme obtained by the adaptive adjustment is the same as the scenario control scheme.
[0259] In this embodiment, the at least one smart home device is all smart home devices in the current home local area network of the first user.
[0260] In this embodiment, the scenario-based control solution is automatically generated when the user operates the smart home device.
[0261] In this embodiment, the scenario-based control scheme is used to represent a customized control scheme that conforms to the current specific scenario.
[0262] In this embodiment, while the first user operates at least one smart home device, the scenario control device captures the control instruction to obtain the operation instruction of the at least one smart home device.
[0263] In this embodiment, there may be multiple smart home devices, and at least one smart home device is used to refer to a collection of smart home devices in a home.
[0264] In this embodiment, the operation instruction is used to represent all instructions for controlling smart home devices, and there is no limitation on the number of the operation instructions.
[0265] S902: Obtain a list of smart home devices of the second user.
[0266] In this embodiment, the second user can be anyone such as a friend, relative, or netizen of the first user, and this is not limited in this embodiment.
[0267] In this embodiment, in some special cases, the second user can be the first user. For example, if the first user is on a business trip to a hotel, the first user in the hotel can be the second user.
[0268] In this embodiment, the smart home list of the second user is used to represent the list of smart home devices in the home LAN of the second user. It can be understood that no matter who the second user is, what is to be obtained here is the list of smart home devices in the corresponding LAN.
[0269] In this embodiment, the smart home device list includes information such as the name, type, model, production date, purchase date, software version, etc. of the smart home devices.
[0270] In this embodiment, the method can obtain the smart home device list in the scenario control device of the second user.
[0271] S903: In the smart home device list, match according to the smart home device type corresponding to at least one smart home device to obtain at least one user device corresponding to the at least one smart home device.
[0272] In this embodiment, at least one smart home device is a smart home device controlled by the first user. Therefore, the method needs to determine a user device that matches the at least one smart home device in the home local area network where the second user is located.
[0273] For example, if the first user controls a lamp, the method needs to determine whether there is a lamp in the home local area network where the second user is located, and if there is a lamp, determine a lamp with approximately the same location and model as the lamp controlled by the first user, and use the lamp as the user device. The above location can be the living room, and the model can be an edge lamp.
[0274] In this embodiment, the number of the at least one smart home device and the number of the at least one user device are usually the same.
[0275] In this embodiment, it is not excluded that the number of at least one smart home device and at least one user device is usually different. Generally speaking, the different number is caused by the lack of corresponding smart home device in the home LAN of the second user. On the other hand, the different number may also be caused by the fact that the lamp group used by the first user has 5 lamp beads, while the lamp group used by the second user has 3 lamp beads, and the number is also different in this case.
[0276] In this embodiment, the method can match according to the type of smart home devices, such as matching lamps, matching heating devices, etc. It can be seen that in this way, the details of whether the above group of lamps has 3 lamp beads or 5 lamp beads can be ignored, thereby ensuring that the smart home devices in the two home LANs are roughly the same.
[0277] In this embodiment, after matching according to the smart home device type corresponding to at least one smart home device, further matching can be performed according to the smart home device function corresponding to the at least one smart home device and the smart home device parameters corresponding to the at least one smart home device, and then at least one user device corresponding to the at least one smart home device is obtained.
[0278] In this embodiment, the method can more accurately match the corresponding user equipment, thereby improving the effect of intelligent control.
[0279] In this embodiment, since this method will perform adaptive adjustment, the above-mentioned set of lamps will be adaptively adjusted whether there are 3 lamp beads or 5 lamp beads. Therefore, this detail can be ignored.
[0280] S904: Obtain a smart home device function, smart home device parameters, and smart home device location corresponding to at least one smart home device.
[0281] In this embodiment, the capabilities of the smart home device include functions and parameters of the smart home device, wherein the functions of the smart home device are used to indicate what the smart home device can do, and the parameters of the smart home device are used to indicate how much capability the smart home device has to complete the above functions.
[0282] In this embodiment, the method introduces the concept of smart home device location. The smart home device location has two meanings. The first meaning is the location of the smart home device in the home, such as in the living room or indoors; the second meaning is the location of the smart home device on the earth, such as the corresponding longitude and latitude or provincial and municipal location.
[0283] In this embodiment, the method can obtain the above information and make adaptive adjustments according to the local geographical environment and weather conditions. For example, if the air conditioner is turned on to 28 degrees, the 28 degrees is cold air or warm air. Generally speaking, warm air is turned on in the north and cold air is turned on in the south.
[0284] S905: Obtain user equipment functions, user equipment parameters, and user equipment locations corresponding to at least one user equipment.
[0285] In this embodiment, the method obtains user device functions, user device parameters, and user device locations of at least one user device, so that at least one user device and at least one smart home device can be effectively compared to obtain difference information between the two.
[0286] S906: Determine first difference information between the smart home device function and the user device function, determine second difference information between the smart home device parameter and the user device parameter, and determine third difference information between the smart home device location and the user device location.
[0287] In this embodiment, the first difference information is used to indicate the difference between the function of the smart home device and the function of the user device.
[0288] In this embodiment, the second difference information is used to indicate the difference between the smart home device parameters and the user device parameters.
[0289] In this embodiment, the third difference information is used to indicate the difference between the location of the smart home device and the location of the user device.
[0290] In this embodiment, the first difference information, the second difference information and the third difference information are all in the form of text information, usually not in the form of numbers.
[0291] S907. Determine device difference information between at least one smart home device and at least one user device according to the first difference information, the second difference information, and the third difference information.
[0292] In this embodiment, the method can determine the difference between two smart home devices based on differences in multiple details, thereby facilitating determination of an adaptive adjustment solution.
[0293] S908: Obtain first personal preference information of the first user.
[0294] In this embodiment, the first personal preference information is used to represent the preference information of the first user, and the first description is only used to distinguish the second user from the second personal preference information.
[0295] In this embodiment, the personal preference information may include personal age information, preference information, etc.
[0296] S909: Perform homogenization processing on the scenario-based control scheme according to the first personal preference information to obtain a homogenized control scheme.
[0297] In this embodiment, the method can adaptively adjust the scenario-based control scheme according to the first personal preference information, and then homogenize the adjustment results so that the obtained homogenized control scheme will not be too biased and affect the user experience.
[0298] In this embodiment, the homogenization processing is used to indicate that the scenario-based control scheme is adjusted to a translator-homogenized control scheme that meets the preferences of the first person and takes into account the preferences of the general public.
[0299] S910: Acquire second personal preference information of a second user.
[0300] In this embodiment, the second personal preference information is used to represent the preference information of the second user, and the second description is only used to distinguish the first user from the first personal preference information.
[0301] In this embodiment, the personal preference information may include personal age information, preference information, etc.
[0302] S911. Adaptively adjust the homogenized control scheme according to the second person preference information and the device difference information to obtain an adjusted control scheme.
[0303] In this embodiment, adaptive adjustment is used to indicate adjusting the uniform control scheme so that the uniform control scheme is suitable for the preference of the second user.
[0304] S912: Share the adjusted control solution to the scenario-based control device of the second user.
[0305] In this embodiment, after completing the above processing process, the first user's scenario control device shares the processing result - the adjusted control scheme to the second user's scenario control device, so that the second user's scenario control device can use the adjusted control scheme to perform corresponding scenario control on the smart home devices in the home local area network.
[0306] In this embodiment, the executor of the method is a scenario-based control device, which may be a computer device with multiple communication functions or other smart home devices such as a smart phone or a tablet computer, and this embodiment does not impose any limitation on this.
[0307] In this embodiment, the scenario control device may be one of at least one smart home device, that is, one of the at least one smart home device is a scenario control device.
[0308] It can be seen that the application method of the scenario control scheme described in this embodiment can be implemented to complete the generation of the scenario control scheme according to the user's operation first, and then determine the destination of the scenario control scheme sharing according to the user's needs, wherein the second user is the user at the destination, and the corresponding smart home device list corresponds to the list of all smart home devices in the smart home local area network. At this time, the scenario control device can be adaptively adjusted according to the smart home devices in the smart home device list, so that the adjusted control scheme can be adapted to this new scene, and finally by sharing the adjustment control scheme to the scenario control device in the new scene, the scenario control device completes the intelligent control in the scene in real time. It can be seen that the implementation of this implementation method can automatically generate a scenario control scheme corresponding to the scene, and complete the localization work through a suitable adaptive method, so that the shared adjustment control scheme can be adapted to the new scene where the second user is located, thereby avoiding the user's secondary operation, and improving the convenience of using smart home devices, and improving the user's experience.
[0309] Example 6
[0310] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of a scenario control device provided in an embodiment of the present application. Figure 6 As shown, the scenario control device includes:
[0311] The third generating unit 1010 is used to generate a scenario-based control solution according to the operation instruction of the first user on at least one smart home device;
[0312] The third acquisition unit 1020 is used to acquire a smart home device list of the second user;
[0313] An adjustment unit 1030, configured to adaptively adjust the scenario-based control scheme according to the smart home device list to obtain an adjusted control scheme;
[0314] The sharing unit 1040 is used to share the adjusted control solution to the scenario-based control device of the second user.
[0315] As an optional implementation, the adjusting unit 1030 includes:
[0316] The third acquisition subunit 1031 is used to acquire the first personal preference information of the first user;
[0317] The processing subunit 1032 is used to perform homogenization processing on the scenario-based control scheme according to the first personal preference information to obtain a homogenized control scheme;
[0318] The adjustment subunit 1033 is used to adaptively adjust the uniform control scheme according to the smart home device list to obtain an adjusted control scheme.
[0319] As an optional implementation, the adjusting subunit 1033 includes:
[0320] A first acquisition module, used to acquire second personal preference information of a second user;
[0321] The adjustment module is used to adaptively adjust the uniform control scheme according to the second person's preference information and the smart home device list to obtain an adjusted control scheme.
[0322] As an optional implementation, the adjusting unit 1030 includes:
[0323] The third matching subunit 1034 is used to match the smart home device list according to the smart home device type corresponding to the at least one smart home device to obtain at least one user device corresponding to the at least one smart home device;
[0324] The third acquisition subunit 1031 is used to acquire device difference information between at least one smart home device and at least one user device;
[0325] The adjustment subunit 1033 is further used to adaptively adjust the scenario-based control scheme according to the device difference information to obtain an adjusted control scheme.
[0326] As an optional implementation manner, the third obtaining subunit 1031 includes:
[0327] A second acquisition module is used to acquire a smart home device function, a smart home device parameter and a smart home device location corresponding to at least one smart home device;
[0328] A second acquisition module, configured to acquire a user equipment function, a user equipment parameter, and a user equipment location corresponding to at least one user equipment;
[0329] a determination module, configured to determine first difference information between a function of a smart home device and a function of a user device, determine second difference information between a parameter of the smart home device and a parameter of the user device, and determine third difference information between a location of the smart home device and a location of the user device;
[0330] The determination module is used to determine device difference information between at least one smart home device and at least one user device according to the first difference information, the second difference information and the third difference information.
[0331] Example 7
[0332] Please see Figure 7, Figure 7 A flow chart of an application method of a scenario-based control solution is provided for an embodiment of the present application. The application method of the scenario-based control solution is applied to a scenario-based control device, and the application method of the scenario-based control solution includes:
[0333] S1101. When at least one smart home device detects a triggering behavior or a scenario-based control device captures an operation instruction of a user to at least one smart home device, a scenario-based control scheme corresponding to the triggering behavior is matched in a preset scenario-based control scheme database or a scenario-based control scheme corresponding to the operation instruction is matched.
[0334] In this embodiment, two situations are described in this step, and the method only needs to satisfy one of the situations to execute the subsequent steps.
[0335] In this embodiment, the first situation included in this step is that at least one smart home device detects a triggering behavior. It can be understood that this situation is used to illustrate that there is a triggering condition in the scenario control solution, and the triggering behavior just meets the triggering condition.
[0336] In this embodiment, the triggering behavior is a behavior used to trigger the execution of the step of determining the scenario-based control solution corresponding to the triggering behavior in a preset scenario-based control solution database.
[0337] For example, the user can set the trigger time of the scenario control scheme in the timer, and when the timer confirms that the current time is the trigger time, the steps of determining the scenario control scheme corresponding to the trigger behavior can be matched in the preset scenario control scheme database. In this example, the trigger behavior is that the current time is the trigger time, and the behavior here is equivalent to the condition.
[0338] For another example, when a user returns home, the home sensor detects that the user has arrived. This is a user behavior. At this time, the scenario control device can match the scenario control solution that needs to be executed when the user returns home based on the user behavior. In this example, the triggering behavior is the user's behavior of returning home, which can be the user's behavior of returning home and turning on the lights. In a more specific example, the user's habit of unlocking the door when returning home is detected by the smart home device, and it is determined that the user has returned home, and then the scenario control solution is executed based on this.
[0339] To give another example, at least one smart home device can simultaneously detect whether the user has returned home and whether he returns home at 8 o'clock. It can be seen that in this case, the triggering behavior includes both the specified time and the user behavior. Based on this example, it can be seen that the triggering behavior is not necessarily a single behavior, but can also be a composite behavior. In actual situations, this composite behavior has a higher probability of occurrence, its detection is more accurate, and the matched scenario control solution is more accurate.
[0340] In this embodiment, the triggering behavior includes machine behavior and user behavior. The machine behavior includes timing behavior, temperature and humidity specified behavior, light specified behavior, etc. The user behavior includes user action behavior, user identification behavior, user other behavior, etc. Among them, the user identification behavior is used to indicate that the smart home device performs face recognition on the user, thereby determining that the user is a family member.
[0341] In this embodiment, a common method is to identify the user's actions and the user's identity. For example, the method can determine whether the user has returned home. If so, the scenario control scheme corresponding to the user's homecoming scenario is executed; if the identified identity is someone else, the scenario control scheme corresponding to the other person entering the house is executed (this scheme can be used for anti-theft or receiving guests).
[0342] In this embodiment, there is no limitation on the detection capability of the smart home device.
[0343] In this embodiment, the second situation included in this step is that the scenario control device captures the user's operation instructions for at least one smart home device, and when the operation instructions are captured, the scenario control solution corresponding to the operation instructions is matched.
[0344] In this embodiment, this scheme corresponds to the user controlling the smart home device in the hope that the smart home device can achieve the corresponding scenario control effect. However, this type of control has occurred so often in the past that it has been recorded as a preset scenario control scheme. Therefore, when the method starts the smart home device, the scenario control device can determine the user's operating intention through a small number of captured operating instructions, and call the desired scenario control scheme for scenario control. It can be seen that this method can avoid the user from completely controlling the smart home device, thereby improving the user's experience.
[0345] For example, the user has been turning on the air conditioner at 26 degrees for cooling and high winds at home in the past few days. Then, when the user turns on the air conditioner and turns on the cooling function at home, the scene control device can determine that the user wants to turn the air conditioner to 26 degrees for high winds, and then the scene control device automatically controls the air conditioner to adjust, avoiding the user's subsequent adjustments.
[0346] For example, when the user controls the smart curtains to close, they usually also turn off the lights in the room and turn on the night light. At this time, when the user controls the smart curtains to close and turns off the lights in the room, the scene control device thinks that the user is ready to go to bed, so it automatically calls the corresponding scene control solution and turns on the night light. It can be seen that this method includes the linkage between multiple smart home devices.
[0347] In this embodiment, the process of the user operating at least one smart home device itself can generate a corresponding scenario-based control plan; however, when a scenario-based control plan already exists and the user still operates in this way, the scenario-based control device can automatically match the scenario-based operation plan and control the smart home device to execute the scenario-based control plan, thereby achieving the automated control effect of the smart home device.
[0348] S1102. Obtain working scene information of at least one smart home device.
[0349] In this embodiment, the working scene information is determined by the working status of each smart home device.
[0350] In this embodiment, the working state of each smart home device generally includes an on / off state, a working standby state, a working intensity state, working power information, and information obtained by the smart home device through operation, etc.
[0351] In this embodiment, the working scene information is used to indicate what the smart home devices in the current home are doing, and can indicate which scene the things these smart home devices are doing conform to.
[0352] S1103. Obtain scenario information corresponding to the scenario-based control solution.
[0353] In this embodiment, the scenario-based control solution includes operation instructions for controlling at least one smart home device, and scenario information of the smart home device can be determined based on the operation instructions.
[0354] In this embodiment, the scenario information is used to indicate the working status of the smart home device before or after the scenario-based control of the smart home device.
[0355] In this embodiment, the working state of each smart home device generally includes an on / off state, a working standby state, a working intensity state, working power information, and information obtained by the smart home device through operation, etc.
[0356] S1104. Determine whether the solution scenario information matches the work scenario information. If so, execute steps S1105 to S1106; if not, end this process.
[0357] In this embodiment, this step is used to determine whether the current scene needs to execute the scenario-based control solution before executing the scenario-based control solution.
[0358] In this embodiment, if the scenario is going home, then the work scenario should not be when someone is at home; if the scenario is KTV, then the work scenario should not be sleeping.
[0359] In this embodiment, no matter what the scene is, the working state of the smart home device will reflect it, and these working states will constitute the working scene information. Therefore, the working scene information can be used to determine whether the scene-based control solution can be executed.
[0360] In this embodiment, generally speaking, the solution scenario information refers to the working scenario information of the smart home devices corresponding to the scenario control solution before they are started.
[0361] For example, when the user returns home, the smart home device should trigger the scenario control scheme for the home scene, but if someone is already at home, then there is no need to trigger the scenario control scheme for the home scene. Among them, the starting state of the smart home device in the scenario control scheme for returning home should be the standby state, and when someone is at home, the smart home device is usually in the working state, such as the lights will be on.
[0362] S1105. Extract at least one control instruction, at least one control moment, and at least one control object in the scenario-based control solution; wherein the at least one control instruction, the at least one control moment, and the at least one control object correspond to each other one by one.
[0363] In this embodiment, the scenario-based control solution can control multiple smart home devices, and in the control process, the control object, control instruction and control sequence are usually considered. Therefore, this step extracts all the corresponding information of these three, so as to facilitate the subsequent corresponding and accurate control of the smart home devices.
[0364] S1106. Send at least one control instruction to at least one smart home device according to at least one control object, so that the at least one smart home device executes at least one control instruction corresponding to the at least one control moment based on at least one control moment.
[0365] In this embodiment, the method sends corresponding control instructions according to the control object, so that the control object can execute its own control instructions.
[0366] In this embodiment, when multiple smart home devices are used as control objects, the multiple smart home devices can execute corresponding control instructions at the same time.
[0367] In this embodiment, for the same control object (ie the same smart home device), the smart home device may obtain multiple control instructions. At this time, the smart home device should control it according to the control time corresponding to the control instruction.
[0368] In this embodiment, when executing multiple control instructions, the smart home device can detect the control timing of the control instructions and perform corresponding control operations when ensuring that the control timing conforms to the preset normal logic. For example, the TV must be turned on first before operation.
[0369] In this embodiment, when the smart home device executes multiple control instructions, the smart home device can adaptively adjust the control instructions according to the actual scene, obtain a new set of control instructions, and perform scene-based control according to the new set of control instructions. For example, when the TV is currently on, there is no need to execute the TV power-on instruction; when the TV power-on instruction is sent and the TV starts for a little longer, the TV can wait until the TV is turned on before executing subsequent instructions.
[0370] In this embodiment, the executor of the method is a scenario-based control device, which may be a computer device with multiple communication functions or other smart home devices such as a smart phone or a tablet computer, and this embodiment does not impose any limitation on this.
[0371] In this embodiment, the scenario control device may be one of at least one smart home device, that is, one of the at least one smart home device is a scenario control device.
[0372] It can be seen that the application method of the scenario control scheme described in this embodiment can detect the user's operation or behavior in real time, and judge whether the user wants to perform scenario control on the smart home device based on the detected result. If the user does want to perform scenario control on the smart home device, the scenario control scheme corresponding to the current operation or behavior is automatically selected, and the smart home device is controlled to perform automatic control according to the scenario control scheme. It can be seen that the implementation of this implementation method can automatically complete the corresponding scenario control according to the user's operation or behavior, so that the scenario work of the smart home device can be realized with less user operation or triggering, thereby making the user experience better.
[0373] Example 8
[0374] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a scenario control device provided in an embodiment of the present application. Figure 8 As shown, the scenario control device includes:
[0375] The fourth determining unit 1210 is configured to determine a scenario-based control scheme according to the trigger information when at least one smart home device or scenario-based control device detects the trigger information;
[0376] The fourth acquisition unit 1220 is used to acquire working scene information of at least one smart home device;
[0377] The fourth judgment unit 1230 is used to judge whether the scenario control scheme matches the working scenario information;
[0378] The control unit 1240 is used to control at least one smart home device to execute the scenario-based control scheme when the scenario-based control scheme matches the working scenario information.
[0379] As an optional implementation, the fourth determination unit 1210 is specifically used to match the scenario control scheme corresponding to the operation instruction in the preset scenario control scheme database when the scenario control device captures the user's operation instruction to at least one smart home device.
[0380] As an optional implementation, the fourth determination unit 1210 is specifically used to match the scenario-based control solution corresponding to the triggering behavior in a preset scenario-based control solution database when at least one smart home device detects a triggering behavior.
[0381] As an optional implementation manner, the fourth determining unit 1230 includes:
[0382] The fourth acquisition subunit 1231 is used to acquire solution scenario information corresponding to the scenario control solution;
[0383] The judging subunit 1232 is used to judge whether the solution scenario information matches the working scenario information;
[0384] Among them, the control unit 1240 is specifically used to control at least one smart home device to execute a scenario-based control solution when the solution scenario information matches the working scenario information.
[0385] As an optional implementation, the control unit 1240 includes:
[0386] The fourth extraction subunit 1241 is used to extract at least one control instruction, at least one control moment and at least one control object in the scenario-based control solution; wherein the at least one control instruction, the at least one control moment and the at least one control object correspond to each other one by one;
[0387] The sending subunit 1242 is used to send at least one control instruction to at least one smart home device according to at least one control object, so that the at least one smart home device executes at least one control instruction corresponding to the at least one control moment based on at least one control moment.
[0388] It can be seen that the scenario control device described in this embodiment can automatically detect a small amount of user operations or behaviors, and determine the scenario operations that the user wants the smart home device to perform based on the user's small amount of operations or behaviors; on this basis, the scenario control device further determines the scenario control scheme based on the determined scenario operation intention, and controls the smart home device to perform scenario control based on the scenario control scheme. It can be seen that the implementation of this implementation method can automatically identify the user's operation behavior intention, thereby controlling the smart home device to execute the corresponding scenario control scheme, thereby improving the intelligence of the scenario control and improving the user's experience of using the smart home device.
[0389] Example 9
[0390] See also Fig. 9 , an embodiment of the present application provides a method for initializing a smart home device, the method comprising:
[0391] S1301, receiving and saving debugging instructions of multiple smart home devices and triggering time intervals between debugging instructions of multiple smart home devices;
[0392] S1302, obtaining authorization information of multiple current smart home devices;
[0393] S1303: Initialize multiple current smart home devices according to authorization information of the current smart home devices, debugging instructions of multiple smart home devices, and triggering time intervals between the debugging instructions of multiple smart home devices.
[0394] The above method is applicable to multiple hardcover houses with the same home smart system. The smart home devices of multiple smart home smart systems are composed of the same. Therefore, you can first record the instructions and complete the initialization of the home smart system in each hardcover house according to the recorded instructions. Considering that the authorization information of each household's smart home device needs to be obtained before initialization, first obtain the authorization information of the current home appliance smart home device, and complete the initialization of the home system of the current hardcover house according to the authorization information.
[0395] It can be understood that, in the above embodiment, the multiple current smart home devices are multiple smart home devices in the home smart system that currently needs to be initialized.
[0396] In the above embodiment, the debugging instructions of multiple smart home devices input by the user are obtained and saved. Since multiple smart home devices in the smart home system are interconnected, the initialization of multiple smart home devices needs to be performed in a certain order, otherwise the initialization will fail. Therefore, the trigger time interval between multiple debugging instructions is also received. Considering that the smart home systems in the fine-decorated houses are consistent, the debugging instructions of multiple smart home devices can be used to initialize the smart home systems of multiple fine-decorated houses. Specifically, the authorization information of multiple smart home devices is obtained, and the initialization of each fine-decorated house is completed according to the authorization information of the home appliances, the debugging instructions of multiple home appliances, and the trigger time interval between the debugging instructions of multiple home appliances.
[0397] It can be understood that since the authorization information of the smart home devices in each fine-decorated house is available when each fine-decorated house is installed, the authorization information of the smart home devices in each fine-decorated house can be stored during installation. Therefore, the time to complete the initialization depends on the execution time of the home appliance itself. Based on the above implementation, the working time of the staff can be quickly saved.
[0398] See also Fig.10 , the present application provides a method for initializing a smart home device, comprising:
[0399] S1304, receiving and saving debugging instructions for multiple smart home devices and triggering time intervals between debugging instructions for multiple smart home devices;
[0400] S1306, acquiring the execution order of the debugging instructions of the multiple smart home devices according to the triggering time interval of the debugging instructions of the multiple smart home devices;
[0401] S1307, determining whether the execution order of the debugging instructions of the multiple smart home devices complies with the debugging order; if not, executing S1308; if so, executing S1309;
[0402] S1308. Issue an alarm message.
[0403] S1309, obtaining authorization information of multiple current smart home devices;
[0404] S1310: Initialize multiple current smart home devices according to authorization information of the current smart home devices, debugging instructions of multiple smart home devices, and triggering time intervals between the debugging instructions of the multiple smart home devices.
[0405] In the above implementation process, multiple smart home devices have a dependency relationship between them, and the initialization order of the multiple smart home devices has a certain impact on the initialization time of the entire smart home system. For example, if there is a repeater in the smart home system, the smart home device connected to the repeater needs to receive the home appliance debugging device only after the repeater is initialized. Therefore, after receiving the trigger time interval of multiple smart home devices, the trigger order of the debugging instructions of the multiple smart home devices is obtained according to the trigger time interval of the multiple smart home devices, and it is determined whether the trigger order meets the requirements. Specifically, conditions can be preset to determine whether the execution order of the debugging instructions of the multiple smart home devices meets the preset conditions. For example, the debugging instruction of the repeater needs to be executed first.
[0406] In a possible implementation, the debugging instructions for the multiple smart home devices include multiple activation instructions and multiple initialization instructions; S1303 includes the following sub-steps:
[0407] Replacing the authorization information in the multiple activation instructions with the current home appliance authorization information of the multiple smart home devices to obtain multiple replaced activation instructions;
[0408] The multiple current smart home devices are initialized according to the triggering time intervals between the multiple replaced activation instructions, the multiple initialization instructions and the debugging instructions of the multiple smart home devices.
[0409] In the above implementation process, the activation instruction includes the authorization information of the home appliance. Therefore, by replacing the home appliance authorization information of multiple smart home devices originally recorded with the authorization information of multiple current smart home devices, multiple replaced activation instructions can be obtained, and the multiple replaced activation instructions can activate the current smart home devices.
[0410] In a possible implementation, the step of initializing multiple current smart home devices according to the triggering time intervals between multiple replaced activation instructions, multiple initialization instructions, and multiple debugging instructions of smart home devices includes:
[0411] sending a plurality of replaced activation instructions and a plurality of initialization instructions to a plurality of smart home devices according to a triggering time interval between the debugging instructions of the plurality of smart home devices, or
[0412] According to the trigger time interval between the debugging instructions of multiple smart home devices, multiple replaced activation instructions and multiple initialization instructions are sent to the scenario control device, so that the scenario control device sends the multiple replaced activation instructions and multiple initialization instructions to multiple current smart home devices.
[0413] In the above embodiment, according to the trigger time interval between the debugging instructions of multiple smart home devices, multiple replaced activation instructions and multiple initialization instructions are sent to the corresponding smart home devices. This is suitable for the situation where the number of floors and buildings in the community is small. The staff enters each household and activates the smart home system of each household through the terminal.
[0414] Taking into account that the existing residential area is large and has many floors, in order to further reduce the workload of the staff, multiple replaced activation instructions and multiple initialization instructions are sent to the scenario control device according to the trigger time interval between the debugging instructions of multiple smart home devices, so that the scenario control device sends the multiple replaced activation instructions and multiple initialization instructions to multiple current smart home devices.
[0415] In the above embodiment, the entire community is divided into multiple sub-areas, each sub-area has a scenario control device, and the scenario control device is used to receive the debugging instructions of multiple smart home devices and send the debugging instructions of multiple smart home devices to multiple smart home devices.
[0416] In a possible implementation, based on the cell structure and the efficiency of transmission, the entire process of transmitting the debugging instructions between multiple smart home devices to multiple smart home devices includes multiple scenario control devices.
[0417] It can be understood that, based on the above embodiment, each smart home device debugging instruction includes the address information of the device. Before sending multiple smart home device debugging instructions to the smart home devices in each household's fine-decorated house, it also includes replacing the address in the recorded smart home device operation instructions with the communication address of each household's smart home device.
[0418] In a possible implementation, based on the operation of the scenario-based control device, the present application embodiment provides a method for user-initiated initialization. The method adds a step before the method provided in the above embodiment, responding to the instruction of the initialization request sent by the user terminal.
[0419] In this embodiment, the staff does not need to turn on the home device of each household in advance, but the user actively turns on the device and actively requests initialization, which further reduces the workload of the staff.
[0420] In a possible implementation manner, after the step of sending the multiple replaced activation instructions and the multiple initialization instructions to the scenario control device or sending the multiple replaced activation instructions and the multiple initialization instructions to the scenario control device, the step further includes:
[0421] Receive home appliance feedback information sent by multiple current smart home devices;
[0422] Determining whether the feedback information includes activation failure information;
[0423] If so, the first home appliance operation instruction corresponding to the activation failure information is resent to the current smart home device corresponding to the activation failure information.
[0424] In the above implementation process, it is considered that due to certain errors in signal transmission, the initialization process takes a long time, there may be signal transmission errors, and errors in the processing process may lead to initialization failure; therefore, after sending multiple replaced activation instructions and multiple initialization instructions to the scene control device, wait for feedback information sent by multiple home appliances, and the feedback information contains information on whether the initialization of the smart home device is successful. If the feedback information includes activation failure information, then the first home appliance operation instruction corresponding to the activation failure information is re-sent to the current smart home device corresponding to the activation failure information. Based on the above implementation method, it can ensure that all home appliances are successfully initialized.
[0425] The step of resending the first home appliance operation instruction corresponding to the activation failure information to the current smart home device corresponding to the feedback information includes:
[0426] Determining whether there is a prerequisite home appliance operation instruction for the first home appliance operation instruction in the debugging instructions of the plurality of smart home devices;
[0427] If so, obtaining a triggering time interval between the prerequisite home appliance operation instruction and the first home appliance operation instruction;
[0428] The first home appliance operation instruction and the prerequisite home appliance operation instruction are sent to the smart home device corresponding to the feedback information according to the triggering time interval of the prerequisite home appliance operation instruction and the first home appliance operation instruction.
[0429] In the above implementation process, if the initialization of a smart home device depends on another smart home device, it is necessary to obtain the prerequisite home appliance operation instruction of the home appliance debugging instruction when re-initializing the smart home device. For example, a set-top box is required during the activation of a TV, so the prerequisite home appliance operation instruction is the smart home device operation instruction corresponding to the set-top box.
[0430] In a possible implementation, S1303 includes the following sub-steps: generating a debugging sequence according to authorization information of a current smart home device, debugging instructions of multiple smart home devices, and a triggering time interval between debugging instructions of multiple smart home devices; and sending the debugging sequence to multiple current smart home devices.
[0431] Considering that multiple smart home devices have their own decoding methods, a sequence is first generated and then sent to the multiple smart home devices.
[0432] Example 10
[0433] See also Fig.11 The embodiment of the present application provides an initialization device for a smart home device, the device comprising:
[0434] The receiving module 1410 is used to receive and save the debugging instructions of multiple smart home devices and the triggering time intervals between the debugging instructions of the multiple smart home devices;
[0435] An acquisition module 1420 is used to acquire authorization information of multiple current smart home devices;
[0436] The initialization module 1430 is used to initialize multiple current smart home devices according to the authorization information of the current smart home devices, the debugging instructions of the multiple smart home devices, and the triggering time interval between the debugging instructions of the multiple smart home devices.
[0437] In a possible implementation, the device also includes: an execution order detection module, which is used to obtain the execution order of the debugging instructions of multiple smart home devices according to the triggering time interval of the debugging instructions of multiple smart home devices; determine whether the execution order of the debugging instructions of multiple smart home devices conforms to the debugging order; if not, issue an alarm message.
[0438] In one possible implementation, the debugging instructions for multiple smart home devices include multiple activation instructions and multiple initialization instructions; the initialization module 1430 is also used to replace the authorization information in the multiple activation instructions with the home appliance authorization information of the current multiple smart home devices to obtain multiple replaced activation instructions; and initialize the multiple current smart home devices according to the trigger time intervals between the multiple replaced activation instructions, the multiple initialization instructions and the debugging instructions for the multiple smart home devices.
[0439] In a possible implementation, the initialization module 1430 is further configured to send the replaced activation instructions and the initialization instructions to the multiple smart home devices according to the triggering time interval between the debugging instructions of the multiple smart home devices, or
[0440] According to the trigger time interval between the debugging instructions of multiple smart home devices, multiple replaced activation instructions and multiple initialization instructions are sent to the scenario control device, so that the scenario control device sends the multiple replaced activation instructions and multiple initialization instructions to multiple current smart home devices.
[0441] In a possible implementation, a feedback module is used to receive home appliance feedback information sent by multiple current smart home devices; determine whether the feedback information includes activation failure information; if so, re-send the first home appliance operation instruction corresponding to the activation failure information to the current smart home device corresponding to the activation failure information.
[0442] In a possible implementation, the feedback acquisition module is also used to determine whether there is a prerequisite home appliance operation instruction for the first home appliance operation instruction in the debugging instructions of multiple smart home devices; if so, obtain the triggering time interval between the prerequisite home appliance operation instruction and the first home appliance operation instruction; and send the first home appliance operation instruction and the prerequisite home appliance operation instruction to the smart home device corresponding to the feedback information according to the triggering time interval between the prerequisite home appliance operation instruction and the first home appliance operation instruction.
[0443] In a possible implementation, the initialization module 1430 is further used to generate a debugging sequence according to the authorization information of the current smart home device, the debugging instructions of multiple smart home devices, and the triggering time interval between the debugging instructions of multiple smart home devices; and send the debugging sequence to multiple current smart home devices.
[0444] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the method for automatically generating a scenario-based control solution in Embodiment 1 of the present application.
[0445] An embodiment of the present application provides a computer-readable storage medium storing computer program instructions. When the computer program instructions are read and executed by a processor, the method for automatically generating a scenario-based control solution in Embodiment 1 of the present application is executed.
[0446] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0447] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0448] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0449] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0450] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0451] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for automatically generating scenario-based control solutions. It is characterized in that The method is applied to a scenario-based control device, and the method includes: Acquire multiple operation instructions within a detection time window; Confirming that the multiple operation instructions meet the preset scene generation conditions, generating a scene-based control solution according to the multiple operation instructions, The step of confirming that the plurality of operation instructions meet the preset scenario generation conditions and generating a scenario-based control scheme according to the plurality of operation instructions includes: Determining that the number of operations of the multiple operation instructions matches a preset number of operations, and generating a scenario-based control solution based on the multiple operation instructions; Wherein, the plurality of operation instructions are input by more than two input devices; The step of generating a scenario-based control scheme according to the multiple operation instructions comprises: Extracting multiple valid instructions according to the operation sequence and operation correlation between the multiple operation instructions; constructing the plurality of valid instructions into an instruction sequence; Acquiring scenario information matching the instruction sequence; A scenario-based control solution is generated according to the instruction sequence and the scenario-based information.
2. The automatic generation method of the scenario control scheme according to claim 1, It is characterized in that The step of confirming that the plurality of operation instructions meet the preset scenario generation conditions and generating a scenario-based control scheme according to the plurality of operation instructions includes: Determining an operation sequence among the multiple operation instructions; Confirm whether the operation sequence is consistent with a preset logical operation sequence, and generate a home appliance control scene based on the multiple operation instructions.
3. The automatic generation method of the scenario control scheme according to claim 1 or 2, It is characterized in that The step of confirming that the multiple operation instructions match the preset scene generation conditions and generating a scene-based control solution according to the multiple operation instructions includes: determining a plurality of operation time intervals between the plurality of operation instructions; Confirm that the multiple operation time intervals match a preset time interval threshold, and generate a home appliance control scene based on the multiple operation instructions.
4. The automatic generation method of the scenario control scheme according to claim 1, Features: The multiple operation instructions include a corresponding home appliance combination relationship between the operation instructions and a time interval relationship between the operation instructions; The step of determining that the number of operations of the plurality of operation instructions matches the preset number of operations, and generating a scenario-based control solution based on the plurality of operation instructions comprises: Determine whether the household appliance combination relationship corresponding to the multiple operation instructions and the time interval relationship between the operation instructions match the preset scenario, and generate a scenario-based control solution based on the multiple operation instructions.
5. The automatic generation method of the scenario control scheme according to claim 4, It is characterized in that The input device includes buttons of the home appliance control panel, an application program, a remote controller, and a speaker.
6. The automatic generation method of scenario-based control scheme according to claim 1, It is characterized in that The method further comprises: It is confirmed that the detection time window is not started when the operation instruction is obtained, and the detection time window is started.
7. The automatic generation method of scenario-based control scheme according to claim 1, It is characterized in that The step of confirming that the plurality of operation instructions meet the preset scenario generation conditions and generating a scenario-based control scheme according to the plurality of operation instructions includes: Extracting continuous associated instructions from the multiple operation instructions; Counting the occurrence frequency of the continuous associated instructions in the instruction record database; When it is confirmed that the occurrence frequency is greater than a preset frequency threshold, a scenario-based control solution is generated according to the continuous association instructions.
8. An electronic device, It is characterized in that The device includes a processor and a memory, the processor is used to read a program stored in the memory, and the program is used to execute the automatic generation method of the scenario-based control solution described in any one of claims 1 to 7.
