Scenario creation method, electronic device, and system

By acquiring equipment capabilities and environmental conditions, the system automatically creates a "lights on when people arrive, lights off when people leave" scenario, solving the problem that users find difficult to create independently. This achieves efficient and automatic scenario control, making it suitable for various spaces.

WO2026091794A1PCT designated stage Publication Date: 2026-05-07HUAWEI TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2025-08-20
Publication Date
2026-05-07

AI Technical Summary

Technical Problem

In existing technologies, creating "lights turn on when someone comes and turn off when someone leaves" scenarios is complex and has a high barrier to entry. Users find it difficult to create and modify these scenarios independently, and professional engineers are required to participate in them. This approach cannot adapt to users' real habits and the needs of new scenarios.

Method used

By acquiring equipment capability information and environmental conditions, control scenarios are automatically created. The presence of people or animals and natural environmental conditions are used to trigger the equipment to execute control scenarios, reducing the complexity of user programming.

Benefits of technology

It enables automatic scene creation without complex orchestration, lowering the creation threshold, improving efficiency, adapting to various environmental conditions, and supporting applications in multiple spaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025115851_07052026_PF_FP_ABST
    Figure CN2025115851_07052026_PF_FP_ABST
Patent Text Reader

Abstract

A scenario creation method, an electronic device, and a system. The method is applied to a first device, and comprises: the first device acquiring device capability information of a first space, the device capability information comprising capability information of one or more controlled devices in the first space and capability information of one or more acquisition devices, and the acquisition devices being used for acquiring an environmental condition of the first space; on the basis of the device capability information, the first device generating a control scenario corresponding to the first space; and on the basis of the environmental condition satisfying a trigger condition of the control scenario, triggering at least one controlled device to execute the control scenario. By means of the method, the electronic device or the system, automatic creation of a control scenario can be realized without manually creating a scenario by means of complex scenario configuration, thereby greatly reducing the threshold for scenario creation and improving the efficiency of scenario creation.
Need to check novelty before this filing date? Find Prior Art

Description

Methods, electronic devices, and systems for creating scenes

[0001] This application claims priority to Chinese Patent Application No. 202411537306.0, filed on October 30, 2024, entitled “Method, Electronic Device and System for Creating a Scene”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of scene creation, and more specifically, to a method, electronic device, and system for creating scenes. Background Technology

[0003] Currently, taking the scenario creation of "lights on when someone arrives, lights off when someone leaves" as an example, creating such a scenario is a complex and demanding task. It requires the creator to meticulously plan and orchestrate the scenario events, and also demands that the creator understand IFTTT (If This Then That, i.e., if a certain event occurs, then a certain action is triggered) or ECA (If k events e1, e2, ..., e...) in traditional scenario creation. k When concurrent scenarios are executed and condition C is met, action a) logic is executed, which requires a high level of logical thinking ability from the creator. Currently, scenario creation and modification are mainly performed by professional engineers, and users find it difficult to create and modify scenarios independently. This makes it difficult for current scenario setups to match users' real habits and adapt to the ever-emerging new scenario needs of users. Summary of the Invention

[0004] This application provides a method, electronic device, and system for creating scenes. Through this method, electronic device, and system, the automatic creation of control scenes can be achieved without manually creating scenes through complex scene orchestration, which can significantly reduce the threshold for scene creation and improve the efficiency of scene creation.

[0005] In a first aspect, a method for creating a scene is provided. The method is applied to a first device and includes: the first device acquiring device capability information of a first space, the device capability information including capability information of one or more controlled devices in the first space and capability information of one or more acquiring devices, the acquiring devices being used to acquire environmental conditions of the first space; the first device generating a control scene corresponding to the first space based on the device capability information; and the at least one controlled device being triggered to execute the control scene based on the environmental conditions satisfying the triggering conditions of the control scene.

[0006] In this embodiment, the first device can automatically create a control scene based on the device capability information in the space, without having to manually create the scene through complex scene arrangement, which can greatly reduce the threshold for scene creation and improve the efficiency of scene creation.

[0007] In conjunction with the first aspect, in one possible implementation, the environmental conditions include a first type of environmental conditions and / or a second type of environmental conditions, wherein the first type of environmental conditions are environmental conditions associated with humans or animals, and the second type of environmental conditions are environmental conditions associated with objects. The at least one controlled device is triggered to execute the control scenario based on the environmental conditions satisfying the triggering condition of the control scenario, including: in response to the first type of environmental conditions and / or the second type of environmental conditions satisfying the triggering condition of the control scenario, the at least one controlled device is triggered to execute the control scenario.

[0008] In this embodiment, it is possible to determine whether the controlled device is triggered to execute a control scenario based on different types of environmental conditions, thus making the application scenarios of this embodiment more extensive.

[0009] In conjunction with the first aspect, in one possible implementation, the first type of environmental conditions includes the presence or absence of a person or animal in the first space and / or the location of a person or animal in the first space. Based on the environmental conditions satisfying the triggering conditions of the control scenario, the at least one controlled device is triggered to execute the control scenario, including: in response to determining that a person or animal exists in the first space and / or that a person or animal is at a preset location in the first space, the at least one controlled device is triggered to execute the control scenario; or in response to determining that a person or animal leaves the first space and / or that a person or animal leaves a preset location in the first space, the at least one controlled device is triggered to execute the control scenario.

[0010] In one example, at least one controlled device in the first space includes a lighting device, which is triggered to turn on the lights in response to determining the presence of a person or animal in the first space and / or a preset position of a person or animal in the first space. Correspondingly, at least one acquisition device in the first space may include a human presence sensor and / or a human movement sensor and / or a smart door lock, wherein the human presence sensor may be, for example, a millimeter-wave radar sensor, and the human movement sensor may be, for example, an infrared sensor.

[0011] In one example, at least one controlled device in the first space includes a lighting device, which is triggered to perform a light-off operation in response to determining that a person or animal has left the first space and / or that a person or animal has left a preset position in the first space.

[0012] In this embodiment, the controlled device in the space can be triggered to execute a control scene based on whether there are people or not in the space. For example, it can automatically create a lighting control scene of "lights on when people come and lights off when people leave". Users do not need to manually create scenes through complex scene arrangement, which can greatly reduce the threshold of scene creation and improve the efficiency of scene creation.

[0013] In conjunction with the first aspect, in one possible implementation, the second type of environmental condition is related to the natural and / or man-made environmental conditions of the first space. The at least one controlled device is triggered to execute the control scenario based on the environmental conditions satisfying the triggering conditions of the control scenario, including: the at least one controlled device is triggered to execute the control scenario in response to the natural and / or man-made environmental conditions of the first space satisfying the triggering conditions of the control scenario.

[0014] In this embodiment, the triggering condition of the control scenario is also independent of whether there are people or not in the space. As long as the specific natural or artificial environmental conditions of the space meet the triggering condition, the controlled device in the space can be triggered to execute the control scenario. This makes the application scenarios of this embodiment not limited to the scenarios of people or not, and makes the application scenarios more extensive.

[0015] In conjunction with the first aspect, in one possible implementation, the second type of environmental conditions includes a first environmental condition, wherein the at least one controlled device is triggered to execute the control scenario based on the environmental condition satisfying the triggering condition of the control scenario, including: in response to the first environmental condition satisfying a preset condition, the at least one controlled device is triggered to execute the control scenario, wherein the first environmental condition includes at least one of illuminance, temperature, humidity, and rainfall.

[0016] In one example, the first environmental condition includes the humidity in a first space, and at least one controlled device in the first space includes a humidifier. When the humidity in the first space deviates from a preset humidity, at least one humidifier in the first space is triggered to perform a humidity adjustment operation. Correspondingly, at least one acquisition device in the first space may include a humidity sensor. The first space may be, for example, a breeding shed, a laboratory, etc.

[0017] In one example, the first environmental condition includes the temperature in a first space, and at least one controlled device in the first space includes an air conditioner. When the temperature in the first space deviates from a preset temperature, at least one air conditioner in the first space is triggered to perform an operation to adjust the operating temperature. Correspondingly, at least one acquisition device in the first space may include a temperature sensor. The first space may be, for example, a livestock shed, a laboratory, etc.

[0018] In one example, the first environmental condition includes rainfall in a first space, and at least one controlled device in the first space includes a window. When the rainfall in the first space meets a preset condition, the window in the first space is triggered to close, and / or, windows in other spaces controlled by the first device can also be triggered to close. Correspondingly, at least one acquisition device in the first space may include a rainwater detection sensor.

[0019] The solutions provided in this application can be applied to scenarios such as automatic window closing when it rains, automatic temperature adjustment, and automatic humidity adjustment, bringing users a worry-free experience.

[0020] In conjunction with the first aspect, in one possible implementation, the first environmental condition is determined based on the natural and / or man-made environmental conditions in the first space.

[0021] In conjunction with the first aspect, in one possible implementation, in response to the first environmental condition satisfying a preset condition, the at least one controlled device is triggered to execute the control scenario, including: in response to determining that a person or animal exists in the first space and / or a person or animal is at a preset position in the first space, and the first environmental condition satisfies the preset condition, the at least one controlled device is triggered to execute the control scenario; or in response to determining that a person or animal leaves the first space and / or a person or animal leaves a preset position in the first space, and the first environmental condition satisfies the preset condition, the at least one controlled device is triggered to execute the control scenario.

[0022] In one example, the first type of environmental condition includes the presence of a person or animal in the first space and / or the location of a person or animal in the first space; the second type of environmental condition includes the illuminance of the first space; and at least one controlled device in the first space includes a lighting device. In response to determining that a person or animal is present in the first space and / or at a preset location in the first space, and that the illuminance of the first space is less than a preset value, at least one lighting device in the first space is triggered to perform a lighting operation. Correspondingly, at least one acquiring device in the first space may include a light sensor, and may also include a human presence sensor and / or a human movement sensor and / or a smart door lock.

