Intelligent household equipment action execution method and system
By using Redis caching in the cloud to filter non-trigger source information and judging multiple trigger source conditions, the efficiency and accuracy issues of smart home device control under cloud computing are solved, and efficient intelligent execution is achieved.
Patent Information
- Application Number
- CN202310172546.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-08-27
AI Technical Summary
Existing host-based smart home device control systems face challenges such as large data volumes, low processing efficiency, and unstable data storage after being converted to cloud computing, leading to a decline in the efficiency and accuracy of intelligent control.
By using Redis cache to store unique identifiers for homes and devices in the cloud, non-trigger source information is filtered out. When a trigger signal is received, it first determines whether the home has intelligent management services, then determines whether the trigger source meets the conditions, and only executes the action group when there are multiple trigger sources to avoid false triggering.
It improves the efficiency of cloud-based data processing, ensures the accuracy and efficiency of smart home device actions, avoids malfunctions caused by a single trigger source, and achieves efficient and intelligent cloud-based control.
Smart Images

Figure CN118550203A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of smart home, and in particular relates to a method and system for executing actions of smart home devices. Background Art
[0002] With the continuous development of smart homes, smart homes can not only be controlled manually but also automatically triggered, such as automatically turning on the lights when it gets dark. The existing system for automatically triggering the execution of smart device actions is based on host computing to achieve intelligent control, and this host is equipped with one host per family. A host can only intelligently process the device status of one family. Therefore, there are fewer judgment conditions for the intelligent processing of a family, and the amount of data that needs to be stored is correspondingly reduced. Most of the existing smart home data based on host computing control is stored in the MySQL relational database, and the created tasks are all in the jvm virtual machine cache.
[0003] Now, in order to realize the intelligent execution of smart home device actions based on the cloud, the host computing is converted to cloud computing, and then the intelligent detection and processing process is also transferred to the cloud accordingly. Therefore, the actions of smart home devices can be uniformly and intelligently processed based on the cloud. Then, the cloud needs to process not only the requests of one family, but also more than one trigger source of a device. When all the trigger sources of the device meet the trigger conditions, the corresponding device needs to execute the action. Therefore, cloud computing at this time is different from the existing host computing. Cloud computing needs to process a larger amount of data, and when facing a large amount of data, it is necessary to ensure the data processing efficiency to achieve the efficiency of device action execution. The existing host computing process for realizing intelligent execution needs to process a small amount of data, and its data storage method is not efficient in MySQL database retrieval when facing task execution, and the created tasks will be lost after the jvm is restarted. Therefore, if the cloud still uses the existing smart home device action execution method, the efficiency of cloud data processing and intelligent control of smart home device action execution cannot be guaranteed, and the existing data processing process is based on the data processing process of a single family, and cannot be directly applied to the data processing process of smart home device action execution under the cloud computing method. Therefore, it is urgent to propose a method that can ensure the efficiency of cloud detection when facing a large number of detections in the cloud to ensure the realization of intelligent services of smart homes. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for executing actions of smart home devices, so as to solve the efficiency problem when realizing intelligent execution of actions of smart home devices based on cloud computing.
[0005] In order to solve the above technical problems, the present invention provides a method for executing actions of a smart home device, comprising the following steps:
[0006] 1) When the cloud receives a trigger signal, it determines whether the trigger source of the trigger signal satisfies the trigger condition; the trigger condition includes: the trigger source of the trigger signal is set to trigger the trigger source information of other devices and the trigger signal is a signal that triggers the execution of actions of other devices;
[0007] 2) When the trigger source meets the trigger condition, determine whether other devices have other trigger sources besides this trigger source;
[0008] 3) If there are other trigger sources, determine whether the trigger conditions of other trigger sources are met, and if the trigger conditions of other trigger sources are met, execute the action group to implement the action execution of the smart home device; the action group is to call the control module of the corresponding device;
[0009] If there is no other trigger source, the action group is directly executed to realize the execution of the smart home device action.
[0010] The beneficial effect is that the judgment and control of the intelligent execution of the actions of the smart home devices of the present invention are all based on cloud processing. Based on the reports of the smart home devices of each family, the amount of data that needs to be processed by the cloud is large. In order to ensure the efficiency of cloud data processing, the present invention first determines whether the trigger source of the signal has intelligent business when obtaining the trigger signal of the smart home device. Although some devices are not trigger sources for triggering intelligence, the information will still be reported. Therefore, through this process, a large amount of non-trigger source information is filtered, thereby ensuring that the real trigger source information can be processed in time; and when the trigger source information that needs to be processed is obtained, it is determined again whether the trigger source other than the trigger source triggers other devices. Whether there is a trigger source, in order to ensure that the intelligent action of the device can only be executed when multiple trigger sources are satisfied during this process, to avoid the intelligent business error problem of executing only after judging one of them is satisfied, for example, the process of turning on the light when entering the door, if the device action of turning on the light can only be triggered by the trigger source of entering the door, then the cloud can call the light control module to turn on the light when receiving the trigger source of the door lock opening, but if in addition to the device trigger source of the door lock opening, the light must also be turned on when the time trigger source of the night is satisfied, then there is no need to turn on the light when entering the door during the day. Therefore, when receiving the trigger source of the door lock opening, the time trigger source needs to be judged to ensure the correct execution of the intelligent light-on service. Then, through the process of filtering first, judging, and then executing in the present invention, the efficiency of cloud data processing is guaranteed while ensuring the accurate execution process of intelligent business.
[0011] Furthermore, in step 1), it is first determined whether the home that sends the trigger signal has intelligent management services; when the home has intelligent management services, it is then determined whether the trigger source of the trigger signal is set to trigger the trigger source information of other devices.
[0012] In order to further ensure the efficiency of cloud-based data processing, the present invention first determines whether the family that sends the trigger signal has intelligent management services. This is because some families use smart homes but have not set up intelligent services, and the device information of these families will also be reported to the cloud for processing. By first filtering at the family level, families with non-intelligent devices can be filtered out, and then filtering is performed again in families with intelligent services. This process of first filtering families and then filtering devices effectively filters a large amount of information without intelligent services, thereby ensuring that information with intelligent services is processed in a timely manner.
[0013] Furthermore, in step 1), the unique identifier of the home with intelligent management services and the unique identifier of the device set to trigger the trigger source information of other devices are pre-stored in the redis cache, and when the trigger signal is received, it is determined by searching in this redis cache whether the trigger source of this trigger signal meets the trigger condition.
[0014] The present invention stores data in a redis (remote dictionary service) cache in advance. When a trigger signal is received, it determines whether the trigger source of the trigger signal meets the trigger condition by querying in the redis cache. The efficiency of querying based on cache memory is higher than that of querying based on a MySQL relational database. In addition, the data stored in Redis is persistent, that is, the data will not be lost during a power outage or restart. This avoids the situation where the existing created tasks are all in the jvm virtual machine cache, resulting in the loss of the created tasks after the jvm is restarted.
[0015] Further, in step 3), the corresponding device includes at least one device, and the control module of the corresponding device is called only when the execution condition of the corresponding device is met.
[0016] The present invention takes into account that when the same trigger source is met, more than one action group needs to be executed. Therefore, when the trigger source is met, multiple actions may need to be executed. However, there may also be preconditions when multiple actions are executed. For example, turning on the lights and turning on the air purifier when entering the door. If turning on the lights and turning on the air purifier only sets the trigger condition of entering the door, then when the device trigger source of opening the door lock is received, the action group of turning on the lights and turning on the air purifier can be performed. However, there may be preconditions for turning on the air purifier, that is, it is turned on only when the air quality reaches a certain value, so the preconditions of the corresponding equipment need to be judged. Therefore, based on the judgment process before executing the equipment action of the present invention, redundant control of equipment that does not need to perform intelligent action is avoided, thereby ensuring the control efficiency of actions that need to be intelligently executed, and also ensuring the correct execution of intelligent services.
[0017] Furthermore, the trigger source includes a leaving home event trigger source; the leaving home event trigger source realizes cloud-side monitoring of the leaving home event by monitoring the user-side positioning reporting information; in step 1), when the trigger source is a leaving home event trigger source; in step 2), other trigger sources include trigger sources that require user confirmation; in step 3), if there is a trigger source that requires user confirmation, the action group is executed after the user reports and confirms the execution event; the corresponding device is the corresponding device for the user to report and confirm the execution event.
[0018] The cloud-based data processing of the present invention can also process the trigger source of the leaving home event. When the trigger source of the leaving home event satisfies the trigger device, it determines whether the intelligent service needs to be triggered by the user end or executed directly. If the user end trigger is required, the intelligent service is executed upon receiving the user end trigger signal to ensure the accurate execution process of the intelligent service.
[0019] To solve the above technical problems, the present invention further provides a system for executing actions of smart home devices, including a server, wherein the server is used to execute instructions to implement the following steps:
[0020] 1) When a trigger signal is received, determine whether the trigger source of the trigger signal satisfies a trigger condition; the trigger condition includes: the trigger source of the trigger signal is set to trigger the trigger source information of other devices and the trigger signal is a signal that triggers the execution of actions of other devices;
[0021] 2) When the trigger source meets the trigger condition, determine whether other devices have other trigger sources besides this trigger source;
[0022] 3) If there are other trigger sources, determine whether the trigger conditions of other trigger sources are met, and if the trigger conditions of other trigger sources are met, execute the action group to implement the action execution of the smart home device; the action group is to call the control module of the corresponding device;
[0023] If there is no other trigger source, the action group is directly executed to realize the execution of the smart home device action.
[0024] The beneficial effect is that the judgment and control of the intelligent execution of the actions of the smart home devices of the present invention are all based on cloud processing. Based on the reports of the smart home devices of each family, the amount of data that needs to be processed by the cloud is large. In order to ensure the efficiency of cloud data processing, the present invention first determines whether the trigger source of the signal has intelligent business when obtaining the trigger signal of the smart home device. Although some devices are not trigger sources for triggering intelligence, the information will still be reported. Therefore, through this process, a large amount of non-trigger source information is filtered, thereby ensuring that the real trigger source information can be processed in time; and when the trigger source information that needs to be processed is obtained, it is determined again whether the trigger source other than the trigger source triggers other devices. Whether there is a trigger source, in order to ensure that the intelligent action of the device can only be executed when multiple trigger sources are satisfied during this process, to avoid the intelligent business error problem of executing only after judging one of them is satisfied, for example, the process of turning on the light when entering the door, if the device action of turning on the light can only be triggered by the trigger source of entering the door, then the cloud can call the light control module to turn on the light when receiving the trigger source of the door lock opening, but if in addition to the device trigger source of the door lock opening, the light must also be turned on when the time trigger source of the night is satisfied, then there is no need to turn on the light when entering the door during the day. Therefore, when receiving the trigger source of the door lock opening, the time trigger source needs to be judged to ensure the correct execution of the intelligent light-on service. Then, through the process of filtering first, judging, and then executing in the present invention, the efficiency of cloud data processing is guaranteed while ensuring the accurate execution process of intelligent business.
[0025] Furthermore, in step 1), it is first determined whether the home that sends the trigger signal has intelligent management services; when the home has intelligent management services, it is then determined whether the trigger source of the trigger signal is set to trigger the trigger source information of other devices.
[0026] In order to further ensure the efficiency of cloud-based data processing, the present invention first determines whether the family that sends the trigger signal has intelligent management services. This is because some families use smart homes but have not set up intelligent services, and the device information of these families will also be reported to the cloud for processing. By first filtering at the family level, families with non-intelligent devices can be filtered out, and then filtering is performed again in families with intelligent services. This process of first filtering families and then filtering devices effectively filters a large amount of information without intelligent services, thereby ensuring that information with intelligent services is processed in a timely manner.
[0027] Furthermore, in step 1), the unique identifier of the home with intelligent management services and the unique identifier of the device set to trigger the trigger source information of other devices are pre-stored in the redis cache, and when the trigger signal is received, it is determined by searching in this redis cache whether the trigger source of this trigger signal meets the trigger condition.
[0028] The present invention stores data in a redis (remote dictionary service) cache in advance. When a trigger signal is received, it determines whether the trigger source of the trigger signal meets the trigger condition by querying in the redis cache. The efficiency of querying based on cache memory is higher than that of querying based on a MySQL relational database. In addition, the data stored in Redis is persistent, that is, the data will not be lost during a power outage or restart. This avoids the situation where the existing created tasks are all in the jvm virtual machine cache, resulting in the loss of the created tasks after the jvm is restarted.
[0029] Further, in step 3), the corresponding device includes at least one device, and the control module of the corresponding device is called only when the execution condition of the corresponding device is met.
[0030] The present invention takes into account that when the same trigger source is met, more than one action group needs to be executed. Therefore, when the trigger source is met, multiple actions may need to be executed. However, there may also be preconditions when multiple actions are executed. For example, turning on the lights and turning on the air purifier when entering the door. If turning on the lights and turning on the air purifier only sets the trigger condition of entering the door, then when the device trigger source of opening the door lock is received, the action group of turning on the lights and turning on the air purifier can be performed. However, there may be preconditions for turning on the air purifier, that is, it is turned on only when the air quality reaches a certain value, so the preconditions of the corresponding equipment need to be judged. Therefore, based on the judgment process before executing the equipment action of the present invention, redundant control of equipment that does not need to perform intelligent action is avoided, thereby ensuring the control efficiency of actions that need to be intelligently executed, and also ensuring the correct execution of intelligent services.
[0031] Furthermore, the trigger source includes a leaving home event trigger source; the leaving home event trigger source realizes cloud-side monitoring of the leaving home event by monitoring the user-side positioning reporting information; in step 1), when the trigger source is a leaving home event trigger source; in step 2), other trigger sources include trigger sources that require user confirmation; in step 3), if there is a trigger source that requires user confirmation, the action group is executed after the user reports and confirms the execution event; the corresponding device is the corresponding device for the user to report and confirm the execution event.
[0032] The cloud-based data processing of the present invention can also process the trigger source of the leaving home event. When the trigger source of the leaving home event satisfies the trigger device, it determines whether the intelligent service needs to be triggered by the user end or executed directly. If the user end trigger is required, the intelligent service is executed upon receiving the user end trigger signal to ensure the accurate execution process of the intelligent service. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is the intelligent execution flow chart of the present invention;
[0034] Figure 2 It is a schematic diagram of the service module structure of the present invention;
[0035] Figure 3 It is a departure home trigger flow chart of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings and embodiments.
[0037] Smart home device action execution method embodiment:
[0038] In order to ensure the data processing efficiency of the cloud and the correct implementation of intelligent services, the method for executing the actions of the smart home devices in this embodiment determines in advance the information that needs to be detected during data processing, and stores this information in the redis cache, so that the query efficiency based on the cache memory can be guaranteed. The method in this embodiment mainly filters information by detecting families and devices. Specifically, when a device status comes over, first query whether there is corresponding trigger source information under the family sn (based on the first-level index) according to the family sn, because not every family will have trigger source information (that is, not every family will create intelligent services), and most families may not create intelligent information, but because there are smart home devices in this family, the status of all smart home devices will still be reported. In this case, the family level is filtered first, so that some requests from non-intelligent families can be filtered out. Secondly, judge based on the device ID: the device ID filters the trigger source corresponding to the device, that is, whether the device is set as the trigger source information. If the device ID filters out the trigger information, then execute the corresponding trigger source information under the device ID. If the device ID does not filter out the trigger information, then many trigger requests are filtered through the device ID, ensuring the query efficiency, and then ensuring that the devices that need to execute intelligent services can execute quickly.
[0039] like Figure 1As shown, first determine whether the trigger source meets the conditions: that is, determine whether there is an intelligent trigger device in the family through the family sn; secondly, determine whether there are multiple trigger sources: one intelligent information, such as the need to turn on the light when entering the door, that is, the trigger source of turning on the light is the door opening, but the trigger source of turning on the light may be that in addition to the door opening, there is also a trigger source that must turn on the light when it is dark, then the trigger source of turning on the light also has a trigger source of dark, and this scenario belongs to a multi-source trigger source. If there are multiple trigger sources, execute other trigger source conditions, that is, determine whether the trigger conditions are met. If the other trigger source conditions are met, then proceed to the next step of judgment, otherwise it ends. When all trigger sources are satisfied, the action group is executed: there will be many actions in the action group, and the execution condition judgment is performed when the action group is executed. Each batch of actions may have a precondition, that is, when the trigger source is satisfied, the condition judgment is still required during the execution process: for example, after the door is opened, the door lock reports an unlocking state (device trigger source), which is equivalent to the trigger condition coming in. At this time, there is another trigger source, namely the dark trigger source (the light will be turned on only after dark). The dark trigger source is judged. If the dark trigger source is satisfied, the action group is executed, and the action group includes the first action to turn on the light, and the second action to turn on the air purifier, but the air purifier has a precondition, such as setting the temperature PM2.5 greater than 100 to turn on the air purifier, then PM2.5 greater than 100 is the condition for executing this action. Therefore, the method based on this embodiment ensures the efficiency of remote data processing and the accurate execution of intelligent services.
[0040] like Figure 2 As shown, the trigger source in this embodiment can be a weather trigger source for scheduled weather query, a scheduled trigger source, a device trigger source for device status change monitoring, a family status trigger source for family status change monitoring, and a leaving home event trigger source for leaving home event monitoring. In this embodiment, the scheduled weather query is obtained through third-party aggregation. The three-party aggregation (i.e., third-party aggregation, the abbreviation of external service) is equivalent to a service, that is, a service that regularly issues weather status. Because the system involves intelligent triggering device actions such as closing windows when the wind is strong, turning on the heater when the temperature is low, and turning on the cold air when the temperature is high, a scheduled weather query is required. The monitoring of family status changes and the monitoring of device status changes realize the monitoring process by actively obtaining the corresponding data in kafka. The leaving home event monitoring is the cloud actively monitoring from EMQX, that is, the process of the intelligent service in this embodiment to obtain the trigger source information is based on the process of active monitoring by the cloud. In this embodiment, after the corresponding trigger source is judged by the automatic intelligent trigger condition, intelligent business processing is performed, that is, the intelligent and action group condition judgment is executed, and the corresponding automation service is called when the action group condition judgment is met, such as Figure 2As shown, the services in this embodiment include control engine service, message service and basic home service, wherein the control engine service is to control intelligent devices, the message service is to send corresponding message reminders to the setting party, and the basic home service is the security service, that is, the security service status is switched by judging whether there is someone at home or in the room.
[0041] like Figure 2 In this example, taking the timed trigger source as an example, the timed trigger rules in this embodiment can be divided into: before sunrise, after sunrise, before sunset, after sunset, and specified time; the timed type is divided into: specified date (single trigger), statutory working day, single-day off working day, and custom need to select a repetition rule, Monday to Sunday, and execute in a loop. The timed trigger is mainly implemented by delay queues based on redis's zset. The steps for timed triggering are as follows:
[0042] 1) When adding intelligently (users add in the APP), calculate the next execution time of the timing trigger condition.
[0043] 2) Cache intelligent information to redis and create a delayed task queue.
[0044] 3) The intelligent service creates a thread for polling and monitoring to obtain data that meets the conditions.
[0045] 4) Make intelligent trigger condition judgment.
[0046] 5) Intelligently execute action groups, perform conditional judgment on action groups, and distribute actions in the action groups to the control engine or message service.
[0047] 6) After the intelligent execution is completed, the next delayed task is generated again and put into the queue according to the trigger rules.
[0048] like Figure 3 The figure shows the triggering process of the leaving home event in this embodiment. The judgment of the leaving home event in this embodiment can detect the distance of the user from home through the user APP. For example, if the user APP detects that the distance from home is increasing and exceeds the set distance, a series of execution actions are performed: for example, power off and lights are turned off; when the home event is triggered, if the distance from home is decreasing and is less than the set distance, the air conditioner is turned on according to the temperature trigger source (that is, the air conditioner can be intelligently triggered to turn on in advance), that is, the APP is also a signal source, and it is a process of reporting status. The specific execution judgment process is still judged by the cloud; Figure 2 As shown, the cloud actively monitors the required data information from emqx, kafka or three-party aggregation, and the final destination of the data information is to flow to the automation service, that is, Figure 2The arrows pointing to kafka, emqx or three-party aggregation in the figure indicate that: the weather timed query actively obtains the required data information from the three-party aggregation, the device status change monitoring, the family status change monitoring, the device status service and the basic home service actively obtain the required data information from kafka, and the APP trigger and the leaving home event actively obtain the required data information from emqx, that is, the service that actively obtains the data information will be pointed to by the arrow. The specific leaving home event trigger process is as follows: Figure 3 As shown, after the leaving home event trigger source is triggered, it is also determined whether user confirmation is required. That is, if the user end trigger is required, the accurate execution process of the intelligent service is guaranteed by executing it again when the user end trigger signal is received. If user confirmation is not required, intelligent control is directly performed.
[0049] The judgment and control of the intelligent execution of the actions of the smart home devices of the present invention are all based on cloud processing. Based on the reports of the smart home devices of each family, the amount of data that needs to be processed by the cloud is large. In order to ensure the efficiency of cloud data processing, the present invention first determines whether the trigger source emitted by the signal has intelligent services when obtaining the trigger signal of the smart home device. Because some devices are not trigger sources for triggering intelligence, the information will still be reported. Therefore, through this process, a large amount of non-trigger source information is filtered, thereby ensuring that the real trigger source information can be processed in time; and when the trigger source information that needs to be processed is obtained, it is determined again whether there are trigger sources for triggering other devices in addition to this trigger source. In this process, in order to ensure that the intelligent action execution of the device needs to meet multiple trigger sources before it can be executed, it avoids the error problem of intelligent services that are executed only after judging that one of them is met. Therefore, the method of the present invention can ensure the correct execution of intelligent services while ensuring the efficiency of cloud data processing.
[0050] System implementation example of smart home device action execution:
[0051] The system for executing the actions of smart home devices in this embodiment includes a server, which is used to execute instructions to implement the method process of executing the actions of smart home devices. The method of executing the actions of smart home devices has been described in detail in the method embodiment of executing the actions of smart home devices, and will not be repeated here.
[0052] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. The patent protection scope of the present invention shall be based on the claims. All equivalent structural changes made using the contents of the description and drawings of the present invention should also be included in the protection scope of the present invention.
Claims
1. A method for executing an action of a smart home device, It is characterized in that The steps include: 1) When the cloud receives a trigger signal, it determines whether the trigger source of the trigger signal satisfies the trigger condition; the trigger condition includes: the trigger source of the trigger signal is set to trigger the trigger source information of other devices and the trigger signal is a signal that triggers the execution of actions of other devices; 2) When the trigger source meets the trigger condition, determine whether other devices have other trigger sources besides this trigger source; 3) If there are other trigger sources, determine whether the trigger conditions of other trigger sources are met, and if the trigger conditions of other trigger sources are met, execute the action group to implement the action execution of the smart home device; the action group is to call the control module of the corresponding device; If there is no other trigger source, the action group is directly executed to realize the execution of the smart home device action.
2. The method for executing an action of a smart home device according to claim 1, It is characterized in that In step 1), it is first determined whether the home that sends the trigger signal has intelligent management services; if the home has intelligent management services, it is then determined whether the trigger source of the trigger signal is set to trigger the trigger source information of other devices.
3. The method for executing an action of a smart home device according to claim 2, It is characterized in that In step 1), the unique identifier of the home with intelligent management services and the unique identifier of the device set to trigger the trigger source information of other devices are pre-stored in the redis cache, and when the trigger signal is received, it is determined by searching in this redis cache whether the trigger source of this trigger signal meets the trigger condition.
4. The method for executing an action of a smart home device according to claim 3, It is characterized in that In step 3), the corresponding device includes at least one device, and the control module of the corresponding device is called only when the execution condition of the corresponding device is met.
5. The method for executing an action of a smart home device according to claim 1, It is characterized in that The trigger source includes a leaving home event trigger source; the leaving home event trigger source realizes cloud-side monitoring of the leaving home event by monitoring the positioning reporting information of the user terminal; in step 1), when the trigger source is a leaving home event trigger source; in step 2), other trigger sources include trigger sources that require user confirmation; in step 3), if there is a trigger source that requires user confirmation, the action group is executed after the user reports and confirms the execution event; the corresponding device is the corresponding device for the user to report and confirm the execution event.
6. A system for executing actions of smart home devices, It is characterized in that The method comprises a server, wherein the server is used to execute instructions to implement the following steps: 1) When a trigger signal is received, determine whether the trigger source of the trigger signal satisfies a trigger condition; the trigger condition includes: the trigger source of the trigger signal is set to trigger the trigger source information of other devices and the trigger signal is a signal that triggers the execution of actions of other devices; 2) When the trigger source meets the trigger condition, determine whether other devices have other trigger sources besides this trigger source; 3) If there are other trigger sources, determine whether the trigger conditions of other trigger sources are met, and if the trigger conditions of other trigger sources are met, execute the action group to implement the action execution of the smart home device; the action group is to call the control module of the corresponding device; If there is no other trigger source, the action group is directly executed to realize the execution of the smart home device action.
7. The system for executing actions of smart home devices according to claim 6, It is characterized in that In step 1), it is first determined whether the home that sends the trigger signal has intelligent management services; if the home has intelligent management services, it is then determined whether the trigger source of the trigger signal is set to trigger the trigger source information of other devices.
8. The system for executing actions of smart home devices according to claim 7, It is characterized in that In step 1), the unique identifier of the home with intelligent management services and the unique identifier of the device set to trigger the trigger source information of other devices are pre-stored in the redis cache, and when the trigger signal is received, it is determined by searching in this redis cache whether the trigger source of this trigger signal meets the trigger condition.
9. The system for executing actions of smart home devices according to claim 8, It is characterized in that In step 3), the corresponding device includes at least one device, and the control module of the corresponding device is called only when the execution condition of the corresponding device is met.
10. The system for executing actions of smart home devices according to claim 6, It is characterized in that The trigger source includes a leaving home event trigger source; the leaving home event trigger source realizes cloud-side monitoring of the leaving home event by monitoring the positioning reporting information of the user terminal; in step 1), when the trigger source is a leaving home event trigger source; in step 2), other trigger sources include trigger sources that require user confirmation; in step 3), if there is a trigger source that requires user confirmation, the action group is executed after the user reports and confirms the execution event; the corresponding device is the corresponding device for the user to report and confirm the execution event.
Citation Information
Cited By
Linkage pairing method, device and equipment
CN119415265A
