Scenario triggered method and system

By receiving and parsing control commands, generating target addresses to trigger corresponding scenarios, and establishing a method and system, this solves the problem that smart home appliance apps cannot be extended to configure smart home scenarios throughout the entire house, thus achieving unified management and complex scenario expansion for smart homes.

CN116700089BActive Publication Date: 2026-05-15HANGZHOU SHENDU TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU SHENDU TECH CO LTD
Filing Date
2023-06-16
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

In existing technologies, the independent setting of scene modes by smart home appliance apps cannot be extended to the scene configuration of the whole smart home, resulting in the inability to achieve unified scene management.

Method used

This invention provides a method and system for triggering scenarios. By receiving control commands, parsing whether the commands contain a preset address, and triggering the corresponding scenario based on the preset address, or generating a target address and triggering the corresponding scenario, it supports configuration requests from access devices, the cloud, and third-party clients, thereby achieving unified organization of scenarios and expansion of complex modes.

Benefits of technology

It enables unified configuration and management of smart home scenarios throughout the house, supports the expansion of complex scenarios, and can flexibly trigger scenarios according to different devices and needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116700089B_ABST
    Figure CN116700089B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a scene triggering method and system. The scene triggering method comprises the following steps: receiving a control instruction; analyzing the control instruction, judging whether the control instruction contains a preset address; in the case that the judgment result is yes, triggering a corresponding scene according to the preset address; in the case that the judgment result is no, generating a target address according to the control instruction, and triggering a corresponding scene according to the target address. The scheme provided by the application can unify the organization structure of the scene, and support the technical effect of expanding the complex mode scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet of Things (IoT) technology applications, and in particular to a method and system for triggering a scenario (S). Background Technology

[0002] Among the widespread applications of the Internet of Things (IoT), smart homes have the most common application scenarios. Based on IoT technology, smart home appliances or smart ports in a user's home are combined and their functions are coordinated through the configuration of scene functions to maximize the satisfaction of the user's real-time requirements.

[0003] However, in the configuration of scenarios in related technologies, it is common to control the functions of each smart home appliance independently in different scenarios through the control APP of each smart home appliance.

[0004] There is currently no effective solution to the problem that existing technologies can only set scene modes independently through the smart appliance's app, and cannot be extended to scene configuration for the whole smart home. Summary of the Invention

[0005] To address the aforementioned technical problems, embodiments of the present invention aim to provide a method and system for scene triggering, thereby at least resolving the issue that existing technologies cannot be extended to scene configuration for whole-house smart homes because scene modes can only be set independently through the app of smart home appliances.

[0006] The technical solution of this invention is implemented as follows:

[0007] This invention provides a method for triggering a scene, comprising: receiving a control command; parsing the control command and determining whether the control command contains a preset address; if the determination result is yes, triggering a corresponding scene based on the preset address; if the determination result is no, generating a target address based on the control command and triggering a corresponding scene based on the target address.

[0008] Optionally, control commands may include: action signals triggered by at least one access device, commands sent from the cloud, or commands sent from a third-party client.

[0009] Optionally, parsing the control command includes: determining whether a specified address exists in the control command; if the determination result is yes, triggering the corresponding scene based on the specified address; if the determination result is no, determining whether the control command contains a preset address; wherein, the specified address includes: a scene identifier in the second mapping information of the pre-stored mapping information, the mapping information includes: first mapping information and second mapping information, the first mapping information includes the MAC address of at least one access device and the scene corresponding to the MAC address; the second mapping information includes: a scene identifier and the scene corresponding to the scene identifier.

[0010] Further, optionally, generating the target address based on the control instruction includes: generating the target address based on the address and the value when the control instruction includes an address, a type, and a value.

[0011] Optionally, triggering the corresponding scenario based on the target address includes: determining whether a scenario corresponding to the target address exists via the cloud; if the determination result is yes, triggering the scenario corresponding to the target address; if the determination result is no, ignoring the control command.