[0023] In this embodiment, the controlled device in the space can be triggered to execute a control scene based on whether there are people or not in the space, and whether the natural or artificial environmental conditions in the space meet the preset conditions. For example, it can automatically create a lighting control scene of "the light turns on when people come and the light is low". Users do not need to manually create scenes through complex scene arrangement, which can greatly reduce the threshold of scene creation and improve the efficiency of scene creation.

[0024] In conjunction with the first aspect, in one possible implementation, the first device generates a control scenario corresponding to the first space based on the device capability information, including: based on a first message received from the second device, the first device generates a control scenario corresponding to the first space based on the device capability information.

[0025] In this embodiment of the application, the first device can start generating a control scene corresponding to the first space based on the user's trigger operation on the second device, providing the user with a way to determine the timing of the control scene generation.

[0026] In conjunction with the first aspect, in one possible implementation, the first device generates a control scenario corresponding to the first space based on the device capability information, including: based on the detection that the first device performs a startup operation, the first device generates a control scenario corresponding to the first space based on the device capability information.

[0027] In this embodiment of the application, the generation of the control scene can also be seamless for the user, and the first device can automatically generate the control scene when it is powered on.

[0028] In conjunction with the first aspect, in one possible implementation, the method further includes: the first device sending a control scene corresponding to the first space to a second device, so that the user can view the control scene through the second device.

[0029] In this embodiment of the application, the first device can send the generated control scene to the second device, and the user can view the generated control scene on the second device, which provides the user with an entry point to view the control scene.

[0030] In conjunction with the first aspect, in one possible implementation, the method further includes: according to a second message received from a second device, the first device updates the control scenario corresponding to the first space based on update information, wherein the second message includes the update information.

[0031] In this embodiment of the application, the user can trigger the scene parameter update on the scene viewing device. Correspondingly, the first device can modify the control scene according to the updated parameters and further send the modified scene to the scene viewing device so that the user can view the updated scene through the scene viewing device. This provides the user with an entry point to modify scene parameters.

[0032] In conjunction with the first aspect, in one possible implementation, the method further includes: the first device updating the control scenario corresponding to the first space based on changes in the device capability information in the first space.

[0033] In this embodiment of the application, when the first device detects a change in the device capability information in the space, the first device can automatically modify the scene according to the changed device capability information, thereby enabling timely updates of the control scene without relying on user-triggered operations.

[0034] In conjunction with the first aspect, in one possible implementation, the method further includes: the first device sending the updated control scenario to the second device, so that the user can view the updated control scenario through the second device.

[0035] In this embodiment of the application, the first device can send an updated control scenario to the second device, and the user can view the updated control scenario on the second device.

[0036] In conjunction with the first aspect, in one possible implementation, the method further includes: the first device acquiring device capability information of a second space, the device capability information of the second space including capability information of one or more controlled devices in the second space and capability information of one or more acquiring devices in the second space, the one or more acquiring devices in the second space being used to acquire environmental conditions of the second space; the first device generating a control scenario corresponding to the second space based on the device capability information of the second space; and at least one controlled device in the second space being triggered to execute the control scenario based on the environmental conditions of the second space satisfying the triggering conditions of the control scenario corresponding to the second space.

[0037] In this embodiment of the application, the first device can simultaneously generate multiple control scenes corresponding to multiple spaces, so that the method provided in this embodiment of the application can be applied to places with multiple spaces, such as homes, offices, workshops, hotels, etc.

[0038] In conjunction with the first aspect, in one possible implementation, the method further includes: the first device acquiring device capability information of a third space, the device capability information of the third space including capability information of one or more controlled devices in the third space; the first device acquiring device capability information of a fourth space, the device capability information of the fourth space including capability information of one or more acquiring devices in the fourth space, the one or more acquiring devices in the fourth space being used to acquire environmental conditions of the fourth space; the first device generating a control scenario corresponding to the third space based on the device capability information of the third space and the device capability information of the fourth space; and at least one controlled device in the third space being triggered to execute the control scenario based on the environmental conditions of the fourth space satisfying the triggering conditions of the control scenario corresponding to the third space.

[0039] In one example, when a rain detection sensor in one of a plurality of spaces detects rain, it can trigger windows in the other spaces to close.

[0040] In this embodiment, when the environmental conditions of one space meet the preset conditions, the controlled device in another space can be triggered to execute a control scenario, such as a rainy window closing scenario. This eliminates the need to install rain detection sensors in every room; only one room needs to be equipped with one. When it rains, all the windows in all rooms can be triggered to close. This saves on the number of acquisition devices, reduces costs, and simplifies the control logic of the first device.

[0041] In conjunction with the first aspect, in one possible implementation, the first device is a whole-house smart host.

[0042] It can be understood that a whole-house smart control unit is a smart management and control device in a whole-house environment. It can refer to any device that can control and manage the entire home furnishings. The whole house can be a home, hotel, or office environment, or other environments with one or more spaces, such as a workshop environment.

[0043] In conjunction with the first aspect, in one possible implementation, the second device is a central control screen, a smart home device, a smartphone, or a wearable device.

[0044] In some embodiments, the second device may also be a device with a voice control interface, such as a large screen, speaker, smartphone, smartwatch, etc. Users can interact with the whole-house smart host through the voice control function of the second device, for example, by triggering the whole-house smart host to create or modify scenes through the voice control function of the second device.

[0045] Secondly, a method for creating a scene is provided. The method is applied to a second device and includes: sending a first message to a first device based on a detected first user operation, the first message being used to trigger the first device to generate a control scene corresponding to a first space; receiving the control scene sent by the first device; and generating a scene card corresponding to the control scene based on the control scene.

[0046] In this embodiment of the application, the user can trigger the first device to start generating the control scene corresponding to the first space through the second device, which provides the user with a way to generate the control scene. The second device can also receive the generated control scene sent by the first device, and the user can view the generated control scene on the second device, which provides the user with an entry point to view the control scene.

[0047] In conjunction with the second aspect, in one possible implementation, the method further includes: receiving the updated control scenario sent by the first device; and updating the scene card corresponding to the control scenario based on the updated control scenario.

[0048] In this embodiment of the application, when the scene is updated, the user can view the updated control scene on a second device.

[0049] In conjunction with the second aspect, in one possible implementation, receiving the updated control scenario sent by the first device includes: sending a second message to the first device based on detecting an update of the parameters of the control scenario by the user, the second message including the update information of the control scenario; and receiving the updated control scenario sent by the first device.

[0050] In this embodiment, the user can trigger a scene parameter update on the scene viewing device. Correspondingly, the first device can modify the control scene according to the updated parameters and further send the modified scene to the scene viewing device so that the user can view the updated scene through the scene viewing device. This provides the user with an entry point to modify scene parameters. The first device can send the updated control scene to the second device, and the user can view the updated control scene on the second device.

[0051] Thirdly, an electronic device is provided, comprising one or more processors and one or more memories, and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions that, when executed by the one or more processors, cause the electronic device to perform the methods of the first aspect or any possible implementation thereof.

[0052] Fourthly, an electronic device is provided, comprising one or more processors and one or more memories, and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions that, when executed by the one or more processors, cause the electronic device to perform the methods of the second aspect or any possible implementation thereof.

[0053] Fifthly, a system is provided, comprising a first electronic device and a second electronic device, wherein the first electronic device is configured to perform the method of the first aspect or any possible implementation thereof, and the second electronic device is configured to perform the method of the second aspect or any possible implementation thereof.

[0054] In a sixth aspect, a computer-readable storage medium is provided, which stores a computer program or instructions that, when executed, implement the method of the first aspect or any possible implementation thereof, or implement the method of the second aspect or any possible implementation thereof.

[0055] In a seventh aspect, a chip is provided, wherein instructions are stored therein, which, when executed on a device, cause the chip to perform the method of the first aspect or any possible implementation thereof, or to perform the method of the second aspect or any possible implementation thereof.

[0056] Eighthly, a computer-readable storage medium is provided, which stores a computer program or instructions that, when executed, implement the method of the first aspect or any possible implementation thereof, or implement the method of the second aspect or any possible implementation thereof. Attached Figure Description

[0057] Figure 1 is a schematic diagram of the structure of the electronic device provided in an embodiment of this application;

[0058] Figure 2 is a software structure block diagram of the electronic device provided in an embodiment of this application;

[0059] Figure 3 is a schematic flowchart of a method for creating a scene according to an embodiment of this application;

[0060] Figure 4 is a schematic diagram of a scene for automatic lighting control provided in an embodiment of this application;

[0061] Figure 5 is a schematic interactive diagram of a lighting control method provided in an embodiment of this application;

[0062] Figure 6 is a schematic interactive diagram of another lighting control method provided in an embodiment of this application;

[0063] Figure 7 is a schematic flowchart of a method for creating a lighting control scene according to an embodiment of this application;

[0064] Figure 8 is a schematic flowchart of another method for creating a lighting control scene provided in an embodiment of this application;

[0065] Figure 9 is a schematic interactive diagram of another method for creating a lighting control scene provided in an embodiment of this application;

[0066] Figure 10 is a schematic interactive diagram of a method for modifying a lighting control scene provided in an embodiment of this application;

[0067] Figure 11 is a schematic diagram of the interface display for two automatic lighting control scenarios provided in the embodiments of this application;

[0068] Figure 12 is a schematic diagram of an interface for editing scene parameters of automatic lighting control via a central control screen, as provided in an embodiment of this application.

[0069] Figure 13 is a schematic diagram of an interface for editing scene parameters of automatic lighting control through a smartphone application interface, according to an embodiment of this application.

[0070] Figure 14 is a schematic diagram of a module of a device for creating an automatic lighting control scene provided in an embodiment of this application. Detailed Implementation

[0071] The technical solutions of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them.

[0072] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; "and / or" in this text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "plural" or "multiple" refers to two or more than two.

[0073] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.

