Equipment control method and device and storage medium

By converting the trigger condition information in smart home automation into a condition set and judging its compliance, the problem of missing compliance judgment of compound events/status conditions is solved, and the efficiency and accuracy of automation rules are improved.

CN119556599APending Publication Date: 2025-03-04BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311126221.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-01
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

The lack of compliance judgment on compound events/status conditions in the prior art leads to errors in the creation of smart home automation.

Method used

By obtaining the trigger condition information for device control, the preset condition information is converted into a condition set using a preset condition set model, and the compliance of the condition information is determined based on the condition set, thereby performing device control.

Benefits of technology

Helps users to automatically determine whether the composite event/condition status under the TAP/ECA paradigm is compliant, improves the efficiency and accuracy of automation rules creation, and solves the problem of errors in the device automation creation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119556599A_ABST
    Figure CN119556599A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment control method and device and a storage medium. The equipment control method comprises the following steps: acquiring condition information which is triggering condition information in a triggering execution TAP rule for controlling equipment; based on a preset condition set model, the condition information is converted into a condition set, and the preset condition set model is used for converting a triggering condition in a transient form into an event triggering condition in a numerical representation form and converting a triggering condition in a continuous state form into a state condition; and determining the compliance of the condition information based on the condition set, and controlling the equipment based on the compliance. According to the method and the device, whether the condition information is compliant or not is determined through the preset condition set model based on the acquired condition information, and a user does not need to understand or sense various complex parameter values corresponding to the equipment, so that the problem that errors are easy to occur in the automatic creation process of the smart home can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of automation technology, and in particular to a device control method, device and storage medium. Background Art

[0002] In related technologies, with the development of science and technology, automation technology is also constantly improving and improving. In particular, the standardization and popularization of unified paradigm technical rules of smart home automation trigger-action programming (TAP) or event-condition-action (ECA) make all program flows related to smart home automation control use this paradigm as the standard and automatically execute corresponding tasks through trigger conditions. However, all current paradigms lack compliance judgment of compound event / state conditions, which makes it easy for errors to occur in the process of creating smart home automation. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a device control method, apparatus and storage medium.

[0004] According to the first aspect of an embodiment of the present disclosure, there is provided a device control method, comprising: obtaining condition information, the condition information being trigger condition information in a trigger execution TAP rule for controlling the device; converting the condition information into a condition set based on a preset condition set model, the preset condition set model being used to convert a trigger condition in a transient form into an event trigger condition in a numerical form, and to convert a trigger condition in a continuous state form into a state condition; based on the condition set, determining the compliance of the condition information, and based on the compliance, controlling the device.

[0005] In one embodiment, controlling the device based on the compliance includes: if the condition information is determined to be a compliance condition based on the condition set, controlling the device according to the condition information; if the condition information is determined to be a non-compliance condition based on the condition set, displaying a prompt message, wherein the prompt message is used to prompt that the condition information is non-compliant, so that the user can adjust the condition information to a compliant condition for controlling the device.

[0006] In one embodiment, determining the compliance of the condition information based on the condition set includes: in response to the condition information including at least two conditions, and the at least two conditions are EE compound conditions, and both are event trigger conditions, determining that the condition information is a compliance condition; each event trigger condition set in the EE compound condition is independent of each other.

[0007] In one embodiment, determining the compliance of the condition information based on the condition set includes: in response to the condition information including at least two conditions, and the at least two conditions are ESE compound conditions, determining the compliance of the condition information based on the intersection relationship between the corresponding numerical values ​​and / or numerical ranges of the at least two conditions; the ESE compound condition includes the intersection of an event condition set and a state condition set.

[0008] In one embodiment, the compliance of the condition information is determined based on the intersection and union relationship between the corresponding numerical values ​​and / or numerical ranges of the at least two conditions, including: in response to the union of all state condition sets included in the at least two conditions being a non-complete set, and there is an intersection between the event condition set included in the at least two conditions and the state condition set, the condition information is a compliance condition; in response to the existence of an intersection among all state condition sets in the state condition set included in the at least two conditions, and there is an intersection between the event condition set included in the at least two conditions and the state condition set, the condition information is a compliance condition.

[0009] According to the second aspect of an embodiment of the present disclosure, a device for controlling a device is provided, the device comprising: an acquisition unit, for acquiring condition information, the condition information being trigger condition information in a trigger execution TAP rule for controlling the device; a processing unit, for converting the condition information into a condition set based on a preset condition set model, the preset condition set model being used to convert a trigger condition in a transient form into an event trigger condition in a numerical form, and to convert a trigger condition in a continuous state form into a state condition; a control unit, for determining compliance of the condition information based on the condition set, and controlling the device based on the compliance.

[0010] In one embodiment, the control unit controls the device based on the compliance in the following manner: if the condition information is determined to be a compliant condition based on the condition set, the device is controlled according to the condition information; if the condition information is determined to be a non-compliant condition based on the condition set, a prompt message is displayed, and the prompt message is used to prompt that the condition information is non-compliant, so that the user can adjust the condition information to a compliant condition for controlling the device.

[0011] In one embodiment, the control unit determines the compliance of the condition information based on the condition set in the following manner: in response to the condition information including at least two conditions, and the at least two conditions are EE compound conditions, and both are event trigger conditions, the condition information is determined to be a compliance condition; each event trigger condition set in the EE compound condition is independent of each other.

[0012] In one embodiment, the control unit determines the compliance of the condition information based on the condition set in the following manner: in response to the condition information including at least two conditions, and the at least two conditions are ESE compound conditions, the compliance of the condition information is determined based on the intersection relationship between the corresponding numerical values ​​and / or numerical ranges of the at least two conditions; the ESE compound condition includes the intersection of an event condition set and a state condition set.

