Smart home local equipment linkage method and device, equipment and storage medium

By configuring linkage information on local devices and directly sending execution instructions, the problems of high communication delay and high cost in the linkage of smart home devices are solved, and fast and reliable device linkage is achieved, which is suitable for linkage scenarios without a network.

CN120704160APending Publication Date: 2025-09-26NANJING EASTHOUSE ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410348950.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-25
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

Existing smart home device linkage solutions rely on cloud servers or central gateways, resulting in high communication link latency and high costs, and linkage scenarios cannot take effect when there is no network.

Method used

The linkage information, including linkage conditions and device execution actions, is obtained and configured through local devices. When the linkage condition is detected to be triggered, the execution instruction is directly sent to the corresponding device to realize the linkage between devices without the participation of third-party gateways and cloud servers.

Benefits of technology

It improves the response speed and reliability of linkage between devices, solves the problem that linkage scenarios cannot take effect when the network is disconnected, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704160A_ABST
    Figure CN120704160A_ABST
Patent Text Reader

Abstract

The invention relates to a smart home local equipment linkage method and device, equipment and a storage medium. The method comprises the following steps: a first device obtains and configures linkage information, wherein the linkage information comprises a linkage condition and a device execution action; when it is detected that a linkage condition in configured target linkage information is triggered, the first device obtains a device execution action in the target linkage information; and the first device sends an execution instruction of the device executing the action to a second device corresponding to the device executing the action. By adopting the method, the trigger condition between the first equipment and the second equipment and the execution instruction corresponding to the trigger condition are preset, and after the corresponding trigger condition is directly obtained through the first equipment, the corresponding trigger instruction is sent to control the second equipment to execute the execution action corresponding to the trigger instruction; the response speed and reliability of linkage between the devices are improved, and meanwhile the problem that the linkage scene cannot take effect when the network is disconnected is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart homes, and in particular to a method, apparatus, device, and storage medium for linking local devices in a smart home. Background Art

[0002] As an intelligent system, a very important scenario of the whole-house smart home is the linkage between devices, that is, the devices can independently perform control, feedback and other behaviors without user operation. To achieve this function, the business layer communication link between devices must be opened.

[0003] The existing solution uses a cloud server or a central gateway with edge computing capabilities to process the linked business logic. The client sends indication information to the cloud server or central gateway. The cloud server or central gateway sends corresponding instruction information to the device based on the indication information, and the device takes action based on the received instruction information.

[0004] Existing solutions usually require smart homes to have networking capabilities, and forward command information to smart home devices through cloud servers or central gateways to control device linkage. The communication link between cloud servers and local devices is long and has high latency, and setting up a central gateway requires users to bear the additional gateway fees, which is costly. Summary of the Invention

[0005] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for linking smart home local devices that can be linked without a network in order to solve the above technical problems.

[0006] In a first aspect, the present application provides a method for querying and displaying power quality data. The method includes:

[0007] The first device obtains and configures linkage information, where the linkage information includes linkage conditions and device execution actions;

[0008] When detecting that a linkage condition in the configured target linkage information is triggered, the first device obtains the device execution action in the target linkage information;

[0009] The first device sends an execution instruction for the device to perform the action to the second device corresponding to the device performing the action.

[0010] In one embodiment, in the multiple linkage information, the same device performs actions corresponding to different linkage conditions, and the same linkage conditions corresponding to different devices perform actions.

[0011] In one embodiment, obtaining and configuring linkage information includes:

[0012] Obtain linkage information of the first device and a device execution action of the second device;

[0013] Determine target linkage information, linkage conditions corresponding to the target linkage information, and device execution actions based on preset user needs;

[0014] The linkage condition and device execution action corresponding to the target linkage information are defined as linkage information;

[0015] Obtain and configure linkage information.

[0016] In one embodiment, obtaining and configuring linkage information includes:

[0017] Get the linkage information uploaded by the cloud server;

[0018] Determine whether historical linkage information is stored;