[0074] The terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one, two, or more than two. The term “and / or” is used to describe the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character “ / ” generally indicates that the preceding and following related objects are in an “or” relationship.

[0075] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "one embodiment," "some embodiments," "another embodiment," "other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0076] The methods provided in this application can be applied to electronic devices such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). This application does not impose any restrictions on the specific type of electronic device.

[0077] For example, Figure 1 shows a schematic diagram of the structure of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0078] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0079] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0080] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0081] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0082] USB interface 130 is a USB standard compliant interface, specifically a Mini USB interface, Micro USB interface, USB Type-C interface, etc. USB interface 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. This interface can also be used to connect other electronic devices, such as AR devices.

[0083] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0084] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0085] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0086] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0087] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0088] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0089] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0090] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0091] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0092] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0093] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0094] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with or separate from the electronic device 100.

[0095] It should be understood that the phone cards in the embodiments of this application include, but are not limited to, SIM cards, eSIM cards, universal subscriber identity modules (USIM), universal integrated circuit cards (UICC), etc.

[0096] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.

[0097] Figure 2 is a software structure block diagram of an electronic device 100 according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. The application layer may include a series of application packages.

[0098] As shown in Figure 2, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0099] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0100] As shown in Figure 2, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0101] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0102] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0103] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0104] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0105] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0106] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0107] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0108] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0109] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0110] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0111] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0112] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0113] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0114] A 2D graphics engine is a graphics engine for 2D drawing.

[0115] The kernel layer is the layer between hardware and software. The kernel layer can contain display drivers, camera drivers, audio drivers, sensor drivers, etc.

[0116] It should be understood that the technical solutions in the embodiments of this application can be used in systems such as Android, iOS, and HarmonyOS.

[0117] The technical solutions of this application embodiment can be applied, for example, to electronic devices with voice control entry and / or display functions and / or central control functions. Exemplarily, it can be applied to a whole-house smart host, which can refer to a device capable of managing and controlling all smart devices in the house. It can also be applied to central control screens, televisions, desktop computers, laptops, in-vehicle screens, portable electronic devices such as mobile phones, foldable screens, tablets, watches, and wristbands, smart home devices such as smart speakers and smart screens, and electronic devices in future networks or future evolved public land mobile networks (PLMNs). The main application scenario can be a scenario where lighting is automatically controlled based on conditions, such as lighting control in a whole-house smart home scenario.

[0118] Taking automatic lighting control scenarios as an example, with the increasing popularity of smart home devices, the ability to automatically control lighting—"lights turn on when people are present, lights turn off when people leave"—has become a major feature of whole-house smart scenarios. However, currently, creating a "lights turn on when people are present, lights turn off when people leave" scenario is a complex and demanding task. Creating a complex scenario requires the creator to meticulously plan and orchestrate the scenario events, and also requires the creator to understand IFTTT (If This Then That, i.e., if a certain event occurs, then a certain action is triggered) or ECA (If k events e1, e2, ..., e...) in traditional scenario creation. k When concurrent scenarios are executed and condition C is met, action a) logic is executed, which places high demands on the creator's logical thinking ability. In addition, the scenario creation process involves a large number of non-natural language habits (e.g., programming languages), which is also an important reason that hinders users from creating scenarios independently. Currently, scenario creation is mainly done by suppliers, and scenario modification requires professional engineers to come to the site for modification. Users find it difficult to create and modify scenarios independently, which makes it difficult for the current scenario construction to match users' real habits and adapt to the ever-emerging new scenario needs of users.

[0119] A statistical analysis of one year's sales data from 260 smart home stores nationwide revealed the following: For the top ten stores in terms of sales volume, the average integration rate of users purchasing "lights on when people enter, lights off when people leave" sensors along with lighting equipment was less than 80%, with an average integration ratio of less than 4. For the bottom ten stores in terms of sales volume, the average integration rate of users purchasing "lights on when people enter, lights off when people leave" sensors along with lighting equipment was less than 10%, with an average integration ratio of less than 2. Specifically, the average integration rate during the pre-installation stage was less than 50%, and the average integration ratio during the pre-installation stage was less than 3.

[0120] It is evident that the actual usage of the "lights on when people come, lights off when people leave" scenario is not as expected, which to some extent reflects that current smart home systems have failed to truly meet consumers' usage demands.

[0121] In some embodiments, an automatic scene can be manually edited through a graphical interface, and the lighting equipment in the corresponding space can be controlled based on the presence / absence events reported by sensors located in different spaces, so as to achieve the lighting control effect of "lights on when people are present, lights off when people leave".

[0122] When creating a scene, users first need to understand the logic of the relationship between conditions and tasks, and then add conditions and tasks in sequence. The creation process is complex and requires a certain level of logical ability from users. Taking a typical scene of "three bedrooms, two living rooms, one bathroom, kitchen, toilet, entrance hall, corridor, balcony, etc." as an example, it takes at least 500 steps to complete the scene arrangement of "lights on when people come, lights off when people leave" for the entire house and all spaces (including small areas). Even if the scene is created by the installation and maintenance engineer, there are still problems of low configuration efficiency and easy errors.

[0123] Furthermore, after a scene is created, due to the complexity of the user interface and operation logic, it is difficult for users to modify the scene parameters themselves. Users' usage habits and needs may also change, making it difficult for the preset scene parameters to match users' actual habits. This requires installation and maintenance engineers to go on-site to modify the scene, which greatly affects the user experience.

[0124] In view of this, embodiments of this application provide a method, electronic device, and system for creating a scene. Through this method, electronic device, and system, device capability information of a space can be obtained. When the device capability information of the space meets the automatic control conditions, the control scene corresponding to the space is automatically generated. Thus, when the environmental conditions in the space meet the trigger conditions, the created control scene is automatically executed, without the need to manually create scenes through complex scene orchestration.

[0125] Furthermore, it provides users with a simple and easy-to-understand interface for adjusting control parameters. Users can use this interface to adjust control parameters, such as adjusting the equipment involved in automatic control and setting scene delay execution time, which can meet the diverse usage scenarios of users and further improve the user experience.

[0126] It should be understood that the embodiments of this application can be applied to automatic control scenarios of devices in a space, such as automatic lighting scenarios, such as automatic lighting control scenarios where "lights turn on when someone is present and turn off when someone leaves"; automatic sunshade scenarios, such as automatic sunshade scenarios for balconies, bedrooms, or car cabins; automatic temperature control scenarios, such as scenarios of "automatic adjustment of constant temperature and humidity" and "wind protection for people"; automatic energy saving scenarios, such as automatically turning off lights when no one is present and automatically turning off air conditioners and other appliances when no one is present; automatic window closing scenarios when it rains; automatic security scenarios, such as automatically arming security systems when someone leaves home, automatically disabling the voice control function of smart home devices when someone leaves home, and automatically activating the anti-accidental touch departure mode when someone leaves home; and other automatic control scenarios of devices in a space, which this application does not limit.

[0127] For example, Figure 3 shows a schematic flowchart of a method 300 for creating a scene according to an embodiment of this application. The method is applied to a first device, and as shown in Figure 3, the method includes:

[0128] S301: The first device acquires device capability information of the first space, wherein the device capability information of the first space includes capability information of one or more controlled devices in the first space, and also includes capability information of one or more acquisition devices in the first space, wherein the one or more acquisition devices in the first space are used to acquire environmental conditions of the first space.

[0129] There are several ways in which the first device can obtain the device capability information of the first space. For example, the device capability information of the first space can be obtained by other devices, and the first device can receive the device capability information of the first space sent by the other devices; the first device can also store device capability information of one or more spaces within its control range, and obtain the device capability information of the first space based on the device capability information of one or more spaces stored by itself; the first device can also obtain the device capability information of the first space through information interaction with the acquiring device and the controlled device in the first space; the first device can also obtain the device capability information of the first space through device search; or the first device can obtain the device capability information of the first space through other means, such as the first device obtaining the device capability information of the first space from the cloud. This application does not limit this.

[0130] In some embodiments, the device capability information of the first space includes information about the controlled devices in the first space, and may further include capability information of the controlled devices in the first space. In addition, the device capability information of the first space may also include other types of device information of the first space that the first device needs to know in order to generate the scene. The information about the controlled devices, the capability information of the controlled devices, or other types of device information can be collectively referred to as the device capability information of the first space.

[0131] Taking the controlled device as a lighting device as an example, the capability information of the controlled device may include the ability to switch the light on and off, the ability to adjust the brightness of the light, the ability to adjust the color temperature of the light, and the ability to adjust the duration of the light gradient.

[0132] It is understandable that the capability information of one or more controlled devices in the first space can refer to the capability information of all controlled devices in the first space, or it can refer to the capability information of some controlled devices in the first space.

[0133] Similarly, the capability information of one or more acquisition devices in the first space can refer to the capability information of all acquisition devices in the first space, or it can refer to the capability information of some acquisition devices in the first space.

[0134] S302: The first device generates the control scenario corresponding to the first space based on the device capability information of the first space.

[0135] S303: Based on the environmental conditions of the first space satisfying the triggering conditions of the control scenario corresponding to the first space, at least one controlled device in the first space is triggered to execute the control scenario corresponding to the first space.

[0136] In some embodiments, based on the user's first action, the first device is triggered to determine whether the triggering conditions of the control scenario corresponding to the first space are met according to the environmental conditions of the first space.

[0137] In some embodiments, based on the user's first action, one or more acquisition devices in the first space are triggered to start acquiring the environmental conditions of the first space. Then, according to the environmental conditions of the first space satisfying the triggering conditions of the control scenario corresponding to the first space, at least one controlled device in the first space is triggered to execute the control scenario corresponding to the first space.

[0138] In one example, when a user is detected parking their car at home, the first device is triggered to determine whether the triggering conditions of the control scenario corresponding to the first space are met based on the environmental conditions of the first space.

[0139] In another example, based on the user's remote trigger operation command, the first device is triggered to determine whether the trigger conditions of the control scenario corresponding to the first space are met according to the environmental conditions of the first space.