[0012] Optionally, before receiving control commands, the method further includes: receiving a configuration request from at least one access device, the cloud, or a third-party client; configuring a corresponding scenario based on the MAC address of at least one access device when the configuration request is sent by at least one access device; configuring a corresponding scenario based on the configuration information in the configuration request when the configuration request is sent by the cloud; and configuring a corresponding scenario based on the knx address in the configuration request when the configuration request is sent by a third-party client.

[0013] Further, optionally, configuring the corresponding scenario based on the configuration information in the configuration request includes: encapsulating the configuration information in the configuration request through a JSON message; configuring the scenario based on the configuration information; wherein the JSON message includes: scenario identifier, MAC address of the access device, scenario information, daily start time of the scenario, daily last time of the scenario, and weekly start time of the scenario.

[0014] Optionally, the scene information includes: sub-scene identifier, scene trigger type, corresponding execution action, control address, data type of control address, trigger value, and delayed execution time.

[0015] This invention provides a scene-triggered system, comprising: a smart host, a cloud, a third-party client, and at least one access device. The smart host is connected to the cloud, the third-party client, and at least one access device, respectively, and is used to receive control commands. The smart host is also used to parse the control commands and determine whether the control commands contain a preset address. If the determination result is yes, the corresponding scene is triggered according to the preset address. If the determination result is no, a target address is generated according to the control commands, and the corresponding scene is triggered according to the target address.

[0016] Optionally, the smart host is also used to receive a configuration request from at least one access device, the cloud, or a third-party client before receiving control commands; if the configuration request is sent by at least one access device, configure the corresponding scenario based on the MAC address of at least one access device; if the configuration request is sent by the cloud, configure the corresponding scenario based on the configuration information in the configuration request; if the configuration request is sent by a third-party client, configure the corresponding scenario based on the knx address in the configuration request.

[0017] This invention provides a method and system for triggering a scene. The method involves receiving a control command; parsing the control command; determining whether the control command contains a preset address; if the determination result is yes, triggering the corresponding scene based on the preset address; if the determination result is no, generating a target address based on the control command, and triggering the corresponding scene based on the target address. This method unifies the scene organization structure and supports the technical effect of expanding complex mode scenes. Attached Figure Description

[0018] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0019] Figure 1 A schematic diagram of a scene-triggered system provided in an embodiment of the present invention;

[0020] Figure 2 This is a schematic diagram of scene configuration in a scene-triggered system provided by an embodiment of the present invention;

[0021] Figure 3 A schematic diagram of scene triggering in a scene-triggered system provided by an embodiment of the present invention;

[0022] Figure 4 This is a flowchart illustrating a scene triggering method provided in an embodiment of the present invention. Detailed Implementation

[0023] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish different objects, rather than to limit a specific order.

[0025] It should also be noted that the various embodiments of the present invention described below can be executed individually or in combination with each other, and the embodiments of the present invention do not impose specific limitations in this regard.

[0026] This invention provides a scene-triggered system. Figure 1 This is a schematic diagram of a scene-triggered system provided in an embodiment of the present invention; as shown below. Figure 1 As shown, the scenario-triggered system provided in this application embodiment includes:

[0027] The system includes a smart host 12, a cloud platform 14, a third-party client 16, and at least one access device 18. The smart host 12 is connected to the cloud platform 14, the third-party client 16, and at least one access device 18, respectively, and is used to receive control commands. The smart host 12 is also used to parse the control commands and determine whether the control commands contain a preset address. If the determination result is yes, the corresponding scene is triggered according to the preset address. If the determination result is no, a target address is generated according to the control commands, and the corresponding scene is triggered according to the target address.

[0028] Optionally, the smart host 12 is also configured to receive a configuration request from at least one access device 18, the cloud 14, or a third-party client 16 before receiving control commands; if the configuration request is sent by at least one access device 18, configure the corresponding scenario based on the MAC address of at least one access device 18; if the configuration request is sent by the cloud 14, configure the corresponding scenario based on the configuration information in the configuration request; if the configuration request is sent by the third-party client 16, configure the corresponding scenario based on the knx address in the configuration request.

[0029] In summary, the scene-triggered system provided in this application embodiment includes two stages in the scene configuration process: Stage 1: Scene configuration process; Stage 2: Scene triggering process; as detailed below:

[0030] Phase 1: Scenario Configuration Process;

[0031] The scenario-triggered system provided in this application embodiment can be implemented based on knx (an abbreviation of Konnex). Each access device connected to the smart host is assigned a corresponding MAC address, which is 4 bytes in size. The 4 bytes include: 2 bytes for device type, 1 byte for device number, and 1 byte for empty space. Based on this MAC address, the access device can be located and searched.

[0032] The scenario-triggered system provided in this application embodiment also includes both physical buttons and virtual buttons;

[0033] After the actual button is pressed, a control command is generated based on the MAC address of the access device, and the smart host 12 triggers the corresponding scene according to the MAC address in the control command;

[0034] The virtual button is not configured with a MAC address, but with a knx address, where the knx address is 2 bytes long. The virtual MAC address is formed by the knx address and the obtained value (4 bytes). When the virtual button is triggered, the smart host 12 obtains the virtual MAC address based on the control command generated by the virtual button trigger, and triggers the corresponding scene based on the virtual MAC address.

[0035] Based on the above, Figure 2 This is a schematic diagram of scene configuration in a scene-triggered system provided by an embodiment of the present invention; as shown below. Figure 2 As shown, the scenario configuration process of the scenario-triggered system provided in this application embodiment is as follows:

[0036] The scenario-triggered system provided in this application embodiment has two scenarios: Scenario Configuration Mode 1: Cloud Configuration; Scenario Configuration Mode 2: Local Configuration of Smart Host 12; wherein...

[0037] Mode 1: Cloud configuration includes:

[0038] The cloud platform 14 and the intelligent host 12 communicate via JSON messages, triggering the intelligent host 12 to initiate scene configuration. The configuration of corresponding scenes is based on the triggering actions of the access devices 18 connected to the intelligent host; specifically, the configuration of scenes is based on the MAC addresses of the access devices. The MAC addresses of the access devices and their corresponding scenes are stored on the intelligent host 12. The scene configuration includes: the actions to be performed by the access devices in a specific scene, the scene triggering conditions, and the scene corresponding to each access device.

[0039] Mode 2: The local configuration of Smart Host 12 includes:

[0040] Use a fixed KNX address for control, for example, address: 15 / 7 / 253. Receiving 15 / 7 / 253 indicates that it is controlling the local scene.

[0041] The JSON message format in the scenario-triggered system provided in this application embodiment is as follows:

[0042]

[0043]

[0044] The JSON message includes: tabs, mac, id, start, end, and week; among them,

[0045] Tabs include: id, function, and cmds, among which,

[0046] The id is a sub-scene identifier. For example, in a multi-button panel (the access device in this application embodiment), each button can be set with a corresponding scene, and the id can indicate which button in the multi-button panel is currently being triggered.

[0047] The function is the trigger type of the scene, such as when it is pressed, when it is toggleed, when it is triggered by an alarm, when it is restored by an alarm, etc. The scene triggering system provided in this application embodiment can be extended to complex scenes based on the function.

[0048] cmds contains scene information, including: addr, type, val, and delay; addr is the control address; type is the data type of the address; val is the trigger value; delay indicates the number of milliseconds to delay execution, and delayed scene actions can be implemented by setting delay;

[0049] MAC is the access device (trigger device) associated with the scene. When MAC is 0, it means there is no trigger device, that is, the smart host is a local scene.

[0050] `id` is the scene identifier for each scene;

[0051] "start" refers to the time when the scene begins to take effect each day, which is the number of minutes starting from 0:00.

[0052] `end` is the last time the scene takes effect each day, the number of minutes from 0:00.

[0053] "week" refers to the number of days in a week that are in effect. For example, "week":"1,2,3" can be represented as Monday, Tuesday, and Wednesday of each week.

[0054] Phase Two: Scene Triggering Process

[0055] Based on the scenario configuration process in Phase One, the scenario triggering process in Phase Two is as follows:

[0056] It should be noted that in the configured scenario of this application embodiment, the intelligent host 12 stores two types of mapping relationships, denoted as map1 and map2, wherein,