[0019] If historical linkage information is stored, the linkage information uploaded by the cloud server replaces the historical linkage information;

[0020] If the historical linkage information is not stored, the linkage information uploaded by the cloud server is stored.

[0021] In one embodiment, sending the execution instruction for the device to perform the action includes:

[0022] Obtain the device execution action corresponding to the linkage condition;

[0023] Determine whether there is linkage information that causes the device to execute mutually exclusive actions;

[0024] If there are linkage information that triggers the device to perform actions that are mutually exclusive, the number of linkage conditions corresponding to different linkage information is counted;

[0025] The execution instruction corresponding to the linkage information having a larger number of linkage conditions is sent to the second device.

[0026] In one embodiment, counting the number of linkage conditions corresponding to different linkage information includes:

[0027] Detecting whether the linkage information is updated;

[0028] If the linkage information is updated, re-determine whether there is linkage information that triggers the device to perform an action that is mutually exclusive based on the updated linkage information;

[0029] If the updated linkage information includes linkage information that triggers the device to execute an action that is mutually exclusive, the number of linkage conditions corresponding to the different linkage information is counted.

[0030] In one embodiment, before determining whether there is linkage information that indicates that the device executes mutually exclusive actions, the method further includes:

[0031] Counting the number of linkage conditions, and if there is no more than one linkage condition, canceling the determination of whether there is linkage information in which the device execution actions are mutually exclusive;

[0032] If there is more than one linkage condition, it is determined whether there is linkage information in which the device execution actions are mutually exclusive.

[0033] In a second aspect, the present application also provides a device for querying and displaying power quality data. The device includes:

[0034] A linkage information configuration module, configured to obtain and configure linkage information, including linkage conditions and device execution actions;

[0035] an execution action acquisition module, configured to, when detecting that a linkage condition in configured target linkage information is triggered, cause the first device to acquire a device execution action in the target linkage information;

[0036] The execution action sending module is used to send an execution instruction for the device to execute the action to the second device corresponding to the device execution action.

[0037] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the following steps are performed:

[0038] Obtain and configure linkage information, the linkage information including linkage conditions and device execution actions;

[0039] When detecting that a linkage condition in the configured target linkage information is triggered, the first device obtains the device execution action in the target linkage information;

[0040] Sending an execution instruction for the device to perform the action to the second device corresponding to the device performing the action.

[0041] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps:

[0042] Obtain and configure linkage information, the linkage information including linkage conditions and device execution actions;

[0043] When detecting that a linkage condition in the configured target linkage information is triggered, the first device obtains the device execution action in the target linkage information;

[0044] Sending an execution instruction for the device to perform the action to the second device corresponding to the device performing the action.

[0045] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:

[0046] Obtain and configure linkage information, the linkage information including linkage conditions and device execution actions;

[0047] When detecting that a linkage condition in the configured target linkage information is triggered, the first device obtains the device execution action in the target linkage information;

[0048] Sending an execution instruction for the device to perform the action to the second device corresponding to the device performing the action.

[0049] The above-mentioned smart home local device linkage method, apparatus, equipment, storage medium and computer program product obtain and configure linkage information, wherein the linkage information includes linkage conditions and device execution actions; when it is detected that the linkage condition in the configured target linkage information is triggered, the first device obtains the device execution action in the target linkage information; and sends an execution instruction of the device execution action to the second device corresponding to the device execution action. The present application adopts the above-mentioned method, by classifying local devices into a first device for receiving trigger conditions and sending execution instructions, and a second device for executing the execution instruction sent by the first device, and by pre-setting the trigger conditions and the execution instructions corresponding to the trigger conditions between the first device and the second device, so that the first device and the second device do not need a third-party gateway and a cloud server to participate in the linkage logic. After directly obtaining the corresponding trigger conditions through the first device, the corresponding trigger instruction is sent to control the second device to execute the execution action corresponding to the trigger instruction, thereby improving the response speed and reliability of the linkage between devices, and also solving the problem that the linkage scene cannot take effect when the network is disconnected. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A diagram illustrating an application environment of a method for linking local devices in a smart home according to an embodiment;