[0140] In some embodiments, the environmental conditions of the first space include a first type of environmental conditions and / or a second type of environmental conditions.

[0141] The first category of environmental conditions refers to environmental conditions associated with humans or animals, while the second category refers to environmental conditions associated with objects.

[0142] The second type of environmental conditions may be related to the natural and / or man-made environmental conditions of the first space. In addition, the second type of environmental conditions may also be related to other environmental conditions of the first space, which is not limited in this application.

[0143] In one implementation, in response to the first type of environmental conditions and / or the second type of environmental conditions satisfying the triggering conditions of the control scenario corresponding to the first space, at least one controlled device in the first space is triggered to execute the control scenario corresponding to the first space.

[0144] In some embodiments, when the first type of environmental conditions meet the triggering conditions of the control scenario corresponding to the first space, at least one controlled device in the first space is triggered to execute the control scenario corresponding to the first space.

[0145] In some implementations, the first type of environmental condition includes the presence or absence of a person or animal in the first space and / or the location of the person or animal in the first space.

[0146] In one example, in response to determining that a person or animal exists in the first space and / or that the person or animal is in a preset position in the first space, at least one controlled device in the first space is triggered to execute the control scenario corresponding to the first space.

[0147] For example, at least one controlled device in the first space includes a lighting device, which is triggered to turn on the lights in response to determining that a person or animal is present in the first space and / or a person or animal is located at a preset position in the first space. Correspondingly, at least one acquisition device in the first space may include a human presence sensor and / or a human movement sensor and / or a smart door lock, wherein the human presence sensor may be, for example, a millimeter-wave radar sensor, and the human movement sensor may be, for example, an infrared sensor.

[0148] For example, at least one controlled device in the first space includes an electric curtain. In response to determining that a person or animal is present in the first space and / or a person or animal is in a preset position in the first space, at least one electric curtain in the first space is triggered to perform the operation of closing the curtain. The curtain may be, for example, a sunshade curtain or a privacy curtain. Correspondingly, at least one acquisition device may include a human presence sensor and / or a human movement sensor.

[0149] For example, at least one controlled device in the first space includes an air conditioner. In response to determining that a person or animal is present in the first space and / or a person or animal is in a preset position in the first space, at least one air conditioner in the first space is triggered to perform an operation to adjust the airflow direction away from the user. Correspondingly, at least one acquisition device may include a human presence sensor and / or a human movement sensor.

[0150] In yet another example, in response to determining that a person or animal has left the first space and / or that a person or animal has left a preset position in the first space, at least one controlled device in the first space is triggered to execute the control scenario corresponding to the first space.

[0151] For example, at least one controlled device in the first space includes a lighting device, which is triggered to turn off the lights in response to determining that a person or animal has left the first space and / or that a person or animal has left a preset position in the first space. Correspondingly, at least one acquisition device in the first space may include a human presence sensor and / or a human movement sensor and / or a smart door lock.

[0152] For example, at least one controlled device in the first space includes an air conditioner. In response to determining that a person or animal has left the first space and / or that a person or animal has left a preset position in the first space, at least one air conditioner in the first space is triggered to perform a shutdown operation. Correspondingly, at least one acquisition device in the first space may include a human presence sensor and / or a human movement sensor and / or a smart door lock.

[0153] For example, at least one controlled device in the first space includes a smart home device. In response to determining that a person or animal has left the first space and / or that a person or animal has left a preset location in the first space, at least one smart home device in the first space is triggered to perform an operation to disable the voice control function. Correspondingly, at least one acquisition device in the first space may include a human presence sensor and / or a human movement sensor and / or a smart door lock.

[0154] For example, at least one controlled device in the first space includes a security device. In response to determining that a person or animal has left the first space and / or that a person or animal has left a preset location in the first space, at least one security device in the first space is triggered to enter a security state. Correspondingly, at least one acquisition device in the first space may include a human presence sensor and / or a human movement sensor and / or a smart door lock.

[0155] For example, at least one controlled device in the first space includes a lighting device. In response to determining that a person or animal has left the first space and / or that a person or animal has left a preset position in the first space, at least one lighting device in the first space is triggered to turn the lights on and off according to the user's daily habits. Correspondingly, at least one acquisition device in the first space may include a human presence sensor and / or a human movement sensor and / or a smart door lock.

[0156] In some embodiments, when the second type of environmental conditions meet the triggering conditions of the control scenario corresponding to the first space, at least one controlled device in the first space is triggered to execute the control scenario corresponding to the first space.

[0157] In some implementations, when the natural and / or man-made environmental conditions of the first space meet the triggering conditions of the control scenario of the first space, at least one controlled device in the first space is triggered to execute the control scenario corresponding to the first space.

[0158] For example, a second environmental condition can be determined based on the natural and / or man-made environmental conditions in the first space. When the second environmental condition meets the preset conditions, at least one controlled device in the first space is triggered to execute the control scenario corresponding to the first control.

[0159] Optionally, the second environmental condition may include at least one of light intensity, temperature, humidity, and rainfall. The second environmental condition may also include other environmental conditions, which are not limited in this application.

[0160] The natural environmental conditions can be, for example, those created by factors such as sunlight, rain, or seasons; the man-made environmental conditions can be, for example, those created by user-controlled or equipment-controlled lighting illuminance / color, air conditioning temperature, etc.

[0161] In one example, the second type of environmental condition includes the humidity in the first space. At least one controlled device in the first space includes a humidifier. When the humidity in the first space deviates from a preset humidity, at least one humidifier in the first space is triggered to perform a humidity adjustment operation. Correspondingly, at least one acquisition device in the first space may include a humidity sensor. The first space may be, for example, a breeding shed, a laboratory, etc.

[0162] In one example, the second type of environmental condition includes the temperature in the first space, and at least one controlled device in the first space includes an air conditioner. When the temperature in the first space deviates from a preset temperature, at least one air conditioner in the first space is triggered to perform an operation to adjust the operating temperature. Correspondingly, at least one acquisition device in the first space may include a temperature sensor. The first space may be, for example, a livestock shed, a laboratory, etc.

[0163] In one example, the second type of environmental condition includes rainfall in the first space, and at least one controlled device in the first space includes a window. When the rainfall in the first space meets a preset condition, the window in the first space is triggered to close, and / or, windows in other spaces controlled by the first device can also be triggered to close. Correspondingly, at least one acquisition device in the first space may include a rainwater detection sensor.

[0164] In some embodiments, when the first type of environmental conditions and the second type of environmental conditions meet the triggering conditions of the control scenario corresponding to the first space, at least one controlled device in the first space is triggered to execute the control scenario corresponding to the first space.

[0165] In one example, the first type of environmental condition includes the presence of a person or animal in the first space and / or the location of a person or animal in the first space; the second type of environmental condition includes the illuminance of the first space; and at least one controlled device in the first space includes a lighting device. In response to determining that a person or animal is present in the first space and / or at a preset location in the first space, and that the illuminance of the first space is less than a preset value, at least one lighting device in the first space is triggered to perform a lighting operation. Correspondingly, at least one acquiring device in the first space may include a light sensor, and may also include a human presence sensor and / or a human movement sensor and / or a smart door lock.

[0166] In one example, the first type of environmental condition includes the presence of a person or animal in the first space and / or the location of a person or animal in the first space; the second type of environmental condition includes the illuminance of the first space; and at least one controlled device in the first space includes a curtain. In response to determining that a person or animal is present in the first space and / or at a preset location in the first space, and that the illuminance of the first space is greater than a preset value, at least one curtain in the first space is triggered to close. Correspondingly, at least one acquiring device in the first space may include a light sensor, and may also include a human presence sensor and / or a human movement sensor and / or a smart door lock.

[0167] In one example, the first type of environmental condition includes the presence of a person or animal in the first space and / or the location of a person or animal in the first space, the second type of environmental condition includes the humidity of the first space, and at least one controlled device in the first space includes a humidifier. In response to determining that a person or animal is present in the first space and / or a person or animal is at a preset location in the first space, and that the humidity of the first space deviates from a preset humidity, at least one humidifier in the first space is triggered to perform a humidity adjustment operation. Correspondingly, at least one acquisition device in the first space may include a humidity sensor, a human presence sensor, and / or a human movement sensor.

[0168] In one example, the first type of environmental condition includes the presence of a person or animal in the first space and / or the location of a person or animal in the first space, the second type of environmental condition includes the temperature of the first space, and at least one controlled device in the first space includes an air conditioner. In response to determining that a person or animal is present in the first space and / or that a person or animal is at a preset location in the first space, and that the temperature of the first space deviates from a preset temperature, at least one air conditioner in the first space is triggered to perform an operation to adjust the operating temperature. Correspondingly, at least one acquisition device in the first space may include a temperature sensor, a human presence sensor, and / or a human movement sensor.

[0169] In some embodiments, the first device can acquire device capability information for multiple spaces and generate multiple control scenarios corresponding to the multiple spaces respectively.

[0170] For example, the first device can acquire device capability information of the second space, which includes capability information of one or more controlled devices in the second space and capability information of one or more acquiring devices in the second space. The one or more acquiring devices in the second space are used to acquire the environmental conditions of the second space. The first device generates a control scenario corresponding to the second space based on the device capability information of the second space. If the environmental conditions of the second space meet the triggering conditions of the control scenario corresponding to the second space, at least one controlled device in the second space is triggered to execute the control scenario.

[0171] In some embodiments, the first device can determine whether a control device in another space has been triggered to execute a control scenario based on the environmental conditions obtained by the acquisition device in one space.

[0172] For example, the first device can acquire device capability information in a third space, which includes capability information of one or more controlled devices in the third space; the first device can acquire device capability information in a fourth space, which includes capability information of one or more acquiring devices in the fourth space, and the one or more acquiring devices in the fourth space are used to acquire environmental conditions in the fourth space; the first device generates a control scenario corresponding to the third space based on the device capability information in the third space and the device capability information in the fourth space; and at least one controlled device in the third space is triggered to execute the control scenario corresponding to the third space when the environmental conditions in the fourth space meet the triggering conditions of the control scenario corresponding to the third space.