[0013] In one embodiment, the compliance of the condition information is determined based on the intersection and union relationship between the corresponding numerical values ​​and / or numerical ranges of the at least two conditions, including: in response to the union of all state condition sets included in the at least two conditions being a non-complete set, and there is an intersection between the event condition set included in the at least two conditions and the state condition set, the condition information is a compliance condition; in response to the existence of an intersection among all state condition sets in the state condition set included in the at least two conditions, and there is an intersection between the event condition set included in the at least two conditions and the state condition set, the condition information is a compliance condition.

[0014] According to a third aspect of an embodiment of the present disclosure, a device for controlling a device is provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: execute the method for controlling a device as described in the first aspect or any one of the embodiments of the first aspect.

[0015] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the device control method described in the first aspect or any one of the embodiments of the first aspect.

[0016] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: According to the embodiments of the present disclosure, based on obtaining the trigger condition information in the trigger execution TAP rule for controlling the device, the condition information is converted into a condition set through a preset condition set model, and based on the condition set, it can be determined whether the condition information is compliant. This method can help users automatically determine whether the compound event / condition status under the TAP / ECA paradigm is compliant. Based on the compliance of the condition information, the efficiency and accuracy of automated rule creation can be improved, and then the device can be controlled. This method can also solve the problem that errors are prone to occur during the device automation creation process due to the lack of compliance judgment of compound event / state conditions in all paradigms.

[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0019] Figure 1 The present invention is a flowchart of a device control method according to an exemplary embodiment.

[0020] Figure 2 The present invention is a flowchart of controlling a device based on compliance according to an exemplary embodiment.

[0021] Figure 3 The invention is a flowchart showing a method of determining compliance of condition information based on a condition set according to an exemplary embodiment.

[0022] Figure 4 The present invention is a flowchart showing a method of determining compliance of condition information based on a condition set according to another exemplary embodiment.

[0023] Figure 5 The present invention is a flowchart showing how to determine compliance of condition information based on an intersection relationship between numerical values ​​and / or numerical ranges corresponding to at least two conditions according to another exemplary embodiment.

[0024] Figure 6 The present invention is a flowchart of judging compliance of composite conditions of equipment automation rules according to an exemplary embodiment.

[0025] Figure 7 The invention is a block diagram of an apparatus for controlling a device according to an exemplary embodiment.

[0026] Figure 8 The invention is a block diagram showing an apparatus for controlling a device according to an exemplary embodiment. DETAILED DESCRIPTION

[0027] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0028] The device control method provided in the embodiment of the present disclosure is applied to a scenario where a device is controlled based on whether a composite condition is compliant, for example, it is applied to a scenario where condition information for executing corresponding operations of smart devices such as smart homes is compliant.

[0029] At present, the development of smart home technology is mainly reflected in the following aspects: In terms of the diversification of smart devices, with the continuous emergence of various smart devices, such as smart speakers, smart door locks, smart lamps, etc., people can control and manage the furniture environment more conveniently. In terms of the integration of the Internet and the Internet of Things, through the Internet and the Internet of Things technology, people can remotely control and manage the furniture environment, such as remotely controlling air conditioners, TVs and other devices through mobile phones. In terms of artificial intelligence technology, artificial intelligence technology can make smart home systems more intelligent and adaptive, such as through voice recognition and image recognition technology to achieve more convenient operation methods. In terms of security and privacy protection, as people's awareness of security and privacy protection increases, smart home systems also need to pay more attention to data security and user privacy protection.

[0030] However, currently users need to have a high technical threshold to customize or create home automation rules. They need to understand the procedures and processes, device functions and characteristics. Under such circumstances, the popularization of smart home automation faces many challenges. At present, the mainstream paradigm of smart home automation rules is the TAP system-paradigm, that is, the trigger execution process. Therefore, some devices are used for Trigger trigger condition judgment in TAP. When ordinary users create automation rules in Mi Home, the biggest problem they generally encounter is how to choose the functional conditions of smart devices. Simply put, users have no concept of automation trigger, execution and other conditions.

[0031] Furthermore, in TAP / ECA, the triggering conditions are generally (if...... / if......while......or when / when......if......) single-event triggers or compound forms (events are triggered in a specific state), among which compound event / state conditions are the most complex, because the relationship between conditions must be logical and can influence each other to be established and successfully triggered, otherwise a conditional paradox will occur, and the execution will never be possible or the conditional errors will lead to execution errors. Therefore, due to the lack of compliance judgment on compound event / conditional states in all paradigms, errors are prone to occur in the creation process of smart home automation.

[0032] In view of this, the present disclosure provides a device control method, which can determine whether the condition information is compliant based on the trigger condition information for executing the corresponding operation of the device through a preset condition set model. This method can help users automatically determine whether the compound event / condition state under the TAP / ECA paradigm is compliant, and can improve the efficiency and accuracy of creating automation rules. Therefore, it can be applied to various automation technology fields, such as smart offices, smart medical care, smart cities, etc., and has higher universal applicability.

[0033] The following is an explanation of the application scenarios of the method for determining compliance of composite conditions of automated rules involved in the present disclosure.

[0034] When users need to create an automation rule with compound trigger conditions, strict calculation and planning are required, based on the TAP / ECA paradigm, that is, single or compound form, so that each condition will not produce paradoxical situations. For example: the user's demand is "turn on the lights when I enter the living room at night!", and the TAP paradigm that meets this demand has two compound rules: Rule 1: Condition A "(if) when the sun sets", and condition B "(while) I am already in the living room", execute "turn on the living room lights". Rule 2: Condition C "(if) when I enter the living room", and condition D "(while) at night", execute "turn on the living room lights".