[0051] Figure 2 A flowchart of a method for linking local devices in a smart home according to an embodiment;

[0052] Figure 3 A schematic diagram of a structure in which multiple linkage conditions can correspond to actions executed by a single device in one embodiment;

[0053] Figure 4 A schematic diagram of a structure in which a single linkage condition can correspond to multiple devices executing actions in one embodiment;

[0054] Figure 5 A flowchart of a linkage information setting process according to an embodiment;

[0055] Figure 6 A flowchart of a linkage information modification process according to an embodiment;

[0056] Figure 7 A flowchart of an embodiment of a process for executing an action by linking information-repelling devices;

[0057] Figure 8 A structural block diagram of a smart home local device linkage device in one embodiment;

[0058] Figure 9 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment.

[0059] Figure 10 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0061] The present application embodiment provides a method for linking local devices in a smart home, which can be applied to Figure 1 In the device linkage scenario shown, the device linkage scenario may include at least two smart devices that can be linked. The method disclosed in the present application may be specifically executed by any smart device in the scenario, and may be implemented in cooperation with other smart devices and / or user terminals. Among them, the smart device may have data processing function, data storage function and data transmission function, and may respond to instructions to execute the action corresponding to the instruction. Smart devices may be, but are not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. Internet of Things devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. In this embodiment, the smart device is described as a home appliance as an example. The home appliance may be a device that can be used in any home environment. The situation of other smart devices is similar, and supplementary explanations will be provided where necessary.

[0062] In one embodiment, Figure 2 As shown, the smart home local device linkage method may specifically include the following steps:

[0063] Step 202: The first device obtains and configures linkage information.

[0064] The first device may be Figure 1 Any smart device in the device linkage scenario shown. The linkage information can be customized by the user based on their needs and is used to establish a linkage relationship between two smart devices. The linkage information can include linkage conditions and corresponding device execution actions. When the linkage conditions are met, the corresponding device execution action will be triggered. It is not difficult to understand that in the device linkage scenario of this embodiment, the linkage condition can be any trigger event that can be detected by the first device, and the device execution action can be any action that can be performed by any other device that needs to be linked with the first device.

[0065] For example, taking the door lock and light switch as an example, the door lock is set as the first device, and the light switch is set as the linkage device. The linkage condition in the linkage information can be set to open the door lock, and the corresponding device execution action is to turn on the light switch.

[0066] In implementation, a user can configure linkage information between a first device and other devices on a terminal, and transmit the linkage information to the first device via a terminal network or solid-state storage device. Alternatively, the user can configure the linkage information between the first device and other devices directly on the first device. This allows the first device to obtain the linkage information and configure it locally. Configuring the linkage information can involve simply storing the linkage information, writing the linkage information to a pre-set linkage configuration file, or extracting the parameters contained in the linkage information (such as linkage conditions and device execution actions) and entering them into a linkage control program. It is worth noting that when configuring new linkage information, the first device can determine whether prior linkage information with the same or equivalent linkage conditions and device execution actions has been configured locally. If not, the new linkage information can be configured locally. If so, the first device can output a notification message indicating conflicting linkage information and, based on the user's preference, configure the new linkage information together with the prior linkage information, or configure only one of the two.

[0067] Step 204: When detecting that the linkage condition in the configured target linkage information is triggered, the first device obtains the device execution action in the target linkage information.

[0068] The target linkage information may be any linkage information that has been configured on the first device.

[0069] During implementation, when the first device obtains any trigger information based on its own input or perception capabilities, it can compare the obtained trigger information with the linkage conditions in all configured linkage information. When it is detected that the trigger information matches the linkage conditions in the configured target linkage information, it can be determined that the linkage condition is triggered, and the first device can obtain the device execution action in the target linkage information. It is understood that the target linkage information can be a single linkage information or multiple linkage information, and the linkage conditions of multiple target linkage information can be triggered simultaneously. In this case, the first device can obtain the device execution action in each target linkage information separately.