[0173] In one example, when a rain detection sensor in one of a plurality of spaces detects rain, it can trigger windows in the other spaces to close.

[0174] In some embodiments, the first device is a whole-house smart host. It can be understood that the whole-house smart host is a smart control device in a whole-house environment. It can refer to any device that can control and manage the whole house. The whole house can be a home scene, a hotel scene, or an office scene, or other scenes with one or more spaces, such as a workshop scene.

[0175] In some embodiments, the second device may be a central control screen, a smart home device, a smartphone, or a wearable device, wherein a smart home device may be a large screen, a speaker, or other such device.

[0176] In addition, the second device can also be a device with a voice control interface, such as a large screen, speaker, smartphone, smartwatch, etc. Users can interact with the whole-house smart host through the voice control function of the second device, such as triggering the whole-house smart host to create or modify scenes through the voice control function of the second device.

[0177] It should also be understood that the following embodiments provided in this application are described using an automatic lighting control scenario as an example, but this does not limit the applicable scenarios of the embodiments of this application. The solutions provided in this application can be applied to any other automatic control scenario of devices in space.

[0178] For example, Figure 4 shows a schematic diagram of an automatic lighting control scenario provided by an embodiment of this application.

[0179] As shown in Figure 4(a), the space 400 includes a lighting device 401. Currently, the space 400 is unoccupied, and the lighting device 401 is in the off state.

[0180] As shown in Figure 4(b), when a user enters the space 400 from outside the space 400, the state of the space 400 changes from an unoccupied state to an occupied state. At this time, the state of the lighting device 401 changes from an off state to an on state.

[0181] As shown in Figure 4(c), when the user moves from inside space 400 to outside space 400, the state of space 400 changes from occupied to unoccupied. At this time, the state of lighting device 401 changes from on to off.

[0182] In some embodiments, the state of the lighting device 401 may be related to the ambient light level in addition to whether there are people or no people.

[0183] In one example, when a user enters space 400 from outside space 400, the state of space 400 changes from unoccupied to occupied. At this time, if the ambient illuminance of space 400 is less than the preset illuminance, the state of lighting device 401 changes from off to on. If the ambient illuminance of space 400 is greater than or equal to the preset illuminance, the state of lighting device 401 does not change.

[0184] It is understood that the "state of space 400 is occupied" described in this application embodiment can correspond to any of the following situations:

[0185] (1) If no human body is detected in space 400, the first user enters space 400 from outside space 400;

[0186] (2) When a second user is detected in space 400, and the second user is in a resting state (e.g., in a lying position), and the lighting equipment in space 400 is in an off state (e.g., the second user can manually turn off the lights), the first user enters space 400 from outside space 400.

[0187] (3) When a second user is detected in space 400, and the second user is in a stationary state (e.g., in a lying position), and the lighting equipment in space 400 is in an off state (e.g., the second user can manually turn off the lights), the state of the second user in space 400 changes from stationary state to moving state.

[0188] It is understood that the space 400 described in the embodiments of this application may refer to a room in a family setting, such as a living room, master bedroom, secondary bedroom, children's room, study, kitchen, bathroom, etc.; the space 400 may also refer to a room in an office setting, such as a tea room, bathroom, meeting room, office, etc.; or it may refer to other scenarios that include multiple spaces, which this application does not limit.

[0189] For example, Figure 5 shows a schematic interactive diagram of a lighting control method 500 provided in an embodiment of this application.

[0190] As shown in Figure 5, the human body sensor and the lighting device are located in space 1, and the human body sensor and the lighting device are respectively connected to the control device.

[0191] Figure 5(a) shows a schematic interactive diagram of a lighting control method for a "lights turn on when someone arrives" scenario. This method includes:

[0192] S501: When the human body sensor detects that the state of space 1 has changed from unoccupied to occupied, it sends message 1 to the control device. Message 1 is used to indicate that an occupied event has occurred in space 1.

[0193] In some embodiments, the human body sensor may include a human presence sensor and a human movement sensor.

[0194] In some embodiments, the human presence sensor may include, for example, a millimeter-wave radar sensor, or other sensors capable of detecting the human body, which is not limited in this application.

[0195] In some embodiments, the human movement sensor may include, for example, an infrared sensor, or other sensors capable of detecting human movement; this application does not limit the scope of the sensor.

[0196] In some embodiments, the control device may be a host device, a server, or a central control device.

[0197] In some embodiments, users can operate the control device through a central control screen, smartphone, or other devices with a display screen, such as powering on or off.

[0198] S502: After receiving message 1 from the human body sensor, the control device sends instruction 1 to the lighting device. Instruction 1 is used by the indicator light device to perform the light-on operation.

[0199] S503: After receiving instruction 1 from the control device, the lighting equipment performs the light-on operation.

[0200] Figure 5(b) shows a schematic interactive diagram of a lighting control method for a "lights off when people leave" scenario. This method includes:

[0201] S504: When the human body sensor detects that the state of space 1 has changed from occupied to unoccupied, it sends message 2 to the control device. Message 2 is used to indicate that an unoccupied event has occurred in space 1.

[0202] S505: After receiving message 2 from the human body sensor, the control device sends instruction 2 to the lighting device, which is used by the indicator light device to perform the operation of turning off the lights.

[0203] S506: After receiving instruction 2 from the control device, the lighting equipment performs the operation to turn off the lights.

[0204] For example, Figure 6 shows a schematic interactive diagram of another lighting control method 600 provided in an embodiment of this application.

[0205] As shown in Figure 6, the human body sensor, light sensor, and lighting device are located in space 1, and the human body sensor, light sensor, and lighting device are respectively connected to the control device.

[0206] Figure 6(a) shows a schematic interactive diagram of another "lights turn on when someone arrives" scenario, corresponding to a lighting control method. This method includes:

[0207] S601: When the human body sensor detects that the state of space 1 has changed from unoccupied to occupied, it sends message 1 to the control device. Message 1 is used to indicate that an occupied event has occurred in space 1.

[0208] In some embodiments, the human body sensor may include a human presence sensor and a human movement sensor.

[0209] In some embodiments, the human presence sensor may include, for example, a millimeter-wave radar sensor, or other sensors capable of detecting the human body, which is not limited in this application.

[0210] In some embodiments, the human movement sensor may include, for example, an infrared sensor, or other sensors capable of detecting human movement; this application does not limit the scope of the sensor.

[0211] In some embodiments, the control device may be a host device, a server, or a central control device.

[0212] In some embodiments, users can operate the control device through a central control screen, smartphone, or other devices with a display screen, such as powering on or off.

[0213] S602: The control device receives illuminance 1 sent by the light sensor located in space 1, which is used to indicate the ambient light level of space 1.

[0214] In some embodiments, after receiving message 1 indicating that a person has been present in space 1, the control device sends a request message to the light sensor in space 1. The request message requests the ambient light intensity of space 1. After receiving the request message sent by the control device, the light sensor sends the light intensity 1 to the control device.

[0215] In some other embodiments, the light sensor periodically sends the ambient light level of space 1 to the control device.

[0216] In some other embodiments, when the light sensor detects that the change in ambient light intensity of space 1 is greater than a certain range, the ambient light intensity of space 1 is sent to the control device.

[0217] In some other embodiments, when the light sensor detects that the ambient light intensity of space 1 is less than a first light intensity threshold, the ambient light intensity of space 1 is sent to the control device.

[0218] S603: When the control device receives message 1 and the illuminance 1 is less than the first illuminance threshold, the control device sends instruction 1 to the lighting device. Instruction 1 is used by the indicator light device to perform the light-on operation.

[0219] S604: After receiving instruction 1 from the control device, the lighting equipment performs the light-on operation.

[0220] Figure 6(b) shows a schematic interactive diagram of another lighting control method for a "lights off when people leave" scenario. This method includes:

[0221] The explanation of the embodiment shown in Figure 6(b) is the same as that of the embodiment shown in Figure 5(b), that is, S605 to S607 are the same as S504 to S506, and will not be repeated here for the sake of brevity.

[0222] Figure 6(c) shows a schematic interactive diagram of another lighting control method for a "lights off when people leave" scenario. This method includes:

[0223] S608: When the lighting equipment in space 1 is in the lit state, the control device obtains the illuminance 1 from the light sensor.

[0224] S609: When the illuminance 1 is greater than or equal to the second illuminance threshold, the control device sends an instruction 2 to the lighting device, which is used by the indicator light device to perform a light-off operation.

[0225] S610: After receiving instruction 2 from the control device, the lighting equipment performs the operation to turn off the lights.

[0226] For example, Figure 7 shows a schematic flowchart of a method 700 for creating a lighting control scene according to an embodiment of this application. As shown in Figure 7, the method 700 includes:

[0227] S701: Get the first list, which contains N spaces, where N is a positive integer greater than or equal to 1.

[0228] In some embodiments, the control device may obtain the first list from the control device's data center.

[0229] In some embodiments, the control device may be a host device, a server, or a central control device.

[0230] In some embodiments, users can operate the control device through a central control screen, smartphone, or other devices with a display screen, such as powering on or off.

[0231] In some embodiments, after performing a power-on operation, the control device obtains a first list and executes the following S702 to S704.

[0232] In some embodiments, the user can trigger the control device to obtain the first list and execute the following S702 to S704 through the application interface displayed on the screen. The screen may be, for example, the display screen of the central control screen, or a display screen with display function such as a smartphone or smartwatch. The application interface may be, for example, the interface of a smart living application, or the interface of other whole-house control programs.

[0233] By traversing N spaces, one or more lighting control instances are generated, specifically:

