Scene construction method and device, storage medium and electronic device
By building multiple fragment scenarios and target scenarios, the complex configuration of IFTTT rules is solved, multi-device linkage and unified reservation portal are realized, a complete compensation mechanism is provided, and the control capability of smart home devices is improved.
Patent Information
- Application Number
- CN202310086834.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-31
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2043-01-31
AI Technical Summary
The scenario configuration of the existing IFTTT rules is complex, requiring repeated configuration conditions and actions, which is difficult to meet the needs of multi-device and multi-functional linkage scenarios, and lacks a unified reservation entrance and compensation mechanism.
By determining the skill set and open skills, multiple fragment scenarios are built, and target scenarios are built according to the trigger rules, supporting timing and conditional triggering, providing compensation mechanisms, and simplifying triggering rules configuration.
It realizes automated configuration of complex scenarios, integrates multi-device linkage, provides a unified reservation entrance and a complete compensation mechanism, and improves the control capabilities of smart home equipment.
Smart Images

Figure CN116132209B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a scene construction method and device, a storage medium, and an electronic device. Background Art
[0002] With the development of business, the existing IFTTT rule scenario configuration is relatively simple, and appointments are also for a single time point or periodically. Complex linkage and appointment scenarios require industry support, which puts higher demands on the industry.
[0003] In the relevant technologies, the conditions and actions of the scenarios of IFTTT rules are atomic functions. The same functions in different scenarios need to be configured repeatedly, and complex scenarios need to configure a large number of conditions and actions, which makes it difficult to adapt to the business demands of current linkage scenarios. The scenarios of IFTTT rules do not have complex multi-fragment rules. The reservation, compensation, and exit mechanisms all require industry support, which puts higher demands on the industry. With the development of business, timing control is no longer for a single device, but for multiple devices and multiple functions. The status also needs to remain unchanged or change gradually within a time period. The single / periodic reservations at a single time point supported by the scenarios of IFTTT rules can hardly meet business demands. From the perspective of the scenario, whether it is through scenario reservation or reservation on the industrial equipment details page, they are all reservation scenarios, but there is currently no unified entrance. The reservation capability of the industrial equipment details page is gradually reaching the industrial capability online.
[0004] Regarding the related technologies, the conditions and actions of the scenarios of IFTTT rules are atomic functions, the same functions in different scenarios need to be configured repeatedly, and complex scenarios require the configuration of a large number of conditions and actions. No effective solution has yet been proposed. Summary of the invention
[0005] The embodiments of the present application provide a method and device for constructing a scene, a storage medium, and an electronic device, so as to at least solve the problems in the related art that the conditions and actions of the scenes of the IFTTT rules are atomic functions, the same functions in different scenes need to be configured repeatedly, and complex scenes need to configure a large number of conditions and actions.
[0006] According to an embodiment of the embodiments of the present application, a method for constructing a scenario is provided, including: determining a corresponding skill set according to the business needs of a skill demander, and marking the skill set as a target component, wherein the skill set includes: multiple cloud functions, and the cloud functions are device functions implemented through a cloud platform; determining multiple fragment scenarios according to the target component and the open skills of the one or more device categories, wherein the open skills are functions other than the cloud functions; and constructing a target scenario according to the multiple fragment scenarios and the trigger rules corresponding to the multiple fragment scenarios.
[0007] In an exemplary embodiment, a plurality of fragment scenes are determined according to the target component and the open skills of the one or more device categories, including: obtaining a plurality of fragment scene data corresponding to the plurality of fragment scenes respectively, wherein each fragment scene data includes at least one of the following: the target component, the open skills of the one or more device categories, the device model of any device category, and at least one fragment scene data includes: the target component; and configuring corresponding fragment scenes respectively based on the plurality of fragment scene data.
[0008] In an exemplary embodiment, after constructing the target scene according to the multiple fragment scenes and the trigger rules corresponding to the multiple fragment scenes respectively, the method also includes at least one of the following: when the trigger rule is a timed trigger rule, determining the first fragment scene corresponding to the timed trigger rule, and sending a first control instruction to a first device corresponding to the first fragment scene according to the timed trigger rule; when the trigger rule is a conditional trigger rule, determining the second fragment scene corresponding to the conditional trigger rule, and sending a second control instruction to a second device corresponding to the second fragment scene according to the conditional trigger rule.
[0009] In an exemplary embodiment, sending a first control instruction to a first device corresponding to the first fragment scene according to the timing trigger rule includes at least one of the following: sending the timing trigger rule of the first fragment scene to a reservation service corresponding to the first device, so that the reservation service sends a first control instruction to the first device according to the first fragment scene when the current time meets the timing trigger rule; when the first device has a reservation timing function, sending the timing trigger rule and the first control instruction to the first device, wherein when the first device determines that the current time meets the timing trigger rule, the first control instruction is executed.
[0010] In an exemplary embodiment, sending a second control instruction to a second device corresponding to the second fragment scene according to the conditional trigger rule includes: obtaining environmental data sent by a cloud platform corresponding to the second device; when the environmental data meets the conditional trigger rule, sending a second control instruction corresponding to the second device to the cloud platform according to the second fragment scene, so that the cloud platform sends the second control instruction to the second device.
[0011] In an exemplary embodiment, after sending a first control instruction to a first device corresponding to the first fragment scene according to the timing trigger rule, the method further includes: obtaining a device status of the first device, and determining whether the first device executes the first control instruction according to the device status; if the first device does not execute the first control instruction, determining a compensation rule for the first fragment scene; and sending a third control instruction to the first device according to the compensation rule.
[0012] In an exemplary embodiment, after constructing the target scene according to the multiple fragment scenes and the trigger rules respectively corresponding to the multiple fragment scenes, the method also includes: when the target object enables the target scene, obtaining the device information bound to the mobile terminal of the target object; determining the scene data of the target scene, and determining the target device for executing the target scene according to the scene data and the device information; and instantiating the target scene according to the device information of the target device.
[0013] According to another embodiment of the embodiments of the present application, a scene construction device is also provided, including: a first determination module, used to determine a corresponding skill set according to the business needs of the skill demander, and mark the skill set as a target component, wherein the skill set includes: multiple cloud functions, and the cloud functions are device functions implemented through a cloud platform; a second determination module, used to determine multiple fragment scenes according to the target component and the open skills of the one or more device categories, wherein the open skills are functions other than the cloud functions; a construction module, used to construct a target scene according to the multiple fragment scenes and the trigger rules corresponding to the multiple fragment scenes respectively.
[0014] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned scenario construction method when running.
[0015] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the scene construction method through the computer program.
[0016] In an embodiment of the present application, a corresponding skill set is determined according to the business needs of the skill demander, and the skill set is marked as a target component, wherein the skill set includes: multiple cloud functions, wherein the cloud functions are device functions implemented through a cloud platform; multiple fragment scenarios are determined according to the target component and the open skills of the one or more device categories, wherein the open skills are functions other than the cloud functions; a target scenario is constructed according to the multiple fragment scenarios and the trigger rules corresponding to the multiple fragment scenarios respectively; the above-mentioned technical solution is adopted to solve the problems that the conditions and actions of the scenarios of IFTTT rules are atomic functions, the same functions in different scenarios need to be repeatedly configured, and a large number of conditions and actions need to be configured for complex scenarios. The high-level functions of the device cloud are marked and encapsulated as components, the configuration of trigger rules is simplified, and the target scenario is constructed according to the multiple fragment scenarios and the trigger rules corresponding to the multiple fragment scenarios respectively, which can well integrate the current complex linkage scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 It is a hardware environment diagram of a method for constructing a scenario in an embodiment of the present application;
[0020] Figure 2 is a flowchart of a method for constructing a scene according to an embodiment of the present application;
[0021] Figure 3 is a timing diagram of a method for constructing a scene according to an embodiment of the present application;
[0022] Figure 4 is a schematic diagram of a method for constructing a scene according to an embodiment of the present application;
[0023] Figure 5 It is a structural block diagram of a device for constructing a scenario according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] According to one aspect of an embodiment of the present application, a method for constructing a scene is provided. The method for constructing the scene is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the method for constructing the scene can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0027] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0028] In this embodiment, a method for constructing a scene is provided, which is applied to a computer terminal. Figure 2 : is a flowchart of a method for constructing a scene according to an embodiment of the present application, and the process includes the following steps:
[0029] Step S202, determining a corresponding skill set according to the business requirements of the skill demander, and marking the skill set as a target component, wherein the skill set includes: a plurality of cloud functions, and the cloud functions are device functions implemented through a cloud platform;
[0030] It should be noted that multiple cloud functions of a device can be controlled by one component.
[0031] For example, the environmental skill set includes: reporting temperature, reporting humidity, and reporting air quality.
[0032] Step S204, determining a plurality of fragment scenarios according to the target component and the open skills of the one or more device categories, wherein the open skills are functions other than the cloud functions;
[0033] Step S206: construct a target scene according to the multiple segment scenes and the trigger rules corresponding to the multiple segment scenes.
[0034] Through the above steps, the corresponding skill set is determined according to the business needs of the skill demander, and the skill set is marked as a target component, wherein the skill set includes: multiple cloud functions, and the cloud functions are device functions realized through the cloud platform; multiple fragment scenarios are determined according to the open skills of the target component and the one or more device categories, wherein the open skills are functions other than the cloud functions; the target scenario is constructed according to the multiple fragment scenarios and the trigger rules corresponding to the multiple fragment scenarios, which solves the problems in the related technology that the conditions and actions of the scenarios of the IFTTT rules are atomic functions, the same functions in different scenarios need to be configured repeatedly, and complex scenarios need to configure a large number of conditions and actions. The high-level functions of the device cloud are marked and encapsulated as components, the configuration of the trigger rules is simplified, and the target scenario is constructed according to the multiple fragment scenarios and the trigger rules corresponding to the multiple fragment scenarios, which can well integrate the current complex linkage scenarios.
[0035] In an exemplary embodiment, a plurality of fragment scenes are determined according to the target component and the open skills of the one or more equipment categories, including: obtaining a plurality of fragment scene data corresponding to the plurality of fragment scenes respectively, wherein each fragment scene data includes: the target component, the open skills of the one or more equipment categories, and the device model of any equipment category, and at least one fragment scene data includes: the target component; and configuring corresponding fragment scenes respectively based on the plurality of fragment scene data.
[0036] It should be noted that the fragment scenario is configured through the target component, the open skills of the one or more device categories, and the device model of any device category.
[0037] In an exemplary embodiment, after constructing the target scene according to the multiple fragment scenes and the trigger rules respectively corresponding to the multiple fragment scenes, it also includes at least one of the following: when the trigger rule is a timed trigger rule, determining the first fragment scene corresponding to the timed trigger rule, and sending a first control instruction to a first device corresponding to the first fragment scene according to the timed trigger rule; when the trigger rule is a conditional trigger rule, determining the second fragment scene corresponding to the conditional trigger rule, and sending a second control instruction to a second device corresponding to the second fragment scene according to the conditional trigger rule.
[0038] It should be noted that, when the target scene is constructed according to the segment scene and the triggering rule of the segment scene, the triggering rule of the segment scene is determined, and when the triggering rule is a timed triggering rule, the first control instruction is sent to the first device according to the scene data of the first segment scene; or, when the triggering rule is a timed triggering rule, the timed first control instruction is sent to the first device according to the scene data of the first segment scene. When the triggering rule is a conditional triggering rule, in the case of conditional triggering, the second control instruction is sent to the second device according to the scene data of the second segment scene.
[0039] It should be noted that there are multiple fragment scenes in the same target scene, and the triggering rules of each fragment scene may be inconsistent, so that the current complex linkage scene can be well integrated.
[0040] In an exemplary embodiment, sending a first control instruction to a first device corresponding to the first fragment scene according to the timing trigger rule includes at least one of the following: sending the timing trigger rule of the first fragment scene to a reservation service corresponding to the first device, so that the reservation service sends a first control instruction to the first device according to the first fragment scene when the current time meets the timing trigger rule; when the first device has a reservation timing function, sending the timing trigger rule and the first control instruction to the first device, wherein when the first device determines that the current time meets the timing trigger rule, the first control instruction is executed.
[0041] It should be noted that the reservation service of the scene is used according to the needs, or the reservation timing capability of the device is used. When the reservation service of the scene is determined to be used, the timing trigger rule is sent to the reservation service of the scene, and then the first control instruction is sent to the first device through the reservation service of the scene when the current time meets the timing trigger rule; when the reservation timing capability of the device is determined to be used, the timing trigger rule and the first control instruction are sent to the first device, so that the first device determines that the current time meets the timing trigger rule and executes the first control instruction.
[0042] Furthermore, in the case where the device does not have the preset timing capability, the reservation service of the scene is used first. It should be noted that the scene in the embodiment of the present invention has a reservation service, which may not depend on the capability of the industry.
[0043] In an exemplary embodiment, sending a second control instruction to a second device corresponding to the second fragment scene according to the conditional trigger rule includes: obtaining environmental data sent by a cloud platform corresponding to the second device; when the environmental data meets the conditional trigger rule, sending a second control instruction corresponding to the second device to the cloud platform according to the second fragment scene, so that the cloud platform sends the second control instruction to the second device.
[0044] It should be noted that when the trigger rule is a conditional trigger rule, when the cloud platform receives environmental data sent by other devices, the environmental data is sent to the scene center, and then the scene center determines whether the conditional trigger rule is met based on the received environmental data. When the environmental data meets the conditional trigger rule, the second control instruction corresponding to the second device is sent to the cloud platform, so that the cloud platform forwards the second control instruction to the second device.
[0045] In an exemplary embodiment, after sending a first control instruction to a first device corresponding to the first fragment scene according to the timing trigger rule, it also includes: obtaining a device status of the first device, and determining whether the first device executes the first control instruction according to the device status; if the first device does not execute the first control instruction, determining a compensation rule for the first fragment scene; and sending a third control instruction to the first device according to the compensation rule.
[0046] It should be noted that the compensation rules include: sending the first control instruction again; sending the first control instruction again after restarting the first device; and sending an alarm message to the first device so that the user can determine a corresponding strategy according to the alarm message on the device.
[0047] The embodiments of the present invention provide a complete scene compensation mechanism, which can provide users with a better smart home experience.
[0048] In an exemplary embodiment, after constructing the target scene according to the multiple fragment scenes and the trigger rules respectively corresponding to the multiple fragment scenes, it also includes: when the target object enables the target scene, obtaining the device information bound to the mobile terminal of the target object; determining the scene data of the target scene, and determining the target device for executing the target scene according to the scene data and the device information; and instantiating the target scene according to the device information of the target device.
[0049] In order to better understand the process of the method for constructing the above-mentioned scenario, the implementation method flow of constructing the above-mentioned scenario is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.
[0050] In this embodiment, a method for constructing a scene is provided. Figure 3 is a timing diagram of a method for constructing a scene according to an embodiment of the present application, such as Figure 3 As shown, the specific steps are as follows:
[0051] Step S301: The industry opens skills on the skill opening platform according to its own business needs;
[0052] Step S302: the industry labels a group of skills (equivalent to the skill set in the above embodiment) as components according to business needs;
[0053] Step S303: The skill opening platform synchronizes the skills opened and the marked skills to the scene portal;
[0054] Step S304: the scene portal configures the scene according to the marked skills, open skills, category components, and model components;
[0055] Step S305: Synchronize scene data to the scene center;
[0056] Step S306: Query the configured scene through the recommended scene list of the App;
[0057] Step S307: The user activates the scene in the app interface and synchronizes the scene instance data with the scene center;
[0058] Specifically, when the scene center receives the scene instance data, it instantiates the scene according to the configuration rules. If the reservation rule is configured, the reservation rule is registered to the reservation service. If there is no reservation rule, the scene center saves the instance data.
[0059] Step S308: The cloud platform reports device attributes, weather, geo-fence, temperature and other attributes to the scene center;
[0060] Step S309: When the triggering condition of the scene is met, the scene center sends a control instruction for controlling the device to the cloud platform;
[0061] Step S310: the cloud platform forwards the control instruction to the device;
[0062] Step S311: If a reservation rule is configured, register the reservation rule to the reservation service;
[0063] Step S312: the reservation service sends control instructions for controlling the device to the cloud platform at a fixed time;
[0064] Step S313: The cloud platform forwards the control instruction to the device.
[0065] The embodiment of the present invention improves the original scene rules, builds multi-segment scene rules by marking the device cloud functions, and provides a complete exit, supplement, state retention and other mechanisms, breaking through the industry's appointment timing scene and App-side appointment timing scene barriers, and providing a unified appointment timing entrance for each industry. Figure 4 As shown:
[0066] The industry can use the reservation service of the scene center according to its own needs, or use the reservation capability provided by the device. The reservation timing capability needs to detect whether the device supports reservation retention. If the device supports reservation retention, a reservation retention instruction is issued to the device; if the device does not support reservation retention, the reservation is registered in the reservation service, and the reservation service controls and issues attribute control instructions to the device.
[0067] In the embodiments of the present invention, skills are integrated and labeled as components to simplify configuration. The sharding multi-rule mechanism can support complex business scenarios, thereby providing users with more and more advanced services; the scene reservation and industry reservation capabilities are integrated to provide better and more convenient services, break the reservation barriers between industries, and provide a unified reservation entrance; the scene provides a complete compensation mechanism, which can provide users with a better smart home experience; abide by unified development standards and data interaction models, and decouple through componentization ideas to facilitate business expansion without affecting the core business logic.
[0068] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment 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 application, 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, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0069] Figure 5 is a structural block diagram of a scene construction device according to an embodiment of the present application; Figure 5 As shown, including:
[0070] A first determination module 52 is used to determine a corresponding skill set according to the business requirements of the skill demander, and mark the skill set as a target component, wherein the skill set includes: a plurality of cloud functions, and the cloud functions are device functions implemented through a cloud platform;
[0071] A second determining module 54 is configured to determine a plurality of segment scenarios according to the target component and the open skills of the one or more device categories, wherein the open skills are functions other than the cloud functions;
[0072] The construction module 56 is used to construct a target scene according to the multiple segment scenes and the trigger rules respectively corresponding to the multiple segment scenes.
[0073] Through the above-mentioned device, the corresponding skill set is determined according to the business needs of the skill demander, and the skill set is marked as a target component, wherein the skill set includes: multiple cloud functions, wherein the cloud functions are device functions realized through the cloud platform; multiple fragment scenes are determined according to the open skills of the target component and the one or more device categories, wherein the open skills are functions other than the cloud functions; the target scene is constructed according to the multiple fragment scenes and the trigger rules corresponding to the multiple fragment scenes, which solves the problems in the related technology that the conditions and actions of the scenes of the IFTTT rules are atomic functions, the same functions in different scenes need to be configured repeatedly, and complex scenes need to configure a large number of conditions and actions. The high-level functions of the device cloud are marked and encapsulated as components, the configuration of the trigger rules is simplified, and the target scene is constructed according to the multiple fragment scenes and the trigger rules corresponding to the multiple fragment scenes, which can well integrate the current complex linkage scenes.
[0074] In an exemplary embodiment, the second determination module 54 is used to obtain multiple fragment scene data corresponding to the multiple fragment scenes respectively, wherein each fragment scene data includes at least one of the following: a target component, open skills of the one or more device categories, and a device model of any device category, and at least one fragment scene data includes: the target component; and corresponding fragment scenes are configured based on the multiple fragment scene data.
[0075] It should be noted that the fragment scenario is configured through the target component, the open skills of the one or more device categories, and the device model of any device category.
[0076] In an exemplary embodiment, the second determination module 54 is also used for at least one of the following: when the trigger rule is a timed trigger rule, determining the first fragment scene corresponding to the timed trigger rule, and sending a first control instruction to a first device corresponding to the first fragment scene according to the timed trigger rule; when the trigger rule is a conditional trigger rule, determining the second fragment scene corresponding to the conditional trigger rule, and sending a second control instruction to a second device corresponding to the second fragment scene according to the conditional trigger rule.
[0077] It should be noted that, when the target scene is constructed according to the segment scene and the triggering rule of the segment scene, the triggering rule of the segment scene is determined, and when the triggering rule is a timed triggering rule, the first control instruction is sent to the first device according to the scene data of the first segment scene; or, when the triggering rule is a timed triggering rule, the timed first control instruction is sent to the first device according to the scene data of the first segment scene. When the triggering rule is a conditional triggering rule, in the case of conditional triggering, the second control instruction is sent to the second device according to the scene data of the second segment scene.
[0078] It should be noted that there are multiple fragment scenes in the same target scene, and the triggering rules of each fragment scene may be inconsistent, so that the current complex linkage scene can be well integrated.
[0079] In an exemplary embodiment, the second determination module 54 is also used for at least one of the following: sending the timing trigger rule of the first fragment scene to the reservation service corresponding to the first device, so that the reservation service sends a first control instruction to the first device according to the first fragment scene when the current time meets the timing trigger rule; when the first device has a reservation timing function, sending the timing trigger rule and the first control instruction to the first device, wherein when the first device determines that the current time meets the timing trigger rule, the first control instruction is executed.
[0080] It should be noted that the reservation service of the scene is used according to the needs, or the reservation timing capability of the device is used. When the reservation service of the scene is determined to be used, the timing trigger rule is sent to the reservation service of the scene, and then the first control instruction is sent to the first device through the reservation service of the scene when the current time meets the timing trigger rule; when the reservation timing capability of the device is determined to be used, the timing trigger rule and the first control instruction are sent to the first device, so that the first device determines that the current time meets the timing trigger rule and executes the first control instruction.
[0081] Furthermore, in the case where the device does not have the preset timing capability, the reservation service of the scene is used first. It should be noted that the scene in the embodiment of the present invention has a reservation service, which may not depend on the capability of the industry.
[0082] In an exemplary embodiment, the above-mentioned device also includes: a sending module, used to obtain environmental data sent by the cloud platform corresponding to the second device; when the environmental data meets the conditional trigger rule, sending the second control instruction corresponding to the second device to the cloud platform according to the second fragment scene, so that the cloud platform sends the second control instruction to the second device.
[0083] It should be noted that when the trigger rule is a conditional trigger rule, when the cloud platform receives environmental data sent by other devices, the environmental data is sent to the scene center, and then the scene center determines whether the conditional trigger rule is met based on the received environmental data. When the environmental data meets the conditional trigger rule, the second control instruction corresponding to the second device is sent to the cloud platform, so that the cloud platform forwards the second control instruction to the second device.
[0084] In an exemplary embodiment, a sending module is used to obtain a device status of the first device, and determine whether the first device executes the first control instruction based on the device status; if the first device does not execute the first control instruction, determine a compensation rule for the first fragment scene; and send a third control instruction to the first device according to the compensation rule.
[0085] It should be noted that the compensation rules include: sending the first control instruction again; sending the first control instruction again after restarting the first device; and sending an alarm message to the first device so that the user can determine a corresponding strategy according to the alarm message on the device.
[0086] In an exemplary embodiment, the above-mentioned device also includes: an instantiation module, which is used to obtain the device information bound to the mobile terminal of the target object when the target object enables the target scene; determine the scene data of the target scene, and determine the target device for executing the target scene based on the scene data and the device information; and instantiate the target scene based on the device information of the target device.
[0087] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.
[0088] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0089] S1, determining a corresponding skill set according to the business needs of the skill demander, and marking the skill set as a target component, wherein the skill set includes: a plurality of cloud functions, and the cloud functions are device functions implemented through a cloud platform;
[0090] S2, determining a plurality of fragment scenarios according to the target component and the open skills of the one or more device categories, wherein the open skills are functions other than the cloud function;
[0091] S3: construct a target scene according to the multiple segment scenes and the trigger rules respectively corresponding to the multiple segment scenes.
[0092] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0093] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0094] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0095] S1, determining a corresponding skill set according to the business needs of the skill demander, and marking the skill set as a target component, wherein the skill set includes: a plurality of cloud functions, and the cloud functions are device functions implemented through a cloud platform;
[0096] S2, determining a plurality of fragment scenarios according to the target component and the open skills of the one or more device categories, wherein the open skills are functions other than the cloud function;
[0097] S3: construct a target scene according to the multiple segment scenes and the trigger rules respectively corresponding to the multiple segment scenes.
[0098] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0099] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0100] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0101] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for constructing a scene, characterized in that: include: Determine a corresponding skill set according to the business needs of the skill demander, and mark the skill set as a target component, wherein the skill set includes: a plurality of cloud functions, the cloud functions are device functions implemented through a cloud platform; Determining a plurality of fragment scenarios according to the target component and open skills of one or more device categories, wherein the open skills are functions other than the cloud function; Constructing a target scene according to the multiple fragment scenes and the trigger rules respectively corresponding to the multiple fragment scenes; Wherein, after constructing the target scene according to the plurality of segment scenes and the trigger rules respectively corresponding to the plurality of segment scenes, the method further includes: In the case where the trigger rule is a timing trigger rule, determining a first segment scene corresponding to the timing trigger rule, and sending a first control instruction to a first device corresponding to the first segment scene according to the timing trigger rule; Wherein, after sending the first control instruction to the first device corresponding to the first segment scene according to the timing trigger rule, the method further includes: Acquire a device state of the first device, and determine whether the first device executes the first control instruction according to the device state; In the case where the first device does not execute the first control instruction, determining a compensation rule for the first fragment scene, wherein the compensation rule includes: sending the first control instruction again, restarting the first device and then sending the first control instruction again, and sending an alarm message to the first device; A third control instruction is sent to the first device according to the compensation rule.
2. The method for constructing a scene according to claim 1, characterized in that: Determining a plurality of fragment scenarios according to the target component and the open skills of the one or more device categories includes: Acquire a plurality of fragment scene data corresponding to the plurality of fragment scenes respectively, wherein each fragment scene data includes at least one of the following: a target component, open skills of the one or more device categories, and a device model of any device category, and at least one fragment scene data includes: the target component; The corresponding segment scenes are respectively configured based on the plurality of segment scene data.
3. The method for constructing a scene according to claim 1, characterized in that: After constructing the target scene according to the multiple segment scenes and the trigger rules respectively corresponding to the multiple segment scenes, the method further includes: In the case that the trigger rule is a conditional trigger rule, a second segment scene corresponding to the conditional trigger rule is determined, and a second control instruction is sent to a second device corresponding to the second segment scene according to the conditional trigger rule.
4. The method for constructing a scene according to claim 1, characterized in that: Sending a first control instruction to a first device corresponding to the first segment scene according to the timing trigger rule includes at least one of the following: Sending the timing trigger rule of the first segment scene to the reservation service corresponding to the first device, so that the reservation service sends a first control instruction to the first device according to the first segment scene when the current time meets the timing trigger rule; In the case where the first device has a reservation timing function, the timing trigger rule and the first control instruction are sent to the first device, wherein the first device executes the first control instruction when it determines that the current time meets the timing trigger rule.
5. The method for constructing a scene according to claim 3, characterized in that: Sending a second control instruction to a second device corresponding to the second segment scene according to the conditional trigger rule includes: Obtaining environmental data sent by a cloud platform corresponding to the second device; When the environmental data meets the conditional triggering rule, a second control instruction corresponding to the second device is sent to the cloud platform according to the second fragment scene, so that the cloud platform sends the second control instruction to the second device.
6. The method for constructing a scene according to claim 1, characterized in that: After constructing the target scene according to the multiple segment scenes and the trigger rules respectively corresponding to the multiple segment scenes, the method further includes: When the target object enables the target scene, obtaining device information bound to the mobile terminal of the target object; Determining scene data of the target scene, and determining a target device for executing the target scene according to the scene data and the device information; The target scene is instantiated according to the device information of the target device.
7. A scene construction device, characterized in that: include: A first determination module is used to determine a corresponding skill set according to the business requirements of the skill demander, and mark the skill set as a target component, wherein the skill set includes: a plurality of cloud functions, and the cloud functions are device functions implemented through a cloud platform; A second determination module is used to determine a plurality of fragment scenarios according to the target component and open skills of one or more device categories, wherein the open skills are functions other than the cloud function; A construction module, used for constructing a target scene according to the multiple fragment scenes and the trigger rules respectively corresponding to the multiple fragment scenes; The second determination module is further configured to, when the trigger rule is a timing trigger rule, determine a first segment scene corresponding to the timing trigger rule, and send a first control instruction to a first device corresponding to the first segment scene according to the timing trigger rule; Among them, the device also includes: a sending module, used to obtain the device status of the first device, and determine whether the first device executes the first control instruction according to the device status; when the first device does not execute the first control instruction, determine the compensation rule of the first fragment scene, wherein the compensation rule includes: sending the first control instruction again, sending the first control instruction again after restarting the first device, and sending an alarm message to the first device; sending a third control instruction to the first device according to the compensation rule.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 6 when executed.
9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.