[0070] For example, taking a door lock and a light switch as examples, set the door lock as the first device and the light switch as the linked device. The linkage condition in the linkage information can be set to "door lock open" and the corresponding device action to "light switch on." This way, when the door lock is switched to the open state, the device action corresponding to the linkage condition "door lock open" can be obtained: "light switch on."

[0071] Step 206: The first device sends an execution instruction for the device to perform the action to the second device corresponding to the device to perform the action.

[0072] Among them, the device execution action in the linkage information may include at least two dimensions of information: device information and execution action information, wherein the device information is used to indicate the linkage device, and the execution action information is used to indicate the action performed by the linkage device. Specifically, the device information may be the network communication address of the linkage device, and the execution action information may be the execution identifier of the relevant action on the linkage device. In this way, after the first device obtains the device execution action in the target linkage information, it can determine the second device corresponding to the device execution action, and synchronously obtain the network communication address of the second device, and the execution identifier of the device execution action on the second device. Afterwards, the first device can generate an execution instruction for the device execution action, which may carry the above-mentioned execution identifier, and then send the execution instruction to the second device via the network communication address. Furthermore, the second device can receive the execution instruction, parse it to obtain the execution identifier carried therein, and then perform the corresponding device execution action based on the execution identifier, thereby realizing the linkage between the first device and the second device.

[0073] For example, using a door lock and a light switch as an example, the door lock is set as the first device and the light switch as the linkage device. The linkage condition in the linkage information can be set to "door lock open" and the corresponding device action to "light switch on." After the door lock receives the device action "light switch on," it can generate an execution instruction and send it to the corresponding light switch, so that the light switch can perform the action of turning on the light switch.

[0074] Of course, in another embodiment, the device execution action in the linkage information can be in the form of a specific execution instruction. That is, when the first device configures the linkage information, it has generated the execution instruction mentioned in step 206 above and bound the execution instruction to the linkage condition. In this way, when the linkage condition is triggered, the first device can directly obtain and send the execution instruction. For example, taking the door lock and light switch as an example, the door lock is set as the first device and the light switch is set as the linkage device. The linkage condition in the linkage information can be set to open the door lock, and the corresponding device execution action can be a command to turn on the light switch that needs to be sent to the light switch.

[0075] In one embodiment, considering the different input and output capabilities of the devices themselves, the corresponding linkage information also needs to be limited accordingly. The specific limiting operation can be performed as follows:

[0076] According to user needs, linkage information can be set to perform the same linkage action for different linkage conditions.

[0077] Among them, after the user sets the corresponding linkage relationship according to his own needs, the linkage information is stored in the data storage system of the corresponding first device. When the first device detects that the linkage condition in the linkage information is triggered, the first device sends an execution instruction for the device to perform the action to the corresponding second device.

[0078] For example, refer to Figure 3 Taking the door lock, light control switch and smart clock as an example, the trigger condition corresponding to the first linkage information set by the user is that the door lock is opened, and the corresponding device execution action is to turn on the light by the light control switch; the trigger condition corresponding to the second linkage information set by the user is that the time is after 6 pm, and the corresponding device execution action is to turn on the light by the light control switch. Before 6 pm, if the door is detected to be open, the door lock will send a light control signal to the light control switch to control the light to be in the bright state; if the door lock has been in the closed state, after 6 pm, the smart clock will send a light control signal to the light control switch to turn on the light.

[0079] It is worth mentioning that after the second device has executed the device execution action, when the first device detects that the linkage condition is triggered, the corresponding device execution action is the same as the device execution action already executed by the second device, then the first device still sends the execution instruction of the device execution action to the second device, and the second device only needs to keep the device execution action status unchanged.

[0080] According to user needs, when setting linkage information, multiple linkage actions can be triggered by a single linkage condition.

