Smart home control method, system, device and storage medium

By creating a classification attribute identification tree and managing multiple trees, the smart home control method solves the problem of low efficiency in judging multiple environmental elements of home equipment in the prior art, and achieves more efficient search and execution script matching.

CN115167168BActive Publication Date: 2025-02-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210892298.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-27
Publication Date
2025-02-18
Estimated Expiration
2042-07-27

AI Technical Summary

Technical Problem

The existing smart home control methods are difficult to efficiently judge multiple environmental elements of multiple home devices on a unified integrated controller, resulting in low retrieval efficiency of condition judgment.

Method used

By creating a classification attribute identification tree and managing multiple classification attribute identification trees, each triggering condition can be used to make multi-state comprehensive judgments through the corresponding classification attribute identification tree to filter out the execution scripts to be executed.

Benefits of technology

Improves the processing efficiency of the integrated controller to judge multiple environmental elements on multiple home devices, and improves the search efficiency, especially when processing massive data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115167168B_ABST
    Figure CN115167168B_ABST
Patent Text Reader

Abstract

The present application discloses a smart home control method, system, device and storage medium, and relates to the field of smart home technology. The method includes determining a classification attribute identification tree according to a classification attribute identification in a first trigger condition of a trigger instruction request; the root node of the classification attribute identification tree matches the classification attribute identification, and multiple condition set leaf nodes with automation script sets attached are mounted under the root node; the first condition leaf node matching the first trigger condition of the trigger instruction request is determined from multiple condition set leaf nodes; and multi-state comprehensive calculation is performed according to the condition rule corresponding to the first condition leaf node; to determine whether to select at least one execution script corresponding to the first trigger condition from the automation script set corresponding to the first condition leaf node to issue the instruction. The system, device and storage medium apply the above method to improve the judgment and processing efficiency of the integrated controller for multiple environmental elements of multiple home appliances.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to a smart home control method, system equipment and storage medium. Background Art

[0002] With the popularization of smart homes, choosing to turn on or off a light through a mobile phone application can no longer meet people's daily needs. People have put forward higher quality pursuits for existing life scenes, and gradually stepped into the era of touchless smart home application scenes. However, the existing smart home control method usually controls home appliances through a single condition trigger mode function. Although each single home appliance can determine whether to control according to multiple environmental elements, when multiple home appliances are uniformly controlled by the same controller, it is difficult to achieve efficient judgment of multiple environmental elements for multiple home appliances. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, a smart home control method, device, system and storage medium are proposed, which can improve the processing efficiency of the integrated controller in judging multiple environmental elements of multiple home devices.

[0004] According to an embodiment of the first aspect of the present application, a smart home control method is provided, the smart home control method comprising:

[0005] Receiving at least one trigger instruction request; the trigger instruction request includes a first trigger condition;

[0006] Determine a classification attribute identification tree according to the classification attribute identification corresponding to the first trigger condition; wherein a root node of the classification attribute identification tree matches the classification attribute identification, a plurality of condition set leaf nodes are mounted under the root node, an automation script set is mounted under each of the condition set leaf nodes, the automation script set includes a plurality of execution scripts, and each of the execution scripts corresponds to one or a group of home devices;

[0007] Matching the second trigger conditions set in the plurality of condition set leaf nodes with the first trigger condition in sequence to obtain a first condition leaf node;

[0008] Perform multi-state comprehensive calculation according to the conditional rule corresponding to the first conditional leaf node;

[0009] When the calculation result shows that it matches the preset state condition, at least one execution script corresponding to the conditional rule is selected from the automation script set corresponding to the first conditional leaf node to issue an instruction;

[0010] According to an embodiment of the second aspect of the present application, a smart home system is proposed, which includes a plurality of home appliances and an integrated controller, wherein the integrated controller is communicatively connected with the plurality of home appliances, and the integrated controller automatically controls the home appliances through any of the methods described in the first aspect.

[0011] According to an embodiment of the third aspect of the present application, an electronic device is proposed, comprising at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions, and the instructions are executed by the at least one processor so that when the at least one processor executes the instructions, a smart home control method as described in any one of the first aspects is implemented.

[0012] According to an embodiment of the fourth aspect of the present application, a computer-readable storage medium is proposed, wherein the storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the smart home control method as described in any one of the first aspects.