[0057] atomichashmap<mac,scene> map1 represents the Mac and scene configured in the cloud;

[0058] atomichashmap<id,scene> map2 represents the locally configured scene ID and scene;

[0059] Specifically, scenarios with a non-zero MAC are stored in map1, while scenarios with a MAC of 0 are stored in map2 according to the scenario ID.

[0060] Figure 3 This is a schematic diagram of scene triggering in a scene-triggered system provided by an embodiment of the present invention; for example... Figure 3 As shown, for scene triggering on the smart host side, the smart host can receive control commands sent from at least one access device, cloud or third-party client; the smart host parses the control command and determines whether the control command contains a preset address; if the determination result is yes, the corresponding scene is triggered according to the preset address; if the determination result is no, a target address is generated according to the control command, and the corresponding scene is triggered according to the target address.

[0061] The control command can be a command containing a knx address. The intelligent host determines whether the knx in the control command is a preset address by parsing the control command. In this embodiment, the preset address is 15 / 7 / 253 as an example. If the knx in the control command is 15 / 7 / 253, the scene corresponding to 15 / 7 / 253 is executed. If the knx in the control command is not 15 / 7 / 253, the knx address (2 bytes) and value (4 bytes) are concatenated to obtain a 6-byte MAC address. The MAC address is then used to query map1 to determine whether a corresponding scene exists. If it exists, the scene corresponding to the MAC address is triggered; otherwise, it is ignored.

[0062] It should be noted that, for the case where the MAC address is not 0, after receiving the information of the access device with the corresponding MAC address (i.e., the control command in the embodiment of this application), the system first finds the corresponding scenario based on the MAC address, then matches the specific sub-scenario based on the id in the control command in the embodiment of this application, and then executes the specific cmds based on the function type.

[0063] When the knx in the control command is 15 / 7 / 253, since there is no MAC address in the local configuration in stage one, a fixed knx address is used to sort the scenes according to scene ID, defined as 0123, ... n from smallest to largest.

[0064] When the smart host receives 15 / 7 / 253, it executes the corresponding scenario based on the value corresponding to 15 / 7 / 253.

[0065] Based on the above, the scenario triggering system provided in this application defines a unified scenario organization structure and supports the expansion of complex mode scenarios. It supports scenario linkage of real devices and also supports third-party scenario configuration through virtual MAC. Scenarios can be triggered directly through the knx address.

[0066] In this application embodiment, the system for triggering the scene can be a KNX system. On the smart host side, when a scene is triggered, both the received and sent messages can be in KNX format, i.e., a KNX address and its corresponding value. In terms of scene configuration, since the smart host uses 15 / 7 / 253 as a preset address when configuring locally, if it receives 15 / 7 / 253, it is considered a local configuration / local scene. That is, 15 / 7 / 253 represents that all local scenes can be triggered, and the specific local scene to be triggered can be determined by the corresponding value when 15 / 7 / 253 is received. Similarly, in the case of non-15 / 7 / 253, a virtual MAC address is obtained by combining the received KNX address and its corresponding value. Therefore, the smart host is queried based on this MAC address to determine if there is a matching MAC address. If there is, the scene corresponding to the MAC address is executed; otherwise, the control command is ignored.

[0067] When configuring a scene, for the smart host, local configuration can include at least three methods: Method 1, setting through the smart host's configuration interface, where the interactive configuration commands are also generated based on KNX, and the configuration process involves binding the KNX address and its corresponding value to the scene; Method 2, configuration commands sent to the smart host by a third-party client, based on the KNX format, binding the KNX address and its corresponding value to the scene in the configuration command; Method 3, combining Method 1 and Method 2, using the API interface provided by the smart host, which is called by a third-party client, to bind the KNX address and its corresponding value to the scene in the configuration command.

[0068] For smart hosts, cloud configuration involves configuring scenarios in the smart host via JSON messages. The configuration process configures the relationship between the scenario and at least one access device based on the configuration information in the JSON message.