[0081] For example, refer to Figure 4Taking the door lock, light control switch and curtain control device as an example, the linkage condition set by the user is that the door lock is opened, and the corresponding device execution action is that the light control switch controls the light to turn on and the curtain control device controls the curtain to close.

[0082] In one embodiment, referring to Figure 5 ,Considering that the linkage information specifically includes linkage conditions and device execution actions, the specific linkage information setting process can be executed as follows:

[0083] Step 302: Acquire linkage information of the first device and device execution action of the second device.

[0084] The linkage information and the device execution action are determined according to user needs, and the first device and the linkage information corresponding to the first device, the second device and the device execution action corresponding to the second device are obtained.

[0085] Step 304 : determining target linkage information, linkage conditions corresponding to the target linkage information, and device execution actions based on preset user requirements.

[0086] Among them, according to user needs, the first device for checking the trigger conditions and the second device for performing the device execution action are first determined, and then the linkage information between the first device and the second device is determined, and the corresponding linkage conditions and device execution actions are refined and determined through the linkage information.

[0087] Step 306: Define the linkage condition and device execution action corresponding to the target linkage information as linkage information.

[0088] Step 308: Acquire and configure linkage information.

[0089] In one embodiment, referring to Figure 6 , considering that the linkage information needs to be modified, the specific modification process can be performed as follows:

[0090] Step 402: Acquire linkage information uploaded by the cloud server.

[0091] The user can query and obtain the linkage information stored in the first device by communicating with the first device through the cloud server;

[0092] It is worth mentioning that users can also directly access and obtain linkage information in the data storage system through readable storage media.

[0093] Step 404: Determine whether historical linkage information is stored.

[0094] Among them, if historical linkage information is stored in the first device, the linkage information uploaded by the cloud server will replace the historical linkage information; if historical linkage information is not stored, the linkage information uploaded by the cloud server will be stored.

[0095] For example, historical linkage information is stored in the first device, and the linkage condition of the historical linkage information is set to the door lock being opened, and the corresponding device execution action is the light control switch controlling the light to turn on; the linkage condition corresponding to the linkage information is set to the door lock being opened, and the corresponding device execution action is the curtains being closed. After the linkage information is written, the user can choose according to his or her own needs to coexist with the historical linkage information and the written linkage information, or to replace the historical linkage information with the written linkage information.

[0096] In the examples, reference Figure 7 Considering the situation where linkage information is mutually exclusive, when linkage information is mutually exclusive, the specific device execution action can be performed as follows:

[0097] Step 502: Obtain the device execution action corresponding to the linkage condition.

[0098] Step 504: Determine whether there is linkage information in which the device execution actions are mutually exclusive.

[0099] Among them, if there is no linkage information that excludes the device execution actions, the first device sends an execution instruction for the device execution action corresponding to the linkage condition according to the linkage condition; if there is linkage information that excludes the device execution actions, the number of linkage conditions corresponding to different linkage information is counted.

[0100] Step 506: Send the execution instruction corresponding to the linkage information with a larger number of linkage conditions to the second device.

[0101] For example, the linkage condition for the first linkage information is that the door lock is open, and the corresponding device action is to turn the light on by the light control switch. The linkage condition for the second linkage information is that the door lock is open and the time is after 10 pm, and the corresponding device action is to turn the light off by the light control switch. After 11 pm, the door lock detects that the door is open, and the linkage conditions of both the first and second linkage information are triggered. The number of linkage conditions corresponding to the first and second linkage information is counted. If the number of linkage conditions for the first linkage information is one and the number of linkage conditions for the second linkage information is two, the first device sends a command message to the device corresponding to the second linkage information to execute the action, namely, to keep the light control switch off.

[0102] In an embodiment, when linkage information is mutually exclusive, it is necessary to detect whether the mutual exclusiveness is caused by linkage information update. The specific detection process may be performed as follows:

[0103] Detect whether the linkage information is updated.

