Scene configuration method and device, control method and device, intelligent device and medium
Through the smart home device configuration method that supports scene nesting, the configuration process of smart home devices is simplified, the problem of high configuration complexity in the existing technology is solved, flexible and efficient scenario configuration is achieved, and storage resources are saved.
Patent Information
- Application Number
- CN202011486572.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-16
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2040-12-16
AI Technical Summary
The configuration of smart home device scenarios is difficult, and the existing configuration methods are not flexible enough. Users need to manually set up linkage scenarios, resulting in complex and time-consuming configurations.
The user's target scene configuration request is obtained through the terminal device, forming nested scene configuration instructions and smart home device action setting instructions, sending them to the server, generating scene execution data and passing them to the gateway, supporting scene nested configuration, reducing configuration complexity and Save storage.
It simplifies the configuration process of smart home devices, improves configuration flexibility, reduces user configuration difficulty, and saves the storage consumption of the gateway.
Smart Images

Figure CN114637216B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and in particular to a method and device for configuring a smart home device scene, a method and device for controlling a smart home device, a smart device, and a computer-readable storage medium. Background Art
[0002] Smart home is the embodiment of Internet of Things under the influence of the Internet. Smart home connects various home appliances (such as audio and video equipment, lighting systems, curtain control, air conditioning control, digital cinema systems, security systems, network appliances, etc.) through the Internet of Things technology, and provides intelligent remote control of these devices. At present, after the user installs the smart home product, the user needs to manually set various self-running linkage scenes.
[0003] However, users need to manually configure the control scenarios of these smart home devices, which is not flexible enough and difficult to configure. Summary of the invention
[0004] In order to solve the existing technical problems, the present application provides a smart home device scene configuration method and device, a smart home device control method and device, a smart device and a computer-readable storage medium that can be flexibly configured and reduce the difficulty of configuration.
[0005] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a smart home device scene configuration method, which is applied to a terminal device, including:
[0007] Get the configuration request of the target scene;
[0008] Obtaining a configuration instruction of a nested scene corresponding to the configuration request and / or an action setting instruction of a target smart home device to form configuration data;
[0009] The configuration data is sent to a server, which forms scenario execution data corresponding to the target scenario based on the configuration data, and sends the scenario execution data to a gateway corresponding to the target scenario.
[0010] In the above embodiment, the terminal device obtains the configuration request of the user's target scene, forms configuration data according to the configuration instructions of the nested scene corresponding to the configuration request and / or the action setting instructions of the target smart home device, and sends the configuration data to the server, which forms scene execution data corresponding to the target scene according to the configuration data. In this way, the user can create the target scene by selecting a known scene for nesting, or directly set the action of the target smart home device to complete the configuration. By supporting the configuration of the target scene by nesting known scenes, the configuration steps of the target scene can be simplified, and the configuration data of the target scene containing the nested scene only needs to store the identifier of the nested scene, and there is no need to repeatedly store the action data contained in the nested scene, so that the configuration method is flexible, the configuration difficulty is reduced, and the effect of saving gateway storage can be achieved.
[0011] In a second aspect, an embodiment of the present application provides a smart home device scene configuration method, which is applied to a server, including:
[0012] The receiving terminal device sends configuration data corresponding to the configuration request of the target scene; wherein the configuration data includes configuration instructions of the nested scene corresponding to the configuration request, and / or action setting instructions of the target smart home device;
[0013] Generate a corresponding target scene identifier according to the configuration data, form scene execution data corresponding to the target scene, and send the scene execution data to a gateway corresponding to the target scene. The scene execution data includes a target scene identifier, a nested scene identifier and / or execution action data of a target smart home device.
[0014] In the above embodiment, the server receives configuration data corresponding to the configuration request of the target scene sent by the terminal device, generates a corresponding target scene identifier according to the configuration data, forms scene execution data corresponding to the target scene, and sends the scene execution data to the gateway corresponding to the target scene. In this way, the user can create a target scene by selecting a known scene for nesting to complete the configuration, or directly set the action of the target smart home device to complete the configuration. By supporting the nesting of known scenes to configure the target scene, the configuration steps of the target scene can be simplified, and the configuration data of the target scene containing the nested scene only needs to store the identifier of the nested scene, and there is no need to repeatedly store the action data contained in the nested scene, so that the configuration method is flexible, the configuration difficulty is reduced, and the effect of saving gateway storage can be achieved.
[0015] In a third aspect, an embodiment of the present application provides a smart home device control method, which is applied to a gateway, including:
[0016] Obtaining a target scene execution instruction, and determining scene execution data corresponding to the target scene according to the target scene execution instruction;
[0017] In a case where the scene execution data includes a nested scene identifier, determining the scene execution data corresponding to the nested scene according to the nested scene identifier;
[0018] In the case where the scene execution data is execution action data of a smart home device, the execution action data is sent to the corresponding smart home device for corresponding execution.
[0019] In the above embodiment, when the user uses the terminal device to configure the target scene, the server forms scene execution data based on the configuration request and configuration data of the terminal device and stores it in the gateway. When the target scene is controlled, the gateway obtains the scene execution instruction sent by the terminal device, and determines the scene execution data corresponding to the target scene. When the scene execution data includes a nested scene identifier, the scene execution data corresponding to the nested scene is determined according to the nested scene identifier. When the scene execution data is the execution action data of the smart home device, the execution action data is sent to the corresponding smart home device for corresponding execution. In this way, through the mutual nesting of scenes, the scene execution data of the target scene containing the nested scene does not need to repeatedly store the action data contained in the nested scene, which not only saves gateway storage consumption but also makes the scene execution more intuitive.
[0020] In a fourth aspect, an embodiment of the present application provides a smart home device control method, including:
[0021] The terminal device receives the execution request of the target scenario and sends it to the server;
[0022] After receiving the execution request, the server sends a target scenario execution instruction to a gateway corresponding to the target scenario;
[0023] The gateway determines the scene execution data corresponding to the target scene according to the target scene execution instruction. When the scene execution data includes a nested scene identifier, the gateway determines the scene execution data corresponding to the nested scene according to the nested scene identifier. When the scene execution data is execution action data of a smart home device, the execution action data is sent to the corresponding smart home device for corresponding execution.
[0024] In the above embodiment, the terminal device receives an execution request of the target scene and sends it to the server. After receiving the execution request, the server sends a target scene execution instruction to the gateway corresponding to the target scene. The gateway determines the scene execution data corresponding to the target scene according to the target scene execution instruction. When the scene execution data includes a nested scene identifier, the scene execution data corresponding to the nested scene is determined according to the nested scene identifier; when the scene execution data is the execution action data of the smart home device, the execution action data is sent to the corresponding smart home device for corresponding execution. In this way, through the mutual nesting of scenes, the scene execution data of the target scene containing the nested scene does not need to repeatedly store the action data contained in the nested scene, which not only saves gateway storage consumption but also makes scene execution more intuitive.
[0025] In a fifth aspect, an embodiment of the present application provides a smart home device scene configuration device, including:
[0026] Configuration request module, used to obtain the configuration request of the target scene;
[0027] A configuration data module, used to obtain configuration instructions of the nested scene corresponding to the configuration request and / or action setting instructions of the target smart home device to form configuration data;
[0028] The sending module is used to send the configuration data to the server, and the server forms the scene execution data corresponding to the target scene according to the configuration data, and sends the scene execution data to the gateway corresponding to the target scene.
[0029] In a sixth aspect, an embodiment of the present application provides a smart home device scene configuration device, including:
[0030] A receiving module, configured to receive configuration data corresponding to a configuration request of a target scene sent by a terminal device; wherein the configuration data includes configuration instructions of a nested scene corresponding to the configuration request, and / or an action setting instruction of a target smart home device;
[0031] A scene configuration module is used to generate a corresponding target scene identifier according to the configuration data, form scene execution data corresponding to the target scene, and send the scene execution data to a gateway corresponding to the target scene. The scene execution data includes a target scene identifier, a nested scene identifier and / or execution action data of a target smart home device.
[0032] In a seventh aspect, an embodiment of the present application provides a smart home device control device, including:
[0033] An acquisition module is used to acquire a target scene execution instruction, and determine the scene execution data corresponding to the target scene according to the target scene execution instruction;
[0034] A nesting module, configured to determine the scene execution data corresponding to the nested scene according to the nested scene identifier when the scene execution data includes the nested scene identifier;
[0035] The execution module is used to send the execution action data to the corresponding smart home device for corresponding execution when the scene execution data is the execution action data of the smart home device.
[0036] In an eighth aspect, an embodiment of the present application provides a smart device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the smart home device scene configuration method as described in any embodiment of the present application or the smart home device control method as described in any embodiment of the present application is implemented.
[0037] In the ninth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor, it implements the smart home device scene configuration method as described in any embodiment of the present application or the smart home device control method as described in any embodiment of the present application.
[0038] In the above embodiments, the smart home device scene configuration device, the smart home device control device, the smart device and the computer-readable storage medium respectively belong to the same concept as the corresponding smart home device scene configuration method and the smart home device control method embodiments, and thus have the same technical effects as the corresponding smart home device scene configuration method and the smart home device control method embodiments, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is a diagram of the IoT system architecture in the embodiment of this application;
[0040] Figure 2 This is a flow chart of a method for configuring a smart home device scene in an embodiment of the present application;
[0041] Figure 3 This is a flow chart of a method for configuring a smart home device scene in another embodiment of the present application;
[0042] Figure 4 This is a schematic diagram of an interface of a method for configuring a smart home device scene in an embodiment of the present application;
[0043] Figure 5 This is a flow chart of a method for configuring a smart home device scene in another embodiment of the present application;
[0044] Figure 6 This is a flow chart of a method for configuring a smart home device scene in yet another embodiment of the present application;
[0045] Figure 7 This is a flowchart of a method for configuring a smart home device scene in an optional specific example of the present application;
[0046] Figure 8 This is a flow chart of a smart home device control method in one embodiment of the present application;
[0047] Fig. 9 This is a flow chart of a smart home device control method in another embodiment of the present application;
[0048] Fig.10 This is a flowchart of a smart home device control method in an optional specific example of the present application;
[0049] Fig.11 This is a schematic diagram of a smart home device scene configuration device in an embodiment of the present application;
[0050] Fig.12 This is a schematic diagram of a smart home device scene configuration device in another embodiment of the present application;
[0051] Fig.13 This is a schematic diagram of a smart home device control device in an embodiment of the present application;
[0052] Fig.14 This is a schematic diagram of a smart device in an embodiment of the present application;
[0053] Fig.15 This is a schematic diagram of the structure of a smart device in another embodiment of the present application. DETAILED DESCRIPTION
[0054] The technical solution of the present application is further elaborated in detail below in conjunction with the accompanying drawings and specific embodiments of the specification.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit the implementation of this application. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0056] In the description of the present application, it should be understood that the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating positions or positional relationships, are based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as a limitation on the present application. In the description of the present application, unless otherwise specified, "multiple" means two or more.
[0057] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0058] See also Figure 1 , which is an Internet of Things system architecture diagram of an optional application scenario of the smart home device scene configuration method and the smart home device control method provided in the embodiment of the present application, wherein the Internet of Things system includes a terminal device 11, a server 12, a gateway 13 and a smart home device 14. The terminal device 11 refers to a device with communication and storage functions, such as: a smart phone, a desktop computer, a laptop computer, a tablet computer or other intelligent communication device with a network connection function. The server 12 may include one or more physical servers, such as a network access server, a database server, a cloud server, etc. Optionally, the gateway 13 can be a gateway device built based on the ZigBee protocol, and the smart home device 14 is connected to the gateway 13 and controlled by the terminal device 11. The terminal device 11 is installed with a client that can manage the smart home. The client can be an application client (such as a mobile phone APP) or a web client, which is not limited here. The user can control the smart home device 14 by operating the client, and the terminal device 11 receives the control instructions of the smart home device 14 input by the user through the client, and communicates with the server 12, and the server 12 forwards the control instructions input by the user to the corresponding smart home device 14 through the gateway 13, so as to realize the remote intelligent control of the smart home device 14. The smart home device 14 can be pre-added to the gateway 13, for example, the smart home device 14 can be a device in the kit to which the gateway 13 belongs that is pre-set when the gateway leaves the factory; or it can be a device connected to the gateway 13 later through user operation.
[0059] Optionally, the smart home device 14 can establish a network connection with the gateway 13 based on the ZigBee protocol, thereby joining the ZigBee network.
[0060] Both the smart home device 14 and the terminal device 11 can be connected to the Ethernet through the gateway 13, and the gateway 13 can be connected to the server 12 through a wired or wireless communication connection. For example, the gateway 13 and the terminal device 11 can store the acquired information in the server 12. Optionally, the terminal device 11 can also establish a network connection with the server 12 through 2G / 3G / 4G / 5G, WiFi, etc., so as to obtain data sent by the server 12.
[0061] Optionally, the terminal device 11, the gateway 13 and the smart home device 14 may be in the same local area network, or in the same wide area network with the server 12. When the terminal device 11 and the gateway 13 are in the same local area network, the terminal device 11 may interact with the gateway 13 and the smart home device 14 connected to the gateway 13 through a local area network path; or may interact with the gateway 13 and the smart home device 14 connected to the gateway 13 through a wide area network path. When the terminal device 11 and the gateway 13 are not in the same local area network, the terminal device 11 may interact with the gateway and the smart home device 14 connected to the gateway 13 through a wide area network path. The Internet of Things system may further realize the control of turning on or off the smart home device 14 within the local area network or correspondingly connected thereto through the smart home device 14. The smart home device 14 may include, but is not limited to, smart home products such as smart lamps, automatic curtains, and air conditioners.
[0062] See also Figure 2 , a smart home device scene configuration method provided by an embodiment of the present application, which can be applied to Figure 1 The terminal device shown. Among them, the smart home device scene configuration method includes but is not limited to S101, S103 and S105, which are specifically described as follows:
[0063] S101, obtaining a configuration request for a target scene.
[0064] The target scene refers to the scene that the user currently wants to create. The terminal device may obtain the configuration request for the target scene by including a scene setting page in the client of the terminal device for controlling the smart home device, and the terminal device obtains the operation instruction for creating the target scene input by the user on the scene setting page, and forms the configuration request for the target scene according to the operation instruction. Optionally, the scene setting page is provided with a control button for scene creation, and the terminal device detects the user's touch operation on the control button for scene creation, and forms the configuration request for the target scene according to the touch operation. The terminal device may obtain the configuration request for the target scene based on the scene setting page or based on preset voice instructions, gesture instructions, etc., which are not limited here.
[0065] S103, obtaining a configuration instruction of a nested scene corresponding to the configuration request and / or an action setting instruction of a target smart home device to form configuration data.
[0066] Nested scenes refer to any other scenes that have been created before the current target scene is created. Users create one or more scenes to control smart home devices through terminal devices, and each scene can contain one or more setting data for executing actions for smart home devices. Smart home devices can include but are not limited to any smart home products that users want to remotely control through terminal devices, such as lamps, curtains, televisions, and monitoring systems. Scenes are related to the user's personal preferences, living habits, etc. In different scenes, the smart home devices that users want to turn on or off are different. Users create scenes in advance and pre-set the actions of one or more target smart home devices contained in the corresponding scenes. When using, you can directly select the scene you need to enter, thereby simplifying the control operation. The action setting instruction of the target smart home device refers to the user's selection instruction for turning on, off, and different working modes of the smart home device. Taking the smart home device as lamp 1 as an example, the action setting instruction for lamp 1 may include lamp 1 turning on, lamp 1 turning off, lamp 1 working mode as smart detection brightness mode, etc.
[0067] Among them, the terminal device obtains the configuration instructions of the nested scene corresponding to the configuration request, and / or the action setting instructions of the target smart home device, and forming the configuration data means: the configuration instructions for creating the target scene may only include the configuration instructions of the nested scene, or only include the action setting instructions of the target smart home device, or include both the configuration instructions of the nested scene and the action setting instructions of the target smart home device.
[0068] For example, when a user wants to create a new scene D, the scenes that have been created include scene A, scene B, and scene C. Scene A includes light 1 on, light 2 off, and curtain 1 closed; scene B includes TV 1 on, air conditioner 1 on; scene C includes light 1 off, and curtain 1 open. Then, when the user inputs a request to create scene D through a terminal device, scene A, scene B, and scene C can all be used as alternative nested scenes. If the scene D that the user wants to create is: light 1 on, light 2 off, curtain 1 closed, TV 1 on, and air conditioner 1 on, then after the user inputs the creation operation of scene D through the terminal device, scene A and scene B can be further selected as nested scenes of scene D, so that the terminal device obtains the configuration instructions of the nested scenes corresponding to the configuration request of scene D.
[0069] If the scene D that the user wants to create is: light 1 on, light 2 off, curtain 1 closed, and air conditioner 1 on, then after the user enters the creation operation of scene D through the terminal device, he can further select scene A as the nested scene of scene D and obtain the action setting instruction for controlling the turning on of air conditioner 1, so that the terminal device obtains the configuration instruction of the nested scene corresponding to the configuration request of scene D and the action setting instruction of the target smart home device.
[0070] S105, sending the configuration data to a server, which forms scenario execution data corresponding to the target scenario according to the configuration data, and sends the scenario execution data to a gateway corresponding to the target scenario.
[0071] Scene execution data refers to the smart home devices that need to be controlled in the target scene and the setting data for the actions of the smart home devices. The terminal device sends the configuration data formed by the configuration instructions of the corresponding nested scene and / or the action setting instructions of the target smart home device received according to the configuration request of the target scene to the server, and the server forms the scene execution data corresponding to the target scene according to the configuration data, and sends the scene execution data to the gateway corresponding to the target scene, thereby completing the configuration of the target scene. The server sends the scene execution data of the target scene to the gateway for storage, so that the gateway can control the corresponding smart home device according to the scene execution data when the target scene is controlled next time.
[0072] In the above embodiment, the terminal device obtains the configuration request of the user's target scene, forms configuration data according to the configuration instructions of the nested scene corresponding to the configuration request and / or the action setting instructions of the target smart home device, and sends the configuration data to the server, which forms scene execution data corresponding to the target scene according to the configuration data. In this way, the user can create a target scene by selecting a known scene for nesting, or directly setting the action of the target smart home device to complete the configuration. The target scene is configured by supporting nesting of known scenes. For example, the user's home has a scene Scene 1 of turning off all the lights in the living room and a scene Scene 2 of turning off all the lights in the bedroom. If you need to create a leaving home scene, under the leaving home scene If you need to turn off all the lights in the living room and bedroom, you can add Scene1 and Scene2 as nested scenes of the leaving home scene, without having to add the light-off actions of Scene1 and Scene2 one by one. When configuring, you only need to send the scene identifiers of Scene1 and Scene2 to the gateway to succeed, without having to send the execution action data of the smart home devices of Scene1 and Scene2 to the gateway, thereby simplifying the configuration steps of the target scene, and the configuration data of the target scene containing the nested scene only needs to store the identifier of the nested scene, without having to repeatedly store the action data contained in the nested scene, so that the configuration method is flexible, the configuration difficulty is reduced, and the gateway storage can be saved.
[0073] In some embodiments, see Figure 3 S103, obtaining a configuration instruction of a nested scene corresponding to the configuration request and / or an action setting instruction of a target smart home device to form configuration data, including:
[0074] S1031, displaying a configuration page of the target scenario according to the configuration request;
[0075] S1033, receiving configuration instructions for the nested scene and / or action setting instructions for the target smart home device based on the configuration page, and forming configuration data according to the configuration instructions for the nested scene and / or the action setting instructions for the target smart home device.
[0076] The terminal device may display the configuration page of the target scene according to the configuration request, which may be that the terminal device includes a configuration page in a client for controlling smart home devices, and when the terminal device obtains the operation instruction for creating the target scene input by the user on the scene setting page, a configuration request for the target scene is formed according to the operation instruction, and the configuration page of the target scene is displayed based on the configuration request. The configuration page may display configuration options for the user to select, such as a selection list of nested scenes and a selection list of smart home devices. The user may directly select the nested scene to be nested in the current target scene in the configuration page, and / or select the smart home device to be included in the current target scene and select the execution action corresponding to the smart home device. The configuration instruction of the nested scene and / or the action setting instruction of the target smart home device are obtained according to the user's operation on the configuration page, thereby forming configuration data corresponding to the target scene.
[0077] Optionally, the configuration options in the configuration page may also be in other forms not limited to the selection list of nested scenes and the selection list of smart home devices. For example, a nested scene input box and a smart home device input box may be provided in the configuration page, and the user directly enters the identifier of the nested scene to be nested and the smart home device to be included in the current target scene in the corresponding input boxes and selects the execution action corresponding to the smart home device; or the user uploads a document in a specified format that records the identifier of the nested scene to be nested and the smart home device to be included in the current target scene and selects the execution action corresponding to the smart home device, etc.
[0078] In some embodiments, the smart home device configuration method further includes:
[0079] A shortcut setting instruction for a target scene is obtained, and a shortcut start button for the target scene is added to a designated page according to the shortcut setting instruction.
[0080] The shortcut setting instruction refers to an instruction input by the user indicating whether to add a shortcut launch method of the target scene. Optionally, a sliding selection button for adding a shortcut launch method of the target scene to the home page may be provided in the scene configuration page, and the user may operate the sliding selection button to add the shortcut launch button of the target scene to the desktop of the terminal device, or add the shortcut launch button of the target scene to the home page of the client.
[0081] In the embodiment of the present application, by setting a shortcut start method for the target scene, the user can add frequently used scenes to the desktop or the home page of the client, thereby facilitating operation.
[0082] In some embodiments, the smart home device configuration method further includes:
[0083] Obtain a test instruction for the target scene, send the test instruction to the gateway, and the gateway controls the associated smart home devices according to the test instruction to complete the test.
[0084] Among them, the associated smart home device refers to the smart home device related to the target scene to be tested. Completing the test means that after the associated smart home device receives the test instruction, it executes the corresponding action according to the configuration data of the target scene for a preset time and then automatically returns to the state before the test. If the target scene includes nested scene A and the execution action of lamp 1, wherein nested scene A includes the execution actions of lamp 2 and TV 3, then after the gateway receives the test instruction for the target scene, it controls lamp 1, lamp 2 and TV 2 to execute the corresponding action for a preset time and then return to the state before the test. The test instruction for the target scene can be obtained after the target scene is configured, or in the process of configuring the target scene, so that the user can confirm whether the current configuration operation is the effect he wants by sending the test instruction, and judge how to accurately adjust when it is confirmed that adjustment is required.
[0085] See also Figure 4 and Figure 5 , which is an optional interface diagram of a client controlling a smart home device in a terminal device, and a smart home device scene configuration method includes the following steps:
[0086] S1, the terminal device can obtain a scene viewing instruction, and display a scene page according to the scene viewing instruction, and a list of configured known scenes is displayed on the scene page; Figure 4-1 As shown, the known scene list displayed in the scene page includes movie mode, sleep mode, game mode, leaving home mode, returning home mode, etc.
[0087] S2, the terminal device obtains a scene creation instruction based on the scene page, and displays the scene configuration page according to the scene creation instruction; a "+" button is provided in the upper right corner of the scene page, and when a user clicks the + button, the scene creation instruction is obtained; the configuration page may display configuration options, such as Figure 4-2 As shown, configuration options include adding action buttons.
[0088] S3, the terminal device obtains the add action instruction based on the configuration page, and displays the add action page according to the add action instruction; when the user touches the add action button, the add action instruction is obtained, such as Figure 4-3 As shown, the add action page displays optional configuration options for the scene to be configured, such as scene, gateway light, etc.
[0089] S4, the terminal device obtains the configuration instruction of the nested scene based on the add action page, and displays the optional nested scene list based on the configuration instruction of the nested scene; Figure 4-4 As shown, the nested scene list displays the configured known scenes, and the user can directly select one or more known scenes as the nested scenes of the current target scene; and / or,
[0090] The terminal device obtains the action setting instruction of the target smart home device based on the added action page, and displays the action setting page of the corresponding smart home device based on the action setting instruction; Figure 4-5 As shown in Figure 4-6, when a user touch operation on the gateway light in the add action page is detected, the action setting page of the gateway light is displayed, and the action setting page includes execution action options such as turning on the night light, turning off the night light, turning on / off the night light, setting the night light color, playing a specified alarm sound, and flashing the night light, as shown in Figure 4-6. Figure 4-7 As shown, when a user's touch operation to set the night light color is detected, the color setting page of the gateway light is displayed, and the user can adjust the selected light color in the color setting page.
[0091] S5, the terminal device sends the corresponding configuration data formed by the configuration instructions of the nested scene and / or the action setting instructions of the target smart home device obtained according to the configuration request of the target scene to the server; after the user completes the selection of the configuration parameters of the current target scene to be configured, he can click the completion button, and the terminal device sends the configuration data corresponding to the configuration request of the target scene to the server according to the completion instruction. Figure 4-8 As shown, the terminal device generates configuration data corresponding to the target scenario based on the user's aforementioned operations and sends it to the server.
[0092] On the other hand, please refer to Figure 6 , and also provides a smart home device scene configuration method, which can be applied to Figure 1 The server shown includes:
[0093] S201, receiving configuration data corresponding to a configuration request of a target scene sent by a terminal device; wherein the configuration data includes a configuration instruction of a nested scene corresponding to the configuration request, and / or an action setting instruction of a target smart home device;
[0094] S203, generating a corresponding target scene identifier according to the configuration data, forming scene execution data corresponding to the target scene, and sending the scene execution data to a gateway corresponding to the target scene, wherein the scene execution data includes a target scene identifier, a nested scene identifier and / or execution action data of a target smart home device.
[0095] The target scene refers to the scene that the user currently wants to create. The target scene identifier refers to an identifier that can uniquely characterize the identity of the target scene, such as a name, code, etc. The server and the terminal device communicate and interact with each other, and the server receives the configuration data corresponding to the configuration request of the target scene sent by the terminal device, generates the corresponding target scene identifier according to the configuration request related information of the target scene carried in the configuration data, and forms the scene execution data corresponding to the target scene according to the configuration instructions of the nested scene and / or the action setting instructions of the target smart home device obtained based on the target scene configuration request in the configuration data, and sends the scene execution data to the gateway corresponding to the target scene, and the scene execution data includes the target scene identifier, the nested scene identifier and / or the execution action data of the target smart home device. Optionally, the target scene identifier can be represented by a scene ID, such as sceneId_A, sceneId_B, etc.
[0096] In the above embodiments of the present application, the user can create a target scene by selecting a known scene for nesting to complete the configuration, or by directly setting the action of the target smart home device to complete the configuration. By supporting the nesting of known scenes to configure the target scene, the configuration steps of the target scene can be simplified, and the configuration data of the target scene containing the nested scene only needs to store the identifier of the nested scene, and there is no need to repeatedly store the action data contained in the nested scene, so that the configuration method is flexible, the configuration difficulty is reduced, and the effect of saving gateway storage can be achieved.
[0097] See also Figure 7 , is a flowchart of a method for configuring a smart home device scene in an optional specific example of the present application, comprising the following steps:
[0098] S11, the client of the terminal device selects to create scene A;
[0099] S12, the terminal device sends the configuration data of scene A to the server; an optional example of the configuration data may be {[did1,resourceId1,did2,resourceId2,…]}, where did represents the unique identifier of the smart home device, and resourceId refers to the point value representing the execution action corresponding to the smart home device, such as turning off lamp 1 and socket 1.
[0100] S13, the server generates a scene ID (sceneId_A) and sends the scene ID and corresponding configuration data to the gateway;
[0101] S14, the gateway associates and stores the scenario ID and the data to be executed obtained according to the configuration data;
[0102] S15, the client of the terminal device chooses to create scene B, and scene B embeds scene A and other execution actions;
[0103] S16, the server receives the configuration data of scene B, generates a scene ID (sceneId_B), and sends sceneId_B and sceneId_A associated with scene B and execution action data to the gateway; an optional example of the configuration data may be {sceneId_A, [did3, resourceId2…]}.
[0104] S17, the gateway associates sceneId_B, sceneId_A and the executed action data for storage.
[0105] In the above embodiments, the scene creation of the smart home device supports scene nesting, which can effectively improve the efficiency and flexibility of configuration.
[0106] On the other hand, please refer to Figure 8 , provides a smart home device control method, which can be applied to Figure 1 The gateway shown includes:
[0107] S301, obtaining a target scene execution instruction, and determining scene execution data corresponding to the target scene according to the target scene execution instruction.
[0108] The user can issue a target scene execution instruction through the client on the terminal device for controlling the smart home device. The gateway receives the target scene execution instruction issued by the terminal device and controls the associated smart home device to perform the corresponding action according to the corresponding scene execution data stored when the target scene was created first.
[0109] S303: When the scene execution data includes a nested scene identifier, determine the scene execution data corresponding to the nested scene according to the nested scene identifier.
[0110] A nested scene refers to any other scene that has been created before the current target scene is created. When the current target scene to be executed includes a nested scene, the corresponding scene execution data stored when the target scene is created also includes a nested scene identifier, and the scene execution data corresponding to the nested scene is called according to the identifier of the nested scene. It should be noted that the scene execution data corresponding to the nested scene may include execution action data of one or more smart home devices. Optionally, the scene execution data corresponding to the nested scene may also include sub-nested scenes. When the nested scene further includes sub-nested scenes, the execution action data of one or more smart home devices contained in the sub-nested scenes are further determined, and this process is repeated until the execution action data of all associated smart home devices contained in the scene execution data of the current target scene to be executed are obtained.
[0111] S305, when the scene execution data is the execution action data of the smart home device, the execution action data is sent to the corresponding smart home device for corresponding execution.
[0112] In the case where the scene execution data is the execution action data of the smart home device, the execution action data of all associated smart home devices contained in the scene execution data of the target scene to be executed can be directly obtained. After the gateway obtains the scene execution data corresponding to the target scene, it executes corresponding actions according to the associated smart home devices according to the scene execution data to achieve switching to the target scene.
[0113] In the above embodiment, when the user uses the terminal device to configure the target scene, the server forms scene execution data based on the configuration request and configuration data of the terminal device and stores it in the gateway. When the target scene is controlled, the gateway obtains the scene execution instruction sent by the terminal device, and determines the scene execution data corresponding to the target scene. When the scene execution data includes a nested scene identifier, the scene execution data corresponding to the nested scene is determined according to the nested scene identifier. When the scene execution data is the execution action data of the smart home device, the execution action data is sent to the corresponding smart home device for corresponding execution. In this way, through the mutual nesting of scenes, the scene execution data of the target scene containing the nested scene does not need to repeatedly store the action data contained in the nested scene, which not only saves gateway storage consumption but also makes the scene execution more intuitive.
[0114] In some embodiments, before obtaining the target scene execution instruction, the method further includes:
[0115] The scene execution data of the target scene is obtained, and a mapping relationship between the target scene identifier and the corresponding nested scene identifier and / or the execution action data of the target smart home device is formed and stored.
[0116] A scene identifier refers to an identifier that can uniquely represent the identity of a scene, such as a name, code, etc. Since the scene identifier is unique, when the scene is created, the terminal device sends the configuration data corresponding to the configuration request of the target scene to the server according to the user's configuration operation. The server generates a target scene identifier according to the configuration request, and generates scene execution data corresponding to the target scene identifier according to the configuration data, and sends the target scene identifier and the corresponding scene execution data to the gateway. When the gateway receives the configuration request of the target scene, it uses a dictionary (map) to form a mapping relationship for storage, in which the target scene identifier is used as the key and the scene execution data is used as the value to support fast and insertion. When the target scene contains a nested scene, the scene execution data contains the corresponding nested scene identifier as the value.
[0117] When the gateway receives a scene execution instruction, it only needs to find the corresponding value in the dictionary according to the scene identifier of the target scene. If it includes an execution action, the action is sent to the smart home device for execution. If it is a nested scene identifier, continue to find the corresponding value in the dictionary data, and repeat this cycle until there is no nested scene identifier.
[0118] By forming and storing a mapping relationship between the target scene identifier and the corresponding nested scene identifier and / or the execution action data of the target smart home device, it is convenient for the gateway to search quickly and accurately when executing the scene command, thereby improving the execution efficiency.
[0119] On the other hand, please refer to Fig. 9 , provides a smart home device control method, which can be applied to Figure 1 The IoT system shown includes:
[0120] Step S401, the terminal device receives an execution request of the target scenario and sends it to the server;
[0121] Step S403, after receiving the execution request, the server sends a target scenario execution instruction to a gateway corresponding to the target scenario;
[0122] Step S405, the gateway determines the scene execution data corresponding to the target scene according to the target scene execution instruction. When the scene execution data includes a nested scene identifier, the gateway determines the scene execution data corresponding to the nested scene according to the nested scene identifier; when the scene execution data is execution action data of a smart home device, the execution action data is sent to the corresponding smart home device for corresponding execution.
[0123] The user can issue a target scene execution instruction through the client for controlling smart home devices on the terminal device. For example, the scene control page of the client may include a scene control button corresponding to the created scene, and the user can click the scene control button of the corresponding scene to be executed to send the corresponding execution request. The server forwards the scene execution instruction to the corresponding gateway, which refers to the gateway that can control the corresponding smart home device to perform actions.
[0124] Based on the mapping relationship between the target scene identifier stored when the target scene is created and the corresponding nested scene identifier and / or the execution action data of the target smart home device, when the gateway obtains the target scene execution request, when the current target scene to be executed includes a nested scene, the corresponding scene execution data stored when the target scene is created also includes the nested scene identifier, and the scene execution data corresponding to the nested scene is called according to the identifier of the nested scene; when the scene execution data is the execution action data of the smart home device, the execution action data of all associated smart home devices contained in the scene execution data of the current target scene to be executed can be directly obtained.
[0125] In some embodiments, the smart home device control method further includes:
[0126] S4011, the terminal device receives a configuration request for a target scene and configuration data corresponding to the configuration request, and sends the configuration data to a server, where the configuration data includes a configuration instruction for a nested scene corresponding to the configuration request and / or an action setting instruction for a target smart home device;
[0127] S4012, the server forms scenario execution data corresponding to the target scenario according to the configuration data and sends it to a gateway corresponding to the target scenario;
[0128] S4013: The gateway obtains and stores the scenario execution data corresponding to the target scenario.
[0129] The user can create and configure the target scene through the client on the terminal device. The terminal device sends the configuration request of the target scene and the configuration data corresponding to the configuration request to the server according to the user's operation. The server receives the configuration data sent by the terminal device, generates the target scene identifier and scene execution data and sends them to the gateway, which is associated and stored to complete the creation of the target scene. When the target scene is subsequently controlled, the gateway can quickly call the corresponding scene execution data according to the target scene execution request and the associated stored target scene identifier and scene execution data to complete the action execution switching of the smart home devices included in the target scene.
[0130] In some embodiments, S4013, the gateway obtains and stores the scenario execution data corresponding to the target scenario, including:
[0131] The gateway obtains scene execution data corresponding to the target scene, forms a mapping relationship between the target scene identifier and the corresponding nested scene identifier and / or the execution action data of the target smart home device, and stores the mapping relationship.
[0132] Since the scene identifier is unique, when the scene is created, the terminal device sends the configuration data corresponding to the configuration request of the target scene to the server according to the user's configuration operation. The server generates the target scene identifier according to the configuration request, and generates the scene execution data corresponding to the target scene identifier according to the configuration data, and sends the target scene identifier and the corresponding scene execution data to the gateway. When the gateway receives the configuration request of the target scene, it uses a dictionary (map) to form a mapping relationship for storage, in which the target scene identifier is used as the key and the scene execution data is used as the value to support fast insertion. When the target scene contains a nested scene, the scene execution data contains the corresponding nested scene identifier as the value.
[0133] When the gateway receives a scene execution instruction, it only needs to find the corresponding value in the dictionary according to the scene identifier of the target scene. If it includes an execution action, the action is sent to the smart home device for execution. If it is a nested scene identifier, continue to find the corresponding value in the dictionary data, and repeat this cycle until there is no nested scene identifier.
[0134] By forming and storing a mapping relationship between the target scene identifier and the corresponding nested scene identifier and / or the execution action data of the target smart home device, it is convenient for the gateway to search quickly and accurately when executing the scene command, thereby improving the execution efficiency.
[0135] See also Fig.10 , is a flowchart of a smart home device control method in an optional specific example of the present application, comprising the following steps:
[0136] S21, click the execution scene B button on the terminal device, and the terminal device sends sceneId_B to the server;
[0137] S22, after receiving the execution request of scene B, the server sends the scene execution command of sceneId_B to the gateway;
[0138] S23, after receiving the scene execution command of sceneId_B, the gateway searches for scene execution data corresponding to sceneId_B in the stored database; scene B includes nested scene A, and an optional example of the scene execution data is {sceneId_A, [did3, resourceId2...]};
[0139] S24, the gateway further determines the scene execution data corresponding to sceneId_A according to the scene identifier sceneId_A of the nested scene A; scene A does not include a nested scene, and an optional example of the scene execution data corresponding to scene A is {[did1, resourceId1, did2, resourceId2, ...]};
[0140] S25, after the gateway determines the execution action data for all smart home devices included in sceneId_B according to the scene execution data corresponding to sceneId_B, it controls the corresponding smart home devices to perform the corresponding actions. Taking the above example, the optional examples of the execution action data for all smart home devices included in sceneId_B are [did1, resourceId1, did2, resourceId2, did3, resourceId2…].
[0141] In the above embodiment, the scene of the smart home device supports the nesting of scenes, and the storage of scene execution data by the gateway can avoid repeated storage of action data in different scenes, effectively saving storage resources.
[0142] See also Fig.11 On the other hand, the present application provides a smart home device scene configuration device. In an exemplary embodiment, the smart home device scene configuration device can be implemented using a terminal device. The smart home device scene configuration device includes a configuration request module 11, which is used to obtain a configuration request of a target scene; a configuration data module 13, which is used to obtain a configuration instruction of a nested scene corresponding to the configuration request, and / or an action setting instruction of a target smart home device to form configuration data; a sending module 15, which is used to send the configuration data to a server, and the server forms scene execution data corresponding to the target scene according to the configuration data, and sends the scene execution data to a gateway corresponding to the target scene.
[0143] Optionally, the configuration data module 13 is specifically used to display the configuration page of the target scene according to the configuration request; receive the configuration instructions of the nested scene and / or the action setting instructions of the target smart home device based on the configuration page, and form configuration data according to the configuration instructions of the nested scene and / or the action setting instructions of the target smart home device.
[0144] It should be noted that: the smart home device scene configuration device provided in the above embodiment only uses the division of the above program modules as an example to illustrate the process of implementing the configuration of the smart home device scene. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the method steps described above. In addition, the smart home device scene configuration device provided in the above embodiment and the smart home device scene configuration method embodiment applied to the terminal device side belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0145] See also Fig.12On the other hand, the present application provides a smart home device scene configuration device. In an exemplary embodiment, the smart home device scene configuration device can be implemented by a server. The smart home device scene configuration device includes: a receiving module 21, which is used to receive configuration data corresponding to a configuration request of a target scene sent by a terminal device; wherein the configuration data includes configuration instructions of a nested scene corresponding to the configuration request, and / or an action setting instruction of a target smart home device; a scene configuration module 23, which is used to generate a corresponding target scene identifier according to the configuration data, form scene execution data corresponding to the target scene, and send the scene execution data to a gateway corresponding to the target scene, wherein the scene execution data includes a target scene identifier, a nested scene identifier and / or execution action data of a target smart home device.
[0146] It should be noted that: the smart home device scene configuration device provided in the above embodiment only uses the division of the above program modules as an example to illustrate the process of implementing the configuration of the smart home device scene. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the method steps described above. In addition, the smart home device scene configuration device provided in the above embodiment and the smart home device scene configuration method embodiment applied to the server side belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0147] See also Fig.13 On the other hand, the present application provides a smart home device control device. In an exemplary embodiment, the smart home device control device can be implemented by a gateway. The smart home device control device includes: an acquisition module 31, which is used to acquire a target scene execution instruction and determine the scene execution data corresponding to the target scene according to the target scene execution instruction; a nesting module 33, which is used to determine the scene execution data corresponding to the nested scene according to the nested scene identifier when the scene execution data includes a nested scene identifier; an execution module 35, which is used to send the execution action data to the corresponding smart home device for corresponding execution when the scene execution data is the execution action data of the smart home device.
[0148] Optionally, the acquisition module 31 is further used to acquire scene execution data of the target scene, form a mapping relationship between the target scene identifier and the corresponding nested scene identifier and / or the execution action data of the target smart home device, and store it.
[0149] It should be noted that: the smart home device control device provided in the above embodiment only uses the division of the above program modules as an example to illustrate the process of realizing the control of smart home devices. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the method steps described above. In addition, the smart home device control device provided in the above embodiment and the smart home device control method embodiment applied to the gateway side belong to the same concept. The specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0150] Another aspect of the present application provides a smart device, see Fig.14 , is an optional hardware structure diagram of the smart device provided in the embodiment of the present application, the smart device includes a processor 111 and a memory 112, the memory 112 is used to store various types of data to support the operation of the smart home device scene configuration device or the smart home device control device, and stores a computer program for implementing the smart home device scene configuration method or the smart home device control method provided in any embodiment of the present application. When the computer program is executed by the processor, the steps of the smart home device scene configuration method or the smart home device control method provided in any embodiment of the present application are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here. The smart devices can be respectively Figure 1 The terminal device, server and gateway shown.
[0151] See also Fig.15 , is an optional hardware structure block diagram of the smart device provided in the embodiment of the present application. Fig.15As shown, smart devices may have relatively large differences due to different configurations or performances, and may include one or more processors (Processing Units, CPU) 1110 (the processor 1110 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1130 for storing data, and one or more storage media 1120 (such as one or more mass storage devices) for storing application programs 1123 or data 1122. Among them, the memory 1130 and the storage medium 1120 can be short-term storage or persistent storage. The program stored in the storage medium 1120 may include one or more modules, each of which may include a series of instruction operations in the scene control panel. Furthermore, the processor 1110 can be configured to communicate with the storage medium 1120 to execute a series of instruction operations in the storage medium 1120 on the smart device. The smart device may also include one or more power supplies 1160, one or more wired or wireless network interfaces 1150, one or more input and output interfaces 1140, and / or one or more operating systems 1121, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, FreeBSD TM, etc.
[0152] The input / output interface 1140 may be used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the smart device. In one example, the input / output interface 1140 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the input / output interface 1140 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0153] It can be understood by those skilled in the art that Fig.15 The structure shown is for illustration only and does not limit the structure of the scene control panel. Fig.15 More or fewer components as shown, or with Fig.15 Different configurations shown.
[0154] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned working mode configuration method and switch control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium, such as read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk, etc.
[0155] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0156] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0157] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for configuring a smart home device scene, applied to a terminal device, characterized in that: include: Get the configuration request of the target scene; Obtaining a configuration instruction for merging multiple nested scenes corresponding to the configuration request, or obtaining a configuration instruction for a nested scene corresponding to the configuration request and an action setting instruction for a target smart home device, to form configuration data, wherein the nested scene includes any scene that has been created before the current target scene is created; The configuration data is sent to a server, which forms scenario execution data corresponding to the target scenario based on the configuration data, and sends the scenario execution data to a gateway corresponding to the target scenario.
2. The method for configuring a smart home device scene according to claim 1, wherein: The obtaining of the configuration instruction for merging a plurality of nested scenes corresponding to the configuration request, or obtaining the configuration instruction for the nested scenes corresponding to the configuration request and the action setting instruction for the target smart home device to form configuration data, includes: Displaying a configuration page of the target scenario according to the configuration request; Based on the configuration page, a configuration instruction of the nested scene and an action setting instruction of the target smart home device are received, and configuration data is formed according to the configuration instruction of the nested scene and the action setting instruction of the target smart home device.
3. A method for configuring a smart home device scene, applied to a server, characterized in that: include: Receiving configuration data corresponding to a configuration request of a target scene sent by a terminal device; wherein the configuration data includes a configuration instruction for merging multiple nested scenes corresponding to the configuration request, or a configuration instruction for a nested scene corresponding to the configuration request and an action setting instruction for a target smart home device, wherein the nested scene includes any scene that has been created before the current target scene is created; Generate a corresponding target scene identifier according to the configuration data, form scene execution data corresponding to the target scene, and send the scene execution data to the gateway corresponding to the target scene. The scene execution data includes the target scene identifier, the nested scene identifier and the execution action data of the target smart home device.
4. A smart home device control method, applied to a gateway, characterized in that: include: Obtain a target scene execution instruction, and determine scene execution data corresponding to the target scene according to the target scene execution instruction, wherein the scene execution data is formed according to configuration data, and the configuration data includes a configuration instruction corresponding to the configuration request for merging multiple nested scenes, or a configuration instruction for the nested scene corresponding to the configuration request and an action setting instruction for the target smart home device; In the case where the scene execution data includes a nested scene identifier, determining the scene execution data corresponding to the nested scene according to the nested scene identifier, wherein the nested scene includes any scene that has been created before the current target scene is created; In the case where the scene execution data is execution action data of a smart home device, the execution action data is sent to the corresponding smart home device for corresponding execution.
5. The smart home device control method according to claim 4, characterized in that: Before obtaining the target scene execution instruction, the method further includes: The scene execution data of the target scene is obtained, and a mapping relationship between the target scene identifier and the corresponding nested scene identifier and the execution action data of the target smart home device is formed and stored.
6. A method for controlling smart home devices, characterized in that: include: The terminal device receives the execution request of the target scenario and sends it to the server; After receiving the execution request, the server sends a target scenario execution instruction to a gateway corresponding to the target scenario; The gateway determines the scene execution data corresponding to the target scene according to the target scene execution instruction, and when the scene execution data includes a nested scene identifier, determines the scene execution data corresponding to the nested scene according to the nested scene identifier; In the case where the scene execution data is execution action data of a smart home device, the execution action data is sent to the corresponding smart home device for corresponding execution, and the nested scene refers to any scene that has been created before the current target scene is created, wherein the scene execution data is formed according to configuration data, and the configuration data includes a configuration instruction for merging multiple nested scenes corresponding to the configuration request, or a configuration instruction for the nested scene corresponding to the configuration request and an action setting instruction for the target smart home device.
7. The smart home device control method according to claim 6, characterized in that: Also includes: The terminal device receives a configuration request of a target scenario and configuration data corresponding to the configuration request, and sends the configuration data to a server; The server forms scenario execution data corresponding to the target scenario according to the configuration data and sends the data to the gateway corresponding to the target scenario; The gateway obtains and stores the scenario execution data corresponding to the target scenario.
8. The smart home device control method according to claim 7, characterized in that: The gateway obtains and stores the scene execution data corresponding to the target scene, including: The gateway obtains scene execution data corresponding to the target scene, forms a mapping relationship between the target scene identifier and the corresponding nested scene identifier and the execution action data of the target smart home device, and stores the mapping relationship.
9. A smart home device scene configuration device, characterized in that: include: Configuration request module, used to obtain the configuration request of the target scene; A configuration data module, used to obtain a configuration instruction for merging multiple nested scenes corresponding to the configuration request, or a configuration instruction for a nested scene corresponding to the configuration request and an action setting instruction for a target smart home device, to form configuration data, wherein the nested scene includes any scene that has been created before the current target scene is created; The sending module is used to send the configuration data to the server, and the server forms the scene execution data corresponding to the target scene according to the configuration data, and sends the scene execution data to the gateway corresponding to the target scene.
10. A smart home device scene configuration device, characterized in that: include: A receiving module, configured to receive a configuration request for a target scene and corresponding configuration data sent by a terminal device; wherein the configuration data includes a configuration instruction for merging multiple nested scenes corresponding to the configuration request, or a configuration instruction for a nested scene corresponding to the configuration request and an action setting instruction for a target smart home device, wherein the nested scene includes any scene that has been created before the current target scene is created; A scene configuration module is used to generate a corresponding target scene identifier according to the configuration data, form scene execution data corresponding to the target scene, and send the scene execution data to a gateway corresponding to the target scene. The scene execution data includes a target scene identifier, a nested scene identifier and execution action data of a target smart home device.
11. A smart home equipment control device, characterized in that: include: an acquisition module, configured to acquire a target scene execution instruction, and determine scene execution data corresponding to the target scene according to the target scene execution instruction, wherein the scene execution data is formed according to configuration data, and the configuration data includes a configuration instruction for merging multiple nested scenes corresponding to the configuration request, or a configuration instruction for the nested scene corresponding to the configuration request and an action setting instruction for a target smart home device; A nesting module, for determining, when the scene execution data includes a nested scene identifier, scene execution data corresponding to a nested scene according to the nested scene identifier, wherein the nested scene includes any scene that has been created before the current target scene is created; The execution module is used to send the execution action data to the corresponding smart home device for corresponding execution when the scene execution data is the execution action data of the smart home device.
12. A smart device, characterized in that: It includes a processor, a memory, and a computer program stored in the memory and executable by the processor, and when the computer program is executed by the processor, it implements the smart home device scene configuration method as described in any one of claims 1 to 3, or the smart home device control method as described in any one of claims 4 to 5.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for configuring a smart home device scene as described in any one of claims 1 to 3, or the method for controlling a smart home device as described in any one of claims 4 to 5 is implemented.