[0069] The scene settings for at least one access device connected to the smart host can be paired and bound to the scene based on the MAC address of at least one access device, and the configuration of all scenes can be stored in the smart host.

[0070] It should be noted that the scenario-triggered system provided in this application embodiment is only illustrated by the above example, and is intended to implement the scenario-triggered system provided in this application embodiment, without any specific limitation.

[0071] This invention provides a scene triggering system that receives control commands; parses the control commands and determines whether the control commands contain a preset address; if the determination result is yes, triggers the corresponding scene according to the preset address; if the determination result is no, generates a target address according to the control commands and triggers the corresponding scene according to the target address, thereby unifying the scene organization structure and supporting the technical effect of expanding complex mode scenes.

[0072] This invention provides a method for triggering a scene. Figure 4 This is a flowchart illustrating a scene triggering method provided in an embodiment of the present invention; as shown below. Figure 4 As shown, the scenario triggering method provided in this application embodiment includes:

[0073] Step S402: Receive control command;

[0074] Optionally, control commands may include: action signals triggered by at least one access device, commands sent from the cloud, or commands sent from a third-party client.

[0075] Step S404: Parse the control instruction and determine whether the control instruction contains a preset address;

[0076] Optionally, parsing the control command includes: determining whether a specified address exists in the control command; if the determination result is yes, triggering the corresponding scene based on the specified address; if the determination result is no, determining whether the control command contains a preset address; wherein, the specified address includes: a scene identifier in the second mapping information of the pre-stored mapping information, the mapping information includes: first mapping information and second mapping information, the first mapping information includes the MAC address of at least one access device and the scene corresponding to the MAC address; the second mapping information includes: a scene identifier and the scene corresponding to the scene identifier.

[0077] Step S406: If the judgment result is yes, trigger the corresponding scene according to the preset address;

[0078] In step S408, if the judgment result is negative, a target address is generated according to the control instruction, and the corresponding scene is triggered according to the target address.

[0079] Optionally, generating a target address based on control instructions includes: generating a target address based on the address and the value when the control instructions include an address, a type, and a value.

[0080] Optionally, triggering the corresponding scenario based on the target address includes: determining whether a scenario corresponding to the target address exists via the cloud; if the determination result is yes, triggering the scenario corresponding to the target address; if the determination result is no, ignoring the control command.

[0081] In summary, the scenario triggering method provided in this application embodiment can be applied to... Figures 1 to 3 In the system triggered by the scene shown, steps S402 to S408 are... Figure 3 The scenario triggering process is shown.

[0082] That is, for scene triggering on the smart host side, the smart host can receive control commands sent from at least one access device, cloud or third-party client; the smart host parses the control command and determines whether the control command contains a preset address; if the determination result is yes, the corresponding scene is triggered according to the preset address; if the determination result is no, the target address is generated according to the control command, and the corresponding scene is triggered according to the target address.

[0083] The control command can be a command containing a knx address. The intelligent host determines whether the knx in the control command is a preset address by parsing the control command. In this embodiment, the preset address is 15 / 7 / 253 as an example. If the knx in the control command is 15 / 7 / 253, the scene corresponding to 15 / 7 / 253 is executed. If the knx in the control command is not 15 / 7 / 253, the knx address (2 bytes) and value (4 bytes) are concatenated to obtain a 6-byte MAC address. The MAC address is then used to query map1 to determine whether a corresponding scene exists. If it exists, the scene corresponding to the MAC address is triggered; otherwise, it is ignored.

[0084] It should be noted that, for the case where the MAC address is not 0, after receiving the information of the access device with the corresponding MAC address (i.e., the control command in the embodiment of this application), the system first finds the corresponding scenario based on the MAC address, then matches the specific sub-scenario based on the id in the control command in the embodiment of this application, and then executes the specific cmds based on the function type.

[0085] When the knx in the control command is 15 / 7 / 253, since there is no MAC address in the local configuration in stage one, a fixed knx address is used to sort the scenes according to scene ID, defined as 0123, ... n from smallest to largest.

[0086] When the intelligent host receives data from address 15 / 7 / 253, it executes the corresponding scenario based on the data value.