[0035] Therefore, the living room light is turned on only when condition A and condition B, or condition C and condition D are both met. However, if it is not based on the TAP / ECA paradigm, but is combined randomly, for example, when condition A is combined with condition C, that is, "when the sun sets" and "when I enter the living room", these two conditions can only be triggered if they occur at the same time, otherwise "turning on the living room light" can never be executed, because the probability that "when the sun sets" and "when I enter the living room" can be met at the same time is very low, that is, I must enter the living room at the moment of sunset to trigger it, and they are unlikely to occur at exactly the same time. Similarly, if condition B is combined with condition D, that is, "I am already in the living room" and "at night", the situation where these two conditions are met at the same time may be a continuous process, and the program cannot determine in which situation to start execution, such as when the night begins or when the night is about to end.

[0036] Furthermore, even based on the TAP / ECA paradigm, for example, the two sets of compound event / state conditions, condition A and condition D, and condition B and condition C, may also cause errors or paradoxes. In "when the sun sets" and "at night", "at night" may be a redundant condition and meaningless. However, "when I enter the living room" and "I am already in the living room" are conditional paradoxes. Therefore, for the above, only condition A and condition B, or condition C and condition D are met at the same time. These two sets of compound event / state conditions belong to compliant compound event / state conditions, and other condition combinations belong to non-compliant compound event / state conditions.

[0037] In summary, in the field of automation technology, a method for judging the compliance of composite conditions of automation rules is needed to help users automatically judge whether composite event / state conditions under the TAP / ECA paradigm are compliant, and improve the efficiency and accuracy of automation creation. Among them, based on the TAP unified paradigm, the conditions that trigger execution are ultimately a kind of instantaneous time "point" or event "point". So no matter whether the trigger condition is in a single or composite form (if...... / if......while...... or when / when......if......), whether the logical result of the final condition is compliant, it is only necessary to judge whether there is this "point" in the condition "probably" (avoiding the combination of the above conditions A and C). Finally, through the concept of set operation, we conclude that these composite condition sets are neither empty sets nor complete sets.

[0038] Further, according to the TAP paradigm, we are all based on ECA, which is divided into two mode rules: one is EE (Event→Event), where the first Event in EE refers to the triggering event condition, and the second Event refers to the execution of the Action event task. The other is ESE (Event-State→Event), where the events that are satisfied at the same time are the triggering conditions in a specific state (State corresponds to Condition). Therefore, the present invention is to solve the problem of judging the compliance of compound conditions.

[0039] Figure 1 FIG. 1 is a flow chart of a device control method according to an exemplary embodiment. Figure 1 As shown, the following steps are included.

[0040] In step S11, condition information is acquired.

[0041] In the embodiment of the present disclosure, the condition information is the trigger condition information in the TAP rule for triggering the execution of the device. It can be understood that the condition information is the condition information for executing the corresponding operation of the device.

[0042] For example, in the embodiments of the present disclosure, it can also be understood that the user selects condition information, and the condition information is used to express the operation that the device should perform.

[0043] In step S12, the condition information is converted into a condition set based on a preset condition set model.

[0044] In the embodiment of the present disclosure, the condition information set model is used to convert the trigger condition in transient form into an event trigger condition in numerical form, and to convert the trigger condition in continuous state form into a state condition.

[0045] In an example of the present disclosure, a trigger condition in transient form is converted into an event trigger condition in numerical form, for example, "when I enter the living room" is converted into an expression in the form of a "point" in a mathematical model.

[0046] In an example of the present disclosure, a trigger condition in the form of a continuous state is converted into a state condition. For example, "after sunset" is converted into an expression in the form of "range" in a mathematical model.

[0047] In an example of the present disclosure, condition information is converted into a condition set according to a preset condition set model.

[0048] In an example of the present disclosure, the condition set model is a condition set model of pre-set compliant automation rule compound conditions.

[0049] In step S13, based on the condition set, the compliance of the condition information is determined, and based on the compliance, the device is controlled.

[0050] In the disclosed embodiment, whether the condition information is compliant is determined based on the condition set, and the device is controlled based on the compliance of the condition.

[0051] For example, in an example of the present disclosure, based on the condition set, it is determined that the condition information "after sunset, when I enter the living room" is compliant, then the lights in the living room can be controlled to turn on based on "after sunset, when I enter the living room".

[0052] The device control method provided by the embodiment of the present disclosure is based on obtaining the trigger condition information in the trigger execution TAP rule used to control the device, and can determine whether the condition information is compliant through a preset condition set model. This method can help users automatically determine whether the compound event / condition status under the TAP / ECA paradigm is compliant, which can improve the efficiency and accuracy of automated rule creation, and then, can control the device to perform corresponding operations based on compliant condition information. This method can also solve the problem of easy errors in the device automation creation process due to the lack of compliance judgment of compound event / state conditions in all paradigms.

[0053] Embodiments of the Disclosure The device control method involved in the embodiments of the disclosure is described below.

[0054] The following is a description of the implementation process of controlling a device based on compliance in the embodiment of the present disclosure.

[0055] Figure 2 FIG. 1 is a flow chart showing how to control a device based on compliance according to an exemplary embodiment. Figure 2 As shown, the following steps are included.

[0056] In step S21, it is determined whether the condition information is compliant.

[0057] In the disclosed embodiment, compliance of condition information is determined based on a condition set, and then, based on the compliance condition information, the device is controlled.

[0058] In step S22, if the condition information is a compliance condition, the device is controlled according to the condition information.

[0059] In the embodiment of the present disclosure, if the condition information is determined to be a compliance condition based on the condition set, the device is controlled according to the condition information.

[0060] In step S23, if the condition information is an incompatible condition, a prompt message is displayed.

[0061] In an embodiment of the present disclosure, if the condition information is determined to be an incompatible condition based on the condition set, prompt information is displayed. In an example of the present disclosure, the prompt information is used to prompt that the condition information is incompatible so that the user can adjust the condition information to a compatible condition for controlling the device.

[0062] The following is an explanation of the implementation process of obtaining condition information in the embodiment of the present disclosure.

[0063] In the embodiment of the present disclosure, the condition information includes at least any one of the following: an event triggering condition and a state condition.

