Scene setting method and electronic device
By creating spatial slices and sub-scenes in the smart home system, the steps for users to set up time-lapse scenarios are simplified, improving efficiency and intelligence, and enhancing the user experience.
Patent Information
- Application Number
- CN202311469338.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2043-11-03
AI Technical Summary
In smart home systems, creating control scenarios with time delays involves cumbersome and difficult steps, negatively impacting the user experience.
By creating sub-scenes corresponding to spatial slices, the process of setting up time-delayed scenes is simplified, including displaying spatial slice and sub-scene information, generating target scenes in response to user operations, and setting time intervals and loop parameters.
It simplifies user operation steps, improves the efficiency and intelligence of latency scenario settings, and enhances the user experience.
Smart Images

Figure CN119937333B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a scene setting method and an electronic device. Background Technology
[0002] With the development of terminal technology, in smart home systems, various devices in the home (such as...) are connected through Internet of Things (IoT) technology. Figure 1 The audio-visual equipment 11, lighting system equipment 12, environmental control equipment 13, security system equipment 14, etc. shown are connected together to achieve centralized control of the equipment.
[0003] Typically, for ease of operation, users create control scenes that include multiple devices, enabling automatic control of these devices based on the scene. For example, creating a wake-up scene might include setting preset times to activate music, curtains, sheers, and other devices, as well as configuring the activation parameters for each device. This allows users to avoid having to turn on each device individually upon waking.
[0004] In some smart home scenarios, different devices require a certain time delay (interval) to execute their functions. For example, in a wake-up scenario, music and curtains need to be turned on first, then the sheer curtains need to be opened 10 minutes later, and all devices in the rooms need to be turned off 20 minutes later. Currently, creating control scenarios with delays involves many repetitive steps. Users need to first select the device performing the task, then set the device's specific operating parameters (such as on / off, brightness, playback content, etc.), and then add the delay duration. If more delays between tasks need to be added, these steps are repeated. The scene setup process is complex and difficult for users, negatively impacting the user experience. Summary of the Invention
[0005] To address the aforementioned technical problems, this application provides a scene setting method and an electronic device. The technical solution provided by this application allows the control device to create a time-delay scene comprising multiple sub-scenes by creating sub-scenes corresponding to spatial slices, thereby reducing the difficulty of setting up time-delay scenes and improving the efficiency of creating time-delay scenes.
[0006] To achieve the above-mentioned technical objectives, the embodiments of this application provide the following technical solutions:
[0007] In a first aspect, a scene setting method is provided, applied to a control device. The method includes: in response to a first operation by a user to create a scene, displaying a first interface, displaying a created first spatial slice in a first area of the first interface, and displaying first information of a first sub-scene corresponding to the first spatial slice in a second area of the first interface, the first information indicating a first task of a first target device included in the first sub-scene; in response to a second operation by the user, displaying a second spatial slice sorted after the first spatial slice in the first area, and switching the display of second information of a second sub-scene corresponding to the second spatial slice in the second area, the second information indicating a second task of a second target device included in the second sub-scene; and in response to a third operation by the user, generating a first target scene, the first target scene including a first sub-scene and a second sub-scene, the first target scene including an indication that after a first time interval is triggered for the first target device to execute the first task, the second target device will be triggered to execute the second task.
[0008] In this way, the control device responds to user operations by creating spatial slices and corresponding sub-scenes, thus completing the creation of a time-delay scenario that includes multiple sub-scenes. This simplifies the steps for users to set up time-delay scenarios, reduces the difficulty of setting up time-delay scenarios, and improves the efficiency of creating time-delay scenarios.
[0009] According to the first aspect, the first time interval is either a default time interval or a first time interval between a first spatial slice and a second spatial slice in response to a fourth operation set by the user.
[0010] In this way, the control device responds to the user's operation by determining the first time interval between the first spatial slice and the second spatial slice, and sets a time-delay scenario task for the device in the corresponding sub-scene of the spatial slice. This simplifies the user's operation steps, improves the efficiency of setting time-delay scenario tasks, and streamlines the user's operation steps for setting time-delay scenarios.
[0011] According to the first aspect, or any implementation of the first aspect above, in response to a user's second operation, a second spatial slice ordered after the first spatial slice is displayed in the first area, and second information of the second sub-scene corresponding to the second spatial slice is switched to be displayed in the second area, including: in response to a user's operation of creating a spatial slice, generating a second spatial slice by copying the first spatial slice, and displaying the copied first information in the second area; in response to a user's operation on the first information, generating second information of the second sub-scene corresponding to the second spatial slice; displaying the second spatial slice in the first area, and displaying the second information in the second area.
[0012] In this way, in response to the user's operation of adding a spatial slice, the control device can perform copy editing based on the information of the sub-scene corresponding to the already set spatial slice in the second area. The setting of the sub-scene corresponding to the next spatial slice with a time interval is realized, a time-delay scene task is added to the target device in the space corresponding to the spatial slice, and the linkage effect between the sub-scenes corresponding to different spatial slices can be realized. The operation steps of the user can be simplified, and the efficiency of the user in setting the time-delay scene can be improved.
[0013] According to the first aspect, or any one of the implementation manners of the above first aspect, in response to the first operation of the user to create a scene, a first interface is displayed, a first spatial slice created is displayed on a first area of the first interface, and first information of a first sub-scene corresponding to the first spatial slice is displayed on a second area of the first interface, including: in response to the first operation of the user to create a scene, determining the device state of the controlled devices in the current space, where the controlled devices include a first target device; and creating a first spatial slice and generating the first information of the first sub-scene corresponding to the first spatial slice according to the device state.
[0014] In this way, the device state of the controlled devices in the space may be the device state in the scene that the user wants to create. Therefore, the control device creates an initial spatial slice (i.e., the first spatial slice) based on the device state of the controlled devices in the current space, which can effectively simplify the setting process of the first sub-scene corresponding to the initial spatial slice and make the first information of the first sub-scene meet the actual usage requirements of the user.
[0015] According to the first aspect, or any one of the implementation manners of the above first aspect, the first target device and the second target device are devices in the same space, or the first target device and the second target device are devices in different spaces.
[0016] In some examples, according to the actual usage requirements, the user may need to configure the time-delay scene corresponding to the controlled devices located in the same space. Or, the user may also need to configure the time-delay scene corresponding to the controlled devices located in different spaces.
[0017] In this way, in response to the user's operation, the control device can add a time-delay scene task to the devices in different spaces, so that the devices in different spaces can be linked to form a cross-space time-delay scene, improving the intelligence of the smart home system and enhancing the user's quality of life.
[0018] According to the first aspect, or any implementation of the first aspect above, before displaying the second spatial slice sorted after the first spatial slice in the first area in response to the user's second operation, and switching the display of the second information of the second sub-scene corresponding to the second spatial slice in the second area, the method further includes: detecting the second operation of the user instructing to create a spatial slice, determining the first space where the current control device is located; if the first space is the same as the second space where the first target device is located, generating the second spatial slice by copying the first spatial slice; if the first space is different from the second space where the first target device is located, generating the second spatial slice according to the device status of the controlled device in the first space.
[0019] Thus, based on the user's creation of spatial slices, the control device detects whether the user is creating spatial slices for the same space or for spaces across different spaces, and generates information for the corresponding sub-scenes of the spatial slices using different methods. When the control device responds to the user's operation to add a spatial slice, if it detects that the first space where the control device is currently located is the same as the second space where the first target device is located, it determines that the user is continuing to create sub-scenes for the same space. In this case, it generates the second spatial slice by copying the first spatial slice, which simplifies the user operation. If it detects that the first space is different from the second space where the first target device is located, it determines that the user wants to create sub-scenes for different spaces. In this case, it generates the second spatial slice based on the device status of the controlled device in the first space, which simplifies the subsequent editing of the second spatial slice. This simplifies the user operation steps and improves the efficiency of users setting latency scenarios.
[0020] According to the first aspect, or any implementation of the first aspect above, the second target device includes the device whose device state is to be switched in the first target device, and / or the newly added device to be controlled.
[0021] In some examples, during the latency scenario setup process, users can set sub-scenes corresponding to different spatial slices according to actual usage needs. Sub-scenes corresponding to adjacent spatial slices may include target devices with the same or different tasks to be executed. Then, during the process of editing sub-scenes based on user operations, the control device can determine whether the controlled device state corresponding to adjacent spatial slices is an existing device state or an incremental device state, and identify the target device corresponding to the incremental device state as the information of the currently edited sub-scene. This ensures that when the sub-scene is subsequently triggered, the target device corresponding to the incremental device state can be triggered to execute the task, thereby changing the device state to the desired state.
[0022] In this way, the control device responds to user operations and can determine the second target device for the task to be executed in the current sub-scenario, simplifying the user operation steps and reducing the difficulty of setting up latency scenarios.
[0023] According to the first aspect, or any implementation of the first aspect above, the second information of the second sub-scene corresponding to the second spatial slice is switched and displayed in the second area, including: switching and displaying the second information in the second area, and maintaining the display of information of the device in the first target device that does not switch device states.
[0024] In this way, the control device responds to user operations, keeping the device status unchanged in the second area. It only needs to switch the display of incremental and / or decremental information in the device status to help users understand the effect of scene settings and improve the efficiency of users setting latency scenes.
[0025] According to the first aspect, or any implementation of the first aspect above, in response to a fifth operation in which the user adjusts the arrangement order of the first spatial slice and the second spatial slice displayed in the first display area, the first target scene is modified and a second target scene is generated. The second target scene includes an instruction to trigger the first target device to execute a fourth task after a first time interval in which the second target device executes a third task.
[0026] In this way, the control device can respond to user operations and adjust the execution order of spatial slices, thereby easily modifying the order in which the target device executes latency scenario tasks, making it more flexible and simple for users to set latency scenario tasks.
[0027] According to the first aspect, or any implementation of the first aspect above, before generating the first target scene in response to the user's fourth operation, the method further includes: in response to the user's sixth operation of selecting a first spatial slice in the first region, highlighting the spatial slice in the first region in a preset manner, and switching to displaying the first information of the first sub-scene in the second region.
[0028] In this way, the control device responds to the user's switching operation on the spatial slice, highlights the selected spatial slice, and switches to display the preview interface of the sub-scene corresponding to the selected spatial slice. This allows users to easily view the effect of the time delay scene settings and improves the efficiency of setting time delay scenes.
[0029] According to the first aspect, or any implementation of the first aspect above, the control device responds to the user's seventh operation by setting the loop parameters of the first target scenario. The loop parameters include one or more of the following: number of loops, loop duration, and loop time interval.
[0030] The loop count indicates the number of times the delay scenario is executed. For example, after determining that the delay scenario triggering conditions are met, the control device sequentially triggers the target devices included in the multiple sub-scenes within the delay scenario to execute their respective tasks according to the triggering order of the sub-scenes included in the delay scenario. Then, the control device repeats the delay scenario implementation process according to the loop count. The loop time interval indicates the time interval between delay scenario loops. For example, the control device instructs the target devices to execute the delay scenario according to the sub-scene order corresponding to the spatial slice, and after a loop time interval, the control device instructs the target devices to execute the delay scenario again according to the sub-scene order corresponding to the spatial slice. The loop duration refers to the total time for the control device to control the target devices to execute tasks according to the delay scenario. For example, a light show delay scenario is a looped delay scenario; the control device stops controlling the lighting devices in the light show scenario to execute tasks after the loop duration has elapsed.
[0031] In this way, the control device responds to user operations and sets loop parameters, allowing the addition of loop-delay tasks to the target device. This reduces the number of steps required for users to set up loop-delay scenarios and lowers the difficulty of setting up such scenarios for the target device. For example, in loop-delay scenarios such as light shows that require the target device to repeatedly perform the same task, users only need to set the target device's execution task and loop parameters once to complete the entire loop-delay scenario setup.
[0032] Based on the first aspect, or any implementation of the first aspect above, in response to the user's eighth operation, set the activation conditions for the first sub-scenario or the second sub-scenario. The activation conditions include one or more of the following: activation time, device status change, weather conditions, and time interval.
[0033] In some examples, the automatic execution of latency scenarios is achieved by adding effective conditions to trigger latency scenarios or sub-scenarios within latency scenarios, thus meeting the actual usage needs of users.
[0034] In this way, the control device responds to user operations and sets effective conditions for spatial slices and their corresponding sub-scenes. This makes the set latency scenarios more user-friendly, more intelligent, and closer to users' daily needs, thereby further improving users' quality of life.
[0035] According to the first aspect, or any implementation of the first aspect above, in response to the user's ninth operation, a second interface is displayed. The second interface is used to play the execution effect of the first target scene. The execution effect includes switching between displaying a first spatial slice and a second spatial slice in the first area, and switching between displaying first information corresponding to the first spatial slice and second information corresponding to the second spatial slice in the second area.
[0036] In this way, by responding to user instructions to preview the time-delay scene, the control device can play the sub-scenes corresponding to the spatial slice for the user, making it convenient for the user to preview the effect of the time-delay scene settings in real time, and greatly improving the efficiency of the user in creating time-delay scenes.
[0037] According to the first aspect, or any implementation of the first aspect above, during the process of playing the execution effect of the first target scene, a first command instructing the execution of the first task is sent to the first target device, and a second command instructing the execution of the second task is sent to the second target device.
[0038] In this way, by responding to user instructions to preview the latency scenario, the control device can execute the latency scenario in real time in the physical space, which greatly improves the visualization and setup efficiency when users create latency scenarios.
[0039] According to the first aspect, or any implementation of the first aspect above, in response to the user's tenth operation, the third spatial slice, which is sorted after the second spatial slice, is displayed in the first area, and the third information of the third sub-scene corresponding to the third spatial slice is switched to be displayed in the second area. The third information is used to indicate the fifth task of the third target device included in the third sub-scene. The first target scene also includes an indication of a second time interval after the second target device is triggered to execute the second task, and the third target device is triggered to execute the fifth task. The second time interval is a default time interval.
[0040] In this way, the control device can respond to user operations, create multiple spatial slices, and set multiple continuous scene tasks with different time intervals for the target device, which simplifies user operations and improves the efficiency of setting up time-delay scenes.
[0041] In a second aspect, a control device is provided. The device includes a processor, a display screen, and a memory, the memory and the display screen being coupled to the processor. The memory stores computer program code, which includes computer instructions. When the processor reads the computer instructions from the memory, the control device performs the following actions in response to a first user operation to create a scene: displaying a first interface, showing a first spatial slice created in a first area of the first interface, and displaying first information corresponding to a first sub-scene of the first spatial slice in a second area of the first interface, the first information indicating a first task of a first target device included in the first sub-scene; displaying a second spatial slice ordered after the first spatial slice in the first area, and switching the display of second information corresponding to the second sub-scene in the second area, the second information indicating a second task of a second target device included in the second sub-scene; and generating a first target scene in response to a third user operation, the first target scene including a first sub-scene and a second sub-scene, the first target scene including an indication that, after a first time interval in which the first target device is triggered to execute the first task, the second target device will be triggered to execute the second task.
[0042] According to the second aspect, the first time interval is either a default time interval or a first time interval between the first spatial slice and the second spatial slice in response to the user's fourth operation setting.
[0043] According to the second aspect, or any implementation of the third aspect above, in response to the user's second operation, a second spatial slice ordered after the first spatial slice is displayed in the first area, and second information of the second sub-scene corresponding to the second spatial slice is switched to be displayed in the second area, including: in response to the user's operation of creating a spatial slice, generating a second spatial slice by copying the first spatial slice, and displaying the copied first information in the second area; in response to the user's operation on the first information, generating second information of the second sub-scene corresponding to the second spatial slice; displaying the second spatial slice in the first area, and displaying the second information in the second area.
[0044] According to the second aspect, or any of the third aspects above, in response to the user's first operation of creating a scene, a first interface is displayed, the first spatial slice created is displayed in the first area of the first interface, and the first information of the first sub-scene corresponding to the first spatial slice is displayed in the second area of the first interface, including: in response to the user's first operation of creating a scene, determining the device status of the controlled device in the current space, the controlled device including the first target device; and creating the first spatial slice and generating the first information of the first sub-scene corresponding to the first spatial slice based on the device status.
[0045] According to the second aspect, or any implementation of the third aspect above, the first target device and the second target device are devices in the same space, or the first target device and the second target device are devices in different spaces.
[0046] According to the second aspect, or any implementation of the third aspect above, when the processor reads computer instructions from memory, it also causes the control device to perform: detecting a second operation of creating a spatial slice by user instruction, determining the first space where the current control device is located; if the first space is the same as the second space where the first target device is located, generating a second spatial slice by copying the first spatial slice; if the first space is different from the second space where the first target device is located, generating a second spatial slice according to the device state of the controlled device in the first space.
[0047] According to the second aspect, or any of the above third aspects, the second target device includes the device whose device state or operating parameters are to be switched in the first target device, and / or the newly added device to be controlled.
[0048] According to the second aspect, or any of the above third aspects, the second information of the second sub-scene corresponding to the second spatial slice is switched and displayed in the second area, including: switching and displaying the second information in the second area, and maintaining the display of the information of the device in the first target device that does not switch device states.
[0049] According to the second aspect, or any implementation of the third aspect above, when the processor reads computer instructions from memory, it also causes the control device to perform: a fifth operation in response to a user adjusting the arrangement order of the first spatial slice and the second spatial slice displayed in the first display area, modifying the first target scene, generating a second target scene, the second target scene including an instruction to trigger the first target device to perform a fourth task after a first time interval in which the second target device is triggered to perform a third task.
[0050] According to the second aspect, when the processor reads computer instructions from memory, it also causes the control device to perform: in response to a sixth operation in which the user selects a first spatial slice in the first region, highlighting the spatial slice in the first region in a preset manner, and switching the display of first information of the first sub-scene in the second region.
[0051] According to the second aspect, or any implementation of the third aspect above, when the processor reads computer instructions from memory, it also causes the control device to perform: in response to the user's seventh operation, setting loop parameters for the first target scenario, the loop parameters including one or more of the following: number of loops, loop duration, and loop time interval.
[0052] According to the second aspect, or any implementation of the third aspect above, when the processor reads computer instructions from memory, it also causes the control device to perform: in response to the user's eighth operation, setting the effective conditions of the first sub-scenario or the second sub-scenario, the effective conditions including one or more of the following: effective time, device status change, weather conditions, and time interval.
[0053] According to the second aspect, or any implementation of the third aspect above, when the processor reads computer instructions from memory, it also causes the control device to perform: in response to the user's ninth operation, displaying a second interface, the second interface being used to play the execution effect of the first target scene, the execution effect including switching the display of a first spatial slice and a second spatial slice in a first area, and switching the display of first information corresponding to the first spatial slice and second information corresponding to the second spatial slice in the second area.
[0054] According to the second aspect, or any implementation of the third aspect above, when the processor reads computer instructions from memory, it also causes the control device to perform: during the execution effect of playing the first target scene, sending a first command to the first target device to instruct the execution of the first task, and sending a second command to the second target device to instruct the execution of the second task.
[0055] According to the second aspect, or any implementation of the third aspect above, when the processor reads computer instructions from memory, it further causes the control device to perform: in response to a tenth operation by the user, displaying a third spatial slice ordered after the second spatial slice in a first area, and switching the display of third information of the third sub-scene corresponding to the third spatial slice in the second area, the third information being used to indicate the fifth task of the third target device included in the third sub-scene; the first target scene also includes an indication that after a second time interval is triggered for the second target device to execute the second task, the third target device is triggered to execute the fifth task.
[0056] Thirdly, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as instructions or code) that, when executed by an electronic device, causes the electronic device to perform the method of the first aspect or any embodiment of the first aspect.
[0057] Fourthly, a computer program product is provided that, when run on an electronic device, causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect.
[0058] Fifthly, a circuit system is provided, the circuit system including processing circuitry configured to perform the method of the first aspect or any embodiment of the first aspect.
[0059] In a sixth aspect, a chip system is provided, including at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes the instructions, the at least one processor performs the method of the first aspect or any embodiment of the first aspect.
[0060] The technical effects of the aforementioned aspects can be referenced from each other, and will not be elaborated further here. Attached Figure Description
[0061] Figure 1 This is a schematic diagram of a family scene provided in an embodiment of this application;
[0062] Figure 2 Interface illustration provided for embodiments of this application Figure 1 ;
[0063] Figure 3 A schematic diagram of a communication system used in an embodiment of this application for setting up a scene;
[0064] Figure 4A A schematic diagram of the hardware structure of the first electronic device provided in an embodiment of this application;
[0065] Figure 4B This is a schematic diagram of the hardware structure of the communication device provided in the embodiments of this application;
[0066] Figure 5 Interface illustration provided for embodiments of this application Figure 2 ;
[0067] Figure 6 Interface illustration provided for embodiments of this application Figure 3 ;
[0068] Figure 7 Interface diagram four provided for embodiments of this application;
[0069] Figure 8 Interface illustration provided for embodiments of this application Figure 5 ;
[0070] Figure 9 Interface illustration provided for embodiments of this application Figure 6 ;
[0071] Figure 10 Interface illustration provided for embodiments of this application Figure 7 ;
[0072] Figure 11 Interface illustration provided for embodiments of this application Figure 8 ;
[0073] Figure 12Interface illustration provided for embodiments of this application Figure 9 ;
[0074] Figure 13 Interface illustration provided for embodiments of this application Figure 10 ;
[0075] Figure 14 Interface illustration provided for embodiments of this application Figure 10 one;
[0076] Figure 15 Interface illustration provided for embodiments of this application Figure 10 two;
[0077] Figure 16 Interface illustration provided for embodiments of this application Figure 10 three;
[0078] Figure 17 Interface illustration provided for embodiments of this application Figure 10 Four;
[0079] Figure 18 A flowchart illustrating a scene setting method provided in an embodiment of this application;
[0080] Figure 19 A schematic diagram of the structure of the control device provided in the embodiment of this application. Detailed Implementation
[0081] 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, the terminology used is for the purpose of describing specific embodiments only and is not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” and “this” are intended to 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 or more (including two).
[0082] References to "one embodiment" or "some embodiments" 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 "in one embodiment," "in some embodiments," "in other embodiments," "in still 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. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "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.
[0083] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0084] In some scenarios, with the influx of various electronic devices into people's lives, the concept of smart home systems has emerged, specifically addressing the home use of electronic devices. For example... Figure 1 As shown, using the residence as a platform and leveraging technologies such as the Internet of Things and automatic control, a smart home system organically integrates various electronic devices and application subsystems related to home life. Smart home devices within this system can include audio-visual equipment (such as smart screens and Bluetooth speakers), lighting equipment (such as main lights, table lamps, and spotlights), environmental control equipment (such as air conditioners and air purifiers), and burglar alarm equipment (such as human body sensors and cameras).
[0085] During the use of smart home devices, users can create smart home device scenes to achieve scene control and improve the efficiency of smart home device control. For example, based on actual usage scenarios, users can add smart home devices included in the actual usage scenario to the corresponding scene and set trigger conditions and tasks that the smart home devices need to perform. For example, setting up a scene to turn off the air conditioners would involve turning off all the air conditioners in the house when the scene card is clicked. This makes it convenient for users to turn off the air conditioners without having to operate each air conditioner individually.
[0086] In some scenarios, the execution of different devices requires a certain delay (time interval). Common scenarios include waking up in the morning, returning home from get off work, watching a movie, a looping light show, and a family party. For example, in the waking-up scenario, music and curtains need to be turned on first, then the sheer curtains are opened 10 minutes later, and all devices in the rooms are turned off 20 minutes later. Current smart home control interfaces only support generating single-moment scenes and cannot generate scenes with time intervals (delays). If you want to set actions for multiple devices in a delayed scene, you can only add actions for each device step by step, resulting in a poor user experience.
[0087] Currently, when creating a control scene with time delay, users need to first select the device to perform the task, then set the specific parameters of the device's task (such as on / off, brightness, playback content, etc.), and then add the delay duration. To add delays between tasks performed by more devices, the above steps are repeated. For example, a light show scene for a home party involves even more devices and delay settings. This results in numerous and repetitive steps in scene setup, making user operation complex, increasing setup difficulty, and negatively impacting the user experience.
[0088] For example, consider a mobile phone with a Smart Life app installed. After the phone detects the addition of a scene in the Smart Life app, it displays something like this: Figure 2 The scene creation interface 201 is shown in (a). On interface 201, after the mobile phone detects the user's click on the task execution control 21, it displays the following... Figure 2 Interface 202 is shown in (b). On interface 202, after the mobile phone detects the user's click on the smart home device control 22, it determines that the user needs to add a task to control smart home devices and expands the smart home device category pop-up window. In response to the user's selected smart home device type, the following is displayed: Figure 2 Interface 203 is shown in (c). Interface 203 displays controllable smart speaker devices for the user to select. In interface 203, the phone detects the user's click on the Sound X 01 device control 23, confirms that the user has selected the Sound X 01 device added to the scene for the master bedroom, and the phone displays as shown... Figure 2 Interface 204 is shown in (d). Interface 204 displays several options for configuring the SoundX 01 device. For example, interface 204 displays a music playback option for the user to select a music genre. When the phone detects that the user has clicked the music playback option, a pop-up window displays music categories such as Western music and classical music for the user to choose from. After the phone detects that the user has completed the settings in interface 204, it returns to... Figure 2The scene creation interface shown in interface 205 (e) responds to user actions on interface 205 by setting the delay of smart home device actions. For example, after the phone detects the user's click on control 24, it determines that the user is setting the delay action, adding effective conditions, or deleting the task for the Sound X 01 device to play Western music, and pops up a pop-up window including options for adding effective conditions, delaying execution, and deleting. In response to the user's action on the delay execution option in the pop-up window, the phone displays as follows... Figure 2 Interface 206 is shown in (f). In interface 206, the delay duration for playing Western music on the Sound X 01 device can be set. After the phone detects the user's click on control 25, it displays... Figure 2 Interface 207 (g). In interface 207, the phone can determine the delay duration for the Sound X 01 device to play Western music based on user operation. For example, a delay duration of 10 seconds indicates that the Sound X 01 device will start playing Western music 10 seconds after the light bulb is turned on. To add more delays between tasks, repeat the above steps.
[0089] It's evident that the user's steps in setting up a time-lapse scenario are extremely cumbersome. Furthermore, users need to pre-imagine the desired scene setup for each smart home device in the time-lapse scenario to be created, and cannot directly view the scene's effects in real-time during the creation process. Adding or deleting devices from the scene also requires a complex editing process, negatively impacting the user experience.
[0090] Therefore, this application provides a scene setting method. During the latency scene setting process of a smart home device, the control device, in response to a user's first operation of creating a scene, displays a first interface. A first spatial slice created is displayed in a first area of the first interface, and first information corresponding to a first sub-scene of the first spatial slice is displayed in a second area of the first interface. The first information indicates a first task of a first target device included in the first sub-scene. In response to a user's second operation, the control device displays a second spatial slice ordered after the first spatial slice in the first area, and switches the display of second information corresponding to the second sub-scene of the second spatial slice in the second area. The second information indicates a second task of a second target device included in the second sub-scene. In response to a user's third operation, the control device generates a first target scene, which includes a first sub-scene and a second sub-scene. The first target scene indicates that after a first time interval is triggered for the first target device to execute the first task, the second target device will be triggered to execute the second task. This application simplifies the latency scene setting operation steps for users and lowers the threshold for latency scene setting.
[0091] Figure 3This is a schematic diagram of a communication system to which the latency scenario setting method provided in this application is applied. Figure 3 As shown, the communication system includes a first electronic device 100, a server 200, and a control device 300.
[0092] In some embodiments, the first electronic device 100 may be, for example, a speaker 101, a smart screen 102, a desk lamp 103, a light bulb 104, a camera 105, an air purifier 106, a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a netbook, a wearable electronic device, an artificial intelligence (AI) terminal, or other terminal devices. The operating system installed on the first electronic device 100 includes, but is not limited to, […]. Alternatively, it may use another operating system. The first electronic device 100 may also not have an operating system installed. In some embodiments, the first electronic device 100 may be a fixed device or a portable device. This application does not limit the specific type of the first electronic device 100, whether it has an operating system installed, or the operating system installed if it does.
[0093] In some embodiments, the first electronic device 100 can be a smart home device, and the various first electronic devices 100 can be connected to form a smart home system. The first electronic devices 100 can be connected to the server 200, and the server 200 manages the various first electronic devices 100.
[0094] For example, server 200 manages one or more first electronic devices 100 included in one or more homes, taking a home as the unit. During the configuration process of the first electronic device 100 requesting to join the smart home system, server 200 adds the first electronic device 100 to the corresponding home.
[0095] In some embodiments, during the network configuration process, engineers can set the location information of each first electronic device 100, such as electronic devices in rooms like the living room, study, and bedroom. Subsequently, the location information of each first electronic device 100 can be stored in the first electronic device 100 and / or the server 200.
[0096] In some embodiments, server 200 may be a cloud server or a network server, or other devices or network devices with computing capabilities. Server 200 may be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. Server 200 may also be described as a smart home cloud platform for managing smart home devices included in a smart home system. Optionally, server 200 may also be a local device or a group of devices consisting of multiple devices.
[0097] In some embodiments, such as Figure 3 As shown, the communication system may also include a control device 300. The control device 300 may be connected to one or more first electronic devices 100 for managing and controlling the first electronic devices 100.
[0098] In some embodiments, the control device 300 can be a dedicated device for controlling smart home devices, or a device that includes functions for controlling smart home devices. For example, the control device 300 can be a smart home device control panel 302, or a terminal device with display functions such as a mobile phone 301, tablet, smart speaker, or smartwatch. The smart home device control panel 302 is a dedicated device for controlling smart home devices in a smart home system. In some embodiments, the control device 300 can be a fixed device or a portable device. This application does not impose any special limitations on the specific form of the control device 300.
[0099] In some embodiments, the control device 300 is connected to one or more first electronic devices 100 to obtain device information of the first electronic devices 100. The control device 300 provides a human-machine interface to display the device information of the first electronic devices 100 to the user and to receive control commands from the user for the first electronic devices 100.
[0100] In some embodiments, the control device 300 has a first application installed. This first application is a smart home application capable of connecting to smart home devices and editing and managing them. For example... Figure 3 As shown, the control device 300 is connected to one or more first electronic devices 100 via a first application. In some embodiments, the first application is a smart living application.
[0101] In some embodiments, during the startup of the first application, the control device 300 detects a user adding a device, searches for nearby first electronic devices 100, and configures the network for the found first electronic devices 100. During the network configuration process, the control device 300 sends local area network information (such as network name and password) to the first electronic device 100, assisting the first electronic device 100 in joining the same local area network as the control device 300, allowing the first electronic device 100 to establish a wireless communication connection with the control device 300. Furthermore, the control device 300 sends the device information of the first electronic device 100 to the server 200, enabling the server 200 to add the first electronic device 100 to the corresponding home and assign a device identity document (ID) to the first electronic device 100. Subsequently, the server 200 can uniformly manage the first electronic devices 100 included in the home.
[0102] For example, control device 300 receives a scene creation command input by the user, and creates and displays space slice 1 based on the device status of the first electronic device 100 in the current space (e.g., a room). Then, based on the user's operation on the sub-scene corresponding to space slice 1, control device 300 can complete the creation of sub-scene 1, which includes at least one task that the first electronic device 100 needs to perform. Control device 300 can also create more space slices in response to user operations. Different space slices corresponding to different sub-scenes can be used to instruct the same or different first electronic devices 100 to perform corresponding tasks. Then, control device 300 can set the time interval for the first electronic devices 100 in different sub-scenes to send task execution instructions according to user operations to generate the final time-delayed scene.
[0103] The control device 300 can save the delay scene so that users can easily view or edit it next time.
[0104] In some embodiments, the control device 300 can send the information of the latency scenario to the server 200. Subsequently, after the server 200 determines that the latency scenario triggering conditions are met, it can directly control the first electronic device 100 included in the latency scenario to execute the tasks to be performed by the first electronic device 100 in the scenario. During scenario control, the server can send task execution instructions to the first electronic device 100 included in the corresponding sub-scenario according to the time interval information between different sub-scenarios included in the latency scenario, thereby enabling devices in the same scenario to execute tasks at different times, enriching the latency scenario setting effects and meeting user needs.
[0105] It should be noted that the above example uses the process of the control device 300 starting the first application and triggering the first electronic device 100 to join the home as an example to illustrate the process of adding the first electronic device 100 to the corresponding home. It is understood that the method of triggering the first electronic device 100 to join the home can also include other methods. For example, if the control device 300 has not yet started the first application after powering on, it can automatically search for nearby first electronic devices 100 that are not connected to the local area network and / or not joined to the home, and, according to user operation, connect some or all of these first electronic devices 100 to the local area network and add them to the corresponding home. This application embodiment does not impose specific limitations on this.
[0106] In some embodiments, such as Figure 3 As shown, the communication system described above may also exclude the control device 300. The first electronic device 100 is added to the home network managed by the server 200, and the server 200 can directly obtain information about all the first electronic devices 100 in the home network. Subsequently, any electronic device with processing capabilities among the first electronic devices 100 can send a request to the server 200 as needed to obtain information about other first electronic devices 100. Afterwards, this electronic device, acting as a master device, can be used to control other first electronic devices 100 and create latency scenarios involving one or more first electronic devices 100.
[0107] For example, the first electronic device 100 includes a smart screen 102. The smart screen 102 can create a latency scenario that includes one or more first electronic devices 100 based on user operation, and send the latency scenario to the server 200. After the server 200 determines that the latency scenario triggering conditions are met, it can directly control the first electronic devices 100 included in the latency scenario to execute the tasks that the first electronic devices 100 need to execute in the latency scenario.
[0108] In some embodiments, the operating system is, for example, a smart home system, and the first electronic device 100 is a smart home device. Alternatively, the operating system is a smart office system, and the first electronic device 100 is a smart office device. Or, the communication system may be another communication system such as a smart campus communication system; this application embodiment does not limit this. The following describes the scenario setting method provided in this application embodiment in detail, using the example of a smart home system and the first electronic device 100 being a smart home device.
[0109] For example, Figure 4A A schematic diagram of one structure of the first electronic device 100 is shown.
[0110] The first 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 sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0111] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the first electronic device 100. In other embodiments of this application, the first 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.
[0112] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0113] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0114] 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.
[0115] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0116] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to a touch sensor, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to a touch sensor through the I2C interface, enabling the processor 110 and the touch sensor to communicate through the I2C bus interface, thereby realizing the touch function of the first electronic device 100.
[0117] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the shooting function of the first electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to enable the display function of the first electronic device 100.
[0118] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge the first electronic device 100, and can also be used for data transfer between the first electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0119] 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 first electronic device 100. In other embodiments of this application, the first electronic device 100 may also adopt different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.
[0120] 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 a USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the first 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.
[0121] 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, 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.
[0122] The wireless communication function of the first electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
[0123] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0124] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the first electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0125] The wireless communication module 160 can provide solutions for wireless communication applications on the first electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0126] In some embodiments, antenna 1 of the first electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the first electronic device 100 to communicate with networks and other devices via wireless communication technology. Wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. GNSS can include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0127] In some embodiments, the first electronic device 100 communicates with the server 200, control device 300 or other first electronic devices 100 through the mobile communication module 150 or wireless communication module 160 to set up and create latency scenarios.
[0128] The first 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. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0129] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the first electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0130] In some embodiments, the first electronic device 100 can obtain current spatial information and device status information of smart home devices in the current space from the server 200, so as to display a spatial slice of the current space and the sub-scene setting interface corresponding to the spatial slice on the display screen 194. Furthermore, users can view and create latency scenes on the display screen 194 according to the device status.
[0131] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the first electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0132] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the first electronic device 100. The external storage 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 storage card.
[0133] The internal memory 121 can be used to store executable program code, including instructions. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the first electronic device 100 (such as audio data, phonebook, etc.).
[0134] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110. The audio module 170 may include a speaker, receiver, microphone, headphone jack, and application processor, etc., to implement audio functions.
[0135] The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.
[0136] A touch sensor, also known as a "touch device," can be located on the display screen 194. The touch sensor and the display screen 194 together form a touchscreen, also known as a "touchscreen." The touch sensor detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor may also be located on the surface of the first electronic device 100, in a different position than the display screen 194.
[0137] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. The first electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of the first electronic device 100.
[0138] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc.
[0139] 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 and separate from the first electronic device 100. The first electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1.
[0140] In some embodiments, the server 200 and control device 300 in this application embodiment can be implemented using different devices. For example, the server 200 and control device 300 in this application embodiment can be implemented using... Figure 4B It is implemented using communication devices. Figure 4B The diagram shows a hardware structure of a communication device provided in an embodiment of this application. The communication device includes at least one processor 501, a communication line 502, a memory 503, and at least one communication interface 504. The memory 503 may also be included within the processor 501.
[0141] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the communication device. In other embodiments of this application, the communication device may include more or fewer components than illustrated, or combine some components, or split some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. For example, if the communication device is a control device 300, and the control device 300 is a mobile phone, then the control device 300 may also be configured with modules such as a SIM card interface, a camera, and an audio module.
[0142] The processor 501 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.
[0143] Communication line 502 may include a path for transmitting information between the aforementioned components.
[0144] Communication interface 504 is used for communicating with other devices. In this embodiment, the communication interface may be a module, circuit, bus, interface, transceiver, or other device capable of communication functions, used for communicating with other devices. In some embodiments, when the communication interface is a transceiver, the transceiver may be a separately configured transmitter used to send information to other devices, or it may be a separately configured receiver used to receive information from other devices. The transceiver may also be a component that integrates sending and receiving information functions; this embodiment does not limit the specific implementation of the transceiver.
[0145] Memory 503 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. Memory may exist independently and be connected to the processor via communication line 502. Memory may also be integrated with the processor.
[0146] The memory 503 stores computer execution instructions for implementing the scheme of this application, and its execution is controlled by the processor 501. The processor 501 executes the computer execution instructions stored in the memory 503, thereby implementing the scenario setting method provided in the following embodiments of this application.
[0147] In some embodiments, the computer execution instructions in this application may also be referred to as application code, instructions, computer program or other names, and this application does not specifically limit them.
[0148] In a specific implementation, as one example, the processor 501 may include one or more CPUs, for example... Figure 4B CPU0 and CPU1 in the CPU.
[0149] In a specific implementation, as one example, the communication device may include multiple processors, for example... Figure 4B Processors 501 and 507 are shown in the diagram. Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor here can refer to one or more devices, circuits, and / or processing cores used to process data (such as computer program instructions).
[0150] In a specific implementation, as one embodiment, the communication device may further include an output device 505 and an input device 506. The output device 505 communicates with the processor 501 and can display information in various ways. For example, the output device 505 may be a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector, etc. The input device 506 communicates with the processor 501 and can receive user input in various ways. For example, the input device 506 may be a mouse, keyboard, touchscreen device, or sensing device, etc.
[0151] The aforementioned communication device can be a general-purpose device or a dedicated device; the embodiments of this application do not limit the type of communication device. For example, the communication device may be a smart home device control panel, a dedicated device used to control smart home devices. Alternatively, the communication device may be a mobile phone, a general-purpose device capable of controlling smart home devices.
[0152] The following describes the scenario setting method provided in the embodiments of this application, taking the communication system as the smart home communication system, the control device 300 as the smart home device control panel, the application for managing smart home devices as the smart living application, and the first electronic device 100 as the smart home device.
[0153] In some embodiments, before smart home devices in a smart home system are delivered to users, engineers need to configure and test the devices; this process is called the pre-installation process. During pre-installation, engineers set the location information of the smart home devices according to their installation locations. This location information includes, for example, home information and room information. For instance, in home1, the location information for lights 1-5 is the living room, the location information for the curtain is the bedroom, and the location information for the sheer curtain is the living room. Afterwards, the smart home device control panel and the corresponding server can obtain the configured location information of the smart home devices. In some embodiments, the location information of the smart home devices is spatial location information, such as the room information of the smart home devices.
[0154] In some embodiments, after an electronic device connects to a local area network (LAN), it can discover other electronic devices connected to the same LAN and / or logged into the same account. These electronic devices can then be grouped into smart home devices within the same home. Subsequently, scene settings can be configured for these electronic devices located within the same home. Here, "account" refers to the account the electronic device logs into during the server registration process (such as pre-installation).
[0155] For example, a user registers for a smart living application and obtains an account username and password. Later, during the network configuration process for a new electronic device, the user logs into this account using other previously configured electronic devices (such as a mobile phone) to assist in the network configuration of the new device. The server then groups electronic devices under the same account into the same "home," enabling device management on a home-by-home basis. In some embodiments, the server manages one or more homes, where a home includes all electronic devices in a household added by the user.
[0156] Specifically, taking a smart home device control panel as an example, after logging into the smart living application, the control panel detects the user's action of adding an electronic device and sends the device information of the newly added electronic device to the server. The server determines the electronic device ID and assigns the electronic device to the home directory corresponding to the currently logged-in account on the smart home device control panel, completing the network configuration of the electronic device. Alternatively, the smart home device control panel responds to the user's action by sending the device information of the newly added electronic device to the server. The server determines the electronic device ID and assigns the electronic device to the home directory corresponding to the smart home device control panel. In some embodiments, the smart home device control panel can also be logged into with multiple accounts, in which case the server assigns home directories based on the accounts.
[0157] In some embodiments, based on the location information of electronic devices, the electronic devices included in the home can be divided into one or more groups, such as dividing the electronic devices in a room into one group.
[0158] In some embodiments, electronic devices in a room can be grouped into one or more groups according to their functions, such as grouping all lighting devices in a room into one group.
[0159] In some embodiments, users can also group devices according to their needs. For example, grouping electronic devices in room 1 and room 2 into the same group allows for setting up scenes that include the electronic devices in both rooms. Similarly, grouping frequently used electronic devices into the same group enables the creation of scenes that include these devices.
[0160] In some embodiments, a smart home device control panel can acquire and display the device status of smart home devices in a space, enabling users to view the device status within a room. In some examples, the smart home device control panel can determine its own spatial location based on its positioning module, thereby acquiring the device status of smart home devices in the current space. For instance, in response to a user's creation of a scene, the smart home device control panel can determine that the user is in the bedroom (the user's location is the same as the smart home control panel's location). Then, the smart home device control panel can display the device status of one or more smart home devices included in the bedroom.
[0161] In some scenarios, different smart home devices do not need a time interval to perform tasks. For example, a cinema scene includes a smart screen and a smart speaker. When the scene is triggered, the smart home device control panel simultaneously (or with a certain time error) sends control commands to the smart screen and smart speaker. The smart screen and smart speaker respond to the control commands and start running, thus realizing the cinema scene.
[0162] In other scenarios, different smart home devices need to execute tasks at time intervals to achieve the desired effect or meet the user's actual needs. For example, a light show scenario includes multiple smart lights. To achieve the light show effect, different smart lights need to turn on or off at certain intervals when the scenario is triggered. Therefore, the smart home device control panel needs to send start or stop commands to the corresponding smart lights at certain time intervals according to the set time delay scenario.
[0163] In some embodiments, the latency scenario includes multiple sub-scenarios, with a time interval t (t ≥ 0 seconds) between the implementation of different sub-scenarios. Each sub-scenarios includes a task to be performed by one or more smart home devices. For example, the latency scenario could be a light show scenario involving three smart lights in a living room. This scenario includes sub-scenarios 1 (instructing smart light 1 to start), sub-scenarios 2 (instructing smart light 2 to start), and sub-scenarios 3 (instructing smart light 3 to start), with a time interval of 1 second between the implementations of the three sub-scenarios. During the implementation of this light show scenario, the smart home device control panel determines that the implementation conditions for the light show scenario are met and sends a start command to smart light 1. After 1 second, the smart home device control panel sends a start command to smart light 2. After another 1 second, the smart home device control panel sends a start command to smart light 3, thus completing the implementation of the light show scenario.
[0164] In some embodiments, to simplify the setting process of latency scenarios and provide users with an intuitive demonstration of the scene setting effects, the smart home device control panel can display spatial slices corresponding to sub-scenes and the sub-scene setting interfaces corresponding to the spatial slices, based on user operations during the latency scenario setting process. This allows users to intuitively confirm the setting effects of each sub-scene and the time intervals between different sub-scenes. This simplifies the user's latency scenario setting operation and lowers the barrier to entry for latency scenario setup.
[0165] It should be understood that spatial slicing can also be described in various ways, such as sub-scene slicing, time-delay scene slicing, and smart home device task slicing. The following section uses spatial slicing as an example to introduce the process of setting up sub-scenes where task execution has time intervals in a time-delay scenario.
[0166] The following is a detailed introduction to the setup process for latency scenarios.
[0167] In some embodiments, in response to a user's scene creation operation, the smart home device control panel obtains current space information and device status information of the smart home devices in the current space to display the scene creation interface corresponding to the current space. In some examples, the scene creation interface includes an initial space slice and a sub-scene setting interface corresponding to the initial space slice. The sub-scene setting interface is used to display the device status of the smart home devices corresponding to the initial space slice. The space may include, for example, the room where the smart home device control panel is located.
[0168] For example, the smart home device control panel responds to user input, launches a smart living application, and displays, as shown below. Figure 5 The smart home application interface shown in section (a) 50a. In response to the user's operation on the scene generation control 50 displayed on the smart home application interface, the smart home device control panel determines that the user's current space is the living room. Therefore, the smart home device control panel can obtain the device status of the smart home devices in the living room and create an initial space slice corresponding to the current device status of the smart home devices in the living room. For example... Figure 5 As shown in interface 50b in section (b), the smart home device control panel displays a latency scene editor 51, which shows the initial spatial slice 52 (or described as spatial slice 1). As indicated by reference numeral 53, the smart home device control panel displays sub-scene information corresponding to the initial spatial slice 52 on the sub-scene settings interface, such as the device status of multiple smart home devices in the current space. In some examples, such as... Figure 5As shown in the interface 50b in Figure (b), the smart home device control panel displays a device startup area (within the circular area shown in Figure 54) on the sub-scene settings interface. The device (or subsystem) icon located in the device startup area is used to indicate that the corresponding smart home device is in the startup state, and the device (or subsystem) icon located outside the device startup area is used to indicate that the corresponding smart home device is in the off state.
[0169] In some examples, the smart home device control panel displays the sub-scene settings information corresponding to the currently selected space slice on the sub-scene settings interface. For example, as shown in interface 50b, sub-scene 1 corresponding to space slice 1 is used to indicate that the washing machine, humidifier, and dryer are in the on state, while other smart home devices are in the off state.
[0170] In some examples, the spatial slices displayed in the time-delay scene editor 51 can be thumbnails corresponding to sub-scenes.
[0171] In some examples, the smart home device control panel can modify sub-scenes in response to user actions. For instance, in response to a user moving a device (or subsystem) icon from within the device launch area to outside the launch area, the control state of the smart home device corresponding to that device (or subsystem) icon in the sub-scene can be changed to "off". Conversely, in response to a user moving a device (or subsystem) icon from outside the launch area to within the launch area, the control state of the smart home device corresponding to that device (or subsystem) icon in the sub-scene can be changed to "on".
[0172] In this way, the smart home device control panel presents the sub-scene setting information corresponding to the space slice through the device start area and the changes in the display position of the icons inside and outside the device start area. This allows users to view the device status indicated by the sub-scene of the current space slice in real time and improves the efficiency of setting up time-delay scenes.
[0173] In some examples, the smart home device control panel, in response to a user's scene creation operation, can create a space slice 1, with a corresponding blank sub-scene to be set. For instance, the sub-scene settings interface might display the device status of all smart home devices in the current space as "off." Users can then specify which devices need to be added to the sub-scene according to their actual needs, thus avoiding situations where the device status of the smart home devices in the current space does not meet the user's scene settings requirements. For example, if a large number of smart home devices are currently running in the space, but these are not the devices the user needs to add to the sub-scene for activation, in this case, if the smart home control panel creates space slice 1 and its corresponding sub-scene based on the actual operating status of the smart home devices in the space, the user would need to move multiple device icons to correct the sub-scene settings, leading to cumbersome operation.
[0174] Alternatively, the device status corresponding to the blank sub-scene is that all smart home devices in the current space are set to the started state.
[0175] In some examples, in response to user actions on device (or subsystem) icons located in the device startup area, the smart home device control panel can display a parameter setting window for the smart home device corresponding to that device (or subsystem) icon. This allows the user to configure parameters for the tasks performed by the smart home device in a sub-scene. For example, the operating mode after a washing machine starts. In other examples, in response to user actions on device (or subsystem) icons, the smart home device control panel can send control commands to the corresponding smart home device to instruct it to start, stop, or operate according to corresponding parameters, allowing the user to actually determine the execution effect of the sub-scene.
[0176] In some embodiments, a latency scenario includes multiple sub-scenarios. During the latency scenario creation process, the smart home device control panel responds to the user's operation of creating a spatial slice, adds a new spatial slice, and creates a sub-scenarios corresponding to the newly added spatial slice.
[0177] In some examples, smart home device control panels can add new space slices by copying the previous space slice.
[0178] For example, such as Figure 5 As shown in interface 50b in (b), the smart home device control panel responds to the user's operation on adding space slice control 55, generating as shown in the image. Figure 5 Spatial slice 2, as shown by reference numeral 56 in interface 50c (c), is a spatial slice generated by copying spatial slice 52 (i.e., spatial slice 1) that precedes spatial slice 2 in the time-delay scene editor.
[0179] In this way, the smart home device control panel responds to user operations by creating spatial slices and multiple sub-scenes corresponding to those slices. This establishes time intervals between task execution by smart home devices in different sub-scenes, thus setting up latency scenarios. This simplifies the user's process for setting latency scenarios. Furthermore, the control panel visually displays the set spatial slices, their corresponding sub-scenes, and the time intervals between slices, allowing users to intuitively confirm the effects of each sub-scene setting. This improves the efficiency of setting latency scenarios and lowers the barrier to entry for users.
[0180] In some embodiments, after a new space slice is added, the control panel of the smart home device displays a sub-scene setting interface corresponding to the newly added space slice. This sub-scene setting interface is used to set the sub-scene corresponding to the newly added space slice.
[0181] For example, such as Figure 6 As shown in (a), the smart home device control panel displays the newly added space slice 2 on the latency scene editor and displays the sub-scene settings interface of sub-scene 2 corresponding to space slice 2 on interface 60a. If the settings information of sub-scene 2 displayed on the current sub-scene settings interface of sub-scene 2 is the same as the settings information of sub-scene 1 corresponding to space slice 1 that the user has already set, the user can modify the settings information of sub-scene 2 according to actual needs. If the smart home device control panel detects that the user drags the main light icon 65 in the direction of the arrow shown in the attached figure 64 into the device start area shown in the attached figure 66 on the sub-scene settings interface, it can be determined that the user has instructed to add the start task of the main light corresponding to the main light icon 65 in sub-scene 2. The smart home device control panel responds to the user's dragging operation, such as Figure 6 As shown in interface 60b in (b), the main light icon 65 is displayed in the device startup area as indicated by reference numeral 66 in the attached figure, and is no longer displayed outside the device startup area as indicated by reference numeral 67 in the attached figure.
[0182] Repeat the above steps to complete the setup of sub-scenario 2 as needed. For example, such as... Figure 7 As shown in (a), the device icons displayed in the area indicated by reference numeral 71 represent devices that were enabled in sub-scene 2 corresponding to spatial slice 2 before being set by the user (i.e., devices enabled in the sub-scene indicated by spatial slice 1). Figure 7As shown in (b) of the figure, in response to the user's operation of adjusting the device status indicated by the sub-scene 2 corresponding to space slice 2, the smart home device control panel adds a smart home device switched to the on state in the sub-scene 2 corresponding to space slice 2. For example, the device icon in the area shown by reference numerals 72 and 73 indicates a smart home device switched to the on state added in sub-scene 2 relative to sub-scene 1.
[0183] In this way, the smart home device control panel responds to the user's editing operations on the device status in the sub-scenes corresponding to different space slices, completing the settings of the sub-scenes for different space slices. Through the sub-scene setting interface, the smart home device control panel intuitively displays the sub-scene setting process, helping users understand the scene setting effects and improving the user experience.
[0184] In some embodiments, the smart home device control panel determines the execution order of the sub-scenes corresponding to the spatial slices based on their arrangement in the latency scene editor. For example... Figure 6 In the scenario shown, during the execution of the time-delay scenario, the smart home device control panel instructs the smart home devices in sub-scene 1 corresponding to spatial slice 1 to execute tasks, and then instructs the smart home devices in sub-scene 2 corresponding to spatial slice 2 to execute tasks. Therefore, during the spatial slice switching process, the tasks executed by the smart home devices in the space corresponding to the switched spatial slice can be the incremental and / or decremental parts of the device state between the switched spatial slice and the previous spatial slice. For existing states where the device states of the two spatial slices before and after the switch remain unchanged, the device states of the corresponding smart home devices in those spaces are not modified accordingly.
[0185] For example, Figure 6 In Figure (b), the spatial slice 2 indicated by reference numeral 63, after adjusting the device status of the smart home devices in the corresponding sub-scene, is compared to... Figure 6 In Figure (a), reference numeral 62 indicates that the device state of the smart home devices in the corresponding sub-scene of spatial slice 1 has an increment, meaning that there are smart home devices whose device states need to be changed. For example, Figure 7 In the middle (a), the device status in sub-scene 1 corresponding to spatial slice 1 is shown. Figure 7 In the middle (b), the device states included in the sub-scene 2 corresponding to spatial slice 2 are shown. Figure 7 The icons in the area indicated by reference numeral 71 in Figures (a) and (b) represent the existing portion of the devices in the open state of the sub-scene corresponding to spatial slice 2 and the devices in the open state of the sub-scene corresponding to spatial slice 1. Figure 7(b) The icons in the areas indicated by reference numerals 72 and 73 represent the incremental portion of the devices in the on state of the sub-scene corresponding to spatial slice 2 compared to the devices in the on state of the sub-scene corresponding to spatial slice 1. During subsequent time-delay scenario execution, when the smart home device control panel switches from spatial slice 1 to spatial slice 2, it instructs the four smart home devices (auxiliary light, main light, sheer curtain, and fabric curtain) in the areas indicated by reference numerals 72 and 73 to perform the on-state task, without instructing the washing machine, humidifier, and dryer in the area indicated by reference numeral 71 to change their device status.
[0186] It should be understood that the above example illustrates the incremental change of device state by starting the device. In the embodiments of this application, the change (increment or decrease) of device state includes not only starting the device, but also stopping the device, changes in device operating parameters, etc. The embodiments of this application do not limit this.
[0187] In some embodiments, when a user sets up multiple sub-scenes in a latency scenario, it is necessary to instruct smart home devices in different sub-scenes to perform their respective tasks separately. That is, there is a certain time interval between different sub-scenes. For example, such as Figure 6 In the scenario shown, there is a certain time interval between the execution space slice 1 corresponding to sub-scene 1 and the execution space slice 2 corresponding to sub-scene 2 of the smart home device control panel.
[0188] In this way, the smart home device control panel can respond to the user's operation of adding and editing spatial slices in the control panel, and can create multiple sub-scenes to complete the creation of a time-lapse scene. This simplifies the operation steps for users to create time-lapse scenes and can greatly improve the efficiency of users in creating time-lapse scenes.
[0189] Furthermore, when the smart home device control panel executes the corresponding sub-scenes in sequence according to the arrangement of multiple spatial slices, the smart home devices in different sub-scenes can achieve a linkage effect.
[0190] In some embodiments, there are many types of smart home devices, and the smart home device control panel can categorize device icons to make it easier for users to find them. In some embodiments, the smart home device control panel can categorize device icons based on the function, location information, or user needs of the smart home devices.
[0191] For example, a smart home device control panel divides smart home devices into subsystems according to their functions, such as a lighting subsystem, a sunshade subsystem, a heating, cooling, and ventilation subsystem, and an audio-visual entertainment subsystem. Each space in the home (such as each room) includes one or more subsystems, and the entire home also includes one or more corresponding systems. Users can filter the smart home devices that need to be configured through subsystems, simplifying user operations.
[0192] In some embodiments, the smart home device control panel displays categorized device icons in response to user actions. In some embodiments, the smart home device control panel may provide a subsystem index, a filter, or other controls that help users quickly find the device icons for tasks requiring configuration; this application embodiment does not impose any limitations on this.
[0193] For example, in Figure 6 The interface 60a shown in Figure (a) provides an index of one or more subsystems corresponding to the current space, as indicated by reference numeral 61. In response to a user's selection of a control corresponding to a subsystem from the subsystem index, the smart home device control panel displays or highlights only the icon of the device corresponding to the subsystem within the device launch area shown by reference numeral 66, and / or outside the device launch area shown by reference numeral 67. This allows the user to quickly identify the devices included in the current subsystem and the location of their icons on the interface.
[0194] For example, the multiple subsystems shown in the area indicated by reference numeral 61 include one or more smart home devices. For instance, a lighting subsystem may include multiple lighting devices such as main lights, auxiliary lights, decorative lights, and ambient lights. In response to a user's selection of a lighting subsystem (e.g., a user selecting a control corresponding to the lighting subsystem), only the icons of the aforementioned devices corresponding to the lighting subsystem may be displayed or highlighted in the areas indicated by reference numerals 66 and / or 67.
[0195] In some embodiments, the control in the area indicated by reference numeral 61 can also be a device filter corresponding to the current space, used to display icons of devices corresponding to multiple subsystems in a preset manner in response to a user's selection of multiple subsystems. For example, a smart home device control panel, in response to a user's selection of multiple subsystems in the device filter, can filter and display only the icons of devices corresponding to multiple subsystems within the device launch area indicated by reference numeral 66 and / or outside the device launch area indicated by reference numeral 67, or arrange the icons of devices corresponding to the multiple subsystems before the icons of devices corresponding to other subsystems for priority display.
[0196] Thus, by providing a categorization of device icons, the smart home device control panel can respond to user operations and help users quickly find the device icons for which tasks need to be added, thereby improving the efficiency of sub-scene setup. In some embodiments, during the creation of a time-lapse scene, the smart home device control panel responds to user operations, creates multiple sub-scenes, and completes the setup of multiple sub-scenes. Time intervals exist between different sub-scenes to ensure that there is a certain time interval between the execution of tasks by smart home devices in different sub-scenes, thereby meeting the user's requirements for the execution latency of smart home devices within a scene.
[0197] In some examples, the smart home device control panel responds to a user adding a new space slice by creating a new space slice and setting the time interval between the new space slice and the previous space slice to a default value, such as 1 second. Alternatively, user-defined values, frequently used values, etc., can also be provided.
[0198] In some examples, smart home device control panels respond to user actions by modifying the time intervals between different spatial slices.
[0199] In some embodiments, a time capsule control is displayed on the smart home device control panel for setting time intervals for spatial slices. For example, the smart home device control panel sets the time interval between spatial slice 1 and spatial slice 2 in response to a user's operation on the time capsule control.
[0200] For example, in Figure 8 In interface 80a shown in (a), the capsule-shaped control pointed to by reference numeral 83, located between spatial slice 1 (as shown by reference numeral 81) and spatial slice 2 (as shown by reference numeral 82), is a time capsule control 83. In some examples, while displaying spatial slice 1, the smart home device control panel, in response to the user's creation of spatial slice 2, displays the newly created spatial slice 2 and displays the time capsule 83 between spatial slice 1 and spatial slice 2. The time capsule 83 can display a default time interval. In some examples, the smart home device control panel, in response to the user's operation on the time capsule 83, modifies the time interval between spatial slices. Figure 8 As shown by reference numeral 83 in Figure (b), the smart home device control panel, in response to a user operation, modifies the time interval displayed on the time capsule control 83 to 3 seconds. Thus, the time interval between the execution of spatial slice 1 and spatial slice 2 is set to 3 seconds.
[0201] In some embodiments, the above-mentioned response to user operations on the time capsule may be in response to the user double-clicking the time capsule control and entering a time interval value to set the time interval value, or it may be in response to the user's operation on the pop-up time capsule settings window, etc. This application embodiment does not impose any limitations on this. The time interval value being set may be the time interval value entered by the user from the time capsule control, or it may be the time interval value selected by the user from several time interval values provided by the time capsule control. This application embodiment also does not impose any limitations on this.
[0202] In some scenarios, users can set activation conditions for switching between different sub-scenarios within a latency scenario. For example, these activation conditions may include the aforementioned time interval. In some embodiments, in addition to the time interval, the activation conditions for a spatial slice may also include delayed execution, activation time, device state changes, weather conditions, etc. In some examples, users can also edit other activation conditions for the spatial slice while editing the aforementioned time interval.
[0203] For example, the smart home device control panel displays preset controls between adjacent spatial slices. In response to user actions on these preset controls, the smart home device control panel displays an activation condition setting window. In response to user actions in this activation condition window, the smart home device control panel can set activation conditions for the next spatial slice in the adjacent spatial slice sequence. For example, in a bedroom sleep scenario, to improve the user's sleep quality, the bedroom air conditioning temperature needs to be adjusted adaptively with seasonal changes. The smart home device control panel, in response to user actions, adds weather conditions to the bedroom's temperature-adjusting spatial slice. When the smart home device control panel detects that the weather meets the preset weather conditions, such as detecting a spring / summer transition, it executes the sub-scene corresponding to the spatial slice that cools the indoor temperature.
[0204] In this way, the smart home device control panel responds to user operations and sets the conditions for the spatial slices to take effect, which can make the set latency scenarios more intelligent and closer to user needs, further improving the user's quality of life.
[0205] In some embodiments, during scene editing, users may need to view preview interfaces of sub-scenes corresponding to different spatial slices. Therefore, the smart home device control panel can respond to the user's switching operation on spatial slices by switching the display of preview interfaces of different spatial slices corresponding to sub-scenes (such as the scene settings interface mentioned above).
[0206] For example, in response to a user's selection of a specific space slice, the control panel of a smart home device can highlight that space slice and switch the display of the corresponding sub-scene settings information on the scene settings interface. For instance... Figure 9As shown in interface 90a in section (a), the smart home device control panel displays the sub-scene setting information corresponding to space slice 3 on the scene setting interface. Therefore, the smart home device control panel can highlight space slice 3 as shown in the attached drawing 93. Afterwards, when the smart home device control panel detects the user's click on space slice 2 as shown in the attached drawing 92, it can display... Figure 9 Interface 90b is shown in (b). On interface 90b, the smart home device control panel can highlight space slice 2 (shown by reference numeral 92) and dehighlight space slice 3 (shown by reference numeral 93). In some examples, in the scene settings interface of the selected space slice displayed on the smart home device control panel, the smart home device control panel can respond to the user's switching operation on the space slice and switch the displayed space state (or device state) of the corresponding sub-scene of different space slices.
[0207] In this way, the smart home device control panel responds to the user's switching operation of spatial slices, switching and displaying the sub-scene preview interface corresponding to different spatial slices. This allows users to easily view the effect of latency scene settings and improves the efficiency of setting latency scenes.
[0208] In some embodiments, during the latency scenario setup process, the user may need to adjust the execution order between different spatial slices. For example, such as... Figure 10 As shown in interface 1000a in Figure (a), the time-delay scene editor displays three created spatial slices: spatial slice 1 (as indicated by reference numeral 101), spatial slice 2 (as indicated by reference numeral 102), and spatial slice 3 (as indicated by reference numeral 103). The smart home device control panel detects the user's drag operation on spatial slice 3 (as indicated by reference numeral 103) and determines the execution order of the user-instructed changes to spatial slice 3. Figure 10 As shown in interface 1000b in section (b), the smart home device control panel detects the user's operation of moving space slice 3 between space slice 1 and space slice 2, and determines that the user instructed to adjust the execution order of space slice 2 and space slice 3. Therefore, in response to the user's operation, the smart home device control panel adjusts space slice 3 (shown by reference numeral 103) between space slice 2 (shown by reference numeral 102) and space slice 1 (shown by reference numeral 101). Figure 10 The interface 1000c shown in (c) displays three spatial slices after the execution order has been adjusted.
[0209] Optionally, the execution order identifier of the space slice is displayed on the space slice, making it easier for users to confirm the execution order of the space slices. After the execution order of the space slice is changed, the smart home device control panel will also correspondingly modify the original execution order identifier of the space slice displayed on the space slice to the new execution order identifier.
[0210] It should be understood that the user's operation to change the execution order of spatial slices can be a long press operation followed by moving the spatial slice, or a direct drag operation, etc., and the embodiments of this application do not limit this.
[0211] In this way, the smart home device control panel can respond to user operations and adjust the execution order of spatial slices, making it more convenient and flexible for users to set time-delay scene tasks.
[0212] In some embodiments, during the editing of a latency scene, users may need to view the execution effect of the latency scene. Therefore, smart home devices can provide a latency scene preview entry to show users the execution effect of the latency scene.
[0213] For example, the control panel of a smart home device provides a playback control, which is used to play the execution effects of multiple sub-scenes included in the time-lapse scenario.
[0214] For example, such as Figure 11 As shown in interface 1100, the time-lapse scene editor of the smart home device control panel displays three created spatial slices, with a time interval of 1 second between each spatial slice. After detecting the user's operation on the playback control 1101, the smart home device control panel displays a preview interface of sub-scene 1 corresponding to spatial slice 1 on the scene settings interface. After a 1-second interval, it displays a preview interface of sub-scene 2 corresponding to spatial slice 2 (as shown in the attached figure 1102), and after another 1-second interval, it displays a preview interface of sub-scene 3 corresponding to spatial slice 3 (as shown in the attached figure 1103).
[0215] Optionally, during the switching of playback space slices, the scene settings interface can display animations showing changes in the device status of smart home devices. For example, as shown in the areas indicated by reference numerals 1105 and 1106, the device icons in the scene will display changes in device status through changes in position or display state.
[0216] In some embodiments, the effects of certain smart home devices performing tasks cannot be presented through animations of device icons in the scene settings interface. For example, the effects of adjusting the opening and closing of electric curtains, lighting brightness, and air conditioning temperature cannot be presented through animations. Therefore, in response to user operations on the playback controls, the smart home device control panel can control the smart home devices in the physical space to perform corresponding tasks as the space slices are played, thereby allowing users to accurately, comprehensively, and intuitively preview the effects of multiple space slices.
[0217] In this way, the smart home device control panel can play the scene corresponding to the space slice for the user by responding to the user's instructions to preview the time-delay scene, and / or make the device execute the time-delay scene in real time in the physical space, so that the user can preview the effect of the time-delay scene setting in real time, which greatly improves the visualization and setting efficiency of the user in creating time-delay scenes.
[0218] In some scenarios, multiple spatial slices need to be executed cyclically, such as in a light show scenario where users need lighting equipment to cycle through turning on and off. In some embodiments, the smart home device control panel can respond to user actions and create a cyclical time-delay scenario for the smart home devices in the space. Optionally, in the cyclical time-delay scenario, the smart home device control panel executes multiple sub-scenes in a cyclical manner according to the order of the sub-scenes in the time-delay scenario.
[0219] For example, in a light show scenario, the main light, auxiliary lights, and ambient lights need to be turned on in a cycle to achieve the light show effect. Responding to user actions, the smart home device control panel sets on / off tasks for the main light, auxiliary lights, and ambient lights in space slice 1, space slice 2, and space slice 3, respectively. For example... Figure 12 As shown, the smart home device control panel responds to the user's operation on the loop control 1201 by setting multiple spatial slices to cycle through. Optionally, the cycle of multiple spatial slices means that after the smart home device control panel completes the execution of multiple spatial slices in the order of their arrangement, it completes the execution of multiple spatial slices again in the order of their arrangement.
[0220] Optionally, during the cyclic switching of multiple spatial slices, the smart home device control panel displays a scene preview interface corresponding to the cyclically switching spatial slices.
[0221] Optionally, during the cyclic switching of multiple spatial slices, the smart home device control panel can instruct devices in the physical space corresponding to the cyclically switching spatial slices to perform corresponding tasks. This allows users to intuitively determine whether the cyclic latency scenario meets their requirements based on the performance of the tasks performed by the smart home devices in the actual physical space.
[0222] In some scenarios, users need to set a loop interval for the looping scene. For example, smart home device control panels provide... Figure 12 The loop interval control shown by reference numeral 1201 in the attached drawing of interface 120a (a) is shown in Figure 1201. The loop interval control can display as follows: Figure 12In interface 120b (b), the current cycle interval time is shown by reference numeral 1202, such as a current cycle interval of 3 seconds. The smart home device control panel detects the user's operation on the cycle interval control and can display the cycle interval setting window. The smart home device control panel responds to the user's operation in the cycle interval setting window and sets the cycle interval. For example... Figure 12 As shown by reference numeral 1203 in the attached diagram of interface 120c (c), the smart home device control panel responds to user operation by setting the loop interval to 7 seconds. That is, after the smart home device control panel instructs the three spatial slices to be executed sequentially, the three spatial slices are executed again in sequence after 7 seconds, and so on, executing the spatial slices in a loop.
[0223] Optionally, the initial value of the loop interval of the loop interval control can be set automatically by the system or determined in response to user operation. This application embodiment does not limit this.
[0224] Optionally, in response to user interaction with the cycle interval control, the smart home device control panel displays the current cycle interval value in an editable state to receive user settings. Alternatively, in response to user interaction, the smart home device control panel displays a cycle interval setting window to receive user settings. The smart home device control panel can also set an icon (e.g., ...) in the cycle interval control. Figure 12 (See figure 1203 in (c)) is used to display the cycle interval setting window in response to user operation.
[0225] Optionally, during the creation of the cyclic delay scenario, the smart home device control panel can also respond to user operations by setting the number of cycles, the total cycle time, etc., for the cyclic delay scenario. This embodiment of the application does not impose any limitations on this. For example, during the execution of the cyclic delay scenario, the smart home device control panel can cyclically instruct multiple spatial slices to be executed sequentially according to the number of cycles.
[0226] Thus, the smart home device control panel provides a loop scene setting function, allowing users to create loop time delay scenes for the space with just a simple operation.
[0227] In some scenarios, depending on user needs, it may be necessary to create time-lapse scenarios that span multiple spaces. For example, when a user returns home at night, they might first enter the living room and then the bedroom. When creating a time-lapse scenario for the user's return home at night, it is necessary to add scene tasks for both the devices in the living room and the devices in the bedroom.
[0228] In some embodiments, the smart home device control panel responds to user actions by creating a latency scenario across spaces. For example, during the creation of a latency scenario corresponding to space slice 1, if the smart home device control panel detects a user instruction to add smart home devices in other spaces, it can determine that the user has instructed the creation of a latency scenario across spaces.
[0229] For example, a smart home device control panel switches the displayed space in response to user actions. For instance... Figure 13 As shown in interface 130a (a), the smart home device control panel displays device icons for the smart home devices in the living room space. The smart home device control panel detects a user's swipe action on interface 130a (such as swiping left or right) and determines that the user intends to switch spaces. In some examples, the smart home device control panel has different spaces pre-configured in a specific order. Therefore, in response to the direction of the user's swipe action, the smart home device control panel can determine the space the user intends to switch to. For example... Figure 13 As shown in interface 130b (b), the smart home device control panel detects that the user's swipe gesture indicates a switch to the bedroom space. The smart home device control panel can display the space switching animation shown in interface 130b. Then, as... Figure 13 As shown in the interface 130c (c), the smart home device control panel switches the display space, creates and displays the corresponding space slice after the space is switched, such as the bedroom space slice shown in the attached figure 131.
[0230] Among them, such as Figure 13 As shown in (b), some content is drawn outside the display screen to illustrate the sliding effect on interface 130b. It should be understood that this drawn content will not be displayed outside the display screen during actual use of the smart home device control panel.
[0231] In some embodiments, after switching the displayed space, the smart home device control panel can generate a corresponding space slice for the switched space based on the device status of the currently switched space. Alternatively, it can display a blank space slice corresponding to the switched space. Then, in response to user operations, the smart home device control panel can set delayed scene tasks or non-delayed scene tasks for the smart home devices in the space corresponding to that space slice. The space slices from different spaces are cross-space slices.
[0232] In this way, the smart home device control panel can respond to user operations and create cross-space latency scenarios to meet users' needs for setting latency scenarios for smart home devices in different spaces.
[0233] In some embodiments, the smart home device control panel can also add activation conditions for cross-spatial time-delay sub-scenes based on user actions. For example, when a user returns home at night, they typically enter the bedroom 30 seconds after entering the living room. Therefore, in the cross-spatial time-delay scenario of a user returning home at night, the sub-scene corresponding to the bedroom can be triggered 30 seconds after triggering one or more sub-scenes corresponding to the living room. For instance, the bedroom lights could be turned on 30 seconds after the user enters the living room.
[0234] In some examples, smart home device control panels respond to user actions by adding conditions for the space slice to take effect within the Time Capsule control. For example, such as... Figure 14 As shown in interface 1400, in response to user actions on the Time Capsule control, the smart home device control panel determines that the two space slices corresponding to the current Time Capsule are space slices corresponding to different spaces. The control panel then displays a pop-up window to add activation conditions. In this pop-up window, activation conditions can be set, including delayed execution, activation time, device status changes, weather conditions, etc., and users can also define their own activation conditions. In some examples, the activation condition options for space slices corresponding to the same space may be the same as or different from those for space slices corresponding to different spaces.
[0235] Optionally, the activation conditions in cross-spatial slices can be preset conditions or settings set by the smart home device control panel in response to user operations. This application embodiment does not limit this.
[0236] In some embodiments, a time-delay scenario composed of multiple sub-scenes needs to be executed under specific conditions. For example, if a user wakes up at a fixed time every day, then the morning wake-up time-delay scenario, composed of sub-scenes such as the curtain opening, the sheer curtain opening, and the music playing, needs to be executed automatically at a specific time. Therefore, the smart home device control panel can set the scene activation conditions for time-delay scenarios (or cross-space time-delay scenarios).
[0237] For example, such as Figure 15 As shown in interface 1500, the smart home device control panel provides a timer control. The control panel detects user interaction with the timer control 151, determines that the user needs to set timer activation conditions for a scene, and can display a timer window to receive the user-inputted time delay scene activation conditions. Optionally, the control shown in reference numeral 151 can also be other activation condition controls, such as temperature conditions or weather conditions. Optionally, the timer control shown in reference numeral 151 can also be other text display methods, such as scene activation conditions. Optionally, the smart home device control panel can also add multiple scene activation conditions in response to user operations, such as temperature conditions and weather conditions; this embodiment does not limit this.
[0238] In this way, the smart home device control panel responds to user operations and adds scene activation conditions, making the scene more intelligent and automated, which can improve the user's quality of life.
[0239] In some scenarios, the spatial slices displayed when editing time-lapse scenes occupy a significant portion of the display space on the smart home device control panel. In some cases, users do not need to view or edit these spatial slices on the control panel. The smart home device control panel can determine whether to display spatial slices based on user actions. The control panel responds to user input by expanding or hiding spatial slices.
[0240] In some examples, such as Figure 16 As shown in interface 160a in (a), after the smart home device control panel detects the user's operation of creating a scene, it displays the scene settings interface corresponding to the current space. Subsequently, if the smart home device control panel detects the user's selection operation on the slide control shown by reference numeral 161, it determines that the user has instructed the display of the time-lapse scene editor. Figure 16 As shown in interface 160b in (b), the smart home device control panel displays the latency scene editor in response to user interaction. The smart home device control panel detects that the user clicks the slideshow control again and determines that the user has instructed that the latency scene editor not be displayed. Figure 16 As shown in interface 160c in (c), the smart home device control panel responds to user actions by collapsing the display of the latency scene editor.
[0241] In this way, the smart home device control panel can respond to user operations and flexibly show or hide the space slice settings interface according to user needs, improving the convenience for users to set up scenes using the smart home device control panel.
[0242] In some scenarios, users need to save the created scene. For example, ... Figure 17 As shown in the middle interface 1700, the smart home device control panel detects the user's operation on the scene generation control shown in the attached figure 171, and determines that the current user has completed the setting operation of the time delay scene. Then, the smart home device control panel can generate and save the time delay scene created by the user according to the current setting information of each sub-scene.
[0243] Optionally, the latency scenario can be uploaded to a server or saved locally on the control panel of a smart home device after it is generated.
[0244] In some scenarios, users need to retrieve existing scenes from the smart home device control panel for viewing and editing. For example, ... Figure 17As shown in interface 1700, the smart home device control panel responds to the user's operation on the import scene control 172, confirming the user's instruction to import a scene. The smart home device control panel can then display the scene import interface. Optionally, the importable scenes displayed on the scene import interface are scenes downloaded from the server by the smart home device control panel or scenes saved locally by the smart home device control panel. Subsequently, based on the user's operation on the scene import interface, the smart home device control panel displays the editing interface for the scene selected by the user, and receives the user's editing operations on that scene.
[0245] Figure 18 This is a flowchart illustrating a scene setting method provided in an embodiment of this application. It should be noted that this method does not necessarily reflect the intended use of the scene. Figure 18 The specific order described below is a limitation. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps S1801-S1803:
[0246] S1801: In response to the user's first operation of creating a scene, the control device displays a first interface, displays the created first spatial slice in a first area of the first interface, and displays the first information of the first sub-scene corresponding to the first spatial slice in a second area of the first interface.
[0247] The first interface is the scene creation interface corresponding to the current space, which may include, for example, the room where the control device is located. The first space slice is the initial space slice. The first target device is the smart home device corresponding to the first space slice. The first information is used to indicate the first task of the first target device included in the first sub-scene; for example, the first information includes the device status information of the first target device corresponding to the first space slice.
[0248] For example, in response to a user's first operation to create a scene, the control device displays a scene creation interface corresponding to the current space. In some examples, the scene creation interface includes a first spatial slice and a sub-scene settings interface corresponding to the first spatial slice, the sub-scene settings interface being used to display the device status information of the first target device corresponding to the first spatial slice.
[0249] In some embodiments, in response to a first operation by a user to create a scene, the control device determines the device state of a controlled device in the current space, the controlled device including a first target device; the control device creates a first spatial slice and generates first information of a first sub-scene corresponding to the first spatial slice based on the device state.
[0250] For example, the control device responds to a user operation by launching a smart living application and displaying, as shown in the example. Figure 5The smart living application interface shown in interface 50a (a) is illustrated in section (a). In response to the user's operation of the scene generation control 50 displayed on the smart living application interface, the control device determines that the user's current location is the living room. Therefore, the control device can obtain the device status of the target device in the living room. For example... Figure 5 As shown in Figure (b) 52, the control device responds to the user's operation of creating a scene by creating a first space slice (as shown in Figure 52) and a first sub-scene (as shown in Figure 53 and Figure 54) based on the device status of the first target device in the living room. The first sub-scene includes the first information of the first target device in the current space, which is the device status information of the first target device.
[0251] In some examples, the device state of the controlled device in the space may be the same as the device state in the scene the user wants to create. Therefore, the control device creates an initial spatial slice (i.e., the first spatial slice) based on the device state of the controlled device in the current space. This can effectively simplify the setting process of the first sub-scene corresponding to the initial spatial slice and ensure that the initial information of the first sub-scene meets the user's actual usage needs.
[0252] In this way, users can intuitively set and confirm the device status and tasks of the controlled devices in each sub-scenario, thereby simplifying the user's latency scenario setting operation and lowering the threshold for latency scenario setting.
[0253] S1802: The control device responds to the user's second operation by displaying a second spatial slice sorted after the first spatial slice in the first area, and switching the display of second information of the second sub-scene corresponding to the second spatial slice in the second area.
[0254] The second information is used to indicate the second task of the second target device included in the second sub-scenario.
[0255] In some embodiments, the second operation is the user creating a spatial slice. In response to the user's second operation of creating a spatial slice, the control device adds a new spatial slice and creates a sub-scene corresponding to the newly added spatial slice.
[0256] In some embodiments, in response to a user's operation of creating a spatial slice, the control device generates a second spatial slice by copying the first spatial slice, and displays the copied first information on a second region. In response to a user's operation on the first information, the control device generates second information corresponding to a second sub-scene of the second spatial slice.
[0257] For example, such as Figure 5 As shown in the interface 50c (c), the control device responds to the user's operation of creating a spatial slice, and copies and generates a spatial slice 52 (the first spatial slice) as shown in the interface 50c. Figure 5Spatial slice 2 (second spatial slice) is shown by reference numeral 56 in Figure (c). Figure 5 As shown in (c), the control device displays the sub-scene settings interface for sub-scene 2 corresponding to spatial slice 2 (second spatial slice) on interface 50c. The settings information of sub-scene 2 displayed on the current sub-scene 2 sub-scene settings interface is the same as the settings information of sub-scene 1 corresponding to spatial slice 1 (first spatial slice) that the user has already set. The user can modify the settings information of sub-scene 2 according to actual needs. Figure 6 As shown in interface 60a in (a), the control device detects that the user drags the main light icon 65 towards the device startup area (as shown in reference numeral 66) on the sub-scene settings interface along the arrow direction indicated by reference numeral 64. This confirms that the user has instructed to add a startup task for the main light corresponding to the main light icon 65 in sub-scene 2. The control device responds to the user's dragging operation as follows: Figure 6 As shown in interface 60b in (b), the main light icon 65 is displayed in the device startup area as indicated by reference numeral 66 in the attached figure, and is no longer displayed outside the device startup area as indicated by reference numeral 67 in the attached figure.
[0258] In this way, in response to the user's repeated addition of spatial slices, the control device can copy and edit based on the information of the sub-scenes corresponding to the already set spatial slices in the second region. This enables the setting of the sub-scenes corresponding to the next spatial slice with a time interval, adding time-delay scene tasks to the target device in the space corresponding to the spatial slice. This simplifies the user's operation steps and improves the efficiency of setting time-delay scenes.
[0259] In some embodiments, the second target device includes the device whose device state or operating parameters are to be switched in the first target device, and / or a newly added device to be controlled.
[0260] For example, such as Figure 7 As shown in reference numerals 72 and 73 in Figure (b), the newly added devices to be controlled in the second target device are auxiliary lights, main lights, sheer curtains, and fabric curtains. The control device instructs the four target devices—auxiliary lights, main lights, sheer curtains, and fabric curtains—to perform the turning-on task without instructing the washing machine, humidifier, and dryer in the area shown by reference numeral 71 to change their device status.
[0261] It should be understood that the above example illustrates the incremental change of device state by starting the device. In the embodiments of this application, the change (increment or decrease) of device state includes not only starting the device, but also stopping the device, changes in device operating parameters, etc. The embodiments of this application do not limit this.
[0262] In this way, the control device responds to user operations by simply adding tasks for the target device that needs to switch device status or operating parameters in the sub-scene corresponding to the spatial slice, and / or adding new devices to be controlled, which simplifies the user operation steps and reduces the difficulty of setting up latency scenarios.
[0263] In some embodiments, the first target device and the second target device are devices in the same space, or the first target device and the second target device are devices in different spaces.
[0264] This application embodiment can set latency scenarios for target devices in a single space or for target devices across multiple spaces. For example, a light show scenario in a living room requires the main light to be turned on in sub-scene 1 and the auxiliary light to be turned on in sub-scene 2. The first target device corresponding to sub-scene 1 is the main light, and the second target device corresponding to sub-scene 2 is the auxiliary light. In the scenario of returning home at night, the user's activity space spans the living room and bedroom, requiring the main light in the living room to be turned on for the user in sub-scene 1 and the main light in the bedroom to be turned on for the user in sub-scene 2. Therefore, in the scenario of returning home at night, the first target device is the main light in the living room, and the second target device is the main light in the bedroom.
[0265] In this way, the control device responds to user operations and can add time-delay scene tasks to devices in different spaces, enabling devices in different spaces to work together to form cross-space time-delay scenes, improving the intelligence of the smart home system and enhancing the user's quality of life.
[0266] S1803: The control device responds to a third operation by the user and generates a first target scenario. The first target scenario includes a first sub-scenario and a second sub-scenario. The first target scenario includes an indication that after a first time interval is triggered to trigger the second target device to execute the first task, the second target device will be triggered to execute the second task.
[0267] In some embodiments, if the control device detects the user's operation of determining the generated scene and determines that the current user has completed the setting operation of the time delay scene, then the control device can generate and save the first target scene created by the user based on the currently set first sub-scene, second sub-scene, and first time interval.
[0268] In this way, the control device responds to user operations, creating spatial slices and multiple sub-scenes corresponding to the spatial slices, thus completing the creation of a time-delay scenario that includes multiple sub-scenes. This simplifies the steps for users to set up time-delay scenarios and improves the efficiency of creating time-delay scenarios.
[0269] In some embodiments, the first time interval is a default time interval, or the first time interval is a first time interval between a first spatial slice and a second spatial slice in response to a fourth operation set by the user.
[0270] In some examples, the control device responds to a fourth user action by setting a first time interval between the first and second spatial slices; the fourth action is the user setting the first time interval between the first and second spatial slices on the control device. In some embodiments, the control device displays a time capsule control (e.g., ...) for setting the first time interval for the spatial slices. Figure 8 (as shown by reference numeral 83 in figure (a)). In response to the user's operation on the time capsule control, the control device sets a first time interval between spatial slice 1 (first spatial slice) and spatial slice 2 (second spatial slice).
[0271] In this way, the control device determines the time interval between spatial slices in response to user operations, and sets delay scene tasks for devices in the corresponding sub-scenes of the spatial slices. This simplifies the user operation process and improves the efficiency of setting delay scene tasks.
[0272] In some embodiments, the control device responds to the user's eighth operation by setting the activation conditions for a first sub-scenario or a second sub-scenario. The activation conditions include one or more of the following: activation time, device status change, weather conditions, and time interval.
[0273] In some examples, the automatic execution of latency scenarios is achieved by adding activation conditions to trigger latency scenarios or sub-scenarios within latency scenarios, thus meeting the actual usage needs of users. In some examples, the eighth operation is the operation by which the user sets activation conditions for a first spatial slice or a second spatial slice. Exemplarily, the control device displays a preset control between adjacent spatial slices. In response to the user's operation on the preset control, the control device can set the activation conditions for the spatial slice that is ordered later among the adjacent spatial slices.
[0274] In this way, the control device responds to user operations and sets effective conditions for spatial slices and their corresponding sub-scenes. This makes the set latency scenarios more user-friendly, more intelligent, and closer to users' daily needs, thereby further improving users' quality of life.
[0275] In some embodiments, in response to a sixth operation by a user selecting a first spatial slice in a first region, the control device highlights the spatial slice in the first region in a preset manner and switches to display first information of a first sub-scene in a second region.
[0276] For example, in response to a user's selection of a spatial slice, the control device can highlight the spatial slice and switch the display of the corresponding sub-scene setting information on the scene settings interface. Figure 9As shown in (a), when the control device displays the sub-scene setting information corresponding to spatial slice 3 on the scene setting interface, the control device can highlight spatial slice 3 (the second spatial slice). Afterwards, when the control device detects a user clicking on spatial slice 2 (the first spatial slice), it can display as shown in (a). Figure 9 Interface 90b is shown in (b). On interface 90b, the control device can highlight spatial slice 2 (first spatial slice) and dehighlight spatial slice 3 (second spatial slice).
[0277] In this way, the control device responds to the user's switching operation on the spatial slice, highlights the selected spatial slice, and switches to display the preview interface of the sub-scene corresponding to the selected spatial slice. This allows users to easily view the effect of the time delay scene settings and improves the efficiency of setting time delay scenes.
[0278] In some embodiments, in response to a fifth operation by a user adjusting the arrangement order of a first spatial slice and a second spatial slice displayed in a first display area, the control device modifies a first target scene and generates a second target scene, the second target scene including an instruction to trigger the first target device to execute a fourth task after a first time interval in which the second target device executes a third task.
[0279] In some embodiments, the third task may be the same as or different from the second task, and the fourth task may be the same as or different from the first task.
[0280] For example, such as Figure 10 In the scenario shown, the first task differs from the third task, and the fourth task differs from the first task. For example... Figure 10 Figure (a) shows the first target scenario, where spatial slice 3, indicated by reference numeral 103, is arranged after spatial slice 2. In the first target scenario, after the washing machine, humidifier, and dryer perform their start-up tasks (first task), 10 minutes later, the auxiliary light, main light, curtain, and sheer curtain perform their start-up tasks (second task). The control device detects the user's dragging operation on spatial slice 3 (second spatial slice) and determines that the user has instructed a change in the execution order of spatial slice 3 (second spatial slice). Figure 10 As shown in (b), the control device detects the user's operation of moving spatial slice 3 (the second spatial slice) in front of spatial slice 2 (the first spatial slice), and determines that the user instructed to adjust the execution order of spatial slice 2 (the first spatial slice) and spatial slice 3 (the second spatial slice). Then, in response to the user's operation, the control device adjusts spatial slice 3 (the second spatial slice) shown by reference numeral 103 to be in front of spatial slice 2 (the first spatial slice) shown by reference numeral 102, generating the second target scene. Figure 10The interface shown in (c) displays the second target scenario after adjusting the execution order. The second target scenario instructs the washing machine, humidifier, dryer, auxiliary light, main light, curtain, and sheer curtain to perform the turn-on task (third task) and after 10 minutes, instructs the auxiliary light, main light, curtain, and sheer curtain to perform the turn-off task (fourth task).
[0281] In other examples, the third task can be the same as the second task, and the fourth task can be the same as the first task. For example, in the first target scene, the first task is to turn on the main light, and the second task is to turn on the auxiliary light. In the second target scene generated by the control device in response to the user's operation of adjusting the spatial slice arrangement order, the third task is to turn on the auxiliary light, and the fourth task is to turn on the main light.
[0282] In this way, the control device can respond to user operations and adjust the execution order of spatial slices, thereby easily modifying the order in which the target device executes latency scenario tasks, making it more flexible and simple for users to set latency scenario tasks.
[0283] In some embodiments, the control device responds to a seventh operation by the user by setting loop parameters for a first target scenario. The loop parameters include one or more of the following: number of loops, loop duration, and loop time interval.
[0284] In some scenarios, such as light show scenarios, devices need to repeatedly execute time-delay scene tasks. The control device responds to user input by setting the first target scene as a looping scene. The seventh operation is the user setting the loop parameters for the first target scene. The loop count indicates the number of times the time-delay scene is executed. For example, after determining that the triggering conditions for the time-delay scene are met, the control device sequentially triggers the target devices within the multiple sub-scenes included in the time-delay scene to execute their respective tasks according to the triggering order of the sub-scenes. Then, the control device repeats the above time-delay scene implementation process according to the loop count. The loop time interval indicates the time interval for the time-delay scene to loop. For example, the control device instructs the target devices to execute the time-delay scene according to the sub-scene order corresponding to the spatial slice, and after a loop time interval, the control device instructs the target devices to execute the time-delay scene again according to the sub-scene order corresponding to the spatial slice. The loop duration refers to the total time the control device controls the target devices to execute tasks according to the time-delay scene. For example, in a light show time-delay scene, which is a looping time-delay scene, the control device stops controlling the lighting devices in the light show scene to execute tasks after the loop duration has elapsed.
[0285] In this way, the control device responds to user operations and sets loop parameters, allowing the addition of loop-delay tasks to the target device. This reduces the number of steps required for users to set up loop-delay scenarios and lowers the difficulty of setting up such scenarios for the target device. For example, in loop-delay scenarios such as light shows that require the target device to repeatedly perform the same task, users only need to set the target device's execution task and loop parameters once to complete the entire loop-delay scenario setup.
[0286] In some embodiments, the control device, in response to a ninth operation by the user, displays a second interface for playing the execution effect of the first target scene. The execution effect includes switching between displaying a first spatial slice and a second spatial slice in a first area, and switching between displaying first information corresponding to the first spatial slice and second information corresponding to the second spatial slice in the second area.
[0287] For example, such as Figure 11 As shown in interface 1100, the first area of the control device (as indicated by reference numeral 1104) displays three created spatial slices, with a 1-second time interval between each slice. After detecting user interaction with the playback control 1101, the control device displays a preview of sub-scene 1 corresponding to spatial slice 1 on the scene settings interface. After a 1-second interval, it displays a preview of sub-scene 2 corresponding to spatial slice 2, and then, after another 1-second interval, displays a preview of sub-scene 3 corresponding to spatial slice 3. During the playback of the spatial slices, the second area (as indicated by reference numeral 1107) can display animations showing changes in the target device's state. For example, in the areas indicated by reference numerals 1105 and 1106, the device icon in the sub-scene will display changes in its position or display state to indicate changes in its device state.
[0288] In this way, by responding to user instructions to preview the time-delay scene, the control device can play the sub-scenes corresponding to the spatial slice for the user, making it convenient for the user to preview the effect of the time-delay scene settings in real time, and greatly improving the efficiency of the user in creating time-delay scenes.
[0289] In some embodiments, during the process of playing the execution effect of the first target scene, the control device sends a first command to the first target device instructing the execution of the first task, and sends a second command to the second target device instructing the execution of the second task.
[0290] In some embodiments, the effects of certain target devices performing tasks cannot be presented through the animation effects of device icons in the scene settings interface. For example, the effects of the opening and closing of electric curtains, the brightness of lights, and the temperature of air conditioning cannot be presented through animation effects. Therefore, in response to the user's operation of the playback control, the control device can control the target devices in the physical space to perform corresponding tasks as the spatial slices are played, thereby allowing the user to accurately, comprehensively, and intuitively preview the performance effects of multiple spatial slices.
[0291] In this way, by responding to user instructions to preview the latency scenario, the control device can execute the latency scenario in real time in the physical space, which greatly improves the visualization and setup efficiency when users create latency scenarios.
[0292] In some embodiments, in response to a user's tenth operation, the control device displays a third spatial slice sorted after the second spatial slice in a first area, and switches the display of third information of the third sub-scene corresponding to the third spatial slice in the second area. The third information is used to indicate the fifth task of the third target device included in the third sub-scene. The first target scene also includes an indication of a second time interval after triggering the second target device to execute the second task, which triggers the third target device to execute the fifth task. The second time interval is a default time interval.
[0293] In some scenarios, multiple devices need to perform tasks at different times. For example, in a wake-up scenario, music and curtains need to be turned on first, then the sheer curtains opened 10 minutes later, and all devices in the rooms turned off 20 minutes later. Therefore, the target scenario requires more than two spatial slices to complete the sub-scene and task setup. The control device responds to the user's tenth operation by adding more spatial slices based on the first and second spatial slices. The time interval between the newly added third spatial slice and the second spatial slice is initially the default time interval, which can be adjusted according to user operations.
[0294] In this way, the control device can respond to user operations, create multiple spatial slices, and set multiple continuous scene tasks with different time intervals for the target device, which simplifies user operations and improves the efficiency of setting up time-delay scenes.
[0295] Optionally, the control device can also execute the steps and functions performed by the smart home device control panel in the above embodiments, and the first target device or the second target device can also execute the steps and functions performed by the smart home device in the above embodiments, thereby realizing the scene setting method provided in the above embodiments.
[0296] The above combination Figures 5-18 The scenario setting method provided in the embodiments of this application is described in detail below. Figure 19 The control device provided in the embodiments of this application is described in detail.
[0297] In one possible design, Figure 19 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 19 As shown, the electronic device 1900 may include a transceiver unit 1901, a processing unit 1902, and a display unit 1903. The electronic device 1900 can be used to implement the system service management method involved in the above method embodiments. Optionally, the control device 1900 may include, for example, […]. Figure 3 The control device 300 shown (such as a smart home device control panel, mobile phone, etc.) and the first electronic device 100 are equipped with display functions and have corresponding processing capabilities.
[0298] Optionally, the transceiver unit 1901 is used to support the electronic device 1900 in performing... Figure 18 S1801-S1803 in the middle.
[0299] Optionally, the processing unit 1902 is used to support the electronic device 1900 in performing operations. Figure 18 S1801-S1803 in the middle.
[0300] Optionally, the display unit 1903 is used to support the display interface content of the control device 1900; and / or to support the control device 1900 in performing operations. Figure 18 S1801-S1803 in the middle.
[0301] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the control device 1900 are respectively to implement the corresponding process of the scene setting method in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, it will not be repeated here.
[0302] Optionally, Figure 19 The control device 1900 shown may also include a storage unit ( Figure 19 (not shown in the image), this storage unit stores a program or instruction. When the transceiver unit 1901, processing unit 1902, and display unit 1903 execute the program or instruction, it causes... Figure 19 The control device 1900 shown can execute the scene setting method in the above method embodiment.
[0303] Figure 19 The technical effects of the control device 1900 shown can be referred to the technical effects of the scene setting method in the above method embodiments, and will not be repeated here.
[0304] In addition to being in the form of a control device 1900, the technical solution provided in this application may also be a functional unit or chip in a control device, or a device used in conjunction with a control device.
[0305] This application also provides a chip system, including: a processor coupled to a memory, the memory being used to store programs or instructions, and when the program or instructions are executed by the processor, the chip system enables the methods in any of the above method embodiments.
[0306] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0307] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.
[0308] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0309] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0310] This application also provides a computer-readable storage medium storing a computer program. When the computer program is run on a computer, it causes the computer to perform the aforementioned steps to implement the scene setting method in the above embodiments.
[0311] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the scene setting method in the above embodiments.
[0312] In addition, this application also provides an apparatus. Specifically, the apparatus may be a component or module, and may include one or more processors and a memory connected together. The memory is used to store a computer program. When the computer program is executed by one or more processors, the apparatus causes it to perform the scene setting method in the above-described method embodiments.
[0313] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0314] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC).
[0315] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the division of the above functional modules is only used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0316] In the several embodiments provided in this application, it should be understood that the disclosed methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of modules or units may be electrical, mechanical or other forms.
[0317] Furthermore, 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. The integrated unit can be implemented in hardware or as a software functional unit.
[0318] Computer-readable storage media include, but are not limited to, any of the following: USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media capable of storing program code.
[0319] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope 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 scene setting method, characterized by, The method is applied to a control device and comprises: in response to a first operation of a user creating a scene, displaying a first interface, displaying a first space slice created on a first area of the first interface, and displaying first information of a first sub-scene corresponding to the first space slice on a second area of the first interface, the first information being used to indicate a first task of a first target device included in the first sub-scene; in response to a second operation of the user, displaying a second space slice arranged after the first space slice on the first area, and switching to display second information of a second sub-scene corresponding to the second space slice on the second area, the second information being used to indicate a second task of a second target device included in the second sub-scene; in response to a third operation of the user, generating a first target scene, the first target scene including the first sub-scene and the second sub-scene, and the first target scene including indication that the second target device is triggered to perform the second task after a first time interval triggering the first target device to perform the first task.
2. The method of claim 1, wherein, The first time interval is a default time interval, or the first time interval is a first time interval between the first space slice and the second space slice set in response to a fourth operation of the user.
3. The method according to claim 1 or 2, characterized in that, The response to the second operation of the user, the display of the second space slice arranged after the first space slice on the first area, and the switching to display the second information of the second sub-scene corresponding to the second space slice on the second area, comprises: in response to an operation of the user creating a space slice, generating the second space slice by copying the first space slice, and displaying the copied first information on the second area; in response to an operation of the user on the first information, generating second information of a second sub-scene corresponding to the second space slice; displaying the second space slice on the first area, and displaying the second information on the second area.
4. The method according to claim 1 or 2, characterized in that, The response to the first operation of the user creating a scene, the display of a first interface, the display of a first space slice created on a first area of the first interface, and the display of first information of a first sub-scene corresponding to the first space slice on a second area of the first interface, comprises: in response to a first operation of a user creating a scene, determining a device state of a controlled device in a current space, the controlled device including the first target device; according to the device state, creating the first space slice and generating the first information of the first sub-scene corresponding to the first space slice.
5. The method according to claim 1 or 2, characterized in that, The first target device and the second target device are devices in the same space, or the first target device and the second target device are devices in different spaces.
6. The method of claim 5, wherein, Before the response to the second operation of the user, the display of the second space slice arranged after the first space slice on the first area, and the switching to display the second information of the second sub-scene corresponding to the second space slice on the second area, the method further comprises: detecting a second operation indicating to create a space slice, determining a first space where the control device is currently located; in a case where the first space is the same as a second space where the first target device is located, generating the second space slice by copying the first space slice; in a case where the first space is different from the second space where the first target device is located, generating the second space slice according to device states of the controlled devices in the first space.
7. The method according to claim 1 or 2, characterized in that, The second target device includes devices in the first target device whose device states or working parameters are to be switched, and / or newly added devices to be controlled.
8. The method of claim 7, wherein, The switching display of the second information corresponding to the second sub-scene of the second space slice on the second area includes: switching display of the second information on the second area, and keeping display of information of devices in the first target device whose device states are not to be switched.
9. The method of claim 1 or 2, wherein, The method further includes: in response to a fifth operation of a user adjusting an arrangement order of the first space slice and the second space slice displayed in the first area, modifying the first target scene to generate a second target scene, the second target scene including an instruction to trigger the first target device to execute a fourth task after triggering the second target device to execute the first task in the first time interval.
10. The method of claim 1 or 2, wherein, Before the first target scene is generated in response to the third operation of the user, the method further includes: in response to a sixth operation of the user selecting the first space slice in the first area, highlighting the space slice in the first area in a preset manner, and switching display of first information of the first sub-scene on the second area.
11. The method of claim 1 or 2, wherein, The method further includes: in response to a seventh operation of the user, setting a cycle parameter of the first target scene, the cycle parameter including one or more of cycle times, cycle duration, and cycle time interval.
12. The method of claim 1 or 2, wherein, The method further includes: in response to an eighth operation of the user, setting an effective condition of the first sub-scene or the second sub-scene, the effective condition including one or more of an effective time, a device state change, a weather condition, and a time interval.
13. The method of claim 1 or 2, wherein, The method further includes: in response to a ninth operation of the user, displaying a second interface, the second interface being used to play an execution effect of the first target scene, the execution effect including switching display of the first space slice and the second space slice in the first area, and switching display of the first information corresponding to the first space slice and the second information corresponding to the second space slice on the second area.
14. The method of claim 13, wherein, The method further includes: in a process of playing the execution effect of the first target scene, sending a first command indicating to execute the first task to the first target device, and sending a second command indicating to execute the second task to the second target device.
15. The method of claim 1 or 2, wherein, The method further includes: In response to a tenth operation of the user, a third spatial slice ranked after the second spatial slice is displayed on the first region, and third information of a third sub-scene corresponding to the third spatial slice is switched to be displayed on the second region, the third information being used to indicate a fifth task of a third target device included in the third sub-scene; the first target scene further includes an indication that the third target device is triggered to perform the fifth task after a second time interval at which the second target device is triggered to perform the second task.
16. An electronic device, comprising: Comprise: A processor, a memory and a display screen, the memory and the display screen being coupled with the processor, the memory being used to store computer program code, the computer program code comprising computer instructions, when the processor reads the computer instructions from the memory, causing the electronic device to perform the method as claimed in any one of claims 1-15.
17. A computer-readable storage medium, characterized in that, The computer readable storage medium comprises a computer program, when the computer program runs on an electronic device, causing the electronic device to perform the method as claimed in any one of claims 1-15.
18. A computer program product, characterised in that, When the computer program product runs on a computer, the computer is caused to perform the method as claimed in any one of claims 1-15.
Citation Information
Patent Citations
Equipment control method, storage medium and electronic equipment
CN111443843A
Application switching display method and device and electronic equipment
CN111831181A