[0013] According to the above-mentioned embodiments of the present application, at least the following beneficial effects are achieved: by creating a classification attribute identification tree and managing multiple classification attribute identification trees, each trigger condition can be subjected to a corresponding multi-state comprehensive judgment through the corresponding classification attribute identification tree, thereby screening out the execution script to be executed, and the search efficiency is higher. Compared with the single condition control and multi-state control of home appliances in the prior art, the embodiments of the present application can improve the processing efficiency of judging multiple environmental elements of multiple home appliances on a unified integrated controller.

[0014] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0016] Figure 1 A schematic diagram of a flow chart of a smart home control method according to an embodiment of the present application;

[0017] Figure 2 A schematic diagram of a classification attribute identification tree of a smart home control method according to an embodiment of the present application;

[0018] Figure 3 A system schematic diagram of a smart home system of a smart home control method according to an embodiment of the present application;

[0019] Figure 4 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0022] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0023] With the popularization of smart homes, choosing to perform cumbersome operations such as turning on and off lights through mobile phone applications can no longer meet people's daily needs. People have put forward higher quality pursuits for existing life scenes, and gradually entered the era of non-sensitive smart home application scenes. However, the existing smart home control method usually controls home appliances through a single condition trigger mode function. Although each single home appliance can determine whether to control according to multiple environmental elements, such as: for the door lamp, if the door is open and the entrance is dark, the light is turned on. For example, for the corridor lamp, if someone passes by and the lights in the corridor are off, then the corridor lights are turned on and the corridor lights are turned off after leaving the corridor for 2 minutes (free configuration). These lamps all need to consider multiple environmental factors to determine whether to perform operations. However, when multiple home appliances are uniformly controlled by the same controller, such as using cloud-based centralized control, it is necessary to manage at least one function of multiple home appliances at the same time, that is, it is necessary to control thousands of condition judgments at the same time, resulting in low efficiency of condition judgment retrieval, and it is difficult to achieve efficient judgment of multiple environmental elements for multiple home appliances. Based on this, the embodiments of the present application propose a smart home control method, device, system and storage medium, which can improve the processing efficiency of the integrated controller in judging multiple environmental elements of multiple home appliances.

[0024] Reference Figure 1 As shown, the smart home control method proposed in the first embodiment of the present application includes:

[0025] Step S100: receiving at least one trigger instruction request; the trigger instruction request includes a first trigger condition.

[0026] It should be noted that the first trigger condition represents the trigger attribute and the state of the trigger attribute used to trigger a certain home appliance to perform its specific function. It can be actively triggered by humans or automatically detected by sensors. For example, if the living room door is opened manually and the door magnet is triggered to open, the trigger attribute is the door magnet and the state is open. At this time, the first trigger condition contains the trigger attribute information corresponding to the "door magnet" and the trigger state information corresponding to "open"; or if the sensor detects that the temperature drops to a preset value, a trigger instruction request is generated, then the trigger attribute is temperature, and the trigger state is the actual detected temperature value. The trigger instruction request can be generated periodically or conditionally triggered.

[0027] Step S200, determine the classification attribute identification tree according to the classification attribute identification corresponding to the first trigger condition; wherein the root node of the classification attribute identification tree matches the classification attribute identification, a plurality of condition set leaf nodes are attached to the root node, an automation script set is attached to each condition set leaf node, the automation script set includes a plurality of execution scripts, and each execution script corresponds to one or a group of home appliances.

[0028] It should be noted that the classification attribute identifier is used to identify the trigger attribute of the same operation attribute, and to distinguish the execution of home appliances with the same trigger attribute but with multiple other possible environmental factors. For example, the entrance door and room door in the house are both equipped with door magnets, and the door magnets are used to turn on the living room lights. When the entrance door or room door is opened, its trigger attribute is the door magnet, and the door magnet can be set to a classification attribute identifier. For another example, the operation rule of the porch light is: when the door is opened, and the current time is between 6 pm and 12 pm, and the porch light is in the off state, it is necessary to execute the opening, and the operation rule of the air conditioner is: when the door is opened and the current time is between 6 pm and 8 pm, and the air conditioner is in the off state, it is necessary to execute the opening. At this time, for the air conditioner and the porch light, they have a common trigger attribute: the door, so a classification attribute identifier can be set for the door, and the rules such as the porch light and the air conditioner can be set under the classification attribute identifier tree, so as to narrow the scope of the search after the classification attribute identifier is determined, thereby improving the search efficiency.

[0029] It should be noted that when the control conditions of a group of home appliances are the same, the execution commands of the group of home appliances can be set in one execution script. When each home appliance has multiple trigger conditions, an execution script can be set for each home appliance. Therefore, each execution script corresponds to one or a group of home appliances.