[0234] S702: Determine whether a lighting device and a human body sensor exist in the i-th space out of N spaces. If they exist, proceed to S703; if they do not exist, let i = i + 1 and proceed to S702 for the next space, where i is a positive integer greater than or equal to 1 and its initial value is 1.

[0235] In some embodiments, determining whether a lighting device and a human body sensor exist in the i-th space out of N spaces can be done by first determining whether a lighting device exists in the i-th space, and then, if a lighting device exists in the i-th space, further determining whether a human body sensor exists in the i-th space; or by first determining whether a human body sensor exists in the i-th space, and then, if a human body sensor exists in the i-th space, further determining whether a lighting device exists in the i-th space; or by performing both determinations in parallel.

[0236] In some embodiments, the lighting device present in the i-th space may be one or more, such as a ceiling light, chandelier, downlight, spotlight, magnetic track light, light strip, floor lamp, wall lamp, etc.

[0237] In some embodiments, the human body sensor may include a human presence sensor and a human movement sensor.

[0238] In some embodiments, the human presence sensor may include, for example, a millimeter-wave radar sensor, or other sensors capable of detecting the human body, which is not limited in this application.

[0239] In some embodiments, the human movement sensor may include, for example, an infrared sensor, or other sensors capable of detecting human movement; this application does not limit the scope of the sensor.

[0240] The human body sensor and the light sensor can be set independently or combined into one unit.

[0241] S703: When there are lighting devices and human body sensors in the i-th space, generate the automatic lighting control instance corresponding to the i-th space, and further execute S704.

[0242] The automatic lighting control instance corresponding to the i-th space is used to implement the "lights turn on when someone enters, lights turn off when someone leaves" scenario in the i-th space. Thus, it can be understood that the automatic creation of the "lights turn on when someone enters, lights turn off when someone leaves" scenario for the i-th space is complete.

[0243] S704: Determine if i is greater than or equal to N. If i is less than N, let i = i + 1 and return to step S701, then execute S701 to S704 for the next space; if i is greater than or equal to N, then end the traversal process of N spaces.

[0244] After traversing the N spaces, we can obtain M instances of automatic lighting control corresponding to the M spaces. The M spaces are the spaces in the N spaces that contain lighting devices and human body sensors. M is a positive integer greater than or equal to 1 and less than or equal to N.

[0245] Specifically, by using M automatic lighting control instances corresponding to M spaces, the "lights turn on when someone enters, lights turn off when someone leaves" scenario can be implemented in each of the M spaces. Thus, it can be understood that the automatic creation of the "lights turn on when someone enters, lights turn off when someone leaves" scenario for the M spaces has been completed.

[0246] In some embodiments, the M instances of automatic lighting control corresponding to the M spaces can exist as a set.

[0247] In some embodiments, after generating M automatic lighting control instances corresponding to M spaces, the M automatic lighting control instances corresponding to the M spaces can be reported. For example, after generating the M automatic lighting control instances corresponding to the M spaces, the control device can report the M automatic lighting control instances to a central control screen or a smartphone with display capabilities. Further, after receiving the M automatic lighting control instances corresponding to the M spaces, the central control screen or smartphone with display capabilities can generate M automatic lighting control scenes corresponding to the M spaces for users to view or adjust. Alternatively, after generating the M automatic lighting control instances corresponding to the M spaces, the control device can report the M automatic lighting control instances corresponding to the M spaces to a cloud or local server.

[0248] In some embodiments, users can view or adjust the M automatic lighting control scenes corresponding to the M spaces through a smart living application.

[0249] For example, Figure 8 shows a schematic flowchart of another method 800 for creating a lighting control scene provided in an embodiment of this application.

[0250] As shown in Figure 8, the method 800 includes:

[0251] S801: Get the first list, which contains N spaces, where N is a positive integer greater than or equal to 1.

[0252] The explanation of this step is the same as that of S701 in the embodiment shown in Figure 7, and will not be repeated here for the sake of brevity.

[0253] By traversing N spaces, one or more lighting control instances are generated, specifically:

[0254] S802: Determine whether there is a lighting device in the i-th space out of N spaces. If it exists, execute S803; if it does not exist, let i = i + 1, and execute S802 for the next space, where i is a positive integer greater than or equal to 1, and the initial value of i is 1.

[0255] S803: Determine whether a human sensor exists in the i-th space. If it exists, execute S804; if it does not exist, set i = i + 1, return to S802, and execute S802 for the next space.

[0256] It is understood that this application does not limit the execution order of S802 and S803. It can be that the existence of a lighting device in the i-th space is determined first, and when the lighting device exists in the i-th space, the existence of a human body sensor in the i-th space is further determined; it can also be that the existence of a human body sensor in the i-th space is determined first, and when the human body sensor exists in the i-th space, the existence of a lighting device in the i-th space is further determined; or it can be that the two are determined in parallel.

[0257] For a more detailed explanation of this step, please refer to the explanation of S702 in the embodiment shown in Figure 7. For the sake of brevity, it will not be repeated here.

[0258] S804: When there are lighting devices and human body sensors in the i-th space, generate the automatic lighting control instance corresponding to the i-th space, and further execute S805.

[0259] The automatic lighting control instance corresponding to the i-th space is used to implement the "lights turn on when someone enters, lights turn off when someone leaves" scenario in the i-th space. Thus, it can be understood that the automatic creation of the "lights turn on when someone enters, lights turn off when someone leaves" scenario for the i-th space is complete.

[0260] S805: Determine whether a light sensor exists in the i-th space. If a light sensor exists, proceed to S806; otherwise, proceed to S807.

[0261] S806: Update the automatic lighting control instance corresponding to the i-th space.

[0262] This step can also be understood as: adding illuminance adaptive capability to the automatic lighting control instance corresponding to the i-th space.

[0263] Among them, the automatic lighting control instance corresponding to the i-th space with adaptive illuminance is used to realize the "lights on when people are in the i-th space, lights off when people leave" scenario in the i-th space. Specifically, when there are people in the i-th space and the illuminance is greater than or equal to the preset illuminance, the lighting equipment in the i-th space turns on; when there are no people in the i-th space, or the illuminance in the i-th space is less than the preset illuminance, the lighting equipment in the i-th space turns off.

[0264] S807: Determine if i is greater than or equal to N. If i is less than N, let i = i + 1 and return to step S801, then execute S801 to S807 for the next space; if i is greater than or equal to N, then end the traversal process of N spaces.

[0265] After traversing the N spaces, we can obtain M instances of automatic lighting control corresponding to the M spaces. The M spaces are the spaces in the N spaces that contain lighting devices and human body sensors. M is a positive integer greater than or equal to 1 and less than or equal to N.

[0266] Specifically, by using M automatic lighting control instances corresponding to M spaces, the "lights turn on when someone enters, lights turn off when someone leaves" scenario can be implemented in each of the M spaces. Thus, it can be understood that the automatic creation of the "lights turn on when someone enters, lights turn off when someone leaves" scenario for the M spaces has been completed.

[0267] In some embodiments, the M instances of automatic lighting control corresponding to the M spaces can exist as a set.

[0268] S808: Report M instances of automatic lighting control corresponding to M spaces.

[0269] In some embodiments, after generating M automatic lighting control instances corresponding to M spaces, these M instances can be reported. For example, after generating the M instances, the control device can report them to a central control screen or a smartphone, or other electronic device with a display function. Further, upon receiving the M instances, the central control screen or smartphone can generate M automatic lighting control scenes for users to view or adjust. Alternatively, after generating the M instances, the control device can report them to the cloud, thus storing them in the cloud.

[0270] In some embodiments, users can view or adjust the M automatic lighting control scenes corresponding to the M spaces through a smart living application.

[0271] For example, taking the control device as a whole-house control unit, Figure 9 shows a schematic interactive diagram of another method 900 for creating a lighting control scene provided in an embodiment of this application. As shown in Figure 9, the method 900 includes:

[0272] S901: In response to detecting the first operation of the user on the central control screen, the central control screen sends the first message to the whole-house host.

[0273] The first message is used to notify the whole-house control unit to create an automatic lighting control scene.

[0274] The user's first operation on the central control screen is to initiate the creation of an automatic lighting control scene. For example, the user may click on a control on the central control screen to initiate the creation of an automatic lighting control scene, or the user may issue a voice command to the central control screen to instruct the creation of an automatic lighting control scene. This application does not limit this.

[0275] In some embodiments, the central control screen can be replaced by a smartphone, smartwatch, tablet, or other device, and users can initiate the creation of automatic lighting control scenes through the application interface on the smartphone, smartwatch, tablet, or other device.

[0276] After receiving the first message, the whole-house control unit begins creating an automatic lighting control scene for the entire house. The specific process may include:

[0277] S902: After receiving the first message, the whole-house host obtains the first list.

[0278] The first list includes N spaces corresponding to the whole house scene.

[0279] In some embodiments, the whole-home server obtains the first list from the whole-home server's data center.

[0280] S903: The whole-house host generates M automatic lighting control instances corresponding to M spaces by traversing the N spaces in the first list.

[0281] The specific process of the whole-house host traversing the N spaces in the first list to generate M automatic lighting control instances corresponding to M spaces is shown in the embodiment in Figure 7 or Figure 8. For the sake of simplicity, it will not be described in detail here.

[0282] S904: The whole-house main unit sends the generated M automatic lighting control instances to the central control screen.

[0283] In some embodiments, the whole-house control unit can send M instances of automatic lighting control to the central control screen in the form of a set.

[0284] S905: After receiving M automatic lighting control instances from the whole-house host, the central control screen generates scene cards corresponding to the M automatic lighting control instances for users to view.

[0285] In some embodiments, after generating scene cards corresponding to the M automatic lighting control instances, the central control screen can display the scene cards corresponding to the M automatic lighting control instances on the central control screen; or it can send a prompt to the user that the automatic lighting control scene has been created and guide the user to view the scene cards corresponding to the M automatic lighting control instances on the central control screen; or it can store the scene cards corresponding to the M automatic lighting control instances locally and display the scene cards corresponding to the M automatic lighting control instances on the central control screen in response to the user's viewing operation.

