Control method of smart home equipment and smart home equipment
By receiving scene trigger instructions and determining action timing information based on smart home scene identifiers, it solves the problem of smart home devices being unable to execute in complex scenarios and achieves precise control and flexible scene triggering of smart home devices.
Patent Information
- Application Number
- CN202310227246.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-10
AI Technical Summary
Existing smart home devices cannot trigger the execution of smart home scenes through multicast in complex scenarios, especially when the execution sequence and condition judgment of actions are involved.
By receiving the scene triggering instructions sent by the scene triggering device, the target action indication information and the target action timing information are determined based on the identification of the target smart home scene, and the target action is executed at the specified time or when conditions are met, achieving precise control of smart home devices.
It can effectively trigger the execution of smart home scenes in complex scenarios, ensuring that smart home devices execute actions in accordance with preset sequences and conditions, improving the flexibility and reliability of smart home systems.
Smart Images

Figure CN118625684A
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home, and in particular to a control method for smart home equipment and a smart home equipment. Background Art
[0002] With the rapid development of smart homes, more and more smart home devices have emerged, such as smart lighting devices, smart refrigerators, smart air conditioners, smart curtains, etc. In the process of using these smart home devices, for the convenience of operation, smart home scenes can usually be configured for these smart home devices. The smart home scene is a combination of a series of home functions designed with the help of multiple smart home devices, which helps users greatly reduce the trouble caused by the cumbersome single device operation of traditional homes and save unnecessary living costs. In this way, smart home devices can be controlled through smart home scenes. Summary of the invention
[0003] The present application provides a control method and a smart home device, which can avoid the problem that the execution of smart home scenes cannot be triggered by multicast in complex scenes. The technical solution is as follows:
[0004] On the one hand, a control method of a smart home device is provided, which is applied to a target smart home device, and the method comprises:
[0005] Receiving a scene triggering instruction sent by a scene triggering device in a multicast manner, wherein the scene triggering instruction carries an identifier of a target smart home scene;
[0006] Determine target action indication information and target action timing information based on the identifier of the target smart home scene, wherein the target action indication information indicates the target action to be performed by the target smart home device, and the target action timing information indicates the execution time information of the target action;
[0007] The target action is performed based on the target action timing information.
[0008] Optionally, the target action timing information includes a first duration, and the first duration indicates the duration between the start execution time of the target action and the reception time of the scene trigger instruction;
[0009] The performing the target action based on the target action timing information includes:
[0010] The timing starts from the time when the scene trigger instruction is received;
[0011] When the timing duration reaches the first duration, the target action is performed.
[0012] Optionally, the target action timing information further includes a second duration, and the second duration indicates the execution duration of the target action;
[0013] When the timing duration reaches the first duration, executing the target action includes:
[0014] When the timing duration reaches the first duration, the target action is performed within the second duration.
[0015] Optionally, the method further comprises:
[0016] Determining a target precondition based on the identifier of the target smart home scene and the target action indication information, wherein the target precondition is a condition that needs to be satisfied when the target action is executed;
[0017] When the timing duration reaches the first duration, executing the target action includes:
[0018] When the timing duration reaches the first duration and the target precondition is met, the target action is executed.
[0019] Optionally, the scene triggering instruction further carries an identifier of a target device group, where the target device group is a device group in which smart home devices associated with the target smart home scene are located;
[0020] The determining target action indication information and target action timing information based on the identification of the target smart home scene includes:
[0021] In a case where the target smart home device is in the target device group, the target action indication information and the target action timing information are determined based on an identifier of the target smart home scene.
[0022] Optionally, before receiving the scene trigger instruction sent by the scene trigger device in a multicast manner, the method further includes:
[0023] Receiving a scene synchronization instruction sent by a gateway device, the scene synchronization instruction carrying an identifier of the target smart home scene, the target action indication information, and the target action timing information;
[0024] The corresponding relationship between the identifier of the target smart home scene, the target action indication information and the target action timing information is stored.
[0025] Optionally, the scene synchronization instruction further carries a target precondition, where the target precondition is a condition that needs to be satisfied when the target action is executed;
[0026] The storing of the corresponding relationship between the identifier of the target smart home scene, the target action indication information and the target action timing information includes:
[0027] The corresponding relationship between the identifier of the target smart home scene, the target action indication information, the target action timing information and the target precondition is stored.
[0028] On the other hand, a smart home device is provided, wherein the gateway device includes a transceiver and a processor;
[0029] The transceiver is used to receive a scene trigger instruction sent by a scene trigger device in a multicast manner, wherein the scene trigger instruction carries an identifier of a target smart home scene;
[0030] The processor is configured to determine target action indication information and target action timing information based on the identifier of the target smart home scene, wherein the target action indication information indicates the target action to be performed by the smart home device, and the target action timing information indicates the execution time information of the target action;
[0031] The processor is further configured to execute the target action based on the target action timing information.
[0032] Optionally, the target action timing information includes a first duration, and the first duration indicates the duration between the start execution time of the target action and the reception time of the scene trigger instruction;
[0033] The processor is specifically used for:
[0034] The timing starts from the time when the scene trigger instruction is received;
[0035] When the timing duration reaches the first duration, the target action is performed.
[0036] Optionally, the target action timing information further includes a second duration, and the second duration indicates the execution duration of the target action;
[0037] The processor is specifically used for:
[0038] When the timing duration reaches the first duration, the target action is performed within the second duration.
[0039] Optionally, the processor is further configured to:
[0040] Determining a target precondition based on the identifier of the target smart home scene and the target action indication information, wherein the target precondition is a condition that needs to be satisfied when the target action is executed;
[0041] When the timing duration reaches the first duration and the target precondition is met, the target action is executed.
[0042] Optionally, the scene triggering instruction further carries an identifier of a target device group, where the target device group is a device group in which smart home devices associated with the target smart home scene are located;
[0043] The processor is specifically used for:
[0044] In a case where the target smart home device is in the target device group, the target action indication information and the target action timing information are determined based on an identifier of the target smart home scene.
[0045] Optionally, the smart home device further includes a memory;
[0046] The transceiver is also used to: receive a scene synchronization instruction sent by a gateway device, wherein the scene synchronization instruction carries the identifier of the target smart home scene, the target action indication information and the target action timing information;
[0047] The memory is used to store the correspondence between the identifier of the target smart home scene, the target action indication information and the target action timing information.
[0048] Optionally, the scene synchronization instruction further carries a target precondition, where the target precondition is a condition that needs to be satisfied when the target action is executed;
[0049] The memory is specifically used for:
[0050] The corresponding relationship between the identifier of the target smart home scene, the target action indication information, the target action timing information and the target precondition is stored.
[0051] On the other hand, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the control method of the smart home device described above are implemented.
[0052] On the other hand, a computer program product comprising instructions is provided. When the instructions are executed on a computer, the computer executes the steps of the control method of the smart home device described above.
[0053] The technical solution provided by this application can at least bring the following beneficial effects:
[0054] In an embodiment of the present application, corresponding action timing information is provided for the target action indication information, namely, the target action timing information. Thus, when a smart home scene is triggered, after a scene trigger instruction is sent to a smart home device via multicast, the smart home device can execute the action indicated by the target action indication information based on the target action timing information, thereby avoiding the inability to trigger the execution of the smart home scene via multicast in complex scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0056] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0057] Figure 2 is a flow chart of a method for creating a smart home scene provided in an embodiment of the present application;
[0058] Figure 3 is a flow chart of a method for executing a smart home scenario provided in an embodiment of the present application;
[0059] Figure 4 is a schematic diagram of the structure of a user terminal provided in an embodiment of the present application;
[0060] Figure 5 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0062] In smart home applications, smart home devices can communicate wirelessly, such as ZigBee, Thread, Bluetooth, WIFI (Wireless Fidelity) and other general protocols. Among them, ZigBee protocol is widely used in the field of smart home due to its strong versatility, many supported enterprises and devices, stable communication, and convenient networking.
[0063] The difference between smart homes and ordinary homes lies in the "smart home scene design". The Internet of Things (smart home system) adds logic processing, signal transmission and intelligent interaction to traditional homes, making the design of smart home scenes possible. Smart home scenes are designed to fully meet various needs in life. With the help of a series of home functions designed by multiple smart home devices, users can greatly reduce the trouble caused by the cumbersome single-device operation of traditional homes, while saving unnecessary living costs.
[0064] For example, when you go home, the security system will be evacuated the moment you open the door, and the corridor lights will light up like a greeter to welcome you home; the lights in the living room will be awakened, beautiful melodies will sound, and the curtains will slowly close; the air conditioner and fresh air system will start working, bringing fresh and healthy air and comfortable temperature. For another example, when you leave home, all the lights will be turned off, the air conditioner will be turned off, the curtains will open automatically, and the smart security system will be turned on at the same time, protecting safety while saving energy consumption.
[0065] The above-mentioned smart home scene is usually executed by multicast, which is also called multi-target broadcast or multicast. Through multicast, the scene trigger instruction of the smart home scene can be sent to each smart home device associated with the smart home scene, so that each smart home device can perform the action corresponding to the smart home scene. However, the above-mentioned smart home scene is relatively simple and does not involve the execution sequence of actions and condition judgment. When the smart home scene contains the same smart home device or different smart home devices perform different actions at different times or under different conditions, the smart home scene cannot be executed by multicast.
[0066] For example, for a complex homecoming scenario, the hallway lights are turned on the moment the door is opened, the living room lights are turned on after changing clothes and shoes 1 minute later, and the hallway lights are turned off 1 minute later; the living room atmosphere lights are mainly warm colors when the hostess comes home, and mainly cold colors when the host comes home; when getting up to go to the bathroom at night, the bedroom lights are turned on at the lowest brightness, the bathroom lights are turned on, and 5 minutes later the bathroom lights are turned off and the bedroom lights are turned off. These scenarios involve the time and condition judgment of the actions executed by smart home devices, which cannot be executed through multicast.
[0067] To this end, an embodiment of the present application provides a method that can also be executed through multicast in a smart home scenario involving the execution sequence of actions or conditional judgments.
[0068] Please refer to Figure 1 , Figure 11 is a schematic diagram of an implementation environment according to an exemplary embodiment. The implementation environment includes a user terminal 101, a server 102, a gateway device 103, and multiple smart home devices 104. The user terminal 101 can be connected to the server 102 for communication, the server 102 can be connected to the gateway device 103 for communication, and the gateway device 103 can be connected to the multiple smart home devices 104 for communication. The communication connection can be a wired or wireless connection, which is not limited in the embodiment of the present application.
[0069] The user terminal 101 is used to display a scene creation interface, through which the user can configure the relevant data of the smart home scene, such as the name of the smart home scene, the smart home devices associated with the smart home scene, the actions that each smart home device needs to perform, and the execution sequence of each action, etc. After configuring the relevant data of the smart home scene, the user terminal 101 is also used to send the relevant data of the smart home scene to the server 102.
[0070] The server 102 is used to receive relevant data of the smart home scene sent by the user terminal 101, and send the identification of the smart home scene, the identification of each smart home device associated with the smart home scene, the action indication information of the action that each smart home device needs to perform, and the action timing information to the gateway device 103.
[0071] The gateway device 103 is used to receive the identification of the smart home scene, the identification of each smart home device associated with the smart home scene, the action indication information of each smart home device that needs to perform the action, and the action timing information sent by the server 102, and store the identification of the smart home scene, the identification of each smart home device associated with the smart home scene, the action indication information of each smart home device that needs to perform the action, and the action timing information. The gateway device 103 is also used to send the identification of the smart home scene associated with it, the action indication information of the action that it needs to perform, and the action timing information to each smart home device.
[0072] The smart home device 104 is used to receive the identification, action indication information and action timing information of the smart home scene sent by the gateway device 103, and store the corresponding relationship between the identification, action indication information and action timing information of the smart home scene.
[0073] Based on the above description, the smart home device needs to meet some conditions when executing the corresponding action, and these conditions can be called preconditions. In this way, when the user terminal 101 creates a smart home scene, the preconditions of the actions that the smart home device needs to execute can also be configured. At this time, the relevant data of the smart home scene sent by the user terminal 101 to the server 102 can include these preconditions. Then, the server 102 can send the identification of the smart home scene, the identification of each smart home device associated with the smart home scene, the action indication information of each smart home device that needs to execute the action, the action timing information and the preconditions to the gateway device 103. After receiving the data sent by the server 103, the gateway device 103 can store the identification of the smart home scene, the identification of each smart home device associated with the smart home scene, the action indication information of each smart home device that needs to execute the action, the action timing information and the preconditions. In addition, the gateway device 103 can also send the identification of the smart home scene associated with it, the action indication information of the action that it needs to execute, the action timing information and the preconditions to each smart home device.
[0074] Among them, the user terminal 101 can be any electronic product that can interact with the user through one or more methods such as keyboard, touchpad, touch screen, remote control, voice interaction or handwriting device, such as PC (Personal Computer), mobile phone, smart phone, PDA (Personal Digital Assistant), wearable device, PPC (Pocket PC), tablet computer, smart car machine, smart TV, smart speaker, etc.
[0075] Server 102 can be an independent server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms, or a cloud computing service center.
[0076] The gateway device 103 may be a router, a switch, etc. The smart home device 104 may be a smart lighting device, a smart air conditioner, a smart fresh air system, a smart curtain, etc.
[0077] Those skilled in the art should understand that the above-mentioned user terminal 101, server 102, gateway device 103 and smart home device 104 are only examples, and other existing or future device forms that are applicable to the embodiments of the present application should also be included in the protection scope of the embodiments of the present application and are included here by reference.
[0078] It should be noted that the implementation environment described in the embodiments of the present application is for more clearly illustrating the technical solutions of the embodiments of the present application, and does not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can know that with the evolution of the implementation environment, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0079] Next, the method provided by the embodiment of the present application is explained in detail. The method provided by the embodiment of the present application is divided into a smart home scene creation phase and a smart home scene execution phase. Next, these two phases are introduced respectively.
[0080] Figure 2 This is a flow chart of a method for creating a smart home scene provided by an embodiment of the present application. Figure 2 , the method comprises the following steps.
[0081] Step 201: The user terminal obtains the identification of the target smart home scene, the identifications of multiple smart home devices, action indication information and action timing information of the multiple smart home devices, the multiple smart home devices are smart home devices associated with the target smart home scene, the action indication information indicates the action that the corresponding smart home device needs to perform in the target smart home scene, and the action timing information indicates the execution time information of the action that the corresponding smart home device needs to perform.
[0082] The user terminal displays a scene creation interface, and the user can select multiple smart home devices associated with the target smart home scene based on the scene creation interface, and set the actions that the multiple smart home devices need to perform and the execution time information of the actions. In this way, the user terminal can determine the identifier of the target smart home scene, the identifiers of the multiple smart home devices, the action indication information corresponding to the multiple smart home devices, and the action timing information.
[0083] The identifier of the target smart home scene is used to uniquely identify the target smart home scene. The identifier of the target smart home scene can be the number of the target smart home scene. Of course, the user can also enter the name of the target smart home scene in the scene creation interface, so that the identifier of the target smart home scene can be the name of the target smart home scene, and can also be generated by the user terminal according to the relevant algorithm based on the name of the target smart home device.
[0084] The identifier of the smart home device is used to uniquely identify the smart home device. The identifier of the smart home device may be a MAC (Media Access Control) address, a factory serial number, etc. of the smart home device.
[0085] The action timing information includes the duration between the start execution time of the action that the smart home device needs to perform and the trigger time of the target smart home scene. In some cases, the action timing information may also include the execution duration of the action.
[0086] For example, if the smart home device is a dimming lamp, the action timing information corresponding to the dimming lamp may include the duration between the start execution time of the dimming action and the trigger time of the target smart home scene, and may also include the execution duration of the dimming action. Assuming that the dimming action needs to adjust the light from level 1 to level 2, the execution duration of the dimming action can present a gradual change effect of the light.
[0087] In some embodiments, the user can also configure the preconditions for the actions that the smart home device needs to perform in the scene creation interface. The preconditions are conditions that need to be met before the smart home device performs the corresponding actions. For example, the smart home device is a living room light, and the action corresponding to the smart home device is to turn on the living room light. The precondition is that the hallway light is turned on. In other words, after the hallway light is turned on, the living room light is turned on, and the two have a sequence.
[0088] It should be noted that, for the multiple smart home devices, each smart home device has corresponding action indication information, but not every smart home device has corresponding action timing information, that is, some smart home devices may need to perform corresponding actions immediately after the target smart home scene is triggered, or they may perform corresponding actions after a certain period of time and the execution time of the action is not limited. Of course, for smart home devices that need to perform corresponding actions immediately after the target smart home scene is triggered, these smart home devices can also be understood as having action timing information. At this time, the duration between the start execution time of the action in the action timing information and the trigger time of the target smart home scene is 0, and the execution time of the action is empty. Next, we will take the example that each smart home device has action timing information as an example.
[0089] Moreover, for the multiple smart home devices, not every action that the smart home device needs to perform has a precondition. That is to say, some smart home devices may be able to directly perform the corresponding action after the target smart home scene is triggered, or they may need to meet the precondition before performing the corresponding action. Of course, for smart home devices that need to directly perform the corresponding action after the target smart home scene is triggered, these smart home devices can also be understood as having a precondition, and the precondition is empty. Next, we will take the example that the action indication information of each smart home device has a corresponding precondition as an example.
[0090] In addition, a smart home device may need to perform one action or multiple actions in the target smart home scenario, which is not limited in the embodiments of the present application.
[0091] In some embodiments, the user can also group the smart home devices he owns. In this way, when creating a target smart home scene, the user can also configure the identifier of the target device group in the scene creation interface. The target device group is the device group where multiple smart home devices associated with the target smart home scene are located. In other words, multiple smart home devices associated with the same smart home scene are in the same device group.
[0092] The identifier of the target device group is used to uniquely identify the target device group. The identifier of the target device group can be obtained by combining the identifiers of each smart home device in the target device group. Of course, it can also be directly the name of the target device group, or it can be determined in other ways, as long as it can uniquely identify the target device group.
[0093] Step 202: The user terminal sends a scene creation request to the server, where the scene creation request carries an identifier of the target smart home scene, identifiers of the multiple smart home devices, action indication information and action timing information of the multiple smart home devices.
[0094] In some embodiments, the scene creation request also carries preconditions corresponding to the action indication information of the multiple smart home devices.
[0095] In some other embodiments, the scenario creation request also carries an identifier of the target device group.
[0096] For example, the relevant data of the target smart home scene created by the user terminal may be as follows:
[0097]
[0098]
[0099] Among them, Group_ID is the identifier of the device group, Scene_ID is the identifier of the smart home scene, Device_ID is the identifier of the smart home device, PreConditon is the combination of preconditions, ExpectState is the expected preconditions, and the subsequent actions are executed only when all conditions are met. StartTime is the duration between the start execution time of the action and the trigger time of the smart home scene, in seconds. OperatTime is the execution time of the action, in milliseconds, which refers to the time from the start execution to the completion of the action. For example, the time required for a dimmer switch to go from off to full brightness. ActionState is the action that the smart home device needs to perform. The action instructions are different for different smart home devices, such as the action instructions of the switch are "on" and "off"; the action instructions of the door lock are "unlock" and "lock", etc. ...Indicates that there can be multiple items of the same type. A smart home scene can contain multiple smart home devices, and a smart home device can also contain multiple actions.
[0100] Step 203: The server receives the scene creation request sent by the user terminal, and sends the scene creation request to the gateway device.
[0101] Step 204: The gateway device receives the scene creation request sent by the server, and stores the identifier of the target smart home scene, the identifiers of the multiple smart home devices, the action indication information and the action timing information of the multiple smart home devices.
[0102] After the gateway device receives the scene creation request sent by the server, it can store the identification of the target smart home scene, the identification of the multiple smart home devices, the action indication information and the action timing information of the multiple smart home devices in the correspondence between the smart home scene identification, the smart home device identification, the action indication information and the action timing information.
[0103] After the gateway device stores the identifier of the target smart home scene, the identifiers of the multiple smart home devices, the action indication information and the action timing information of the multiple smart home devices, it indicates that the target smart home scene is successfully created. At this time, the gateway device can send a successful creation response to the server, and the server receives the successful creation response and sends the successful creation response to the user terminal.
[0104] When the scene creation request also carries the preconditions corresponding to the action indication information of the multiple smart home devices, the gateway device can store the identifier of the target smart home scene, the identifiers of the multiple smart home devices, the action indication information of the multiple smart home devices, the action timing information and the preconditions in the correspondence between the smart home scene identifier, the smart home device identifier, the action indication information, the action timing information and the preconditions.
[0105] In the case where the scene creation request also carries the identifier of the target device group, the gateway device may store the correspondence between the identifier of the target smart home scene and the identifier of the target device group. For example, the gateway device stores the identifier of the target smart home scene and the identifier of the target device group in the correspondence between the smart home scene identifier and the device group identifier.
[0106] Step 205: The gateway device synchronizes the scene data of the target smart home scene to each smart home device in the multiple smart home devices.
[0107] After the gateway device stores the relevant data of the target smart home scene in the manner of step 204, in order to facilitate the subsequent triggering of the execution of the target smart home scene, the gateway device can also synchronize the scene data to the multiple smart home devices. Since the gateway device synchronizes the scene data to each of the multiple smart home devices in the same manner, one of the smart home devices is used as an example for description.
[0108] The gateway device sends a scene synchronization instruction to the target smart home device, and the scene synchronization instruction carries the identifier of the target smart home scene, target action indication information, and target action timing information. The target action indication information is the action indication information of the target smart home device regarding the target smart home scene, and the target action timing information is the action timing information corresponding to the target action indication information. The target smart home device is one of the multiple smart home devices. The target smart home device receives the scene synchronization instruction sent by the gateway device, and stores the corresponding relationship between the identifier of the target smart home scene, the target action indication information, and the target action timing information.
[0109] In some embodiments, after the target smart home device receives the scene synchronization instruction sent by the gateway device, it can store the identification of the target smart home scene, the target action indication information and the target action timing information in the correspondence between the smart home scene identification, the action indication information and the action timing information.
[0110] In some embodiments, the scene synchronization instruction sent by the gateway device to the target smart home device also carries a target precondition, which is a precondition corresponding to the target action indication information. After the target smart home device receives the scene synchronization instruction sent by the gateway device, the corresponding relationship between the identification of the target smart home scene, the target action indication information, the target action timing information and the target precondition can be stored. For example, the target smart home device can store the identification of the target smart home scene, the target action indication information, the target action timing information and the target precondition in the corresponding relationship between the smart home scene identification, the action indication information, the action timing information and the precondition.
[0111] In some embodiments, the scene synchronization instruction sent by the gateway device to the target smart home device also carries the identifier of the target device group. In this way, after the target smart home device receives the scene synchronization instruction sent by the gateway device, the corresponding relationship between the identifier of the target smart home scene and the identifier of the target device group can be stored. For example, the target smart home device stores the identifier of the target smart home scene and the identifier of the target device group in the corresponding relationship between the smart home scene identifier and the device group identifier.
[0112] In other embodiments, the device group to which each smart home device belongs may remain unchanged. In this way, the identifier of the device group to which each smart home device belongs can be notified to each smart home device in advance, without having to notify it again when creating a smart home scene.
[0113] The triggering device of the target smart home scene can be a gateway device or a scene switch, and the scene switch includes a multi-way switch. In the case where the scene triggering device is a scene switch, the user terminal can also bind the target smart home scene to the scene switch. That is, the scene creation interface displayed by the user terminal includes the identifier of the multi-way switch of the scene switch, and the user selects the identifier of one switch from the identifier of the multi-way switch as the identifier of the target switch. The user terminal stores the identifier of the target switch in correspondence with the identifier of the target smart home scene, thereby establishing an association relationship between the target switch and the target smart home scene. Then, the user terminal sends the association relationship between the identifier of the target switch and the identifier of the target smart home scene to the server, and the server sends it to the scene switch. In this way, the scene switch stores the identifier of the target switch and the identifier of the target smart home scene in the correspondence between the switch identifier and the smart home scene identifier.
[0114] In some embodiments, when the user configures the identifier of the target device group in the scene creation interface, the user terminal can also send the identifier of the target device group to the server, and the server sends it to the scene switch. In this way, the scene switch can store the identifier of the target switch, the identifier of the target smart home scene, and the identifier of the target device group in the corresponding relationship between the switch identifier, the smart home scene identifier, and the device group identifier.
[0115] The relevant data of the target smart home scene synchronized by the gateway device to the target smart home device is as follows:
[0116]
[0117]
[0118] Figure 3 This is a flowchart of a method for executing a smart home scenario provided by an embodiment of the present application. Figure 3 , the method comprises the following steps.
[0119] Step 301: When a target smart home scene is triggered, a scene triggering device sends a scene triggering instruction via multicast, and the scene triggering instruction carries an identifier of the target smart home scene.
[0120] Since the triggering device of the target smart home scene can be a gateway device or a scene switch, that is, the scene triggering device can be a gateway device or a scene switch, they will be introduced separately below.
[0121] In the first case, the scene triggering device is a gateway device.
[0122] In response to the triggering operation of the target smart home scene, the user terminal sends a scene triggering instruction to the server, and the scene triggering instruction carries the identifier of the target smart home scene. The server receives the scene triggering instruction and sends the scene triggering instruction to the gateway device. The gateway device determines that the target smart home scene is triggered, and sends the scene triggering instruction in a multicast manner, and the scene triggering instruction carries the identifier of the target smart home scene.
[0123] In some embodiments, after the gateway device receives the scene trigger instruction sent by the server, it determines that the target smart home scene is triggered. At this time, the gateway device determines the identifier of the target device group based on the identifier of the target smart home scene from the correspondence between the stored smart home scene identifier and the device group identifier, and sends the scene trigger instruction via multicast. The scene trigger instruction carries the identifier of the target smart home scene and the identifier of the target device group.
[0124] In the case where the scene trigger instruction carries the identifier of the target smart home scene, after the gateway device sends the scene trigger instruction via multicast, each smart home device within the signal coverage of the gateway device can receive the scene trigger instruction and determine whether it is associated with the target smart home scene and whether it needs to perform a corresponding action. However, in the case where the scene trigger instruction carries the identifier of the target smart home scene and the identifier of the target device group, after the gateway device sends the scene trigger instruction via multicast, although each smart home device within the signal coverage of the gateway device can receive the scene trigger instruction, only the smart home devices within the target smart device group need to determine whether they are associated with the target smart home scene and whether to perform a corresponding action, and other smart home devices do not need to determine whether they are associated with the target smart home scene and whether to perform a corresponding action, or other smart home devices do not need to receive the scene trigger instruction, thereby saving power consumption of the device.
[0125] In the second case, the scene triggering device is a scene switch.
[0126] The scene switch responds to the triggering operation of the target switch, obtains the target smart home scene identifier from the stored correspondence between the switch identifier and the smart home scene identifier based on the identifier of the target switch, and then sends the scene trigger instruction in a multicast manner, the scene trigger instruction carrying the identifier of the target smart home scene.
[0127] In some embodiments, after the scene switch responds to the triggering operation of the target switch, it can obtain the target smart home scene identifier and the target device group identifier from the stored correspondence between the switch identifier, the smart home scene identifier and the device group identifier based on the target switch identifier. Then, the scene trigger instruction is sent in a multicast manner, and the scene trigger instruction carries the target smart home scene identifier and the target device group identifier.
[0128] In the case where the scene trigger instruction carries the identifier of the target smart home scene, after the scene switch sends the scene trigger instruction via multicast, each smart home device within the signal coverage of the scene switch can receive the scene trigger instruction and determine whether it is associated with the target smart home scene and whether it needs to perform a corresponding action. However, in the case where the scene trigger instruction carries the identifier of the target smart home scene and the identifier of the target device group, after the scene switch sends the scene trigger instruction via multicast, although each smart home device within the signal coverage of the scene switch can receive the scene trigger instruction, only the smart home devices within the target smart device group need to determine whether they are associated with the target smart home scene and whether to perform a corresponding action, and other smart home devices do not need to determine whether they are associated with the target smart home scene and whether to perform a corresponding action, or other smart home devices do not need to receive the scene trigger instruction, thereby saving power consumption of the device.
[0129] After the scene triggering device sends the scene triggering instruction in the above manner, each smart home device associated with the target smart home scene performs the same processing action after receiving the scene triggering instruction, so the following will take one of the smart home devices as an example for introduction.
[0130] Step 302: The target smart home device receives the scene trigger instruction sent by the scene trigger device via multicast, and determines the target action indication information and the target action timing information based on the identifier of the target smart home scene, wherein the target action indication information indicates the target action to be executed by the target smart home device, and the target action timing information indicates the execution time information of the target action.
[0131] After the target smart home device receives the scene trigger instruction, the target smart home device obtains the corresponding action indication information and action timing information from the correspondence between the stored smart home scene identification, action indication information and action timing information based on the identification of the target smart home scene carried by the scene trigger instruction, determines the obtained action indication information as the target action indication information, and determines the obtained action timing information as the target action timing information.
[0132] In the case that the scene trigger instruction also carries the identifier of the target device group, after the target smart home device receives the scene trigger instruction, it determines whether the target smart home device is in the target device group. In the case that the target smart home device is in the target device group, based on the identifier of the target smart home scene carried by the scene trigger instruction, the corresponding action indication information and action timing information are obtained from the correspondence between the stored smart home scene identifier, the action indication information and the action timing information, the obtained action indication information is determined as the target action indication information, and the obtained action timing information is determined as the target action timing information.
[0133] When the target smart home device is not in the target device group, the scene trigger instruction can be directly discarded.
[0134] Step 303: The target smart home device performs the target action based on the target action timing information.
[0135] In some embodiments, the target action timing information includes a first duration, which indicates the duration between the start execution time of the target action and the reception time of the scene trigger instruction. At this time, the target smart home device starts timing from the reception time of the scene trigger instruction, and executes the target action when the timing duration reaches the first duration.
[0136] In some other embodiments, the target action timing information further includes a second duration, and the second duration indicates the execution duration of the target action. At this time, when the timing duration reaches the first duration, the target action is executed within the second duration.
[0137] In some other embodiments, after receiving the scene trigger instruction, the target smart home device may also determine the target precondition based on the identifier of the target smart home scene and the target action indication information, and the target precondition is the condition that needs to be met when the target action is executed. In this way, when the timing duration reaches the first duration and the target precondition is met, the target action is executed.
[0138] After the target smart home device receives the scene trigger instruction, it can obtain the corresponding precondition from the correspondence between the stored smart home scene identification, action indication information, action timing information and precondition based on the identification of the target smart home scene and the target action indication information, and determine the obtained precondition as the target precondition.
[0139] The target precondition may be the attribute information of the user who currently triggers the target smart home scene, such as whether the current user is male or female, or it may be the status information of other smart home devices, such as whether other smart home devices are currently in the on or off state. The attribute information of the user is usually stored in the server, and the status information of other devices is stored in the gateway device. In the case where the target precondition is the attribute information of the user, the target smart home device can send the target precondition to the gateway device, and the gateway device queries the attribute information of the user who currently triggers the target smart home scene from the server to determine whether the target precondition is met. In the case where the target precondition is the status information of other smart home devices, the target smart home device can send the target precondition to the gateway device, and the gateway device determines whether the target precondition is met.
[0140] In the embodiment of the present application, the target action indication information is provided with corresponding action timing information, i.e., the target action timing information. In this way, when the smart home scene is triggered, after the scene triggering instruction is sent to the smart home device via multicast, the smart home device can execute the action indicated by the target action indication information based on the target action timing information, thereby avoiding the inability to trigger the execution of the smart home scene via multicast in complex scenes. In addition, the embodiment of the present application also sets corresponding preconditions for each action indication information, and determines whether to execute the corresponding action or which action to execute through the preconditions, thereby ensuring that the smart home scene is more flexible.
[0141] The present application embodiment provides a schematic diagram of the structure of a control device for a smart home device, which can be implemented by software, hardware or a combination of both to become part or all of a target smart home device. The device includes: a first receiving module, a first determining module and an executing module.
[0142] A first receiving module is used to receive a scene triggering instruction sent by a scene triggering device in a multicast manner, where the scene triggering instruction carries an identifier of a target smart home scene;
[0143] A first determination module is used to determine target action indication information and target action timing information based on the identification of the target smart home scene, the target action indication information indicates the target action to be performed by the target smart home device, and the target action timing information indicates the execution time information of the target action;
[0144] The execution module is used to execute the target action based on the target action timing information.
[0145] Optionally, the target action timing information includes a first duration, and the first duration indicates the duration between the start execution time of the target action and the reception time of the scene trigger instruction;
[0146] The execution module is specifically used for:
[0147] The timing starts from the time when the scene trigger command is received;
[0148] When the timing duration reaches a first duration, the target action is performed.
[0149] Optionally, the target action timing information further includes a second duration, and the second duration indicates the execution duration of the target action;
[0150] The execution module is specifically used for:
[0151] When the timing duration reaches the first duration, the target action is performed within the second duration.
[0152] Optionally, the device further comprises:
[0153] A second determination module is used to determine a target precondition based on the identification of the target smart home scene and the target action indication information, where the target precondition is a condition that needs to be satisfied when the target action is executed;
[0154] The execution module is specifically used for:
[0155] When the timing duration reaches the first duration and the target precondition is met, the target action is executed.
[0156] Optionally, the scene triggering instruction further carries an identifier of a target device group, where the target device group is a device group in which smart home devices associated with the target smart home scene are located;
[0157] The first determination module is specifically used for:
[0158] When the target smart home device is in a target device group, the target action indication information and the target action timing information are determined based on the identifier of the target smart home scene.
[0159] Optionally, the device further comprises:
[0160] A second receiving module is used to receive a scene synchronization instruction sent by the gateway device, where the scene synchronization instruction carries an identifier of a target smart home scene, target action indication information, and target action timing information;
[0161] The storage module is used to store the corresponding relationship between the identification of the target smart home scene, the target action indication information and the target action timing information.
[0162] Optionally, the scene synchronization instruction also carries a target precondition, which is a condition that needs to be satisfied when the target action is executed;
[0163] The storage module is specifically used for:
[0164] Store the corresponding relationship between the identification of the target smart home scene, the target action indication information, the target action timing information and the target preconditions.
[0165] In the embodiment of the present application, the target action indication information is provided with corresponding action timing information, i.e., the target action timing information. In this way, when the smart home scene is triggered, after the scene triggering instruction is sent to the smart home device via multicast, the smart home device can execute the action indicated by the target action indication information based on the target action timing information, thereby avoiding the inability to trigger the execution of the smart home scene via multicast in complex scenes. In addition, the embodiment of the present application also sets corresponding preconditions for each action indication information, and determines whether to execute the corresponding action or which action to execute through the preconditions, thereby ensuring that the smart home scene is more flexible.
[0166] It should be noted that: the control device for smart home devices provided in the above embodiment only uses the division of the above functional modules as an example to illustrate the control of the smart home devices. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the control device for smart home devices provided in the above embodiment and the above method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0167] Figure 4 4 is a structural block diagram of a user terminal 400 provided in an embodiment of the present application. The user terminal 400 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The user terminal 400 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0168] Typically, the user terminal 400 includes a processor 401 and a memory 402 .
[0169] The processor 401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 401 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 401 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0170] The memory 402 may include one or more computer-readable storage media, which may be non-transitory. The memory 402 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 402 is used to store at least one instruction, which is used to be executed by the processor 401 to implement the method provided in the method embodiment of the present application.
[0171] In some embodiments, the user terminal 400 may further optionally include: a peripheral device interface 403 and at least one peripheral device. The processor 401, the memory 402 and the peripheral device interface 403 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 403 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 404, a touch display screen 405, a camera 406, an audio circuit 407, a positioning component 408 and a power supply 409.
[0172] The peripheral device interface 403 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 401 and the memory 402. In some embodiments, the processor 401, the memory 402, and the peripheral device interface 403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 401, the memory 402, and the peripheral device interface 403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0173] The radio frequency circuit 404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 404 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 404 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 404 can communicate with other user terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 404 may also include circuits related to NFC (Near Field Communication), which is not limited in the embodiments of the present application.
[0174] The display screen 405 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to collect touch signals on the surface or above the surface of the display screen 405. The touch signal can be input to the processor 401 as a control signal for processing. At this time, the display screen 405 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 405 can be one, and the front panel of the user terminal 400 is set; in other embodiments, the display screen 405 can be at least two, which are respectively set on different surfaces of the user terminal 400 or are folded; in some other embodiments, the display screen 405 can be a flexible display screen, which is set on the curved surface or folded surface of the user terminal 400. Even, the display screen 405 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 405 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0175] The camera assembly 406 is used to capture images or videos. Optionally, the camera assembly 406 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the user terminal, and the rear camera is arranged on the back of the user terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 406 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0176] The audio circuit 407 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 401 for processing, or input them into the radio frequency circuit 404 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the user terminal 400. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 401 or the radio frequency circuit 404 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 407 may also include a headphone jack.
[0177] The positioning component 408 is used to locate the current geographical location of the user terminal 400 to implement navigation or LBS (Location Based Service). The positioning component 408 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system or Russia's Galileo system.
[0178] The power supply 409 is used to power various components in the user terminal 400. The power supply 409 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 409 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0179] In some embodiments, the user terminal 400 further includes one or more sensors 410 , including but not limited to: an acceleration sensor 411 , a gyroscope sensor 412 , a pressure sensor 413 , a fingerprint sensor 414 , an optical sensor 415 , and a proximity sensor 416 .
[0180] The acceleration sensor 411 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the user terminal 400. For example, the acceleration sensor 411 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 401 can control the touch display screen 405 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 411. The acceleration sensor 411 can also be used for collecting game or user motion data.
[0181] The gyro sensor 412 can detect the body direction and rotation angle of the user terminal 400, and the gyro sensor 412 can cooperate with the acceleration sensor 411 to collect the user's 3D actions on the user terminal 400. The processor 401 can implement the following functions based on the data collected by the gyro sensor 412: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0182] The pressure sensor 413 can be set on the side frame of the user terminal 400 and / or the lower layer of the touch display screen 405. When the pressure sensor 413 is set on the side frame of the user terminal 400, it can detect the user's holding signal of the user terminal 400, and the processor 401 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 413. When the pressure sensor 413 is set on the lower layer of the touch display screen 405, the processor 401 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 405. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0183] The fingerprint sensor 414 is used to collect the user's fingerprint, and the processor 401 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 401 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 414 can be set on the front, back, or side of the user terminal 400. When a physical button or a manufacturer logo is set on the user terminal 400, the fingerprint sensor 414 can be integrated with the physical button or the manufacturer logo.
[0184] The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 can control the display brightness of the touch display screen 405 according to the ambient light intensity collected by the optical sensor 415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 405 is reduced. In another embodiment, the processor 401 can also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
[0185] The proximity sensor 416, also called a distance sensor, is usually arranged on the front panel of the user terminal 400. The proximity sensor 416 is used to collect the distance between the user and the front of the user terminal 400. In one embodiment, when the proximity sensor 416 detects that the distance between the user and the front of the user terminal 400 is gradually decreasing, the processor 401 controls the touch display screen 405 to switch from the screen-on state to the screen-off state; when the proximity sensor 416 detects that the distance between the user and the front of the user terminal 400 is gradually increasing, the processor 401 controls the touch display screen 405 to switch from the screen-off state to the screen-on state.
[0186] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the user terminal 400, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.
[0187] Figure 5 5 is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 500 includes a central processing unit (CPU) 501, a system memory 504 including a random access memory (RAM) 502 and a read-only memory (ROM) 503, and a system bus 505 connecting the system memory 504 and the central processing unit 501. The server 500 also includes a basic input / output system (I / O system) 506 that helps transmit information between various devices in the computer, and a large-capacity storage device 507 for storing an operating system 513, an application program 514, and other program modules 515.
[0188] The basic input / output system 506 includes a display 508 for displaying information and an input device 509 such as a mouse and a keyboard for user inputting information. The display 508 and the input device 509 are connected to the central processing unit 501 through an input / output controller 510 connected to the system bus 505. The basic input / output system 506 may also include an input / output controller 510 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 510 also provides output to a display screen, a printer, or other types of output devices.
[0189] The mass storage device 507 is connected to the central processing unit 501 through a mass storage controller (not shown) connected to the system bus 505. The mass storage device 507 and its associated computer-readable media provide non-volatile storage for the server 500. That is, the mass storage device 507 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM drive.
[0190] Without loss of generality, computer readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storage technologies, CD-ROM, DVD or other optical storage, cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above. The above-mentioned system memory 504 and mass storage device 507 can be collectively referred to as memory.
[0191] According to various embodiments of the present application, the server 500 can also be connected to a remote computer on the network through a network such as the Internet. That is, the server 500 can be connected to the network 512 through the network interface unit 511 connected to the system bus 505, or the network interface unit 511 can be used to connect to other types of networks or remote computer systems (not shown).
[0192] The above-mentioned memory also includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU.
[0193] In some embodiments, a smart home device is also provided. The smart device includes a transceiver, a memory, a processor, etc. The gateway device is used to execute the steps in the above method embodiments.
[0194] In some embodiments, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method embodiments are implemented. For example, the computer-readable storage medium can be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0195] It is worth noting that the computer-readable storage medium mentioned in the embodiments of the present application may be a non-volatile storage medium, in other words, a non-transitory storage medium.
[0196] It should be understood that all or part of the steps to implement the above embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.
[0197] That is, in some embodiments, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the steps of the method described above.
[0198] It should be understood that the "at least one" mentioned herein refers to one or more, and "multiple" refers to two or more. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not limit them to be necessarily different.
[0199] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0200] The above-mentioned embodiments are provided for the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A control method for a smart home device, characterized in that: Applied to a target smart home device, the method comprises: Receiving a scene triggering instruction sent by a scene triggering device in a multicast manner, wherein the scene triggering instruction carries an identifier of a target smart home scene; Determine target action indication information and target action timing information based on the identifier of the target smart home scene, wherein the target action indication information indicates the target action to be performed by the target smart home device, and the target action timing information indicates the execution time information of the target action; The target action is performed based on the target action timing information.
2. The method according to claim 1, characterized in that The target action timing information includes a first duration, where the first duration indicates the duration between the start execution time of the target action and the reception time of the scene trigger instruction; The performing the target action based on the target action timing information includes: The timing starts from the time when the scene trigger instruction is received; When the timing duration reaches the first duration, the target action is performed.
3. The method according to claim 2, characterized in that The target action timing information further includes a second duration, where the second duration indicates the execution duration of the target action; When the timing duration reaches the first duration, executing the target action includes: When the timing duration reaches the first duration, the target action is performed within the second duration.
4. The method according to claim 2 or 3, characterized in that The method further comprises: Determining a target precondition based on the identifier of the target smart home scene and the target action indication information, wherein the target precondition is a condition that needs to be satisfied when the target action is executed; When the timing duration reaches the first duration, executing the target action includes: When the timing duration reaches the first duration and the target precondition is met, the target action is executed.
5. The method according to any one of claims 1 to 4, characterized in that: The scene trigger instruction also carries an identifier of a target device group, where the target device group is a device group where smart home devices associated with the target smart home scene are located; The determining target action indication information and target action timing information based on the identification of the target smart home scene includes: In a case where the target smart home device is in the target device group, the target action indication information and the target action timing information are determined based on an identifier of the target smart home scene.
6. The method according to any one of claims 1 to 5, characterized in that: Before receiving the scene trigger instruction sent by the scene trigger device in a multicast manner, the method further includes: Receiving a scene synchronization instruction sent by a gateway device, the scene synchronization instruction carrying an identifier of the target smart home scene, the target action indication information, and the target action timing information; The corresponding relationship between the identifier of the target smart home scene, the target action indication information and the target action timing information is stored.
7. The method according to claim 6, characterized in that The scene synchronization instruction also carries a target precondition, which is a condition that needs to be satisfied when the target action is executed; The storing of the corresponding relationship between the identifier of the target smart home scene, the target action indication information and the target action timing information includes: The corresponding relationship between the identifier of the target smart home scene, the target action indication information, the target action timing information and the target precondition is stored.
8. A smart home device, characterized in that: The smart home device includes a transceiver and a processor; The transceiver is used to receive a scene trigger instruction sent by a scene trigger device in a multicast manner, wherein the scene trigger instruction carries an identifier of a target smart home scene; The processor is configured to determine target action indication information and target action timing information based on the identifier of the target smart home scene, wherein the target action indication information indicates the target action to be performed by the smart home device, and the target action timing information indicates the execution time information of the target action; The processor is further configured to execute the target action based on the target action timing information.
9. The smart home device according to claim 8, characterized in that: The target action timing information includes a first duration, where the first duration indicates the duration between the start execution time of the target action and the reception time of the scene trigger instruction; The processor is specifically used for: The timing starts from the time when the scene trigger instruction is received; When the timing duration reaches the first duration, the target action is performed.
10. The smart home device according to claim 9, characterized in that: The target action timing information further includes a second duration, where the second duration indicates the execution duration of the target action; The processor is specifically used for: When the timing duration reaches the first duration, the target action is performed within the second duration.
Citation Information
Cited By
Delay scene control method and device, home host and medium
CN120353146A
Method and device for controlling equipment
CN120406259A