[0064] For example, in an example of the present disclosure, device conditions are divided into event trigger conditions and status conditions. Assume that the trigger condition set of device A is: deviceA ={e dA1 , e dA2 , e dA3 ,...}. Among them, e dA It is a trigger condition of the device A, such as the human presence sensor in the living room detects "when I enter the living room".

[0065] In an example of the present disclosure, the trigger condition set of device A, and similarly, the trigger condition set of device B and the trigger condition set of device C are also provided, and this public card embodiment does not limit this.

[0066] The state condition set of device A is: S deviceA ={s dA1 ,s dA2 ,s dA3 , ...}. Among them, s dA It is a certain state condition of device A, such as the human presence sensor in the living room detects that “I am already in the living room”.

[0067] In an example of the present disclosure, the status condition set of device A, and similarly, the status condition set of device B and the status condition set of device C are also provided, and this public card embodiment does not limit this.

[0068] In an example of the present disclosure, timing conditions are divided into event trigger conditions and state conditions. Assume that the trigger condition set based on the time point is: E time ={e time1 , e time2 , e time3 ,...}. Among them, e time is a state condition based on a time range. For example, time1 represents the time of sunset. Then e time1 The representative's trigger condition is "when the sun sets".

[0069] The state condition set based on the time point is: S time ={s time1 ,s time2 ,s time3 , ...}. Among them, s time is a state condition based on a time range. For example, time1 represents the time of sunset, then s time1 The state represented is "at night time".

[0070] In an example of the present disclosure, geographical conditions are divided into event trigger conditions and state conditions. Assume that the set of trigger conditions based on location is: position ={e posi1 , e posi2 , e posi3 ,...}. Among them, e posi is a trigger condition based on location. For example, position 1 represents the location of the community. Then e posi1 The trigger condition of the representative is "just entering the community".

[0071] The set of location-based status conditions is: S position ={s posi1 ,s posi2 ,s posi3 , ...}. Among them, s position is a state condition based on the location range. For example, position 1 represents the location of the community, then s posi1 The representative's status is "in the community".

[0072] In an example of the present disclosure, the external environmental conditions are divided into event trigger conditions and state conditions. Assume that the trigger condition set based on the temperature of the external environmental conditions is: E temperature ={e temp1 , e temp2 , e temp3,...}. Among them, e temp is a trigger condition based on a temperature range, for example, temp1 represents 32 degrees Celsius, then e temp1 The representative trigger condition is "when the temperature rises to 32 degrees Celsius".

[0073] The state condition set based on the temperature of the external environment conditions is: S temperature ={s temp1 ,s temp2 ,s temp3 , ...}. Among them, s temp is a state condition based on a temperature range, for example, temp1 represents 32 degrees Celsius, then s temp1 The status represented is "when the temperature is higher than 32 degrees Celsius".

[0074] In an example of the present disclosure, the device type condition set, timing conditions, geographical conditions, external environment conditions and the like also include traffic conditions, etc., which are not limited in the embodiments of the present disclosure.

[0075] In the embodiment of the present disclosure, the event triggering condition includes at least any one of the following: a multi-event triggering condition and an independent event triggering condition.

[0076] In the disclosed embodiment, the state condition includes at least any one of the following: a multi-state condition, an independent state condition.

[0077] In the disclosed embodiment, the trigger condition information in the trigger execution TAP rule for controlling the device is obtained, and the condition information is converted into a condition set through a preset condition set model. Based on the condition set, it is possible to determine whether the condition information based on the event trigger condition or the combination of the event trigger condition and the state condition is compliant.

[0078] The following describes the implementation process of determining whether condition information is compliant based on a preset condition set model according to the embodiment of the present disclosure.

[0079] In the disclosed embodiment, condition information is converted into condition information based on a preset condition set model. The trigger condition in transient form is converted into an event trigger condition in the form of a numerical representation, that is, the trigger condition in transient form is expressed in the form of a "point" in the mathematical model. The trigger condition in the form of a continuous state is converted into a state condition, that is, the trigger condition in the form of a continuous state is expressed in the form of a "range" in the mathematical model.

[0080] Among them, in an example of the present disclosure, the compliance of the conditional information is determined based on whether there is an intersection between the "point" and the "range". It can be understood that based on the semantic content of the conditional information, if there is no conflict between the semantic contents of the conditional information, that is, there is an intersection, that is, it is not an empty set, then the conditional information is compliant. If there is a conflict between the semantic contents of the conditional information, that is, there is no intersection, that is, it is an empty set, then the conditional information is not compliant.

[0081] The following first describes the implementation process of the present disclosure for determining whether the condition information is compliant based on a preset condition set when the condition information is a multi-event trigger condition.

[0082] Figure 3 FIG. 1 is a flow chart showing how to determine compliance of condition information based on a condition set according to an exemplary embodiment. Figure 3 As shown, the following steps are included.

[0083] In step S31, it is determined that the condition information is a multi-event trigger condition.

[0084] In the embodiment of the present disclosure, it is determined whether the condition information is an EE compound condition and whether they are all event triggering conditions.

[0085] In the embodiment of the present disclosure, compound condition information is information including at least two conditions or more than two conditions.

[0086] In step S32, it is determined that the condition information is a compliance condition.

[0087] In the embodiment of the present disclosure, when the condition information is compound condition information, and the condition information is a multi-event trigger condition (EE compound condition), the condition information is compliant.

[0088] In the embodiment of the present disclosure, the multi-event trigger condition (Multi-Event→Event) can be understood as each event trigger condition set is independent of each other and does not affect each other, which is an "or" relationship. or ) Available expressions: E or =E1∪E2∪...∪E m Express.