[0030] It should be noted that, in some embodiments, the trigger factor is consistent with the classification attribute identifier, and in other embodiments, a mapping relationship can be established between the trigger factor and the classification attribute identifier, and then the classification attribute identifier can be obtained according to the mapping relationship and the trigger condition. Preferably, in the embodiment of the present application, the trigger factor is consistent with the classification attribute identifier.

[0031] Step S300: Match the second trigger conditions set in multiple condition set leaf nodes with the first trigger condition in sequence to obtain a first condition leaf node.

[0032] Exemplarily, multiple condition set leaf nodes include condition set leaf node 1, condition set leaf node 2 and condition set leaf node 3; the trigger condition in condition set leaf node 1 is that the temperature is greater than 25 degrees; the trigger condition set in condition set leaf node 2 is that the door magnet is open; the trigger condition set in condition set leaf node 3 is that the door magnet is closed; when the trigger condition indicates that the door magnet is open, the first condition leaf node is condition set leaf node 2.

[0033] Step S400: Perform multi-state comprehensive calculation according to the conditional rule corresponding to the first conditional leaf node.

[0034] Multi-state comprehensive calculation means combining other environmental factors to determine whether the conditions for executing the corresponding execution script of the home appliance are met. In the actual operation process, many attributes of each home appliance will be reported, such as temperature value, switch status, etc. For home appliances, when one of the attributes is triggered and corresponds to a classification identification tree, all attributes except the triggering attribute will be judged as one of the elements in the conditional rule, so as to be able to combine other environmental factors for comprehensive conditional judgment, and then identify the home appliance to be executed.

[0035] It should be noted that at least one conditional rule is set under each first conditional leaf node. The conditional rule can be attached to the first conditional leaf node, or the mapping relationship between the first leaf node and the conditional rule can be stored separately through a mapping table, so that when the first conditional leaf node is determined, the conditional rule can be determined through the mapping table to perform multi-state comprehensive calculations.

[0036] Step S500: When the calculation result shows that it matches the preset state condition, at least one execution script corresponding to the conditional rule is selected from the automation script set corresponding to the first conditional leaf node to issue instructions.

[0037] In some embodiments, the calculation result is output as satisfied or not satisfied, and correspondingly, the preset condition corresponds to the calculation result being output as satisfied. By simplifying the calculation result, the processing efficiency can be improved.

[0038] Exemplarily, taking the door magnetic opening as an example, if it is determined in the first condition leaf node that the first trigger condition meets the requirements, a comprehensive judgment will be made on the conditional rules corresponding to other home appliances that include the door magnetic state of opening as a trigger condition. When the calculation result shows that all home appliances associated with the door magnetic switch need to be turned on, the opening operation will be performed on all associated home appliances. For example, when the door magnetic is opened, it may trigger the turning on of the porch light, the living room light, and the air conditioner. When the judgment rules for the porch, living room, and air conditioner are different, the conditional rules corresponding to the porch light, living room light, and air conditioner will be executed respectively. When one of the conditional rules is met, the corresponding device will be turned on. For another example, when the door is opened, the control of the porch light and the living room light both correspond to the same conditional rule 2. When conditional rule 2 is met, the execution script corresponding to the porch light and the living room light can be found according to conditional rule 2 for execution.

[0039] Therefore, by creating a classification attribute identification tree and managing multiple classification attribute identification trees, each trigger condition can be judged in a corresponding multi-state through the corresponding classification attribute identification tree, thereby screening out the execution script to be executed, and the search efficiency is higher. Compared with the single condition control and multi-state control of home appliances in the prior art, the embodiment of the present application can improve the processing efficiency of judging multiple environmental elements of multiple home appliances on a unified integrated controller.

[0040] It should be noted that each home appliance will upload data periodically. Therefore, multiple home appliances will generate massive amounts of data. The use of a classification attribute identification tree can improve the processing efficiency of massive amounts of data.