[0104] If the linkage information is not updated, the number of linkage conditions corresponding to different linkage information is counted; if the linkage information is updated, whether there is linkage information that triggers the device to perform an action that is mutually exclusive is re-determined based on the updated linkage information.

[0105] Exemplarily, the historical linkage information includes mutually exclusive first linkage information and second linkage information, wherein the linkage condition of the first linkage information is that the door lock is open, and the corresponding device execution action is that the light control switch controls the light to turn on; the linkage condition of the second linkage information is that the door lock is open, and the corresponding device execution action is that the light control switch controls the light to turn off; the linkage condition corresponding to the updated linkage information is that the door lock is open and the time is after 10 pm, and the corresponding device execution action is that the light control switch controls the light to turn off. At this time, the first linkage information and the second linkage information are mutually exclusive. After the updated linkage information replaces the second linkage information, there is no mutual exclusion of the linkage information; if the first linkage information and the second linkage information are already updated linkage information, then the number of linkage conditions corresponding to different linkage information is counted.

[0106] In an embodiment, considering that there are special circumstances in detecting linkage conditions that can speed up the efficiency of the device executing actions, specific acceleration steps may be performed as follows:

[0107] Count the number of linkage conditions.

[0108] If there is no more than one linkage condition, the determination of whether there is linkage information in which the device performs mutually exclusive actions is cancelled; if there is more than one linkage condition, the determination of whether there is linkage information in which the device performs mutually exclusive actions is made.

[0109] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0110] Based on the same inventive concept, embodiments of the present application also provide a smart home local device linkage apparatus for implementing the aforementioned smart home local device linkage method. The solution provided by this apparatus is similar to the solution described in the aforementioned method. Therefore, the specific limitations of the one or more power quality data query and display apparatus embodiments provided below can be found in the aforementioned limitations of the smart home local device linkage method and will not be further elaborated here.

[0111] In one embodiment, Figure 8 As shown, a smart home local device linkage device is provided, including: a linkage information configuration module, an execution action acquisition module, a linkage information limitation module and an execution action sending module, wherein:

[0112] A linkage information configuration module, configured to obtain and configure linkage information, including linkage conditions and device execution actions;

[0113] an execution action acquisition module, configured to, when detecting that a linkage condition in configured target linkage information is triggered, cause the first device to acquire a device execution action in the target linkage information;

[0114] The execution action sending module is used to send an execution instruction for the device to execute the action to the second device corresponding to the device execution action.

[0115] In one embodiment, the linkage information limiting module is further configured to, in multiple linkage information, correspond to the same device executing actions with different linkage conditions, and correspond to the same linkage conditions for different devices executing actions.

[0116] In one embodiment, the linkage information configuration module is also used to obtain the linkage information of the first device and the device execution action of the second device; determine the target linkage information, and the linkage conditions and device execution actions corresponding to the target linkage information based on preset user needs; define the linkage conditions and device execution actions corresponding to the target linkage information as linkage information; obtain and configure the linkage information.

[0117] In one embodiment, the linkage information configuration module is also used to obtain the linkage information uploaded by the cloud server; determine whether historical linkage information is stored; if historical linkage information is stored, replace the historical linkage information with the linkage information uploaded by the cloud server; if historical linkage information is not stored, store the linkage information uploaded by the cloud server.

[0118] In one embodiment, the execution action sending module is also used to obtain the device execution action corresponding to the linkage condition; determine whether there is linkage information that repulses the device execution action; if there is linkage information that triggers the device to execute the action repulsively, then count the number of linkage conditions corresponding to different linkage information; and send the execution instruction corresponding to the linkage information with a large number of linkage conditions to the second device.

[0119] In one embodiment, the execution action sending module is also used to detect whether the linkage information is updated; if the linkage information is updated, re-judge whether there is linkage information that is mutually exclusive with the triggering device to execute the action based on the updated linkage information; if the updated linkage information contains linkage information that is mutually exclusive with the triggering device to execute the action, then count the number of linkage conditions corresponding to different linkage information.