[0089] In an example of the present disclosure, since any event can trigger, it is a union relationship in the mathematical model. or =E1∪E2∪...∪E m will not be an empty set. But E or =E1∪E2∪...∪E m The result of cannot be a complete set. If it is a complete set, it can be executed under any condition. Therefore, this condition is meaningless. Theoretically, only when m→∞, Eor The complete set will be the same as the number of automatic trigger event conditions, so the composite event condition E based on the condition information is any multi-event trigger condition. or , in either case, the equipment automation compliance condition is met.

[0090] In the embodiment of the present disclosure, based on obtaining condition information for executing corresponding operations of the device, when the condition information is a multi-event trigger condition, it can be determined that the condition information is compliant.

[0091] The following describes an implementation process of the present disclosure involving a preset set model, in which, when the condition information is an independent event triggering condition, the condition information is judged to be compliant based on the state condition of the condition information.

[0092] Figure 4 FIG. 1 is a flow chart showing how to determine compliance of condition information based on a condition set according to another exemplary embodiment. Figure 4 As shown, the following steps are included.

[0093] In step S41, it is determined that the condition information is an ESE compound condition.

[0094] In an example of the present disclosure, when the condition information is a combination of an event trigger condition and a state condition, it is a composite condition based on ESE (Event-State→Event). The composite condition (Event-State) is the intersection of the event condition (Event) and the state condition (State), that is, both E and S are satisfied. The composite condition can be C ES Expression, namely C ES =E∩S.

[0095] In one example of the present disclosure, E can be or , that is, C ES =E∩S=C EorS =E or ∩S=(E1∪E2∪...∪E m )∩S, according to the distribution law of sets, that is, (E1∪E2∪...∪E m )∩S=(E1∩S)∪(E2∩S)∪...∪(E m ∩S).

[0096] In step S42, in response to the condition information including at least two conditions, and at least two conditions are ESE compound conditions, the compliance of the condition information is determined based on the intersection relationship between the corresponding values ​​and / or value ranges of the at least two conditions.

[0097] It can be understood that, in an example of the present disclosure, when the condition information is compound condition information and the condition information is an independent event triggering condition, whether the condition information is compliant is determined based on the status condition of the condition information.

[0098] In the disclosed embodiment, when the condition information is a combination of an event trigger condition and a state condition, whether the condition information is compliant is determined based on the independent event trigger condition and the state condition.

[0099] Figure 5 FIG. 1 is a flowchart showing another exemplary embodiment of determining compliance of condition information based on the intersection and union relationship between at least two condition corresponding values ​​and / or value ranges. Figure 5 As shown, the following steps are included.

[0100] In step S51, the intersection relationship between the values ​​and / or value ranges corresponding to at least two conditions is determined.

[0101] In step S52, in response to the union of all state condition sets included in the at least two conditions being a non-complete set, and an intersection between the event condition set and the state condition set included in the at least two conditions, the condition information is a compliance condition.

[0102] It can be understood that in the embodiment of the present disclosure, in response to the conditional information satisfying any multi-state condition, and each independent trigger event condition simultaneously satisfies each independent state condition and is not an empty set, that is, there is an intersection, it is determined that the conditional information is compliant.

[0103] In an example of the present disclosure, the multi-state condition is not a complete set.

[0104] In an example of the present disclosure, any multi-state condition (Multi-State) S or , the condition set is an "or" relationship, which is a union relationship in the mathematical model: S or =S1∪S2∪...∪S n .

[0105] In one example of the present disclosure,

[0106] In the embodiment of the present disclosure, the multi-state condition is not the full set S or =S1∪S2∪...∪S n It cannot be the entire set, otherwise it can be achieved under any conditions and the condition is meaningless.

[0107] For example, in the embodiment of the present disclosure, it is assumed that device A (S deviceA ) selects the following two status conditions from the status condition set of the sensor for the human body in the living room: s dA1 The living room human sensor detects "I am already in the living room."dA2 The living room human sensor detects "I am not in the living room". When both s dA1 and dA2 , then s deviceA ={s dA1 ,s dA2} is the complete set of states, then the following tasks will be executed in any case and the meaning of automation will be lost. Therefore, multi-state conditions cannot be a complete set.

[0108] In the embodiment of the present disclosure, when each independent trigger event condition satisfies each independent state condition and is not an empty set, the condition information is compliant. m ∩S n When it is a non-empty set, it is a smart home automation compliance condition.

[0109] For example, suppose E deviceA ={e dA1 , e dA2 ,}Device A is the trigger condition set of the human body sensor in the living room, S deviceA ={s dA1 ,s dA2 ,}Device A is the state condition set of the human body sensor in the living room, e dA and dA They are condition elements in the trigger condition set and state condition set of device A respectively.

[0110] In one example of the present disclosure, e dA1 The living room human sensor detects "When I enter the living room". dA2 The living room occupancy sensor detects "When I leave the living room". dA1 The living room human sensor detects "I am already in the living room." dA2 The living room human body sensor detects "I am not in the living room". Obviously, for the same type of condition in the same device A, its compound condition E deviceA ∩S deviceA are all empty sets, because e dA and dA No combination can hold, because "when I enter the living room" and "I am already in the living room" is a conditional paradox.

[0111] Assumption E time ={e time1 , e time2} is the trigger condition set of the human body sensor in the living room of device A, S time ={s time1 ,s time2} is the state condition set of device A as the human body sensor in the living room, e time andtime They are the condition elements in the trigger condition set and the state condition set of device A respectively.

[0112] Among them, e time1 The trigger condition represented is "when the sun sets". time2 The trigger condition is "at sunrise". time1 The state condition represented is "at night" time2 The state condition represented by is "during daytime". Its compound condition E deviceA ∩S time and E time ∩S deviceA , generates: "When I enter the living room", and "at night". "When I enter the living room", and "at daytime". "When I leave the living room", and "at night". "When I leave the living room", and "at daytime". "When the sun sets", and "I'm already in the living room". "When the sun rises", and "I'm already in the living room". "When the sun sets", and "I'm not in the living room". "When the sun rises", and "I'm not in the living room".