[0087] Optionally, before receiving the control command in step S402, the scenario triggering method provided in this embodiment of the invention further includes: receiving a configuration request from at least one access device, the cloud, or a third-party client; configuring the corresponding scenario based on the MAC address of at least one access device when the configuration request is sent by at least one access device; configuring the corresponding scenario based on the configuration information in the configuration request when the configuration request is sent by the cloud; and configuring the corresponding scenario based on the knx address in the configuration request when the configuration request is sent by a third-party client.

[0088] Further, optionally, configuring the corresponding scenario based on the configuration information in the configuration request includes: encapsulating the configuration information in the configuration request through a JSON message; configuring the scenario based on the configuration information; wherein the JSON message includes: scenario identifier, MAC address of the access device, scenario information, daily start time of the scenario, daily last time of the scenario, and weekly start time of the scenario.

[0089] Optionally, the scene information includes: sub-scene identifier, scene trigger type, corresponding execution action, control address, data type of control address, trigger value, and delayed execution time.

[0090] Specifically, the execution steps prior to step S402 are as follows: Figure 2 The scenario configuration process is shown.

[0091] That is, the scene triggering method provided in this application embodiment has two modes in scene configuration: Mode 1: cloud configuration; Mode 2: local configuration of the smart host 12; wherein,

[0092] Mode 1: Cloud configuration includes:

[0093] The cloud platform 14 and the intelligent host 12 communicate via JSON messages, triggering the intelligent host 12 to initiate scene configuration. The configuration of corresponding scenes is based on the triggering actions of the access devices 18 connected to the intelligent host; specifically, the configuration of scenes is based on the MAC addresses of the access devices. The MAC addresses of the access devices and their corresponding scenes are stored on the intelligent host 12. The scene configuration includes: the actions to be performed by the access devices in a specific scene, the scene triggering conditions, and the scene corresponding to each access device.

[0094] Mode 2: The local configuration of Smart Host 12 includes:

[0095] Use a fixed KNX address for control, for example, address: 15 / 7 / 253. Receiving 15 / 7 / 253 indicates that it is controlling the local scene.

[0096] The JSON message format in the scene triggering method provided in this application embodiment is as follows:

[0097]

[0098] The JSON message includes: tabs, mac, id, start, end, and week; among them,

[0099] Tabs include: id, function, and cmds, among which...

[0100] The id is a sub-scene identifier. For example, in a multi-button panel (the access device in this application embodiment), each button can be set with a corresponding scene, and the id can indicate which button in the multi-button panel is currently being triggered.

[0101] The function is the trigger type of the scene, such as when it is pressed, when it is toggleed, when it is triggered by an alarm, when it is restored by an alarm, etc. The scene triggering method provided in this application embodiment can be extended to complex scenes based on the function.

[0102] cmds contains scene information, including: addr, type, val, and delay; addr is the control address; type is the data type of the address; val is the trigger value; delay indicates the number of milliseconds to delay execution, and delayed scene actions can be implemented by setting delay;

[0103] MAC is the access device (trigger device) associated with the scene. When MAC is 0, it means there is no trigger device, that is, the smart host is a local scene.

[0104] `id` is the scene identifier for each scene;

[0105] "start" refers to the time when the scene begins to take effect each day, which is the number of minutes starting from 0:00.

[0106] `end` is the last time the scene takes effect each day, the number of minutes from 0:00.

[0107] "week" refers to the number of days in a week that are in effect. For example, "week":"1,2,3" can be represented as Monday, Tuesday, and Wednesday of each week.

[0108] This invention provides a method for triggering a scene, which involves receiving a control command; parsing the control command and determining whether the control command contains a preset address; if the determination result is yes, triggering the corresponding scene based on the preset address; if the determination result is no, generating a target address based on the control command and triggering the corresponding scene based on the target address, thereby unifying the scene organization structure and supporting the technical effect of expanding complex mode scenes.

[0109] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0110] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0111] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0112] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention.

Claims