[0286] For example, taking a whole-house control unit as the control device, Figure 10 shows a schematic interactive diagram of a method 1000 for modifying a lighting control scene provided in an embodiment of this application. As shown in Figure 10, the method 1000 includes:

[0287] S1001: In response to detecting a first modification made by the user to the automatic lighting control scene corresponding to the first space on the central control screen, the central control screen sends a second message to the whole-house host.

[0288] The second message includes first update information, which is the update information corresponding to the first modification.

[0289] In some embodiments, the first modification made by the user to the automatic lighting control scene corresponding to the first space on the central control screen may include, for example, changes made by the user to the effective lighting devices, modifications made by the user to the light-on delay or light-off delay, modifications made by the user to the brightness of the light when the light is on, modifications made by the user to the color temperature of the light when the light is on, and other modifications made by the user to the scene. This application does not limit these modifications.

[0290] S1002: After receiving the second message, the whole-house main unit updates the corresponding automatic lighting control instance in the first space according to the second message.

[0291] In one example, the first update information included in the second message indicates that the active lighting device in the automatic lighting control scenario corresponding to the first space is changed from lighting device 1 and lighting device 2 to lighting device 1. Correspondingly, the whole-house host deletes lighting device 2 in the automatic lighting control instance corresponding to the first space.

[0292] S1003: The whole-house main unit sends the updated automatic lighting control instance corresponding to the first space to the central control screen.

[0293] S1004: The central control screen updates the scene card corresponding to the automatic lighting control instance of the first space based on the updated automatic lighting control instance of the first space.

[0294] Understandably, from the user's perspective, the user can view the M automatic lighting control scene cards corresponding to the M spaces created through the central control screen's display interface. While viewing these automatic lighting control scene cards, the user can modify any one or more of them. For example, after modifying the automatic lighting control scene card corresponding to the first space, the user can view the modified automatic lighting control scene card corresponding to the first space on the interface.

[0295] In some embodiments, the adjustment of scene parameters may not be triggered by the user's adjustment operation on the central control screen, or the whole-house host may automatically adjust according to changes in the device capability information of the space.

[0296] For example, Figure 11 shows a schematic diagram of the interface display for two automatic lighting control scenarios provided in the embodiments of this application.

[0297] Figure 11(a) and Figure 11(b) show schematic diagrams of the interface display of an automatic lighting control scene on the central control screen.

[0298] As shown in Figure 11(a), once the automatic lighting control scene for the whole house is created, the automatic lighting control scene card for the whole house scene can be displayed on the display interface of the central control screen 1110. In the interface shown in Figure 11(a), the user can, for example, turn off the automatic lighting control for the whole house by clicking the "Close" control.

[0299] When a user clicks on the automatic lighting control scene card under the whole house scene in the interface shown in Figure 11(a), the display interface of the central control screen 1110 can be switched to the interface shown in Figure 11(b). In this interface, the automatic lighting control scene card corresponding to each space in the whole house can be displayed. For example, the automatic lighting control scene card corresponding to the living room, the master bedroom, the study, the secondary bedroom, the bathroom, the balcony, etc. can be displayed.

[0300] Furthermore, for example, users can click on the automatic lighting control scene card corresponding to the living room in the interface shown in Figure 11(b) to switch the display interface of the central control screen to the viewing or parameter editing interface of the automatic lighting control scene card corresponding to the living room. Users can view or modify the parameters of the automatic lighting control scene corresponding to the living room in this viewing or parameter editing interface.

[0301] Figures 11(c) to 11(e) show schematic diagrams of the interface display of an automatic lighting control scene on a smartphone.

[0302] As shown in Figure 11(c) and Figure 11(d), once the automatic lighting control scene for the whole house is created, the user can access the scene viewing interface, for example, through the smart living application installed on the smartphone 1120. The scene viewing interface displays the automatic lighting control scene card for the whole house.

[0303] When a user clicks on the automatic lighting control scene card under the whole house scene in the interface shown in Figure 11(d), the display interface of the smartphone 1120 can switch to the interface shown in Figure 11(e). In this interface, the automatic lighting control scene card corresponding to each space in the whole house can be displayed. For example, the automatic lighting control scene card corresponding to the living room, the master bedroom, the study, the secondary bedroom, the bathroom, the balcony, etc. can be displayed.

[0304] Furthermore, for example, users can click on the automatic lighting control scene card corresponding to the living room in the interface shown in Figure 11(e) to switch the display interface of the central control screen to the viewing or parameter editing interface of the automatic lighting control scene card corresponding to the living room. Users can view or modify the parameters of the automatic lighting control scene corresponding to the living room in this viewing or parameter editing interface.

[0305] For example, Figure 12 shows a schematic diagram of an interface for editing automatic lighting control scene parameters through a central control screen, as provided in an embodiment of this application.

[0306] As shown in Figure 12, the screen of the central control screen 1200 displays the parameter editing interface for the automatic lighting control scene corresponding to the living room.

[0307] For example, you can enter the parameter editing interface of the automatic lighting control scene corresponding to the living room by clicking the automatic lighting control scene card corresponding to the living room in the interface shown in Figure 11(b).

[0308] For example, through this parameter editing interface, users can adjust the illuminance threshold (e.g., the first illuminance threshold in the embodiment shown in Figure 6) when there are people in the living room. For example, if the user sets the current illuminance to "dark (10 LUX)," the lights in the living room will turn on when there are people in the living room and the illuminance is less than or equal to 10 LUX.

[0309] For example, through this parameter editing interface, users can also adjust the time when the lights in the living room are delayed in turning off after people leave the living room, turn daytime lighting on or off, turn nighttime lighting on or off, turn late-night lighting on or off, etc.

[0310] In one example, when a user turns on the night lighting, the parameter editing interface can further display the night lighting parameter adjustment interface. Through this parameter adjustment interface, the parameters of the night lighting can be adjusted, such as the effective time period of the night lighting, the overall brightness of the night lighting, the overall color temperature of the night lighting, and the lighting equipment of the night lighting.

[0311] In some embodiments, the central control screen 1200 can intelligently adjust the parameter editing interface of the scenario according to the user's usage habits, historical usage records, etc., so that the parameter editing interface is more in line with the user's actual needs. For example, the parameter that the user adjusts most frequently can be displayed in a prominent position in the parameter editing interface.

[0312] In some embodiments, the adjustment of scene parameters may not be triggered by the user's adjustment operation on the central control screen, or the whole-house smart host may automatically adjust according to changes in the device capability information of the space.

[0313] For example, Figure 13 shows a schematic diagram of an interface for editing automatic lighting control scene parameters through the application interface of a smartphone 1300, as provided in an embodiment of this application.

[0314] For example, you can enter the parameter editing interface of the automatic lighting control scene corresponding to the living room by clicking the automatic lighting control scene card corresponding to the living room in the interface shown in Figure 11(e).

[0315] As shown in Figure 13(a), through this parameter editing interface, users can adjust the illuminance threshold for when there are people in the living room. For example, if the user sets the current illuminance to "dim (15 LUX)," the lights in the living room will turn on when there are people in the living room and the illuminance is less than or equal to 15 LUX.

[0316] For example, through this parameter editing interface, users can also adjust the time when the lights in the living room are delayed after people leave the living room, and can also adjust the effective period of the scene, such as turning on or off daytime lighting, turning on or off nighttime lighting, turning on or off late-night lighting, etc.

[0317] As shown in Figure 13(b), in one example, when the user turns on daytime lighting, the parameter adjustment interface for daytime lighting can be further displayed in the parameter editing interface. The parameters of daytime lighting can be adjusted through this parameter adjustment interface, such as the effective time period of daytime lighting, the overall brightness of daytime lighting, the overall color temperature of daytime lighting, and the lighting equipment of daytime lighting.

[0318] In some embodiments, the parameter editing interface may also include a "Restore Default" control, which allows users to restore the current scene settings to the default settings with one click.

[0319] Understandably, when a light sensor is included in the living room space, the light intensity threshold adjustment entry will be displayed in the parameter editing interface of the corresponding automatic lighting control scene in the living room.

[0320] In some embodiments, the smartphone 1300 can intelligently adjust the parameter editing interface of a scenario based on the user's usage habits, historical usage records, etc., so that the parameter editing interface is more in line with the user's actual needs. For example, the parameter that the user adjusts most frequently can be displayed in a prominent position in the parameter editing interface.

[0321] In this embodiment of the application, after the automatic creation of the lighting control scene is completed, the user can be provided with an interface to view the scene and / or edit the scene parameters through a central control screen or application interface. The parameter editing interface displayed to the user is simple and easy to understand, and the user can quickly modify the parameters of the automatic lighting control through this interface, thereby improving the user's experience of using the automatic lighting control.

[0322] Furthermore, the adjustable parameters provided to users are matched with their usage habits, which can further improve the efficiency of users in editing scene parameters, thereby further enhancing the user experience of automatic lighting control.

[0323] For example, FIG14 shows a schematic diagram of a device 1400 for creating an automatic lighting control scene according to an embodiment of this application. As shown in FIG14, the device 1400 may include an automatic lighting control module 1410, a data center 1420, a sensing module 1430, and an execution module 1440.

[0324] The automatic lighting control module 1410 is used to obtain a first list, which includes N spaces.

[0325] In some embodiments, the automatic lighting control module 1410 obtains a first list from the data center 1420.

[0326] In some embodiments, the automatic lighting control module 1410 may be located in the system service layer of the device 1400.

[0327] The automatic lighting control module 1410 is also used to generate M automatic lighting control instances corresponding to M spaces by traversing the N spaces in the first list.

[0328] In some embodiments, the data center 1420 may include a spatial capability set, a spatial status set, and a device status set.