[0113] Therefore, in the embodiment of the present disclosure, for E m ∩S n For E and S, they are not empty sets and are compliant only if they do not belong to the same-device or same-type conditions, unless the condition set in the device A contains other types of conditions. For example, device A is a human presence sensor in the living room. In addition to judging the conditions of people, it can also judge the conditions of light. Then the composite condition set for judging people and light is compliant.

[0114] In the embodiment of the present disclosure, based on obtaining the condition information of the user's choice to execute the corresponding operation of the device, when the condition information satisfies any multi-state condition and is not an empty set when each independent trigger event condition satisfies each independent state condition at the same time, and the multi-state condition is not a complete set, it can be determined that the condition information is compliant.

[0115] In step S53, in response to the fact that all state condition sets in the state condition sets included in the at least two conditions have an intersection, and there is an intersection between the event condition set included in the at least two conditions and the state condition set, the condition information is a compliance condition.

[0116] It can be understood that in the embodiment of the present disclosure, in response to the conditional information satisfying multiple state conditions at the same time, and when each independent trigger event condition satisfies all state conditions at the same time, there is an intersection, that is, it is not an empty set, and the conditional information is determined to be compliant.

[0117] Among them, in the embodiment of the present disclosure, the multi-state condition is not an empty set.

[0118] In an example of the present disclosure, a multi-state condition set (Multi-State) S is satisfied at the same time and , the condition set is an "and" relationship, which is an intersection relationship in the mathematical model: S and =S1∩S2∩...∩S n .

[0119] In an example of the present disclosure, In the embodiment of the present disclosure, first determine E m ∩(S1∩...∩S n ) is a non-empty set, and then judge whether E m ∩S and Is it a non-empty set? m ∩(S1∩...∩S n ) and E m ∩S and When both are non-empty sets, the condition is a smart home automation compliance condition.

[0120] For example, in an example of the present disclosure, when s deviceA ={s dA1 ,s dA2} is the complete set of states, where s dA1 and dA2 For the same type of conditional elements under the same device, for example, “I am already in the living room” and “I am not in the living room”, S deviceA ∩S deviceA An empty set is illegal.

[0121] In another example of the present disclosure, when s deviceA ={s dA1 ,s dA2} is the complete set of states, unless the device A contains other types of conditions. For example, if the device A is a human presence sensor in the living room, it can judge not only the human condition but also the lighting condition. Then the composite condition set for judging the human and the lighting is compliant.

[0122] For example, in an example of the present disclosure, "I am already in the living room" and "the living room is darker". "I am not in the living room" and "the living room is darker". "I am already in the living room" and "the living room is brighter". "I am not in the living room" and "the living room is brighter". All are non-empty sets, then this automation rule composite condition is compliant.

[0123] In another embodiment of the present disclosure, when (S1∩S2∩...∩S n ) There are two conditions of the same type, for example, S time ∩S time , or position ∩s position , then the empty set is not compliant.

[0124] In another example of the present disclosure, when (S1∩S2∩...∩S n ) is an empty set, unless the same type of condition contains other attributes, for example, the time state condition S time , where S time By attaching different time zone attributes, the compound condition set for the same time in different time zones is compliant.

[0125] For example, in the disclosed embodiment, "at night in Beijing" and "at night in New York". "At daytime in Beijing" and "at night in New York". "At night in Beijing" and "at daytime in New York". "At daytime in Beijing" and "at daytime in New York". If the rule is a non-empty set, then the composite condition of this automated rule is compliant.

[0126] In the present disclosure embodiment, it is determined that E m ∩S and Is it a non-empty set? For the above embodiment, E m ∩S n The only way to comply with the rule is if E and S are not the same device or the same type. Therefore, as long as S and Any S does not match E m The same device or the same type of conditions can be used.

[0127] In the embodiment of the present disclosure, based on obtaining the condition information of the user's choice to execute the corresponding operation of the device, when the condition information satisfies multiple state conditions at the same time, and each independent trigger event condition satisfies all state conditions at the same time and is not an empty set, wherein the multiple state conditions are not an empty set, it can be determined that the condition information is compliant.

[0128] In the embodiment of the present disclosure, in response to the condition information not satisfying any of the multi-state conditions, and the condition information not satisfying the multi-state conditions at the same time, it is determined that the condition information is non-compliant.

[0129] In an example of the present disclosure, when the condition information does not satisfy any of the multi-state conditions and the condition information does not satisfy the multi-state conditions at the same time, the condition information is non-compliant.

[0130] In the disclosed embodiment, it is based on obtaining the condition information for executing the corresponding operation of the device. When the condition information satisfies any multi-state condition, and when each independent trigger event condition satisfies each independent state condition at the same time, there is an intersection, that is, it is not an empty set, wherein the multi-state condition is not a full set, it can be determined that the condition information is compliant. When the condition information satisfies the multi-state conditions at the same time, and when each independent trigger event condition satisfies all state conditions at the same time, it is not an empty set, wherein the multi-state condition is not an empty set, it can be determined that the condition information is compliant. In this way, there is no need for the user to understand or perceive the various complex parameter values ​​corresponding to the device, thereby solving the problem of easy errors in the process of creating smart home automation.

[0131] The following is an explanation of the implementation process of determining whether condition information complies with a rule in the embodiment of the present disclosure.

[0132] Figure 6 FIG. 1 is a flowchart showing how to determine compliance of a composite condition of an equipment automation rule according to an exemplary embodiment. Figure 6 As shown, the following steps are included.

[0133] In step S60, start.

[0134] In step S61, the automation rule triggering condition is set.

[0135] In the disclosed embodiment, condition information is obtained. It can be understood as the triggering condition of the automation rule set by the user. For example, the condition information is "after sunset, when I enter the living room". It can be understood that the user sets the condition information "after sunset, when I enter the living room" to turn on the light when the condition information is met.

