EP-4089491-B1 - SMART DEVICE CONTROL SYSTEM, METHOD, AND APPARATUS, SMART GATEWAY, AND STORAGE MEDIUM
Inventors
- ZHANG, QIAN
- ZHAO, JUNJIE
- ZHAO, Yanqiu
- SU, JING
Dates
- Publication Date
- 20260506
- Application Date
- 20201230
Claims (12)
- A method of controlling an intelligent device, comprising: receiving (S201) first monitoring data provided by a first sensor; determining (S202) a relationship between the first monitoring data and a preset target monitoring value; determining, from a plurality of preset action resources, an action resource containing a trigger condition matched with the relationship as a first action resource; extracting (S203) an execution instruction from the first action resource, and transmitting the execution instruction to a first intelligent device related with the first action resource; and monitoring (S204) a first execution effect of the first intelligent device related with the first action resource according to the first monitoring data, and turning on a second intelligent device related with the first intelligent device or turning off the first intelligent device according to the first execution effect, wherein the action resource contains an action resource parameter and an action effect resource, the action resource parameter comprises a trigger condition of the action resource, an execution instruction of the action resource and an execution object of the action resource, and the action effect resource comprises at least one of: an effect resource identification, an effect initial value, an effect current value, an effect target value, an effect monitor period, an effect predicted achievement period, a nonlinear effect parameter, an effect control parameter, an effect control trend, a related device involved switch or related action involved switch, a related device involved list or related action involved list, a related device involved setting or related action involved setting, a reverse action switch, or an effective time period, wherein the first action resource comprises a first action effect information, and the first action effect information comprises a first effect monitor period, a first effect initial value, a first effect current value, a first effect target value and a first effect control trend, and wherein the monitoring a first execution effect of the first intelligent device related with the first action resource according to the first monitoring data comprises: updating the first effect initial value in the first action effect information according to the first monitoring data, and updating the first effect target value in the first action effect information according to the target monitoring value; receiving the first monitoring data according to the first effect monitor period in the first action effect information, updating the first effect current value in the first action effect information according to the received first monitoring data, determining an estimated achievement value at a current time instant according to the first effect initial value and the first effect target value, determining whether the first execution effect is out of control or under control according to a relationship between the updated first effect current value and the estimated achievement value at the current time instant, and updating a determination result to a status value of the first effect control trend in the first action effect information; and continuing to perform a next cycle of detection in response to determining that the first execution effect is under control; or turning on the second intelligent device or selecting another action resource from the plurality of preset action resources as the first action resource according to the first execution effect, in response to determining that the first execution effect is out of control.
- The method of claim 1, further comprising: extracting (S807) an effective time period of a second action resource from the second action resource and extracting an effective time period of the first action resource from the first action resource, in response to the first monitoring data provided by the first sensor triggering the second action resource, wherein a status value of the effective time period refers to a time period during which an execution effect corresponding to the action effect resource needs to be monitored; and continuing (S808) an execution of the first action resource and terminating an execution of the second action resource, in response to a current time instant falling within the effective time period of the first action resource; or executing (S809) the second action resource and terminating an execution of the first action resource, in response to a current time instant falling within the effective time period of the second action resource.
- The method of claim 1, wherein the first action effect information further comprises a first effect predicted achievement period, and wherein the determining an estimated achievement value at a current time instant according to the first effect initial value and the first effect target value comprises: determining an estimated achievement effect according to the first effect initial value, the first effect target value, the first effect predicted achievement period and the first effect monitor period; and determining the estimated achievement value at the current time instant according to the estimated achievement effect and a time difference between the current time instant and an initial time instant, wherein the initial time instant is a time instant of transmitting the execution instruction in the first action resource.
- The method of claim 1, wherein the first action effect information further comprises a first effect control parameter, and wherein the determining whether the first execution effect is out of control or under control according to a relationship between the updated first effect current value and the estimated achievement value at the current time instant comprises: determining an upper limit of the estimated achievement value at the current time instant and a lower limit of the estimated achievement value at the current time instant according to the estimated achievement value at the current time instant and the first effect control parameter in the first action effect information; and determining whether the first execution effect is out of control or not according to a relationship between the updated first effect current value and the upper limit of the estimated achievement value at the current time instant and a relationship between the updated first effect current value and the lower limit of the estimated achievement value at the current time instant.
- The method of claim 1, wherein the first action resource further comprises a second action effect information, and wherein the method further comprises receiving (S707) second monitoring data provided by a second sensor, and wherein the monitoring a first execution effect of the first intelligent device related with the first action resource according to the first monitoring data and turning off the first intelligent device according to the first execution effect comprises: monitoring (S708) a second execution effect of the first intelligent device related with the first action resource according to the second monitoring data, and updating the second action effect information in the first action resource corresponding to the second execution effect; and determining (S709) that the second execution effect is out of control and turning off the first intelligent device according to the second execution effect, in response to a difference between the second execution effect and a preset effect exceeding a preset range.
- The method of claim 1, further comprising: triggering a second action resource by the received first monitoring data provided by the first sensor, wherein the second action resource comprises a third action effect information, and the third action effect information comprises a second effect target value, and wherein the method further comprises: determining (S907) a first effect trend corresponding to the first action resource according to a trigger condition in the first action resource and the first effect target value in the first action effect information in the first action resource, and determining a second effect trend corresponding to the second action resource according to a trigger condition in the second action resource and the second effect target value in the third action effect information in the second action resource; and determining (S908) whether a status value of a no-same-effect parameter in the second action resource is True or not and whether a status value of a no-opposite-effect parameter is False or not, in response to the first effect trend corresponding to the first action resource being opposite to the second effect trend corresponding to the second action resource; determining (S909) whether an execution object in the first action resource is the same as an execution object in the second action resource, in response to determining that the status value of the no-same-effect parameter is True and the status value of the no-opposite-effect parameter is False; and continuing (S910) an execution of the first action resource and terminating an execution of the second action resource, in response to determining that the execution object in the first action resource is the same as the execution object in the second action resource; or continuing (S911) an execution of the first action resource and starting an execution of the second action resource, in response to determining that the execution object in the first action resource is different from the execution object in the second action resource.
- The method of claim 1, wherein the first action effect information is stored as a sub-resource of the first action resource, or as a parameter of the first action resource, and the trigger condition in the first action resource is stored as a parameter of the first action resource, and wherein the first action resource further comprises a first verification information, and the first verification information is stored as a sub-resource of the first action resource.
- The method of claim 1, further comprising: receiving a trigger instruction input by a user, and extracting the preset target monitoring value from the received trigger instruction.
- An intelligent gateway, comprising: a processor; and a memory communicatively connected to the processor, wherein at least one instruction is stored in the memory, and the at least one instruction, when executed by the processor, is configured to cause the processor to implement the method of controlling the intelligent device of any one of claims 1 to 8.
- A system of controlling an intelligent device, comprising: the intelligent gateway of claim 9; a first sensor communicatively connected to the intelligent gateway and configured to continuously acquire first monitoring data and transmit the first monitoring data to the intelligent gateway; and a terminal device communicatively connected to the intelligent gateway and configured to provide a trigger instruction to the intelligent gateway, wherein the trigger instruction contains a target monitoring value of the same type as the monitoring data.
- The system of claim 10, further comprising: a second sensor communicatively connected to the intelligent gateway and configured to continuously acquire second monitoring data and transmit the second monitoring data to the intelligent gateway.
- A computer-readable storage medium having a computer program therein, wherein the computer program, when executed by a processor, is configured to cause the processor to implement the method of controlling the intelligent device of any one of claims 1 to 8.
Description
TECHNICAL FIELD The present disclosure relates to a field of an intelligent device technology, in particular to a system, a method and an apparatus of controlling an intelligent device, an intelligent gateway, and a storage medium BACKGROUND Intelligent devices have been widely used. At present, when controlling an intelligent device among a plurality of intelligent devices in a same control system, other intelligent devices are not taken into account. US2017/017218A1 discloses a method and an apparatus provided for controlling one or more intelligent devices. In the method, the apparatus stores configuration information that includes at least one identification that identifies at least one intelligent device, an execution operation corresponding to each intelligent device, and an execution condition corresponding to each execution operation. When a target execution condition is satisfied, the apparatus determines a target intelligent device and a target execution operation corresponding to the target execution condition by querying the configuration information according to the target execution condition. The apparatus then instructs the target intelligent device to perform the target execution operation. SUMMARY The invention is set out by the appended set of claims. In a first aspect, an embodiment of the present disclosure provides a method of controlling an intelligent device, including: receiving first monitoring data provided by a first sensor; determining a relationship between the first monitoring data and a preset target monitoring value; determining, from a plurality of preset action resources, an action resource containing a trigger condition matched with the relationship as a first action resource; extracting an execution instruction from the first action resource, and transmitting the execution instruction to a first intelligent device related with the first action resource; and monitoring a first execution effect of the first intelligent device related with the first action resource according to the first monitoring data, and turning on a second intelligent device related with the first intelligent device or turning off the first intelligent device according to the first execution effect. For example, the method further includes: extracting an effective time period of a second action resource from the second action resource and extracting an effective time period of the first action resource from the first action resource, in response to the first monitoring data provided by the first sensor triggering the second action resource; and continuing an execution of the first action resource and terminating an execution of the second action resource in response to a current time instant falling within the effective time period of the first action resource; or executing the second action resource and terminating an execution of the first action resource in response to a current time instant falling within the effective time period of the second action resource. The first action resource includes a first action effect information, and the first action effect information includes a first effect monitor period, a first effect initial value, a first effect current value, a first effect target value and a first effect control trend, and the monitoring a first execution effect of the first intelligent device related with the first action resource according to the first monitoring data includes: updating the first effect initial value in the first action effect information according to the first monitoring data, and updating the first effect target value in the first action effect information according to the target monitoring value; and receiving the first monitoring data according to the first effect monitor period in the first action effect information, updating the first effect current value in the first action effect information according to the received first monitoring data, determining an estimated achievement value at a current time instant according to the first effect initial value and the first effect target value, determining whether the first execution effect is out of control or under control according to a relationship between the updated first effect current value and the estimated achievement value at the current time instant, and updating a determination result to a status value of the first effect control trend in the first action effect information; and continuing to perform a next cycle of detection in response to determining that the first execution effect is under control; or turning on the second intelligent device or selecting another action resource from the plurality of preset action resources as the first action resource according to the first execution effect, in response to determining that the first execution effect is out of control. For example, the first action effect information further includes a first effect predicted achievement period; the determining an estimated ac