[0329] The spatial capability set can be used to indicate whether a space has sensing capabilities, such as whether it has the ability to sense people, detect illuminance, and whether the lighting equipment in the space has the ability to adjust light. The spatial state set is used to indicate the current state of the space, such as whether the space is currently occupied or unoccupied, the current illuminance, and the current lighting adjustment parameters. The equipment state set is used to indicate the state of the equipment in the space, which forms the basis for spatial capabilities and spatial states.

[0330] In some embodiments, the automatic lighting control module 1410 responds to a user's trigger operation on the central control screen or application interface, obtains a first list, and generates M automatic lighting control instances corresponding to M spaces.

[0331] After the automatic lighting control module 1410 generates M automatic lighting control instances corresponding to M spaces:

[0332] The sensing module 1430 is used to acquire sensing data detected by human body sensors in each of the M spaces.

[0333] The sensing module 1430 can also be used to acquire sensing data detected by the light sensor in each of the M spaces.

[0334] The execution module 1440 is used to turn on the indicator light device when it is determined from the sensing data obtained by the sensing module 1430 that the lighting device needs to be turned on, and to turn off the indicator light device when it is determined from the sensing data obtained by the sensing module 1430 that the lighting device needs to be turned off.

[0335] In some embodiments, the device 1400 may further include a scene engine.

[0336] One or more modules or units described herein can be implemented in software, hardware, or a combination of both. When any of the above modules or units are implemented in software, the software exists as computer program instructions and is stored in memory. A processor can be used to execute the program instructions and implement the above method flow. The processor can include, but is not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor, etc., and various computing devices that run software. Each computing device may include one or more cores for executing software instructions to perform calculations or processing. The processor can be built into a SoC (System-on-a-Chip) or an application-specific integrated circuit (ASIC), or it can be a separate semiconductor chip. In addition to the cores for executing software instructions to perform calculations or processing, the processor may further include necessary hardware accelerators, such as field-programmable gate arrays (FPGAs), PLDs (programmable logic devices), or logic circuits that implement dedicated logic operations.

[0337] When the modules or units described herein are implemented in hardware, the hardware may be any one or any combination of a CPU, microprocessor, DSP, MCU, artificial intelligence processor, ASIC, SoC, FPGA, PLD, application-specific digital circuit, hardware accelerator, or non-integrated discrete device, which may run the necessary software or perform the above method flow independently of software.

[0338] When the modules or units described herein are implemented using software, they can be implemented, in whole or in part, in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0339] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0340] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0341] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0342] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0343] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0344] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0345] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for creating a scene, characterized in that, The method is applied to a first device, and the method includes: The first device acquires device capability information of the first space, the device capability information including capability information of one or more controlled devices in the first space and capability information of one or more acquiring devices, the acquiring devices being used to acquire environmental conditions of the first space; The first device generates a control scenario corresponding to the first space based on the device capability information. If the environmental conditions meet the triggering conditions of the control scenario, the at least one controlled device is triggered to execute the control scenario.

2. The method according to claim 1, characterized in that, The environmental conditions include a first type of environmental condition and / or a second type of environmental condition, wherein the first type of environmental condition is an environmental condition associated with humans or animals, and the second type of environmental condition is an environmental condition associated with objects. The step of triggering the control scenario based on the environmental conditions meeting the triggering conditions of the control scenario, and triggering the execution of the control scenario by at least one controlled device, includes: In response to the first type of environmental conditions and / or the second type of environmental conditions satisfying the triggering conditions of the control scenario, the at least one controlled device is triggered to execute the control scenario.

3. The method according to claim 2, characterized in that, The first type of environmental conditions includes the presence or absence of a person or animal in the first space and / or the location of a person or animal in the first space. The step of triggering the control scenario based on the environmental conditions, whereby at least one controlled device is triggered to execute the control scenario, includes: In response to determining that a person or animal is present in the first space and / or that the person or animal is at a preset position in the first space, the at least one controlled device is triggered to execute the control scenario, or In response to determining that a person or animal has left the first space and / or that a person or animal has left a preset position in the first space, the at least one controlled device is triggered to execute the control scenario.

4. The method according to claim 2 or 3, characterized in that, The second type of environmental conditions is related to the natural and / or man-made environmental conditions of the first space. The step of triggering the control scenario based on the environmental conditions meeting the triggering conditions of the control scenario includes: In response to the natural and / or man-made environmental conditions of the first space satisfying the triggering conditions of the control scenario, the at least one controlled device is triggered to execute the control scenario.

5. The method according to any one of claims 2 to 4, characterized in that, The second type of environmental conditions includes a first environmental condition. The step of triggering the control scenario based on the environmental condition meeting the triggering conditions of the control scenario, and then triggering the execution of the control scenario by at least one controlled device, includes: In response to the first environmental condition meeting a preset condition, the at least one controlled device is triggered to execute the control scenario, wherein the first environmental condition includes at least one of illuminance, temperature, humidity, and rainfall.

6. The method according to claim 5, characterized in that, The first environmental conditions are determined based on the natural and / or man-made environmental conditions in the first space.

7. The method according to claim 5 or 6, characterized in that, The response that the first environmental condition meets a preset condition, triggering the execution of the control scenario by at least one controlled device, includes: In response to determining that a person or animal exists in the first space and / or that the person or animal is at a preset location in the first space, and that the first environmental conditions meet the preset conditions, the at least one controlled device is triggered to execute the control scenario, or In response to determining that a person or animal has left the first space and / or that a person or animal has left a preset position in the first space, and that the first environmental conditions meet the preset conditions, the at least one controlled device is triggered to execute the control scenario.

8. The method according to any one of claims 1 to 7, characterized in that, The first device generates a control scenario corresponding to the first space based on the device capability information, including: Based on the first message received from the second device, the first device generates a control scenario corresponding to the first space according to the device capability information.

9. The method according to any one of claims 1 to 7, characterized in that, The first device generates a control scenario corresponding to the first space based on the device capability information, including: Based on the detection that the first device has performed a startup operation, the first device generates a control scenario corresponding to the first space according to the device capability information.

10. The method according to any one of claims 1 to 9, characterized in that, The method further includes: The first device sends the control scene corresponding to the first space to the second device, so that the user can view the control scene through the second device.

11. The method according to any one of claims 1 to 10, characterized in that, The method further includes: Based on the second message received from the second device, the first device updates the control scene corresponding to the first space according to the update information, wherein the second message includes the update information.

12. The method according to any one of claims 1 to 10, characterized in that, The method further includes: According to the change in the device capability information in the first space, the first device updates the control scenario corresponding to the first space.

13. The method according to claim 11 or 12, characterized in that, The method further includes: The first device sends the updated control scenario to the second device so that the user can view the updated control scenario through the second device.

14. The method according to any one of claims 1 to 13, characterized in that, The method further includes: The first device acquires device capability information of the second space, which includes capability information of one or more controlled devices in the second space and capability information of one or more acquiring devices in the second space. The one or more acquiring devices in the second space are used to acquire environmental conditions of the second space. The first device generates a control scenario corresponding to the second space based on the device capability information of the second space. If the environmental conditions of the second space meet the triggering conditions of the control scenario corresponding to the second space, at least one controlled device in the second space is triggered to execute the control scenario.

15. The method according to any one of claims 1 to 14, characterized in that, The method further includes: The first device acquires device capability information of the third space, which includes capability information of one or more controlled devices in the third space. The first device acquires device capability information of the fourth space, which includes capability information of one or more acquisition devices in the fourth space, and the one or more acquisition devices in the fourth space are used to acquire the environmental conditions of the fourth space. The first device generates a control scenario corresponding to the third space based on the device capability information of the third space and the device capability information of the fourth space. If the environmental conditions of the fourth space satisfy the triggering conditions of the control scenario corresponding to the third space, at least one controlled device in the third space is triggered to execute the control scenario.

16. The method according to any one of claims 1 to 15, characterized in that, The first device is a whole-house smart host.

17. The method according to claim 8, 10, 11 or 13, characterized in that, The second device is a central control screen, smart home device, smartphone, or wearable device.

18. A method for creating a scene, characterized in that, The method is applied to a second device, and the method includes: Based on the detected first user operation, a first message is sent to the first device, and the first message is used to trigger the first device to generate a control scene corresponding to the first space; Receive the control scenario sent by the first device; Based on the control scenario, generate a scene card corresponding to the control scenario.

19. The method according to claim 18, characterized in that, The method further includes: Receive the updated control scenario sent by the first device; Update the scene card corresponding to the updated control scene.

20. The method according to claim 19, characterized in that, The receiving of the updated control scenario sent by the first device includes: Based on the detected update of the user's parameters to the control scenario, a second message is sent to the first device, the second message including the update information of the control scenario; Receive the updated control scenario sent by the first device.

21. An electronic device, characterized in that, include: One or more processors; One or more memory units; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1 to 17.

22. An electronic device, characterized in that, include: One or more processors; One or more memory units; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 18 to 20.

23. A system, characterized in that, include: A first electronic device for implementing the method as described in any one of claims 1 to 17; A second electronic device for implementing the method as described in any one of claims 18 to 20.

24. A computer-readable storage medium, characterized in that, The storage medium stores a program or instructions that, when executed, implement the method as described in any one of claims 1 to 17, or the method as described in any one of claims 18 to 20.

25. A chip, characterized in that, The chip stores instructions that, when executed, implement the method as described in any one of claims 1 to 17, or the method as described in any one of claims 18 to 20.

26. A computer program product, characterized in that, The computer program product stores a program or instructions that, when executed, implement the method as described in any one of claims 1 to 17, or the method as described in any one of claims 18 to 20.

Citation Information

Patent Citations

  • Scene-based control method and device, equipment and storage medium

    CN112034726A

  • Linkage control method and device for an intelligent scene and storage medium

    CN113050446A

  • Equipment control method and device, electronic equipment and medium

    CN114237062A

  • Intelligent household equipment scene automatic generation system and method

    CN115718434A

  • Scene synchronization method and device, electronic equipment and readable storage medium

    CN116074143A