[0136] In step S62, whether it is a compound condition.

[0137] In an example of the present disclosure, it is determined whether the condition information is a compound condition. A compound condition is a rule formed by two or more conditions.

[0138] For example, in an example of the present disclosure, "after sunset" is a state condition, not a compound condition, but "after sunset, when I enter the living room" is composed of two conditions and is a compound condition.

[0139] In step S63, whether it is a multi-event trigger condition.

[0140] In the embodiment of the present disclosure, if the condition information is composite condition information, it is determined whether the condition information is a multi-event trigger condition based on a mathematical set model.

[0141] In step S631, compliance.

[0142] In an example of the present disclosure, if the condition information is a multi-event trigger condition, it is compliant.

[0143] For example, in an example of the present disclosure, the multi-event trigger conditions are: "When I enter the living room", "When the time is a certain time point", "When I am at a certain place". It can be seen that each event trigger condition is independent of each other and does not affect each other. Therefore, any event can be triggered. Therefore, the multi-event trigger condition will not be an empty set. Furthermore, if the condition information is a multi-event trigger condition, the condition information is compliant.

[0144] In step S632, compound event / state conditions.

[0145] In an example of the present disclosure, if the condition information is not a multi-event trigger condition, that is, the condition information is an independent event trigger condition, then the state condition is determined.

[0146] In step S64, it is determined whether any one of the multiple state conditions satisfies the state condition and is not a complete set of state conditions.

[0147] In the embodiment of the present disclosure, when the condition information satisfies any multi-state condition and the state condition is not a complete set, step S641 is executed.

[0148] In an example of the present disclosure, the state condition is a complete set, that is, any condition can be triggered, and the rule is meaningless. Therefore, the state condition is not a complete set.

[0149] In step S641, it is determined whether each independent trigger event condition is independently satisfied and each independent event condition is not an empty set.

[0150] In the embodiment of the present disclosure, when the condition information satisfies any multi-state condition and the state condition is not a complete set, the condition information is compliant when each independent trigger event condition is simultaneously satisfied and each independent event condition is not an empty set.

[0151] For example, in an example of the present disclosure, the two state conditions "I am not in the living room" and "after sunset" are not a complete set of state conditions. When the independent trigger event condition "when I enter the living room" satisfies the independent state condition "after sunset", the independent trigger event and the independent state condition are not an empty set, and the condition information "after sunset, when I enter the living room" is compliant.

[0152] In step S642, it is determined whether multiple state conditions are satisfied at the same time and whether the state condition is not an empty set.

[0153] In the disclosed embodiment, when any of the multi-state conditions is not satisfied, it is determined whether the multi-state conditions are satisfied simultaneously and whether the state condition is not an empty set.

[0154] In step S65, non-compliance.

[0155] In the embodiment of the present disclosure, when any of the multi-state conditions is not satisfied, and the multi-state conditions are not satisfied simultaneously, the condition information is non-compliant.

[0156] In step S66, it is determined whether all state conditions are satisfied simultaneously for each independent trigger event condition and whether the condition is not an empty set.

[0157] In the embodiment of the present disclosure, when multiple state conditions are satisfied at the same time, and when each independent trigger event condition satisfies all state conditions at the same time and is not an empty set, the condition information is compliant.

[0158] For example, in the disclosed embodiment, the multi-state condition set is "after sunrise" and "after sunset", and "I am in the living room" and "after sunset" are not empty sets. Among them, the independent trigger event "when I enter the living room" satisfies all state conditions "after sunrise" and "after sunset", so the condition information "after sunrise, when I enter the living room" and "after sunset, when I enter the living room" are compliant.

[0159] In the embodiment of the present disclosure, the condition information of the corresponding operation of the device executed based on the user's choice is obtained. When the condition information is a multi-event trigger condition, it can be determined that the condition information is compliant. When the condition information satisfies any multi-state condition, and is not an empty set when each independent trigger event condition satisfies each independent state condition at the same time, wherein the multi-state condition is not a full set, it can be determined that the condition information is compliant. When the condition information satisfies multiple state conditions at the same time, and is not an empty set when each independent trigger event condition satisfies all state conditions at the same time, wherein the multi-state condition is not an empty set, it can be determined that the condition information is compliant.

[0160] Based on the same concept, an embodiment of the present disclosure also provides a device for controlling equipment.

[0161] It is understandable that, in order to realize the above functions, a device control apparatus provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0162] Figure 7 is a block diagram of a device control apparatus according to an exemplary embodiment. Figure 7 The device 100 includes an acquisition unit 101, a processing unit 102, and a control unit 103.

[0163] The acquisition unit 101 is used to acquire condition information.

[0164] In an example of the present disclosure, the condition information is trigger condition information in a trigger execution TAP rule for controlling a device.

[0165] The processing unit 102 is used to convert the condition information into a condition set based on a preset condition set model.

[0166] In an example of the present disclosure, the preset condition set model is used to convert a trigger condition in a transient form into an event trigger condition in a numerical form, and to convert a trigger condition in a continuous state form into a state condition.

[0167] The control unit 103 is used to determine the compliance of the condition information based on the condition set, and control the device based on the compliance.

[0168] In the embodiment of the present disclosure, the control unit 103 controls the device based on compliance in the following manner: if the condition information is determined to be a compliance condition based on the condition set, the device is controlled according to the condition information. If the condition information is determined to be a non-compliance condition based on the condition set, a prompt message is displayed, and the prompt message is used to prompt that the condition information is non-compliant, so that the user can adjust the condition information to a compliance condition for controlling the device.

[0169] In an embodiment of the present disclosure, the control unit determines the compliance of the condition information based on a condition set in the following manner: in response to the condition information including at least two conditions, and at least two conditions are EE compound conditions, and both are event triggering conditions, the condition information is determined to be a compliance condition.