[0041] For example, assuming that the operation rule of the porch light is: when the door magnetic switch is turned on, and the current time is between 6pm and 12pm, and the porch light is in the off state, then it is necessary to execute the opening. Assuming that the operation rule of the air conditioner is: when the door magnetic switch is turned on, and the current time is between 6pm and 8pm, and the air conditioner is in the off state, then it is necessary to execute the opening. When the door magnetic switch is used as a classification attribute identifier, then, for the porch light, the condition rule for opening the corresponding execution script is that the current time is between 6pm and 12pm, and the porch light is in the off state; for the air conditioner, the condition rule for opening the corresponding execution script is that the current time is between 6pm and 8pm, and the air conditioner is in the off state. After setting the corresponding rules, when the door magnetic switch is in the switch state, the above two conditional rules will be compared one by one, and when the conditions are met, the corresponding execution script will be executed. Therefore, based on the trigger search tree (corresponding to the classification attribute identification tree) formed by the trigger ID, after the trigger ID is reported, the rules of all trigger conditions related to the trigger ID can be obtained, solving the problem of mass data search efficiency.

[0042] For example, refer to Figure 2As shown, trigger attribute ID1 and trigger attribute ID2 are managed through the trigger attribute ID management module. Two condition set leaf nodes are set under each trigger attribute ID. One condition set leaf node is connected to a state full and automation unit structure (corresponding condition rule), which is used to process multiple states and determine whether the preset conditions are met. Before each state full and automation unit structure, a judgment on whether the trigger condition is met will be made (that is, whether the first trigger condition satisfies the branch of the classification attribute identification tree); the other condition set leaf node is connected to a state full or automation unit structure, which is used to process multiple states and determine whether the preset conditions are met. When the conditions are met, the execution script of the device attached to the corresponding leaf node is executed.

[0043] It should be noted that in some embodiments, mathematical comparison expressions such as greater than, less than, greater than or equal to, less than or equal to are used as operators of conditional rules of trigger conditions for multi-state comprehensive calculation, so that the calculation result is yes or no. For comparison operations (such as greater than, less than, etc.), it will only be triggered once within the set interval. When it is triggered again, the first trigger condition needs to be updated to the outside of the second trigger condition first, and then enter this range to trigger. That is, it will be combined with the comparison value of the previous and second trigger conditions to determine whether it meets the conditional rules. For example: the temperature is greater than 25 degrees as the second trigger condition, the current temperature is below 25 degrees, and when it rises to greater than or equal to 25 degrees for a period of time, the judgment of the conditional rules will be executed in sequence; when there is a trigger request reported again and the first trigger condition is 26 degrees, that is, the temperature continues to be above 25 degrees, at this time, the first trigger condition and the second trigger condition are not compared. Only when the temperature corresponding to the first trigger condition is lower than 25 degrees first, so that the previous comparison record is cleared, it is triggered when it is reported again as greater than or equal to 25. This mode effectively filters out the erroneous actions caused by the reporting of temperature value changes.

[0044] It should be noted that the trigger nodes in the classification attribute identification tree are arranged in an array (such as a linked list or vetor, etc.), that is, the condition set leaf nodes and the classification attribute identification are stored as elements of an array. At this time, each element of the array is an automated rule container, and the execution time complexity of the entire automated structure is O(log n ). Compared with the traditional search method of multiple environmental factors, the search efficiency of the embodiment of the present application is higher. For example, taking the classification attribute identifier ID1 corresponding to the door magnetic switch as an example, after finding the array corresponding to the classification attribute identifier ID1, the trigger state in the first trigger condition is compared with each element in the array to obtain the array position that matches the trigger state, and then the corresponding conditional rule is determined according to the condition set leaf node at the array position for comprehensive judgment. Therefore, a trigger search tree is formed based on the trigger ID, and the trigger ID search efficiency is O(logn).

[0045] It is understandable that the classification attribute identification tree also includes rule leaf nodes that are attached one by one to the condition set leaf nodes, the automation script set is attached to the corresponding rule leaf nodes, the rule leaf nodes include multiple state rule container nodes connected in series; the condition rule is obtained by combining the calculation rules in multiple state rule container nodes; step S400, according to the condition rule corresponding to the first condition leaf node, multi-state comprehensive calculation is performed, including: according to the calculation rules in each state rule container node and the calculation rules between two adjacent state rule container nodes, state superposition calculation is performed on the calculation results corresponding to each calculation rule, until multiple state rule container nodes are traversed or the calculation result of superimposed one of the state rule container nodes does not meet the preset conditions; the state parameters obtained by superimposition calculation are used as the calculation results of multi-state comprehensive judgment.

[0046] It should be noted that each state rule container node stores multiple elements in a container manner, and calculation rules are set between multiple elements. Each element represents the result of a calculation rule. For example, (a<15) is regarded as an element, where a represents an environmental factor and < is a calculation rule. If the content stored in the state rule container node is (a<15)&(b<6), then (a<15) and (b<6) each correspond to an element, & is the calculation rule between the element (a<15) and the element (b<6), and b is another environmental factor. Storing data in a container manner makes it easier to modify the judgment rules, thereby making the rule judgment more flexible.