[0120] In one embodiment, the execution action sending module is also used to count the number of the linkage conditions. If the number of the linkage conditions is not greater than one, the judgment of whether there is linkage information that excludes the device execution actions is cancelled; if the number of the linkage conditions is greater than one, the judgment of whether there is linkage information that excludes the device execution actions is made.

[0121] Each module in the aforementioned smart home local device linkage apparatus may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor within a computer device in hardware form, or may be stored in a computer device memory in software form, so that the processor can call and execute the corresponding operations of each module.

[0122] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 9 As shown. The computer device includes a processor, memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements a method for querying and displaying power quality data.

[0123] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 10As shown. The computer device includes a processor, memory, a communication interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner. The wireless manner can be achieved through Wi-Fi, a mobile cellular network, NFC (near field communication), or other technologies. When the computer program is executed by the processor, it implements a method for querying and displaying power quality data.

[0124] Those skilled in the art will understand that Figure 9 or Figure 10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0125] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0126] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0127] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0128] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0129] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.

[0130] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0131] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for linking local devices in a smart home, characterized in that: The method comprises: The first device obtains and configures linkage information, where the linkage information includes linkage conditions and device execution actions; When detecting that a linkage condition in the configured target linkage information is triggered, the first device obtains the device execution action in the target linkage information; The first device sends an execution instruction for the device to perform the action to the second device corresponding to the device performing the action.

2. The method according to claim 1, characterized in that The method further comprises: In multiple linkage information, the same device performs actions corresponding to different linkage conditions, and the same linkage conditions perform actions corresponding to different devices.

3. The method according to claim 1, characterized in that The obtaining and configuring linkage information includes: Obtain linkage information of the first device and a device execution action of the second device; Determine target linkage information, linkage conditions corresponding to the target linkage information, and device execution actions based on preset user needs; The linkage condition and device execution action corresponding to the target linkage information are defined as linkage information; Obtain and configure linkage information.

4. The method according to claim 3, characterized in that The obtaining and configuring linkage information includes: Get the linkage information uploaded by the cloud server; Determine whether historical linkage information is stored; If historical linkage information is stored, the linkage information uploaded by the cloud server replaces the historical linkage information; If the historical linkage information is not stored, the linkage information uploaded by the cloud server is stored.

5. The method according to claim 1, wherein The sending of the execution instruction for the device to perform the action includes: Obtain the device execution action corresponding to the linkage condition; Determine whether there is linkage information that causes the device to execute mutually exclusive actions; If there are linkage information that triggers the device to perform actions that are mutually exclusive, the number of linkage conditions corresponding to different linkage information is counted; The execution instruction corresponding to the linkage information having a larger number of linkage conditions is sent to the second device.

6. The method according to claim 5, characterized in that The counting of the number of linkage conditions corresponding to different linkage information includes: Detecting whether the linkage information is updated; If the linkage information is updated, re-determine whether there is linkage information that triggers the device to perform an action that is mutually exclusive based on the updated linkage information; If the updated linkage information includes linkage information that triggers the device to execute an action that is mutually exclusive, the number of linkage conditions corresponding to the different linkage information is counted.

7. The method according to claim 5, characterized in that Before determining whether there is linkage information that indicates that the device execution actions are mutually exclusive, the method further includes: Counting the number of linkage conditions, and if there is no more than one linkage condition, canceling the determination of whether there is linkage information in which the device execution actions are mutually exclusive; If there is more than one linkage condition, it is determined whether there is linkage information in which the device execution actions are mutually exclusive.

8. A smart home local device linkage device, characterized in that: The device comprises: A linkage information configuration module, configured to obtain and configure linkage information, including linkage conditions and device execution actions; an execution action acquisition module, configured to, when detecting that a linkage condition in configured target linkage information is triggered, cause the first device to acquire a device execution action in the target linkage information; The execution action sending module is used to send an execution instruction for the device to execute the action to the second device corresponding to the device execution action.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.