[0170] In an example of the present disclosure, each event trigger condition set in the EE compound condition is independent of each other.

[0171] In the embodiment of the present disclosure, the control unit determines the compliance of the condition information based on the condition set in the following manner: in response to the condition information including at least two conditions, and at least two conditions are ESE compound conditions, the compliance of the condition information is determined based on the intersection and union relationship between the corresponding values ​​and / or value ranges of the at least two conditions;

[0172] In an example of the present disclosure, the ESE compound condition includes the intersection of an event condition set and a state condition set.

[0173] In the embodiment of the present disclosure, based on the intersection and union relationship between the corresponding values ​​and / or value ranges of at least two conditions, determining the compliance of the condition information includes: in response to the union of all state condition sets included in the at least two conditions being a non-complete set, and there is an intersection between the event condition set and the state condition set included in the at least two conditions, the condition information is a compliance condition. In response to the existence of an intersection of all state condition sets in the state condition set included in the at least two conditions, and there is an intersection between the event condition set and the state condition set included in the at least two conditions, the condition information is a compliance condition.

[0174] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0175] Figure 8 2 is a block diagram of an apparatus 200 for device control according to an exemplary embodiment. For example, the apparatus 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0176] Reference Figure 8 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .

[0177] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.

[0178] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0179] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.

[0180] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0181] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.

[0182] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0183] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0184] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0185] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0186] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0187] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0188] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0189] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0190] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0191] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0192] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. A device control method, characterized in that: include: Acquire condition information, where the condition information is trigger condition information in a trigger execution TAP rule for controlling a device; Based on a preset condition set model, the condition information is converted into a condition set, wherein the preset condition set model is used to convert a trigger condition in a transient form into an event trigger condition in a numerical form, and to convert a trigger condition in a continuous state form into a state condition; Based on the condition set, compliance of the condition information is determined, and based on the compliance, the device is controlled.

2. The method according to claim 1, characterized in that The controlling the device based on the compliance includes: If it is determined that the condition information is a compliance condition based on the condition set, the device is controlled according to the condition information; If it is determined based on the condition set that the condition information is a non-compliant condition, a prompt message is displayed, where the prompt message is used to prompt that the condition information is non-compliant, so that the user can adjust the condition information to a compliant condition for controlling the device.

3. The method according to claim 1 or 2, characterized in that: The determining, based on the condition set, compliance of the condition information includes: In response to the condition information including at least two conditions, and the at least two conditions are EE compound conditions and both are event triggering conditions, determining that the condition information is a compliance condition; Each event trigger condition set in the EE composite condition is independent of each other.

4. The method according to claim 1 or 2, characterized in that: The determining, based on the condition set, compliance of the condition information includes: In response to the condition information including at least two conditions, and the at least two conditions are ESE compound conditions, determining compliance of the condition information based on an intersection relationship between numerical values ​​and / or numerical ranges corresponding to the at least two conditions; The ESE compound condition includes the intersection of an event condition set and a state condition set.

5. The method according to claim 4, characterized in that The determining the compliance of the condition information based on the intersection and union relationship between the numerical values ​​and / or numerical ranges corresponding to the at least two conditions includes: In response to the union of all state condition sets included in the at least two conditions being a non-complete set, and an intersection between the event condition set included in the at least two conditions and the state condition set, the condition information is a compliance condition; In response to the fact that all state condition sets in the state condition sets included in the at least two conditions have an intersection, and there is an intersection between the event condition set included in the at least two conditions and the state condition set, the condition information is a compliance condition.

6. A device for controlling equipment, characterized in that: The device comprises: An acquisition unit, used to acquire condition information, where the condition information is trigger condition information in a trigger execution TAP rule for controlling a device; a processing unit, configured to convert the condition information into a condition set based on a preset condition set model, wherein the preset condition set model is configured to convert a trigger condition in a transient form into an event trigger condition in a numerical form, and to convert a trigger condition in a continuous state form into a state condition; A control unit is used to determine the compliance of the condition information based on the condition set, and control the device based on the compliance.

7. The device according to claim 6, characterized in that: The control unit controls the device based on the compliance in the following manner: If it is determined that the condition information is a compliance condition based on the condition set, the device is controlled according to the condition information; If it is determined based on the condition set that the condition information is a non-compliant condition, a prompt message is displayed, where the prompt message is used to prompt that the condition information is non-compliant, so that the user can adjust the condition information to a compliant condition for controlling the device.

8. The device according to claim 6 or 7, characterized in that: The control unit determines compliance of the condition information based on the condition set in the following manner: In response to the condition information including at least two conditions, and the at least two conditions are EE compound conditions and both are event triggering conditions, determining that the condition information is a compliance condition; Each event trigger condition set in the EE composite condition is independent of each other.

9. The device according to claim 6 or 7, characterized in that: The control unit determines compliance of the condition information based on the condition set in the following manner: In response to the condition information including at least two conditions, and the at least two conditions are ESE compound conditions, determining compliance of the condition information based on an intersection relationship between numerical values ​​and / or numerical ranges corresponding to the at least two conditions; The ESE compound condition includes the intersection of an event condition set and a state condition set.

10. The device according to claim 9, characterized in that: The determining the compliance of the condition information based on the intersection and union relationship between the numerical values ​​and / or numerical ranges corresponding to the at least two conditions includes: In response to the union of all state condition sets included in the at least two conditions being a non-complete set, and an intersection between the event condition set included in the at least two conditions and the state condition set, the condition information is a compliance condition; In response to the fact that all state condition sets in the state condition sets included in the at least two conditions have an intersection, and there is an intersection between the event condition set included in the at least two conditions and the state condition set, the condition information is a compliance condition.

11. A device for controlling equipment, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the device control method described in any one of claims 1-5.

12. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the device control method described in any one of claims 1-5.