[0047] It should be noted that the calculation rules within the state rule container node include greater than, less than, equal to, not equal to, greater than or equal to, and less than or equal to; elements are calculated using all-and / all-or, and the calculation rules between state rule container nodes are processed using and operations or or operations to improve calculation efficiency.

[0048] Exemplarily, the calculation rules between the state rule container nodes can be as follows: Figure 2 The full AND operation shown, or Figure 2 The full OR operation shown can also be set according to the state combination relationship, such as the first N1 adopts the OR operation, and the results of the first N1 state rule container nodes are respectively ANDed with the results of the last N2. At this time, the state rule container nodes can be calculated by simple AND or OR. This embodiment of the application does not limit this.

[0049] It should be noted that each state rule container node records the calculation rules of the state variables. When the state value of an environmental factor is reported, the value of the state variable in the corresponding state rule container node will change accordingly.

[0050] It should be noted that by adding the state rule container node to the classification attribute identification tree, when the embedded gateway is disconnected from the network, the controller can automatically retrieve and execute through the classification attribute identification tree.

[0051] It should be noted that the serial method is used, and the operation method of the conditional framework is close to the rules of mathematical expressions, which is more in line with people's operating habits. When setting the state rules, you can set the state rules according to your operating habits. For example, for the temperature range, write "(tmp>5)&(tmp<20)" when entering. When parsing the code internally, you can directly judge that tmp>5 is one of the elements and tmp<20 is another element according to the brackets and the & symbol, and & is regarded as the calculation rule.

[0052] It is understandable that the state rule container node is assigned a value through a Json file. Assigning a value through a Json file makes the setting closer to the user's operating habits and the setting of the state rule container node is simpler.

[0053] It is understandable that each state rule container node includes at least one state rule, and the state rule is set as a comparison operation rule and / or an AND / OR operation rule.

[0054] It should be noted that the comparison operation rules include greater than, less than, equal to, not equal to, greater than or equal to, and less than or equal to. By adopting the comparison operation rules, the calculation result has only two possibilities, thereby improving processing efficiency.

[0055] It can be understood that the calculation rule between two adjacent state rule container nodes is an AND operation or an OR operation.

[0056] Exemplarily, all state rule container nodes are calculated according to the AND operation. At this time, if the result of the AND operation of one of the state rule container nodes is not 1, it means that it cannot be executed. All state rule container nodes are calculated according to the full OR rule leaf nodes. If the result of all state rule containers is not 1, it means that it cannot be executed; when all state rule container nodes are executed in sequence, the calculation result is 1, which means execution. When it can be executed, the execution script to be executed is determined from the automation script set according to the conditional rule with a calculation result of 1.

[0057] It should be noted that for an embedded system that applies the above-mentioned smart home control method, when massive data is reported, the search and matching efficiency is greatly improved, and the search efficiency of the entire execution script is a time constant.

[0058] Understandably, referring to Figure 3 As shown, a smart home system provided according to the second aspect of an embodiment of the present application includes:

[0059] A plurality of home devices 100;

[0060] The integrated controller 200 is communicatively connected with a plurality of household appliances 100, and the integrated controller 200 automatically controls the household appliances 100 by executing any method of the first aspect.

[0061] It should be noted that the integrated controller 200 and the multiple home appliances 100 may be connected via Bluetooth or a local area network, and thus when the gateway is disconnected from the network, the smart home system may retrieve and execute the required execution scripts based on the stored multiple classification attribute identification trees.

[0062] In some embodiments, the integrated controller 200 may also be connected to a remote terminal, so that the status of the home appliances can be monitored through the remote terminal.

[0063] It should be noted that in some applications, sensors independent of home appliances are also provided, which are used to detect environmental factors that trigger the execution of home setting operations, and the sensors are in communication with the integrated controller 200. It should be noted that in order to avoid missing messages, the home appliances 100 or sensors will periodically return messages to the integrated controller 200. Therefore, the integrated controller 200 needs to process a lot of data.

[0064] It can be understood that an electronic device provided according to the third aspect of an embodiment of the present application includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions, and the instructions are executed by the at least one processor so that when the at least one processor executes the instructions, a smart home control method as described above is implemented.

[0065] Combine the following Figure 4 The hardware structure of the computer device is described in detail. The electronic device includes: a processor 310 , a memory 320 , an input / output interface 330 , a communication interface 340 and a bus 350 .