1. A method for triggering a scene, characterized in that, include: Receive control commands; Parse the control command and determine whether the control command contains a preset address; If the judgment result is yes, the corresponding scenario is triggered according to the preset address; If the determination result is negative, a target address is generated according to the control instruction, and the corresponding scene is triggered according to the target address; The parsing of the control instruction includes: the control instruction is an instruction containing a knx address; by parsing the control instruction, it is determined whether the knx address in the control instruction is the preset address; if the knx address in the control instruction is the preset address, the scene corresponding to the preset address is executed; if the knx address in the control instruction is not the preset address, the knx address and value are concatenated to obtain the MAC address; the MAC address is used to query map1 to determine whether a corresponding scene exists; if it exists, the scene corresponding to the MAC address is triggered; if it does not exist, it is ignored; wherein, two types of mapping relationships are stored in the smart host, denoted as map1 and map2; map1 represents the MAC and scene configured in the cloud; map2 represents the scene identifier and scene configured locally; The step of generating the target address based on the control instruction includes: when the control instruction includes an address, a type, and a value, generating the target address based on the address and the value.

2. The method according to claim 1, characterized in that, The control commands include: action signals triggered by at least one access device, commands sent from the cloud, or commands sent from a third-party client.

3. The method according to claim 1, characterized in that, The scenarios triggered based on the target address include: The cloud-based system determines whether a scenario corresponding to the target address exists. If the judgment result is yes, the scenario corresponding to the target address is triggered; If the determination result is negative, the control command is ignored.

4. The method according to claim 1, characterized in that, Prior to receiving the control command, the method further includes: Receive configuration requests from at least one access device, cloud, or third-party client; When the configuration request is sent by the at least one access device, the corresponding scenario is configured based on the MAC address of the at least one access device; When the configuration request is sent by the cloud, the corresponding scenario is configured according to the configuration information in the configuration request; When the configuration request is sent by the third-party client, the corresponding scenario is configured based on the knx address in the configuration request.

5. The method according to claim 4, characterized in that, The scenarios configured based on the configuration information in the configuration request include: The configuration information in the configuration request is encapsulated in a JSON message. Configure the scenario based on the configuration information; The JSON message includes: scene identifier, MAC address of the access device, scene information, daily start time of the scene, daily last time of the scene, and weekly start time of the scene.

6. The method according to claim 5, characterized in that, The scene information includes: sub-scene identifier, scene trigger type, corresponding execution action, control address, data type of control address, trigger value, and delayed execution time.

7. A scene-triggered system, characterized in that, include: The system comprises a smart host, a cloud platform, a third-party client, and at least one access device. The intelligent host is connected to the cloud, the third-party client, and the at least one access device, respectively, and is used to receive control commands. The intelligent host is also used to parse the control command and determine whether the control command contains a preset address; if the determination result is yes, trigger the corresponding scene according to the preset address; if the determination result is no, generate a target address according to the control command and trigger the corresponding scene according to the target address. The parsing of the control instruction includes: the control instruction is an instruction containing a knx address; by parsing the control instruction, it is determined whether the knx address in the control instruction is the preset address; if the knx address in the control instruction is the preset address, the scene corresponding to the preset address is executed; if the knx address in the control instruction is not the preset address, the knx address and value are concatenated to obtain the MAC address; the MAC address is used to query map1 to determine whether a corresponding scene exists; if it exists, the scene corresponding to the MAC address is triggered; if it does not exist, it is ignored; wherein, two types of mapping relationships are stored in the smart host, denoted as map1 and map2; map1 represents the MAC and scene configured in the cloud; map2 represents the scene identifier and scene configured locally; The step of generating the target address based on the control instruction includes: when the control instruction includes an address, a type, and a value, generating the target address based on the address and the value.

8. The system according to claim 7, characterized in that, The intelligent host is further configured to receive a configuration request from at least one access device, the cloud, or a third-party client before receiving the control command; if the configuration request is sent by the at least one access device, configure a corresponding scenario based on the MAC address of the at least one access device; if the configuration request is sent by the cloud, configure a corresponding scenario based on the configuration information in the configuration request; and if the configuration request is sent by the third-party client, configure a corresponding scenario based on the knx address in the configuration request.