[0066] The processor 310 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present disclosure;

[0067] The memory 320 can be implemented in the form of ROM (Read Only Memory), static storage device, dynamic storage device or RAM (Random Access Memory). The memory 320 can store operating systems and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 320, and the processor 310 calls and executes the training method of the model of the embodiment of the present disclosure or executes the emotional message generation method of the embodiment of the present disclosure;

[0068] Input / output interface 330, used to implement information input and output;

[0069] The communication interface 340 is used to realize the communication interaction between the device and other devices, and the communication can be realized by wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.); and the bus 350 is used to transmit information between the various components of the device (such as the processor 310, the memory 320, the input / output interface 330 and the communication interface 340);

[0070] The processor 310 , the memory 320 , the input / output interface 330 and the communication interface 340 are connected to each other in communication within the device via the bus 350 .

[0071] According to the fourth aspect of the embodiment of the present application, a computer storage medium is provided, which is a computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the model training method of the embodiment of the present disclosure or execute the emotional message generation method of the embodiment of the present disclosure.

[0072] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0073] It is understandable that the present application also provides a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute the above-mentioned smart home control method.

[0074] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0075] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0076] Those skilled in the art will appreciate that all or some of the steps, systems, and functional modules / units in the disclosed methods above may be implemented as software, firmware, hardware, and appropriate combinations thereof. The terms "including" and "having" and any variations thereof in the specification of this application are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units need not be limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or that are inherent to these processes, methods, products, or devices.

[0077] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A smart home control method, characterized in that: include: Receiving at least one trigger instruction request; the trigger instruction request includes a first trigger condition; Determine a classification attribute identification tree according to the classification attribute identification corresponding to the first trigger condition; wherein a root node of the classification attribute identification tree matches the classification attribute identification, a plurality of condition set leaf nodes are mounted under the root node, an automation script set is mounted under each of the condition set leaf nodes, the automation script set includes a plurality of execution scripts, and each of the execution scripts corresponds to one or a group of home devices; Matching the second trigger conditions set in the plurality of condition set leaf nodes with the first trigger condition in sequence to obtain a first condition leaf node; Perform multi-state comprehensive calculation according to the conditional rule corresponding to the first conditional leaf node; When the calculation result shows a match with the preset status condition, at least one execution script corresponding to the conditional rule is selected from the automation script set corresponding to the first conditional leaf node to issue instructions.

2. The smart home control method according to claim 1, characterized in that: The classification attribute identification tree also includes rule leaf nodes that are connected one by one to the condition set leaf nodes, the automation script set is connected to the corresponding rule leaf nodes, and the rule leaf nodes include a plurality of state rule container nodes connected in series; The conditional rule is obtained by combining the calculation rules in the multiple state rule container nodes, and the multi-state comprehensive calculation is performed according to the conditional rule corresponding to the first conditional leaf node, including: According to the calculation rules in each state rule container node and the calculation rules between two adjacent state rule container nodes, state superposition calculation is performed on the calculation results corresponding to each calculation rule respectively, until a plurality of state rule container nodes are traversed or the superposition calculation result of one of the state rule container nodes does not meet the preset condition; The state parameters obtained by superposition calculation are used as the calculation results of multi-state comprehensive judgment.

3. The smart home control method according to claim 2, characterized in that: Each of the state rule container nodes includes at least one state rule, and the state rule is set as a comparison operation rule and / or an AND / OR operation rule.

4. The smart home control method according to claim 2, characterized in that: The calculation rule between two adjacent state rule container nodes is an AND operation or an OR operation.

5. The smart home control method according to claim 2, characterized in that: The state rule container node is assigned a value through a Json file.

6. A smart home system, characterized in that: include: Multiple home devices; An integrated controller, wherein the integrated controller is communicatively connected to the plurality of household appliances, and the integrated controller automatically controls the household appliances by executing any of the methods described in claims 1 to 5.

7. An electronic device, characterized in that: include: At least one processor, and a memory communicatively connected to the at least one processor; wherein the memory stores instructions, and the instructions are executed by the at least one processor, so that the at least one processor implements the smart home control method as described in any one of claims 1 to 5 when executing the instructions.

8. A computer-readable storage medium, characterized in that: The storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the smart home control method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • A sphere-based efficient detection method for smart home scenario

    AU2018101335A4

  • Set condition generation method and device, electronic equipment and storage medium

    CN109976172A