Scene control method, device and system, electronic equipment and medium
By acquiring and analyzing the scene change parameters and current status parameters of smart home devices, and performing gradual adjustments if specific conditions are met, it solves the problem of lack of personalization and intelligence in status changes of existing smart home devices, and achieves higher customization. and comfortable scene control.
Patent Information
- Application Number
- CN202111545962.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-12-16
AI Technical Summary
When existing smart home devices perform actions, the state changes lack personalization and intelligence, and cannot meet the diverse needs of different users.
By obtaining the scene change parameters and current status parameters of the target area and device, if specific scene adjustment conditions are met, the corresponding scene adjustment parameters are obtained, and the device is controlled to adjust with a gradient amplitude within a specified period of time to achieve higher customization and individuality. Scene control.
It achieves a more comfortable change process in different scenarios, meets diverse needs, and improves the intelligence level and user experience of smart home devices.
Smart Images

Figure CN114237063B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and in particular to a scene control method, device and system, electronic device and computer-readable storage medium. Background Art
[0002] People's demands for quality of life are constantly improving, and smart home applications are becoming more and more widespread. However, during the execution of actions, the state changes of known smart home devices are all set uniformly, which cannot meet the more personalized usage needs of more different users and are not intelligent enough. Summary of the invention
[0003] In order to solve the existing technical problems, the present application provides a scene control method, device and system, electronic device and computer-readable storage medium that can meet the needs of dimming in a comfortable changing process in different scenes.
[0004] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a scene control method, including:
[0006] Obtain the scene change parameters in the target area and the current state parameters of the target device;
[0007] If the scene change parameter satisfies the scene adjustment condition corresponding to the target scene, the scene adjustment parameter corresponding to the target device in the target scene is obtained; the scene adjustment parameter includes a scene adjustment duration and a scene adjustment amplitude corresponding to at least one control parameter;
[0008] According to the current state parameter and the control parameter, the target device is controlled to perform gradual adjustment according to the scene adjustment amplitude within the scene adjustment duration.
[0009] In a second aspect, an embodiment of the present application provides a scene control device, including:
[0010] A state acquisition module is used to obtain scene change parameters in the target area and current state parameters of the target device;
[0011] A scene acquisition module, configured to acquire a scene adjustment parameter corresponding to the target device in the target scene if the scene change parameter satisfies the scene adjustment condition corresponding to the target scene; the scene adjustment parameter includes a scene adjustment duration and a scene adjustment amplitude corresponding to at least one control parameter;
[0012] The control module is used to control the target device to perform gradual adjustment according to the scene adjustment amplitude within the scene adjustment duration according to the current state parameter and the control parameter.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the method described in any embodiment of the present application applied to the electronic device side is implemented.
[0014] In the above embodiment, the electronic device obtains the scene change parameters under the target area and the current state parameters of the target device. If the scene change parameters meet the scene adjustment conditions corresponding to the target scene, the scene adjustment parameters corresponding to the target device under the target scene are obtained, and according to the current state parameters and the control parameters in the scene adjustment parameters, the target device is controlled to perform gradual adjustment according to the corresponding scene adjustment amplitude within the scene adjustment duration. In this way, the electronic device configures the scene adjustment parameters of the target device, and the customization dimension of the scene adjustment is higher, which is convenient for creating a more personalized scene adjustment solution, thereby meeting the needs in different scenarios and realizing the scene adjustment needs with a more comfortable change process.
[0015] In a fourth aspect, an embodiment of the present application provides a scene control system, comprising the electronic device, gateway and target device described in any embodiment of the present application, and when the gateway determines that the dimming product meets the dimming trigger condition, the corresponding light source characteristic parameter of the dimming product is controlled to gradually change with the adjustment amplitude within the adjustment time.
[0016] In the above embodiment, the scene control system obtains the scene change parameters and the current state parameters of the target device in the target area through the electronic device. If the scene change parameters meet the scene adjustment conditions corresponding to the target scene, the scene adjustment parameters corresponding to the target device in the target scene are obtained. According to the current state parameters and the control parameters in the scene adjustment parameters, the target device is controlled to perform gradual adjustment according to the corresponding scene adjustment amplitude within the scene adjustment duration. In this way, the electronic device can configure the scene adjustment parameters of the target device, so that the customization dimension of the scene control is higher, which is convenient for creating a more personalized scene control solution to meet the needs of different scenarios and to realize the scene adjustment needs more intelligently.
[0017] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor, the scene control method as described in any embodiment of the present application is implemented.
[0018] In the above embodiments, the computer-readable storage medium and the corresponding scene control method embodiments respectively belong to the same concept, and thus have the same technical effects as the corresponding scene control method embodiments, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a diagram of the IoT system architecture in the embodiment of this application;
[0020] Figure 2 This is a flow chart of a scene control method in one embodiment of the present application;
[0021] Figure 3 This is a flow chart of a scene control method in another embodiment of the present application;
[0022] Figure 4 This is a flow chart of a scene control method in another embodiment of the present application;
[0023] Figure 5 A flowchart of a scene control method provided for an optional specific example of the present application;
[0024] Figure 6 for Figure 5 The configuration flow chart of the scene control method shown takes the dimming product as an example;
[0025] Figure 7 and Figure 8 is a schematic diagram of a dimming configuration in one embodiment;
[0026] Fig. 9 This is a schematic diagram of a scene control device in an embodiment of the present application;
[0027] Fig.10 A schematic diagram of an electronic device in an embodiment of the present application;
[0028] Fig.11 It is a schematic diagram of the structure of an electronic device in another embodiment of the present application. DETAILED DESCRIPTION
[0029] The technical solution of the present application is further elaborated in detail below in conjunction with the accompanying drawings and specific embodiments of the specification.
[0030] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0031] In the following description, the expression "some embodiments" is involved, which describes a subset of all possible embodiments. It should be noted that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
[0032] In the following description, the terms "first, second, third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first, second, third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0033] See also Figure 1 , which is an Internet of Things system architecture diagram of optional application scenarios of the scene control method and smart home device control method provided in the embodiments of the present application, wherein the Internet of Things system includes an electronic device 11, a server 12, a gateway 13 and a smart home device 14. The terminal device 11 refers to a device with communication and storage functions, such as: a smart phone, a desktop computer, a laptop computer, a tablet computer or other intelligent communication device with a network connection function. The server 12 may include one or more physical servers, such as a network access server, a database server, a cloud server, etc. Optionally, the gateway 13 can be a gateway device built based on the ZigBee protocol, and the smart home device 14 is connected to the gateway 13 and controlled by the terminal device 11. The terminal device 11 is installed with a client that can manage the smart home. The client can be an application client (such as a mobile phone APP) or a web client, which is not limited here. The user can control the smart home device 14 by operating the client. The terminal device 11 receives the control instructions of the smart home device 14 input by the user through the client, communicates with the server 12, and the server 12 forwards the control instructions input by the user to the corresponding smart home device 14 through the gateway 13, so as to realize the remote intelligent control of the smart home device 14. The terminal device 11 can also receive the working parameter configuration information of the smart home device 14 input by the user through the client, report the working parameter configuration information to the server 12, and the server 12 sends the working parameter configuration information to the gateway 13 for local storage. The gateway 13 controls the working state of the smart home device 14 according to the working parameter configuration information. The smart home device 14 can be pre-added to the gateway 13. For example, the smart home device 14 can be a device in the kit to which the gateway 13 belongs, which is pre-set when the gateway leaves the factory; or it can be a device connected to the gateway 13 later through user operation.
[0034] Optionally, the smart home device 14 can establish a network connection with the gateway 13 based on the ZigBee protocol, thereby joining the ZigBee network.
[0035] Both the smart home device 14 and the terminal device 11 can be connected to the Ethernet through the gateway 13, and the gateway 13 can be connected to the server 12 through a wired or wireless communication connection. For example, the gateway 13 and the terminal device 11 can store the acquired information in the server 12. Optionally, the terminal device 11 can also establish a network connection with the server 12 through 2G / 3G / 4G / 5G, WiFi, etc., so as to obtain data sent by the server 12.
[0036] Optionally, the terminal device 11, the gateway 13 and the smart home device 14 may be in the same local area network, or in the same wide area network with the server 12. When the terminal device 11 and the gateway 13 are in the same local area network, the terminal device 11 may interact with the gateway 13 and the smart home device 14 connected to the gateway 13 through a local area network path; or may interact with the gateway 13 and the smart home device 14 connected to the gateway 13 through a wide area network path. When the terminal device 11 and the gateway 13 are not in the same local area network, the terminal device 11 may interact with the gateway and the smart home device 14 connected to the gateway 13 through a wide area network path. The Internet of Things system can further realize the control of turning on, off or switching the working mode of the smart home device 14 within the local area network or correspondingly connected thereto through the smart home device 14. The smart home device 14 may include, but is not limited to, smart home products such as dimming products, automatic curtains, and air conditioners. Dimming products can be various types of smart lamps, such as lamps controlled by constant current drivers and dimming control modules, and other non-lamp smart home products that also have lighting functions.
[0037] See also Figure 2 , a scene control method provided by an embodiment of the present application, can be applied to Figure 1 The terminal device, gateway and other electronic devices shown. The scene control method includes but is not limited to S101, S102 and S103, which are described in detail as follows:
[0038] S101, obtaining scene change parameters in a target area and current state parameters of a target device;
[0039] The target area may refer to a pre-set area, such as the area where the target device is located. In an optional example, the target device refers to a dimming product, and the target area refers to the lighting area of the dimming product. The target device may refer to any pre-set smart home product as the object to be controlled, such as a dimming product, specifically a smart lamp. The current state parameter refers to the relevant parameter that characterizes the current state of the target device. The scene change parameter refers to the parameter that characterizes the change of conditions in the scene.
[0040] S103, if the scene change parameter satisfies the scene adjustment condition corresponding to the target scene, then obtaining the scene adjustment parameter corresponding to the target device in the target scene; the scene adjustment parameter includes a scene adjustment duration and a scene adjustment amplitude corresponding to at least one control parameter;
[0041] Among them, the scene adjustment condition refers to the pre-set judgment condition for determining whether to trigger the acquisition of the scene adjustment parameter. The scene adjustment parameter refers to the relevant parameter that controls one or more working parameters of the target device to make a specified change. The scene adjustment parameter includes the scene adjustment duration and scene adjustment amplitude corresponding to at least one control parameter. Different control parameters can correspond to different adjustment methods of the target device, each control parameter corresponds to an adjustment method of the target device, and an adjustment method corresponds to a set of set values of the scene adjustment duration and scene adjustment amplitude. Among them, the scene change parameter refers to the value of the target device that changes within a preset time.
[0042] The scene change parameters satisfy the scene adjustment conditions corresponding to the target scene, which refers to the scene adjustment conditions corresponding to the scene change parameters in the area where the target device is located. For example, the target device may be a dimming product, and the scene change parameters satisfy the scene adjustment conditions corresponding to the target scene. This means that the light brightness in the room where the dimming product is located is lower than the preset brightness value.
[0043] If the scene change parameters meet the scene adjustment conditions corresponding to the target scene, the electronic device detects the light brightness of the room where the dimming product is located. When it is determined that the light brightness of the room where the dimming product is located is lower than the preset brightness value, the light emission of the dimming product is controlled to change within the set scene adjustment duration and within the set scene adjustment amplitude.
[0044] S105: According to the current state parameter and the control parameter, control the target device to perform gradual adjustment according to the scene adjustment amplitude within the scene adjustment duration.
[0045] The scene adjustment duration refers to the duration of controlling the working state of the target device, and the scene adjustment amplitude refers to the amplitude of change per unit time during the adjustment of the working state of the target device. If the target device is a dimming product, the scene adjustment duration may refer to the length of time the dimming product performs dimming.
[0046] After the electronic device obtains the scene adjustment parameters corresponding to the target device in the target scene, it controls the target device to perform gradual adjustment according to the scene adjustment amplitude within the scene adjustment duration according to the current state parameters and control parameters of the target device. Among them, controlling the target device to perform gradual adjustment according to the scene adjustment amplitude within the scene adjustment duration corresponds to controlling the dimming product to adjust from the current brightness to the specified brightness by increasing the specified brightness value per unit time within the corresponding time length.
[0047] In the above embodiment, the electronic device obtains the scene change parameters under the target area and the current state parameters of the target device. If the scene change parameters meet the scene adjustment conditions corresponding to the target scene, the scene adjustment parameters corresponding to the target device under the target scene are obtained, and the target device is controlled to perform gradual adjustment according to the corresponding scene adjustment amplitude within the scene adjustment duration according to the current state parameters and the control parameters in the scene adjustment parameters. In this way, by configuring the scene adjustment parameters of the target device, the customization dimension of the scene adjustment is higher, which is convenient for creating a more personalized scene adjustment solution, thereby meeting the needs in different scenarios and realizing the scene adjustment needs with a more comfortable change process.
[0048] In some embodiments, the scene adjustment condition includes a lighting adjustment condition, the scene adjustment parameter includes a scene adjustment duration and a scene adjustment amplitude corresponding to at least one light source control parameter, and the light source control parameter includes at least one of brightness, color temperature and color.
[0049] The scene adjustment condition may be a lighting adjustment condition. When it is detected that the lighting change satisfies the lighting adjustment condition, the corresponding light source control parameter of the target lamp is controlled to gradually change within the scene adjustment duration at the scene adjustment amplitude. The light source control parameter may be brightness, color temperature or color. Accordingly, when it is detected that the lighting change satisfies the lighting adjustment condition, the brightness, color temperature or color of the target lamp is controlled to gradually change within the scene adjustment duration at the scene adjustment amplitude; or, the light source control parameter may be any combination of brightness, color temperature and color.
[0050] Accordingly, when it is detected that the light changes meet the light adjustment conditions, two of the brightness, color temperature and color of the target lamp are controlled to change gradually within the scene adjustment duration with the scene adjustment amplitude; the light source control parameters can also be brightness, color temperature and color. Accordingly, when it is detected that the light changes meet the light adjustment conditions, the brightness, color temperature and color of the target lamp are controlled to change gradually within the scene adjustment duration with the scene adjustment amplitude.
[0051] In the above embodiment, the lighting adjustment condition is used as the scene adjustment condition, and corresponding light source control parameters can be set for different light source characteristic brightness, color temperature and color of the light source, so as to create a more personalized dimming solution, meet the ambient light requirements in different scenes, and realize the dimming requirements with a more comfortable change process.
[0052] In some embodiments, the step S103, if the scene change parameter satisfies the scene adjustment condition corresponding to the target scene, obtaining the scene adjustment parameter corresponding to the target device in the target scene according to the scene change parameter, includes:
[0053] Acquire scene configuration data corresponding to at least one target scene in the target area; the scene configuration data includes a scene adjustment condition of the target scene, a target action of a target device corresponding to the scene adjustment condition, and a scene adjustment parameter;
[0054] Matching the scene change parameters with the scene adjustment conditions of each of the target scenes;
[0055] If they match, it is determined that the scene change parameters meet the scene adjustment conditions, and the execution action corresponding to the matched target scene and the scene adjustment parameters including the adjustment duration and the adjustment amplitude are obtained;
[0056] The step of controlling the target device to perform gradual adjustment according to the adjustment amplitude within the adjustment duration according to the current state parameter of the target device includes:
[0057] The target device is controlled to execute the target action based on the current state parameter, and in the process of executing the target action, a gradual adjustment is performed within the adjustment time according to the adjustment amplitude.
[0058] The target scene may be a pre-set scene or any of a plurality of pre-set scenes, such as a sleeping scene, a reading scene, a movie scene, etc. The scene configuration data refers to the relevant parameters for controlling one or more smart home products contained in the scene to perform corresponding actions under the corresponding scene.
[0059] For example, in the sleeping scene, the lights in the bedroom are turned off, the air conditioner is turned on and adjusted to the specified temperature, and the air purifier is turned on and adjusted to the corresponding purification mode; in the reading scene, the lights in the study are turned on, the air conditioner is turned on and adjusted to the specified temperature, and the speakers are turned on and play the corresponding music; in the movie and TV scene, the lights in the living room are adjusted to low brightness mode and the audio and video playback equipment is turned on.
[0060] The scene adjustment condition may refer to a pre-set judgment condition for determining whether to trigger the corresponding scene to be turned on. A scene adjustment condition is set for each scene to trigger the scene to be turned on. When it is detected that the scene change parameter meets a certain scene adjustment condition, the scene adjustment parameters of the execution action, adjustment duration and adjustment amplitude corresponding to the target scene matching the scene adjustment condition are obtained, the target device is controlled to execute the target action based on the current state parameters, and the target device is controlled to perform gradual adjustment according to the adjustment amplitude within the adjustment duration during the execution of the target action.
[0061] In the above embodiment, the scene adjustment conditions, the execution actions of the target device corresponding to the scene adjustment conditions, and the scene adjustment parameters are limited through scene configuration data, so that the gradual adjustment scheme of the target device can be implemented through the user's configuration of the scene, thereby meeting the setting needs of more personalized scenes of different users.
[0062] In some embodiments, the target device refers to a dimming product, the target action refers to a light-on action or a light-off action, and the scene adjustment parameters include dimming configuration parameters corresponding to the light-on and / or light-off actions specified by the dimming product; the dimming configuration parameters include adjustment duration and adjustment amplitude corresponding to at least one light source characteristic parameter of the dimming product.
[0063] Among them, dimming configuration parameters refer to parameters that are configured to control the light of dimming products to change in a specific way, such as controlling the brightness of the light to gradually change from zero to the brightest within a set time when the lamp is turned on, controlling the color temperature of the light to gradually change from zero to a preset value within a set time when the lamp is turned on, and controlling the brightness of the light to gradually change from the current brightness to zero within a set time when the lamp is turned off. Among them, the luminous characteristics of the dimming product can be determined by multiple light source characteristic parameters, and the light changing in a specific way can refer to that during the lighting process of the dimming product, one or more of the multiple light source characteristic parameters that can affect the luminous characteristics of the dimming product change according to the configured parameters.
[0064] It is understandable that the light source characteristic parameters are used to characterize the dimensions of the luminous characteristics of dimming products, including but not limited to the brightness, color temperature, color and flickering frequency of light. The adjustment duration refers to the total duration of the gradual adjustment of the luminous characteristics of the dimming product, and the adjustment amplitude refers to the amplitude of change of the light source characteristic parameters corresponding to the gradual adjustment of the luminous characteristics of the dimming product. The dimming configuration parameters include the adjustment duration and adjustment amplitude corresponding to at least one light source characteristic parameter of the dimming product, which may refer to: the dimming configuration parameters include the adjustment duration and adjustment amplitude corresponding to one of the light source characteristic parameters of the dimming product; the dimming configuration parameters include the adjustment duration and adjustment amplitude corresponding to multiple light source characteristic parameters of the dimming product; the dimming configuration parameters include the adjustment duration and adjustment amplitude corresponding to each of the multiple light source characteristic parameters of the dimming product.
[0065] In some embodiments, the dimming configuration parameters may include multiple groups corresponding one-to-one to different specific actions performed by the dimming product, and the electronic device obtains the dimming configuration parameters of the dimming product, including: when the electronic device obtains the dimming configuration parameters corresponding to each specific action specified by the dimming product, the dimming configuration parameters corresponding to each specific action include the adjustment duration and adjustment amplitude corresponding to at least one light source characteristic parameter of the dimming product.
[0066] The user can configure the scene on the electronic device, set the scene name and the target action and scene adjustment parameters of one or more target devices included in the corresponding scene. In an optional example, the electronic device obtains the dimming configuration parameters of the dimming product and sends the dimming configuration parameters to the gateway. When the gateway determines that the dimming product meets the dimming trigger condition, the corresponding light source characteristic parameters of the dimming product are controlled to gradually change with the adjustment amplitude within the adjustment time.
[0067] Specifically, the electronic device can send the dimming configuration parameters to the gateway through a direct or indirect communication connection with the gateway. The gateway can store the dimming configuration parameters locally, and when the gateway determines that the dimming product meets the dimming trigger condition, the corresponding light source characteristic parameter of the dimming product is controlled to gradually change with the adjustment amplitude within the adjustment time. Among them, the dimming trigger condition can refer to the preset condition for triggering the dimming product to perform a specific action, such as the preset condition for triggering the dimming product to turn on, the condition for triggering the dimming product to turn off, the condition for triggering the dimming product to switch between different light-emitting modes, etc. The preset condition for triggering the dimming product to perform a specific action can include the default condition for triggering the dimming product to perform a specific action, such as the preset condition for triggering the dimming product to turn on is the gateway obtaining the opening instruction for controlling the dimming product to turn on sent by the electronic device; it can also include the conditions configured by the user through the electronic device, such as the preset condition for triggering the dimming product to turn on is the gateway judging that the configuration conditions for turning on the dimming product are currently met according to the status parameters received from other smart home devices. The dimming trigger condition may refer to: dimming trigger conditions set one by one according to different specific actions performed by the dimming product, or a unified dimming trigger condition set for the dimming product to perform multiple specific actions. When the dimming product is used as a target device included in a target scene, the scene adjustment condition that triggers the target scene can be directly used as the dimming trigger condition that triggers the dimming product to perform a specific action.
[0068] In the above embodiment, the electronic device obtains the dimming configuration parameters of the dimming product and sends the dimming configuration parameters to the gateway. When the gateway determines that the dimming product meets the dimming trigger condition, the corresponding light source characteristic parameters of the dimming product are controlled to gradually change in the adjustment time and amplitude. In this way, the dimming configuration parameters of the dimming product are set by the electronic device, and the light source characteristic parameters of the dimming product are used as the dimming dimension, so that the dimming has a higher customization dimension, which is convenient for creating a more personalized dimming solution to meet the ambient light requirements in different scenarios and achieve the dimming requirements in a more comfortable change process.
[0069] In some embodiments, the electronic device acquires scene configuration data; the scene configuration data includes a scene adjustment condition, an execution action of a dimming product corresponding to the scene adjustment condition, and a dimming configuration parameter corresponding to the execution action;
[0070] The electronic device sends the dimming configuration parameters to a gateway, and when the gateway determines the scene change parameter scene adjustment condition, the corresponding light source characteristic parameters of the dimming product are controlled to gradually change with the adjustment amplitude within the adjustment duration.
[0071] Optionally, the electronic device sends the scene configuration data to the gateway, and when the gateway detects that the scene change parameters meet the scene adjustment conditions corresponding to the target scene, the dimming product is controlled to perform the target action. In the process of controlling the dimming product to perform the target action, the corresponding light source characteristic parameters gradually change with an adjustment amplitude within the adjustment time.
[0072] The target scenario refers to a set of automation information that automatically controls one or more execution actions of one or more target devices based on preset trigger conditions.
[0073] The user can create one or more automated scenes for controlling the target device through the electronic device, and the scene configuration data of each scene can correspondingly include one or more setting data for executing actions for the target device. The scene adjustment condition refers to the condition that must be met before the target device contained in the target scene is triggered to execute the set target action.
[0074] Optionally, the scene adjustment conditions may include at least one of the following: a specified smart home device is in a set working state, a detection device detects a specified human behavior, a detection device detects a person in a specified area, or a specific instruction issued by a user is received.
[0075] The target device may include, but is not limited to, any smart home device that the user wants to remotely control through an electronic device, such as lamps, curtains, televisions, and monitoring systems. The scene is related to the user's personal preferences, living habits, etc. In different scenes, the smart home devices that the user wants to turn on or off are different. The user pre-creates scenes and pre-sets the actions of one or more target smart home devices contained in the corresponding scenes. When in use, you can directly select the scene you need to enter to control the execution actions of one or more smart home devices pre-configured in the scene, thereby simplifying the control operation. The setting instructions for the target action of the target device may refer to the selection instructions for turning on, off, and different working modes of the smart home device. Taking the smart home device as lamp 1 as an example, the setting instructions for the target action of lamp 1 may include turning on lamp 1, turning off lamp 1, switching lamp 1 from working mode 1 to working mode 2, etc.
[0076] Among them, the target device included in the scene can be a dimming product, and the corresponding scene configuration data includes scene adjustment conditions, target actions of the dimming product corresponding to the scene adjustment conditions, and dimming configuration parameters corresponding to the target actions. The electronic device obtains the scene configuration data according to the user's configuration operation on the scene, and sends the scene configuration data to the gateway for local storage. When the gateway detects that the scene adjustment conditions are met, the scene is triggered and the smart home devices included in the corresponding control scene perform corresponding actions respectively. It can be understood that if the scene includes a dimming product at this time, when the scene is triggered, the smart home devices included in the control scene perform corresponding actions respectively, including controlling the dimming product to perform the target action, and controlling the dimming product in the process of performing the target action, and the corresponding light source characteristic parameters change gradually with the adjustment amplitude within the adjustment time.
[0077] In the above embodiment, the electronic device can obtain the dimming configuration parameters of the dimming product by configuring the scene. When the smart home device included in the scene is set as a dimming product, the dimming configuration parameters are further set for the target action of the dimming product. In this way, when the scene adjustment conditions of the target scene are met, the target scene is triggered. At this time, it can be determined that the dimming product also meets the triggering conditions of the specified target action. During the dimming product's execution of the target action, the light gradually changes according to the set dimming configuration parameters, which is convenient for creating a more personalized dimming solution. Further, by setting the dimming configuration parameters of the dimming product in the scene configuration, the dimming configuration parameters can be associated with the set target action of the dimming product. That is, the same dimming product can be configured to be included in different scenes to perform the same action, and the same or different dimming configuration parameters can be set for performing the same action in different scenes; it can also be configured to perform different set target actions in different scenes. It is possible to set the same or different dimming configuration parameters for performing different set target actions in different scenes, so as to achieve a variety of lighting effects of the same dimming product, and meet the needs of users in different scenes to use the dimming product more comfortably.
[0078] In some embodiments, see Figure 3 , before obtaining the scene change parameters of the target area and the current state parameters of the target device, it includes:
[0079] S1011, in response to the scene creation instruction, displaying a scene configuration page; the scene configuration page includes a scene condition configuration area and a scene parameter configuration area;
[0080] S1031, obtaining the scene adjustment conditions for the target scene entered in the scene condition configuration area, as well as the target actions and scene adjustment parameters of the target device corresponding to the scene adjustment conditions entered in the scene parameter configuration area, and generating scene configuration data for the target scene.
[0081] Optionally, the electronic device obtains a scene creation instruction, enters a scene configuration page of the target scene according to the scene creation instruction, obtains a selection instruction for a dimming product included in the target scene based on the scene configuration page, and enters a product setting page of the dimming product according to the selected instruction; on the product setting page, obtains an adjustment duration and an adjustment amplitude corresponding to at least one light source characteristic parameter of the dimming product.
[0082] The electronic device may be installed with a client for managing the smart home, and the user may obtain the scene creation instruction through the interface provided by the client. The electronic device may obtain the scene creation instruction by obtaining a specific voice instruction or gesture instruction input by the user, or receiving a touch instruction of the user on a scene creation button preset in the interface.
[0083] The electronic device enters the scene configuration page according to the scene creation instruction and obtains the scene configuration data of the target scene, which may specifically include: the user selects the scene to be created in the scene configuration page of the electronic device, enters the scene adjustment conditions that must be met when the corresponding scene is triggered, and enters the target action of the target device corresponding to the scene adjustment conditions and the scene adjustment parameters in the scene parameter configuration area.
[0084] The user can configure which smart home devices will be controlled to perform which actions respectively when the scene is triggered, and when the smart home device is selected as a dimming product, set the dimming configuration parameters when the dimming product performs the target action. In an optional specific example, when the smart home device is selected as a dimming product through the scene configuration page, the electronic device obtains the selected instruction of the dimming product, enters the product setting page of the dimming product, and receives the dimming configuration parameters of the dimming product input by the user through the product setting page. The dimming configuration parameters include the adjustment duration and adjustment amplitude corresponding to at least one light source characteristic parameter.
[0085] The electronic device obtains the scene adjustment conditions of the target scene and the execution action information of the smart home device corresponding to the scene adjustment conditions according to the configuration operation of the user in the scene configuration page. When the smart home device is a dimming product, the product setting page of the dimming product is entered according to the selection instruction of the dimming product. According to the operation of the user in the product setting page, the execution action of the dimming product corresponding to the scene adjustment conditions and the dimming configuration parameters corresponding to the execution action are obtained to form the configuration data of the target scene. It should be noted that the scene configuration page can be a page or multiple related pages that are jumped based on the previous operation, and the product setting page can also be a page or multiple related pages that are jumped based on the previous operation.
[0086] For example, if a user wants to create a movie scene A, the movie scene A includes lamp 1 turned on, lamp 2 turned off, curtain 1 turned off, and air conditioner 1 turned on. The user can input the creation operation of the movie scene A on the electronic device, and further set the scene adjustment condition A that needs to be satisfied when the movie scene A is triggered, and add lamp 1 turned on, lamp 2 turned off, curtain 1 turned off, and air conditioner 1 turned on as the execution action information of the smart home devices corresponding to the movie scene A, set the first dimming configuration parameter for lamp 1 to perform the turn-on action, and set the second dimming configuration parameter for lamp 2 to perform the turn-off action. According to the setting operation of the user, the electronic device forms the configuration data of the movie scene A, which may include: scene adjustment condition A, lamp 1 turned on (the lamp 1 is gradually changed in a set manner according to the first dimming configuration parameter during the turn-on process), lamp 2 turned off (the lamp 2 is gradually changed in a set manner according to the second dimming configuration parameter during the turn-off process), curtain 1 closed, and air conditioner 1 turned on.
[0087] In the above embodiment, the electronic device provides a scene configuration page to guide the user to complete the configuration operation of the target scene, which can simplify the dimming configuration operation of the dimming product, reduce the difficulty of scene configuration, and more conveniently create dimming solutions for different scenes, thereby improving the efficiency of automatic configuration.
[0088] In some embodiments, the scene parameter configuration area includes scene transition configuration options;
[0089] In response to a trigger operation on the scene transition configuration option, displaying a scene transition configuration page;
[0090] In response to the scene adjustment duration and scene adjustment amplitude selected in the scene transition configuration page, scene adjustment parameters for the target scene are generated.
[0091] The scene transition configuration page refers to a jump link to a nested page based on different configuration operations during the scene configuration process. In an optional embodiment, the target device refers to a dimming product, the scene transition page refers to a product setting page configured for the dimming product, and a scene transition configuration option may be provided in the scene parameter configuration area. The electronic device may display the scene transition configuration page according to the configuration operation of the scene transition configuration option selected by the user, and obtain the adjustment time and adjustment range corresponding to at least one light source characteristic parameter of the dimming product according to the scene adjustment time and scene adjustment range selected by the user in the scene transition configuration page. Among them, the light source characteristic parameters of the dimming product may include multiple, and the user may enter a value of the adjustment time and adjustment range on the product setting page, so as to provide the electronic device with a unified adjustment time and adjustment range for multiple light source characteristic parameters of the dimming product; or, the user may also set the corresponding adjustment time and adjustment range for multiple light source characteristic parameters on the product setting page, and the light source characteristic parameters include brightness, color temperature and / or color.
[0092] There are multiple light source characteristic parameters. The dimming configuration parameters of the dimming product can be a unified adjustment time and adjustment range set for multiple light source characteristic parameters, or can be adjustment time and adjustment range set for multiple light source characteristic parameters separately. Multiple configuration options of light source characteristic parameters to be selected can be preset in the product setting page. Users can select the light source characteristic parameters to be adjusted in turn and set the corresponding adjustment time and adjustment range for the light source characteristic parameters.
[0093] In the above embodiment, a scene transition configuration page can be set to set the target action and scene adjustment parameters of the target device. For example, multiple light source characteristic parameters of the dimming product can be set to a unified adjustment duration and adjustment amplitude, or different adjustment durations and adjustment amplitudes can be set respectively. Accordingly, when the dimming product is controlled to perform a corresponding action to gradually change in a set manner, multiple light source characteristic parameters can be gradually changed with the same adjustment amplitude within the adjustment duration, or multiple light source characteristic parameters can be gradually changed with different adjustment amplitudes within the adjustment duration. In this way, the dimming customization dimension of the dimming product is higher, and a richer light gradient effect can be achieved.
[0094] In some embodiments, if the scene changes, the scene change parameters are determined to meet the scene adjustment conditions, and the execution action corresponding to the matched target scene and the scene adjustment parameters including the adjustment duration and the adjustment amplitude are obtained, including:
[0095] If they match, it is determined that the scene change parameter satisfies the scene adjustment condition, and scene configuration data corresponding to at least one target scene in the target area is obtained; the scene configuration data includes multiple execution actions of the dimming product, and dimming configuration parameters including the adjustment duration and adjustment amplitude of at least one light source characteristic parameter;
[0096] The controlling the target device to perform the target action based on the current state parameter, and performing gradual adjustment within the adjustment time according to the adjustment amplitude during the execution of the target action, includes:
[0097] The dimming product is controlled to perform a corresponding action, and in the process of performing the corresponding action, the corresponding light source characteristic parameter is controlled to gradually change with the adjustment amplitude within the adjustment time.
[0098] Among them, the target scene may include one or more, each target scene is set with a corresponding scene adjustment condition, and the scene change parameters are matched with the scene adjustment conditions of each target scene. When the scene change parameters match the scene adjustment conditions of any one of the multiple target scenes, it is determined that the scene change parameters meet the scene adjustment conditions, and the execution action corresponding to the matching target scene is obtained, as well as the scene adjustment parameters including the adjustment duration and adjustment amplitude.
[0099] In an optional example, the target device in the target scene includes a dimming product, and the scene adjustment parameters include dimming configuration parameters of the dimming product, wherein obtaining the dimming configuration parameters of the dimming product includes: obtaining the dimming configuration parameters corresponding to multiple execution actions of the dimming product, and the dimming configuration parameters include dimming trigger conditions, adjustment duration, and adjustment amplitude. The electronic device sends the dimming configuration parameters to the gateway, and when the gateway detects that the dimming product meets the dimming trigger conditions of the corresponding execution action, the dimming product is controlled to perform the corresponding action, and the corresponding light source characteristic parameters are gradually changed with the adjustment amplitude within the adjustment duration during the execution of the corresponding action.
[0100] A dimming product can have multiple different execution actions. The user can use an electronic device to set the dimming of the dimming product by setting different dimming configuration parameters for multiple different execution actions. The electronic device sends the dimming configuration parameters to the gateway for local storage. When the gateway detects that the dimming product meets the dimming trigger conditions of the corresponding execution action, it controls the dimming product to perform the corresponding action, and in the process of controlling the dimming product to perform the corresponding action, the corresponding light source characteristic parameters gradually change with the adjustment amplitude within the adjustment time. For example, the execution actions of lamp 1 include turning on and off, and the dimming setting for lamp 1 can be a first adjustment duration and a first adjustment amplitude corresponding to the turning-on setting of lamp 1, and a second adjustment duration and a second adjustment amplitude corresponding to the turning-off setting of lamp 2. When the gateway detects that the dimming trigger condition for turning on lamp 1 is met, lamp 1 is controlled to be turned on, and during the turning-on process, the corresponding light source characteristic parameters are controlled to change gradually with the first adjustment amplitude within the first adjustment duration; when the gateway detects that the dimming trigger condition for turning off lamp 1 is met, lamp 1 is controlled to be turned off, and during the turning-off process, the corresponding light source characteristic parameters are controlled to change gradually with the second adjustment amplitude within the second adjustment duration, so as to realize dimming of different light gradient effects of dimming products according to different execution actions.
[0101] Among them, the step of controlling the dimming product to perform the corresponding action and the step of gradually changing the corresponding light source characteristic parameters with the adjustment amplitude within the adjustment time during the execution of the corresponding action can refer to that multiple light source characteristic parameters gradually change with a uniform adjustment amplitude within the adjustment time, or can refer to that multiple light source characteristic parameters gradually change with preset different adjustment amplitudes within the adjustment time, so as to achieve more diversified dimming effects for the dimming product.
[0102] In the above embodiments, by setting corresponding dimming configuration parameters for different execution actions of the dimming product, the dimming product is controlled to present different light gradient effects when being triggered to perform different execution actions, and the user can use the dimming product more comfortably.
[0103] In some embodiments, if the scene changes, the scene change parameters are determined to meet the scene adjustment conditions, and the execution action corresponding to the matched target scene and the scene adjustment parameters including the adjustment duration and the adjustment amplitude are obtained, including:
[0104] If they match, it is determined that the scene change parameter meets the scene adjustment condition, and the dimming configuration parameters corresponding to the dimming product and the plurality of set dimming trigger conditions are obtained;
[0105] The controlling the target device to perform the target action based on the current state parameter, and performing gradual adjustment within the adjustment time according to the adjustment amplitude during the execution of the target action, includes:
[0106] The dimming product is controlled to determine matching dimming configuration parameters according to the dimming trigger condition currently satisfied, and during the execution of the corresponding action, the characteristic parameters of the light source gradually change with the adjustment amplitude within the adjustment duration.
[0107] Among them, the target scene may include one or more, each target scene is set with a corresponding scene adjustment condition, and the scene change parameters are matched with the scene adjustment conditions of each target scene. When the scene change parameters match the scene adjustment conditions of any one of the multiple target scenes, it is determined that the scene change parameters meet the scene adjustment conditions, and the dimming configuration parameters corresponding to the dimming products included in the matching target scene and the multiple set dimming trigger conditions are obtained.
[0108] In an optional example, the electronic device obtains the dimming configuration parameters corresponding to the dimming product and multiple set dimming trigger conditions, respectively, and sends the dimming configuration parameters to the gateway. When the gateway determines that the dimming product meets the dimming trigger conditions, the corresponding light source characteristic parameters of the dimming product are controlled to gradually change with the adjustment amplitude within the adjustment time. Multiple dimming trigger conditions can correspond to multiple dimming configuration parameters one by one. The electronic device sends the dimming configuration parameters to the gateway. When the gateway detects that the dimming product meets one of the multiple set dimming trigger conditions, the dimming product is controlled to determine the matching dimming configuration parameters according to the currently met dimming trigger conditions, and the light source characteristic parameters are gradually changed with the adjustment amplitude within the adjustment time during the execution of the corresponding action.
[0109] The dimming product may be triggered to perform an action under multiple dimming triggering conditions, and the multiple dimming triggering conditions may be set to trigger the dimming product to perform the same action, or may be set to trigger the dimming product to perform different actions. The user may use an electronic device to set different dimming configuration parameters for multiple different dimming triggering conditions, and the multiple different dimming triggering conditions referred to here may be pre-configured to trigger the dimming product to perform the same action, or may be pre-configured to trigger the dimming product to perform different actions.
[0110] The electronic device sends the dimming configuration parameters to the gateway for local storage. When the gateway detects that the dimming product meets one of the multiple dimming trigger conditions, the gateway controls the dimming product to determine the matching dimming configuration parameters according to the dimming trigger condition currently met. In the process of executing the corresponding action, the characteristic parameters of the light source gradually change with the adjustment amplitude within the adjustment time. For example, the execution action of the lamp 1 includes turning on, and the dimming trigger conditions for triggering the lamp 1 to turn on include: when it is detected that there is someone in the set range of the lamp 1, when the lamp 1 receives the turn-on pressing command of the control panel K, and when the lamp 1 receives the turn-on control command sent by the electronic device. The dimming setting of the lamp 1 can be to set the corresponding first adjustment time and first adjustment amplitude for the dimming trigger condition when the lamp 1 is detected to be within the set range of the lamp 1, to set the corresponding second adjustment time and second adjustment amplitude for the dimming trigger condition when the lamp 1 receives the turn-on pressing command of the control panel K, and to set the corresponding third adjustment time and third adjustment amplitude for the dimming trigger condition when the lamp 1 receives the turn-on control command sent by the electronic device.
[0111] When the gateway determines that a person is detected within the set range of lamp 1 based on the detection data reported by the sensor, it controls lamp 1 to turn on and, during the process of turning on, controls the corresponding light source characteristic parameters to gradually change with a first adjustment amplitude within a first adjustment duration. When the gateway determines that lamp 1 receives a turn-on press command from control panel K based on the state parameters reported by switch K on the control panel, it controls lamp 1 to turn on and, during the process of turning on, controls the corresponding light source characteristic parameters to gradually change with a second adjustment amplitude within a second adjustment duration. When the gateway determines that lamp 1 receives a turn-on control command sent by an electronic device, it controls lamp 1 to turn on and, during the process of turning on, controls the corresponding light source characteristic parameters to gradually change with a third adjustment amplitude within a third adjustment duration, so as to achieve dimming with different light gradient effects when the dimming product is triggered to perform actions according to different dimming trigger conditions.
[0112] Among them, the dimming product is controlled to determine the matching dimming configuration parameters according to the dimming trigger conditions currently met. During the execution of the corresponding action, the step of gradually changing the light source characteristic parameters with an adjustment amplitude within the adjustment time may refer to a plurality of light source characteristic parameters gradually changing with a uniform adjustment amplitude within the adjustment time, or may refer to a plurality of light source characteristic parameters gradually changing with preset different adjustment amplitudes within the adjustment time, so as to achieve more diversified dimming effects for the dimming product.
[0113] In the above embodiments, by setting corresponding dimming configuration parameters when the dimming product is triggered to perform actions based on different dimming trigger conditions, different light gradient effects are presented in the process of controlling the dimming product to perform the same or different actions when triggered by different dimming trigger conditions, so that users can combine more dimming solutions for controlling light gradient adjustment, and users can use dimming products more comfortably.
[0114] On the other hand, please refer to Figure 4 , and also provides a scene control method, which is applied to a scene control system and comprises the following steps:
[0115] S201, the electronic device obtains dimming configuration parameters of a dimming product; wherein the dimming configuration parameters include adjustment duration and adjustment amplitude corresponding to at least one light source characteristic parameter of the dimming product.
[0116] Dimming configuration parameters refer to parameters that are configured to control the light of dimming products to change in a specific way. The luminous characteristics of dimming products can be determined by multiple light source characteristic parameters, and the light changing in a specific way can mean that during the lighting process of the dimming product, one or more of the multiple light source characteristic parameters that can affect the luminous characteristics of the dimming product change according to the configured parameters.
[0117] Light source characteristic parameters are used to characterize the dimensions of the luminous characteristics of dimming products, including but not limited to the brightness, color temperature, color and flickering frequency of light. Adjustment duration refers to the total duration of gradual adjustment of the luminous characteristics of the dimming product, and adjustment amplitude refers to the amplitude of change of the corresponding light source characteristic parameters during the gradual adjustment of the luminous characteristics of the dimming product. The dimming configuration parameters include the adjustment duration and adjustment amplitude corresponding to at least one light source characteristic parameter of the dimming product, which may refer to: the dimming configuration parameters include the adjustment duration and adjustment amplitude corresponding to one of the light source characteristic parameters of the dimming product; the dimming configuration parameters include the adjustment duration and adjustment amplitude corresponding to multiple light source characteristic parameters of the dimming product; the dimming configuration parameters include the adjustment duration and adjustment amplitude corresponding to each of the multiple light source characteristic parameters of the dimming product.
[0118] S203, the electronic device reports the dimming configuration parameters to the cloud, and the cloud sends the dimming configuration parameters to the gateway; or the electronic device sends the dimming configuration parameters to the gateway.
[0119] The user uses an electronic device to configure the light emission of the dimming product to form dimming configuration parameters. The electronic device sends the dimming configuration parameters to the gateway through the cloud or directly to the gateway. The gateway receives the dimming configuration parameters and stores them locally. The gateway may refer to a gateway device such as a router that connects the dimming product to the network, or may also include an agent gateway that can perform data communication functions between the gateway device and smart home products in the local area network according to set conditions.
[0120] S205: When the gateway determines that the dimming product meets the dimming trigger condition, the gateway controls the corresponding light source characteristic parameter of the dimming product to gradually change with the adjustment amplitude within the adjustment duration.
[0121] The gateway stores the corresponding relationship between the dimming configuration parameters and the dimming products locally. When the gateway determines that the dimming product meets the dimming trigger condition, the corresponding light source characteristic parameters of the dimming product are controlled to gradually change with the adjustment amplitude within the adjustment time. Among them, the dimming trigger condition may refer to the preset condition for triggering the dimming product to perform a specific action, such as the preset condition for triggering the dimming product to turn on, the condition for triggering the dimming product to turn off, the condition for triggering the dimming product to switch between different light-emitting modes, etc. The preset condition for triggering the dimming product to perform a specific action may include the default condition for triggering the dimming product to perform a specific action, such as the preset condition for triggering the dimming product to turn on is the gateway to obtain the opening instruction for controlling the dimming product to turn on sent by the electronic device; it may also include the conditions configured by the user through the electronic device, such as the preset condition for triggering the dimming product to turn on is the gateway judging that the configuration conditions for turning on the dimming product are currently met according to the state parameters received from other smart home devices. Among them, the dimming trigger condition may refer to: the dimming trigger conditions set one by one according to the different specific actions performed by the dimming product, or the unified dimming trigger conditions set for the dimming product to perform multiple specific actions.
[0122] In the above embodiment, the user can use an electronic device to configure the dimming product. The electronic device obtains the dimming configuration parameters of the dimming product and sends the dimming configuration parameters to the gateway. When the gateway determines that the dimming product meets the dimming trigger conditions, the corresponding light source characteristic parameters of the dimming product are controlled to gradually change the adjustment amplitude during the adjustment time. In this way, the dimming configuration parameters of the dimming product are set by the electronic device, and the light source characteristic parameters of the dimming product are used as the dimming dimension, so that the dimming solution for dimming the dimming product has a higher customization dimension, which is convenient for creating a more personalized dimming solution to meet the ambient light requirements in different scenarios and achieve the dimming requirements with a more comfortable change process.
[0123] In some embodiments, the electronic device obtains dimming configuration parameters of a dimming product in S201, including:
[0124] The electronic device acquires scene configuration data of a target automation scene; the scene configuration data includes a trigger condition of the target automation, an execution action of a dimming product corresponding to the trigger condition, and a dimming configuration parameter corresponding to the execution action.
[0125] An automation scene refers to a set of automation information that automatically controls one or more execution actions of one or more smart home devices based on preset trigger conditions. Users can create one or more automation scenes to control smart home devices through electronic devices, and the scene configuration data of each automation scene can correspondingly contain one or more setting data for the execution actions of smart home devices. The target automation scene refers to the automation scene that the user currently wants to create. The trigger condition refers to the condition that must be met before the smart home device contained in the target automation scene is triggered to perform the corresponding action. Optionally, the trigger condition may include at least one of the following: the specified smart home device is in a set working state, the detection device detects a person's specified behavior, the detection device detects a person in a specified area, and receives a specific instruction issued by the user.
[0126] Smart home devices may include but are not limited to any smart home products that users want to remotely control through electronic devices, such as lamps, curtains, televisions, and monitoring systems. Automation is related to the user's personal preferences, living habits, etc. In different automation scenarios, the smart home devices that users want to turn on or off are different. Users pre-create automation scenes and pre-set the actions of one or more target smart home devices contained in the corresponding automation scenes. When using, they can directly select the automation scene that needs to be entered, thereby simplifying the control operation. The action setting instruction of the target smart home device refers to the user's selection instruction for turning on, off, and different working modes of the smart home device. Taking the smart home device as lamp 1 as an example, the setting instructions for the execution action of lamp 1 may include turning on lamp 1, turning off lamp 1, switching lamp 1 from working mode 1 to working mode 2, etc. Among them, the smart home device included in the automation scene may be a dimming product, and the corresponding scene configuration data includes the triggering condition of the target automation, the execution action of the dimming product corresponding to the triggering condition, and the dimming configuration parameters corresponding to the execution action.
[0127] The S205, when the gateway determines that the dimming product meets the dimming trigger condition, controls the light source characteristic parameter corresponding to the dimming product to gradually change with the adjustment amplitude within the adjustment duration, including:
[0128] When the gateway detects that the trigger condition for the target automation is met, it controls the dimming product to perform the corresponding action of the target automation, and controls the dimming product to gradually change the corresponding light source characteristic parameter with the adjustment amplitude within the adjustment time during the execution of the corresponding action.
[0129] The electronic device sends the scene configuration data to the gateway for local storage. When the gateway detects that the trigger conditions for the target automation are met, the automation scene is triggered and the smart home devices included in the corresponding control scene perform corresponding actions respectively. It can be understood that if the scene includes dimming products at this time, when the automation scene is triggered, the smart home devices included in the control scene perform corresponding actions respectively, including controlling the dimming products to perform corresponding actions, and controlling the dimming products to gradually change the corresponding light source characteristic parameters with an adjustment amplitude within the adjustment time during the execution of the corresponding actions.
[0130] In the above embodiment, the electronic device can obtain the dimming configuration parameters of the dimming product by configuring the automation scene. When the smart home device included in the automation scene is set as a dimming product, the dimming configuration parameters are further set for the execution action of the dimming product. In this way, when the trigger condition of the target automation is met, the automation scene is triggered. At this time, it can be determined that the dimming product also satisfies the dimming trigger condition accordingly. During the execution of the corresponding action by the dimming product, the light gradually changes according to the set dimming configuration parameters, which is convenient for creating a more personalized dimming solution. Further, by setting the dimming configuration parameters of the dimming product in the automation scene configuration, the dimming configuration parameters can be associated with the set execution action of the dimming product, that is, the dimming product can be configured to be included in different automation scenes to perform the same action, and the same or different dimming configuration parameters can be set for performing the same action in different automation scenes; it can also be configured to be included in different automation scenes to perform different set actions, and the same or different dimming configuration parameters can be set for performing different set actions in different automation scenes, so as to achieve a variety of lighting effects of the same dimming product and meet the needs of users in different scenes to use the dimming product more comfortably.
[0131] In some embodiments, when the gateway determines that the dimming product meets the dimming trigger condition, before controlling the corresponding light source characteristic parameter of the dimming product to gradually change with the adjustment amplitude within the adjustment duration, it also includes:
[0132] The gateway receives preset condition detection parameters, and determines whether the trigger condition of the target automation is met according to the condition detection parameters; the condition detection parameters include at least one of the following: a detection signal sent by a designated sensor, a switch control instruction sent by a designated panel switch, and a dimming control instruction sent by the electronic device.
[0133] The dimming product is used as one of the smart home devices included in the target automation scene. The dimming trigger condition of the dimming product can be the same as the trigger condition of the target automation scene. That is, when the target automation scene is triggered, the smart home devices included in the target automation scene respectively execute the set execution actions. At this time, the dimming product as one of the smart home devices included in the target automation scene also executes the set execution action accordingly. Before the gateway determines whether the dimming product meets the dimming trigger condition, the gateway receives a preset condition detection parameter and determines whether the trigger condition of the target automation is met according to the condition detection parameter. The condition detection parameter can be a detection signal sent by a specified sensor. The sensor can be one or more specified sensors used to detect whether there are people around the dimming product. When the gateway receives the detection signal collected by the specified sensor to determine whether someone is approaching the dimming product, or receives the detection signal collected by the specified sensor to determine whether someone enters a room, it determines that the trigger condition of the target automation is met. The condition detection parameter can be a switch control instruction sent by a specified panel switch. The panel switch can be a specified panel switch used to turn on or off the dimming product. When the gateway receives the switch control instruction sent by the specified panel switch to control the dimming product to turn on or off, it determines that the trigger condition of the target automation is met. The condition detection parameter can also be a dimming control instruction sent by the user through an electronic device. For example, if an application for controlling the dimming product is installed on the electronic device, a control button for controlling the dimming product to turn on or off may be provided on the application interface. The user sends the dimming control instruction by clicking the control button on the application interface. When the gateway receives the dimming control instruction sent by the electronic device, it determines that the trigger condition for the target automation is met.
[0134] In the above embodiment, the gateway receives preset condition detection parameters and determines whether the triggering conditions of the target automation are met according to the condition detection parameters. In this way, more dimming solutions for controlling dimming products to change light can be implemented through the gateway.
[0135] In some embodiments, the electronic device obtains the dimming configuration parameters of the dimming product, including:
[0136] The electronic device obtains dimming configuration parameters corresponding to a plurality of execution actions of the dimming product respectively;
[0137] When the gateway determines that the dimming product meets the dimming trigger condition, controlling the corresponding light source characteristic parameter of the dimming product to gradually change with the adjustment amplitude within the adjustment duration, including:
[0138] The gateway receives preset condition detection parameters, and when determining, based on the condition detection parameters, that the dimming product satisfies one of the dimming trigger conditions for executing the action, controls the dimming product to execute the corresponding action, and controls the dimming product to gradually change the corresponding light source characteristic parameter with the adjustment amplitude within the adjustment duration during the execution of the corresponding action.
[0139] The execution action may include turning on, off, mode switching, etc. The dimming product may have multiple different execution actions. The user may use the electronic device to set the dimming of the dimming product by setting different dimming configuration parameters for multiple different execution actions. The electronic device sends the dimming configuration parameters to the gateway for local storage. When the gateway detects that the dimming product meets the dimming trigger conditions of the corresponding execution action, it controls the dimming product to perform the corresponding action, and in the process of controlling the dimming product to perform the corresponding action, the corresponding light source characteristic parameters gradually change with the adjustment amplitude within the adjustment time. For example, the execution actions of lamp 1 include turning on and off, and the dimming setting for lamp 1 can be a first adjustment duration and a first adjustment amplitude corresponding to the turning-on setting of lamp 1, and a second adjustment duration and a second adjustment amplitude corresponding to the turning-off setting of lamp 2. When the gateway detects that the dimming trigger condition for turning on lamp 1 is met, lamp 1 is controlled to be turned on, and during the turning-on process, the corresponding light source characteristic parameters are controlled to change gradually with the first adjustment amplitude within the first adjustment duration; when the gateway detects that the dimming trigger condition for turning off lamp 1 is met, lamp 1 is controlled to be turned off, and during the turning-off process, the corresponding light source characteristic parameters are controlled to change gradually with the second adjustment amplitude within the second adjustment duration, so as to realize dimming of different light gradient effects of dimming products according to different execution actions.
[0140] Among them, the step of controlling the dimming product to perform the corresponding action and the step of gradually changing the corresponding light source characteristic parameters with the adjustment amplitude within the adjustment time during the execution of the corresponding action can refer to that multiple light source characteristic parameters gradually change with a uniform adjustment amplitude within the adjustment time, or can refer to that multiple light source characteristic parameters gradually change with preset different adjustment amplitudes within the adjustment time, so as to achieve more diversified dimming effects for the dimming product.
[0141] In the above embodiment, the user can use an electronic device to set corresponding dimming configuration parameters for different execution actions of the dimming product, thereby controlling the dimming product to be triggered to perform different execution actions and presenting different light gradient effects, so that the user can use the dimming product more comfortably.
[0142] In some embodiments, the electronic device obtains the dimming configuration parameters of the dimming product, including:
[0143] The electronic device obtains dimming configuration parameters corresponding to the dimming product and a plurality of set dimming trigger conditions respectively;
[0144] When the gateway determines that the dimming product meets the dimming trigger condition, controlling the corresponding light source characteristic parameter of the dimming product to gradually change with the adjustment amplitude within the adjustment duration, including:
[0145] The gateway receives preset condition detection parameters, and when determining that the dimming product satisfies one of the dimming trigger conditions according to the condition detection parameters, controls the dimming product to determine matching dimming configuration parameters according to the dimming trigger condition currently satisfied, and in the process of executing the corresponding action, the characteristic parameters of the light source gradually change with the adjustment amplitude within the adjustment duration.
[0146] The dimming trigger conditions may be conditions issued by different control terminals that can control the dimming products to perform actions respectively. The dimming trigger conditions that trigger the dimming products to perform actions may include multiple, and the multiple dimming trigger conditions may be set to trigger the dimming products to perform the same action, or may be set to trigger the dimming products to perform different actions respectively. The user may use an electronic device to set different dimming configuration parameters for the multiple different dimming trigger conditions. The multiple different dimming trigger conditions referred to here may be pre-configured to trigger the dimming products to perform the same action, or may be pre-configured to trigger the dimming products to perform different actions respectively.
[0147] The electronic device sends the dimming configuration parameters to the gateway for local storage. When the gateway detects that the dimming product meets one of the multiple set dimming trigger conditions, the gateway controls the dimming product to determine the matching dimming configuration parameters according to the dimming trigger condition currently met. In the process of executing the corresponding action, the characteristic parameters of the light source gradually change with the adjustment amplitude within the adjustment time. For example, the execution action of lamp 1 includes turning on, and the dimming trigger conditions for triggering the turning on of lamp 1 include: when it is detected that there is someone in the set range of lamp 1, when lamp 1 receives the turn-on pressing command from control panel K, and when lamp 1 receives the turn-on control command sent by the electronic device. The dimming setting of lamp 1 can be to set the corresponding first adjustment time and first adjustment amplitude for the dimming trigger condition when someone is detected in the set range of lamp 1, to set the corresponding second adjustment time and second adjustment amplitude for the dimming trigger condition when lamp 1 receives the turn-on pressing command from control panel K, and to set the corresponding third adjustment time and third adjustment amplitude for the dimming trigger condition when lamp 1 receives the turn-on control command sent by the electronic device. The gateway determines according to the detection data reported by the sensor. When it is detected that there is someone within the set range of the lamp 1, the lamp 1 is controlled to be turned on, and during the process of turning on, the corresponding light source characteristic parameters are controlled to change gradually with a first adjustment amplitude within a first adjustment duration; when the gateway determines that the lamp 1 receives a turn-on pressing command from the control panel K according to the status parameters reported by the switch K on the control panel, the lamp 1 is controlled to be turned on, and during the process of turning on, the corresponding light source characteristic parameters are controlled to change gradually with a second adjustment amplitude within a second adjustment duration; when the gateway determines that the lamp 1 receives a turn-on control command sent by the electronic device, the lamp 1 is controlled to be turned on, and during the process of turning on, the corresponding light source characteristic parameters are controlled to change gradually with a third adjustment amplitude within a third adjustment duration, so as to achieve dimming with different light gradient effects when the dimming product is triggered to perform actions according to different dimming trigger conditions.
[0148] Among them, the dimming product is controlled to determine the matching dimming configuration parameters according to the dimming trigger conditions currently met. During the execution of the corresponding action, the step of gradually changing the light source characteristic parameters with an adjustment amplitude within the adjustment time may refer to a plurality of light source characteristic parameters gradually changing with a uniform adjustment amplitude within the adjustment time, or may refer to a plurality of light source characteristic parameters gradually changing with preset different adjustment amplitudes within the adjustment time, so as to achieve more diversified dimming effects for the dimming product.
[0149] In the above embodiments, by setting corresponding dimming configuration parameters when the dimming product is triggered to perform actions based on different dimming trigger conditions, different light gradient effects are presented in the process of controlling the dimming product to perform the same or different actions when triggered by different dimming trigger conditions, so that users can combine more dimming solutions for controlling light gradient adjustment, and users can use dimming products more comfortably.
[0150] In some embodiments, controlling the light source characteristic parameter corresponding to the dimming product to gradually change with the adjustment amplitude within the adjustment duration includes:
[0151] When the adjustment amplitude is lower than the maximum variable amplitude, updating the adjustment duration according to the ratio of the adjustment amplitude to the maximum variable amplitude;
[0152] The light source characteristic parameter corresponding to the dimming product is controlled to gradually change with the adjustment amplitude within the updated adjustment duration.
[0153] The maximum variable range can refer to a preset value representing the variable range, or can refer to a ratio representing the variable range, such as the maximum variable range can be 100%. Taking time as the adjustment duration and delta as the adjustment range as an example, the transition time of one adjustment is set as time. When the adjustment range delta of the brightness or color temperature in the light source characteristic parameters is set to be lower than 100%, the required transition time is calculated according to the automatic ratio to update the adjustment time time, so as to avoid the situation where the adjustment range is small but the transition time is too long, resulting in an error in the adjustment plan.
[0154] In the above embodiment, the adjustment amplitude is set to the change amplitude of the corresponding light source characteristic parameter during one adjustment, and the adjustment duration is automatically calculated and updated proportionally according to the relative relationship between the adjustment amplitude and the maximum variable amplitude to ensure that the dimming product effectively presents a light gradient effect.
[0155] Optionally, the step of controlling the light source characteristic parameter corresponding to the dimming product to gradually change with the adjustment amplitude within the adjustment time period further includes:
[0156] When the adjustment amplitude is empty, the light source characteristic parameter corresponding to the dimming product is controlled to gradually change with a constant adjustment amplitude within the adjustment duration.
[0157] Among them, the adjustment amplitude being empty may refer to the situation that the adjustment amplitude is set to zero, not set, or set to not consider the ratio, etc. When the adjustment amplitude is empty, the brightness, color temperature, and color changes of the dimming product are controlled according to the constant adjustment duration, that is, the dimming product is controlled to light up or extinguish according to the factory settings during the execution of execution actions such as turning on and off. In another optional embodiment, the adjustment amplitude is set to not consider the ratio and can also be used as a separate configuration option. When the user selects not to consider the ratio through a separate configuration option, even if the adjustment amplitude is not empty, the brightness, color temperature, and color changes of the dimming product will be controlled according to the constant adjustment duration, that is, the dimming product is controlled to light up or extinguish according to the factory settings during the execution of execution actions such as turning on and off.
[0158] In the above embodiment, when the user uses an electronic device to set the dimming of the dimming product, the user can set the adjustment range to empty to configure the dimming product to light up or turn off according to the factory settings during the execution of the action, so as to meet the user's lighting needs for the dimming product in a specific scenario.
[0159] In some embodiments, the electronic device obtains the dimming configuration parameters of the dimming product, including:
[0160] The electronic device obtains the adjustment time and adjustment range corresponding to the brightness, the adjustment time and adjustment range corresponding to the color temperature, and the adjustment time and adjustment range corresponding to the color of the dimming product;
[0161] The step of controlling the light source characteristic parameter corresponding to the dimming product to gradually change with the adjustment amplitude within the adjustment time period includes:
[0162] The brightness, color temperature and color of the dimming product are controlled to gradually change in accordance with the adjustment amplitude within the corresponding adjustment time periods.
[0163] Among them, the characteristic parameters of the light source may include brightness, color temperature and color. When the user uses an electronic device to dim the dimming product, the user can set the adjustment time and adjustment range for the brightness, color temperature and color of the light of the dimming product, so as to control the dimming product to perform actions. In the process, the brightness, color temperature and color of the dimming product can be gradually changed with the corresponding adjustment range within the corresponding adjustment time. In this way, multiple light source characteristic parameters of the dimming product, such as brightness, color temperature and color, can be set as dimming variables and control each other. It should be noted that the dimming configuration parameters can be set in multiple groups according to the different execution actions of the dimming product, or in multiple groups according to the different dimming trigger conditions of the dimming product. The dimming configuration parameters of different groups are independent of each other. For example, an electronic device obtaining the adjustment time and adjustment amplitude corresponding to the brightness, color temperature, and color of a dimming product may mean that the electronic device obtains a first dimming configuration parameter corresponding to a first execution action and a dimming configuration parameter corresponding to a second execution action of the dimming product, and the adjustment time and adjustment amplitude corresponding to the brightness, color temperature, and color of the dimming product in the first dimming configuration parameter and the second dimming configuration parameter may be different, respectively. Thus, when the dimming product is controlled to perform the first execution action, the brightness, color temperature, and color of the dimming product are controlled to gradually change with the corresponding adjustment amplitude within the respectively corresponding adjustment time according to the first dimming configuration parameter; and when the dimming product is controlled to perform the second execution action, the brightness, color temperature, and color of the dimming product are controlled to gradually change with the corresponding adjustment amplitude within the respectively corresponding adjustment time according to the second dimming configuration parameter.
[0164] For another example, an electronic device obtaining the adjustment time and adjustment amplitude corresponding to the brightness, color temperature, and color of a dimming product may mean that the electronic device obtains a first dimming configuration parameter for the dimming product to perform a corresponding action when the dimming product is triggered by a first dimming trigger condition and a second dimming configuration parameter for the dimming product to perform a corresponding action when the dimming product is triggered by a second dimming trigger condition. The adjustment time and adjustment amplitude corresponding to the brightness, color temperature, and color of the dimming product in the first dimming configuration parameter and the second dimming configuration parameter may be different, respectively. Thus, when the dimming product is controlled to perform an action based on the first dimming trigger condition, the brightness, color temperature, and color of the dimming product are controlled to gradually change with the corresponding adjustment amplitude within the respectively corresponding adjustment time according to the first dimming configuration parameter. When the dimming product is controlled to perform an action based on the second dimming trigger condition, the brightness, color temperature, and color of the dimming product are controlled to gradually change with the corresponding adjustment amplitude within the respectively corresponding adjustment time according to the second dimming configuration parameter.
[0165] In the above embodiment, the characteristic parameters of the multiple light sources of the dimming product can be set as adjustment variables respectively and independently of each other, so as to meet the sensitivity of people to light in different scenes, increase the dimension of dimming, and increase personalized needs. Users can freely configure the adjustment variables to facilitate the realization of different gradient effects according to different target triggers, so as to meet the needs of users in different scenes to apply dimming products more comfortably. For example, after the configuration of dimming product A is completed, the dimming of the light gradient effect is realized when dimming product A is turned on or off, and after the configuration of dimming product B is completed, the dimming of the light color change is realized when dimming product B is turned on or off; it can also be that after the configuration of dimming product A is completed, the dimming of the light gradient effect is realized when dimming product A is triggered by the target automation scene 1, and the dimming of the light color change is realized when the target automation scene 2 is triggered.
[0166] Please refer to Figure 5 and Figure 6 In order to have a more comprehensive understanding of the scene control method provided in the embodiment of the present application, the following description is given by taking the target device as a dimming product as an example. The scene control method includes the following steps:
[0167] S11, the terminal device obtains the automated creation data and reports it to the cloud;
[0168] Users can configure the scene through the terminal device, such as Figure 6As shown, an application (Aqara Home APP) for configuring smart home devices can be installed on the terminal device. The user can open the application on the terminal device to perform scene configuration operations, and the terminal device obtains automation creation data based on the user's configuration operations. The automation creation data may include controlling multiple smart home devices to perform preset actions based on set trigger conditions. The smart home device may be a dimming product, and the data corresponding to the dimming product performing the preset action includes the dimming configuration parameters corresponding to the dimming product performing the action. The dimming configuration parameters include the adjustment variables of the light source characteristic parameters of the dimming product, such as the adjustment duration and adjustment amplitude; please refer to Figure 6 and Figure 7 , which is an optional interface diagram of the dimming product configuration interface. The configuration interface can be preset with conditional configuration options corresponding to new automation, as well as candidate configuration options for light source characteristic parameters such as brightness, color temperature, and color. The user can select the motion sensor (Motion sensor T1) detecting human movement as the condition to be satisfied for the corresponding automation trigger, select the brightness, color temperature, and color to set their corresponding adjustment duration and adjustment range. The configuration interface can also be preset with candidate configuration options for execution actions such as turn on and turn off. The user can select turn on and turn off to set their corresponding adjustment duration and adjustment range for brightness, color temperature, and color.
[0169] S12, the cloud receives the automated creation data, forms the automated logic of trigger conditions and execution actions according to the automated creation data, and sends it to the gateway;
[0170] like Figure 6 As shown, the cloud may refer to an artificial intelligence Internet of Things (AIOT) cloud, and the terminal device sends the automated creation data to the cloud, which establishes a trigger-execution logic (i.e., the automated logic of the trigger condition and the execution action) based on the automated creation data, and sends the trigger-execution logic to the corresponding gateway. In an optional specific example, the automated creation command may include:
[0171] Open --- on
[0172] Close --- off
[0173] Adjust brightness and color temperature --- move to level
[0174] Change Color
[0175] The cloud can express the automation logic of trigger conditions and execution actions based on the automated creation data as follows:
[0176] On / off --- on / off+option (time / delta variable)
[0177] Adjustment status --- move to level + option (time / delta variable)
[0178] Adjust+on / off --- move to level with on / off+option (time / delta variable)
[0179] S13, the gateway receives the trigger conditions and the automation logic for executing the action sent by the cloud, and stores them locally;
[0180] like Figure 6 As shown, the cloud sends the automation formed by the trigger-execution logic to the gateway (Hub), the gateway establishes the trigger-execution logic, and detects whether the current environmental conditions meet the trigger conditions to obtain condition detection parameters.
[0181] S14, the gateway receives the condition detection parameters to determine whether the dimming trigger condition is met. If so, the gateway controls the dimming product to perform an action and realizes a dimming gradient effect according to the configured dimming configuration parameters.
[0182] Among them, Figure 6 As shown, the gateway detects whether the current environmental conditions meet the trigger conditions, which may refer to the gateway receiving the detection parameters sent by the pre-associated sensor, such as the condition detection parameters may refer to the gateway receiving the detection information of the designated human body sensor detecting a person, or receiving the control instructions of the user to control the dimming product to turn on, turn off, and other execution actions sent by the electronic device. For example: the trigger-execution logic is when there is someone-the dimming product (Device) turns on the light, and gradually changes according to the set situation during the lighting process. When the human body sensor detects someone, the gateway determines that the trigger condition is currently met based on the detection information of the human body sensor, and controls the dimming product to turn on the light according to the configuration of the Option to achieve a custom gradient effect; for another example, the trigger-execution logic is: when someone enters the room, turn on the desk lamp and gradually adjust the brightness to 50% of the maximum brightness. When the gateway detects the detection information of someone entering the room based on the human body sensor, the gateway controls the desk lamp to turn on according to the configured dimming configuration parameters, and gradually changes to 50% of the maximum brightness within the set adjustment time.
[0183] In some optional embodiments, when a user uses an electronic device to create automation, the user can further set effective conditions for the automation. For example, a configuration option to be executed once can be preset in the configuration interface. If the user selects the option to be executed once, the corresponding automation logic will be automatically turned off after being executed once, and the dimming product will no longer perform dimming gradient according to the configured dimming configuration parameters when it is triggered again.
[0184] In the above embodiment, users can freely configure the gradual change of light when dimming products are turned on and off. The custom dimension of dimming is large, which is convenient for users to create personalized dimming solutions to meet the needs of dimming in different scenes and ambient light conditions with a comfortable change process. For example, when the desk lamp is turned off at night, the color temperature gradually changes to 2700K in 15 seconds, and the brightness gradually becomes zero, giving people a comfortable experience.
[0185] See also Fig. 9 On the other hand, the present application provides a scene control device. In an exemplary embodiment, the scene control device can be implemented by an electronic device. The scene control device includes: an acquisition module 11, which is used to acquire the scene change parameters under the target area and the current state parameters of the target device; a dimming module 12, which is used to acquire the scene adjustment parameters corresponding to the target device under the target scene if the scene change parameters meet the scene adjustment conditions corresponding to the target scene; the scene adjustment parameters include the scene adjustment duration and the scene adjustment amplitude corresponding to at least one control parameter; according to the current state parameters and the control parameters, the target device is controlled to perform gradual adjustment according to the scene adjustment amplitude within the scene adjustment duration.
[0186] Among them, the dimming module 12 is specifically used to obtain scene configuration data corresponding to at least one target scene in the target area; the scene configuration data includes the scene adjustment conditions of the target scene, and the target action and scene adjustment parameters of the target device corresponding to the scene adjustment conditions; the scene change parameters are matched with the scene adjustment conditions of each target scene; if they match, it is determined that the scene change parameters meet the scene adjustment conditions, and the execution action corresponding to the matching target scene and the scene adjustment parameters including the adjustment duration and the adjustment amplitude are obtained; the target device is controlled to execute the target action based on the current state parameters, and in the process of executing the target action, a gradual adjustment is performed within the adjustment duration according to the adjustment amplitude.
[0187] Among them, the dimming module 12 is specifically used to obtain scene configuration data corresponding to at least one target scene in the target area; the scene configuration data includes multiple execution actions of the dimming product, and dimming configuration parameters including adjustment duration and adjustment amplitude of at least one light source characteristic parameter; control the dimming product to perform the corresponding action, and control the dimming product to gradually change the corresponding light source characteristic parameter within the adjustment duration with the adjustment amplitude during the execution of the corresponding action.
[0188] Among them, the dimming module 12 is specifically used to obtain the dimming configuration parameters corresponding to the dimming product and multiple set dimming trigger conditions; control the dimming product to determine the matching dimming configuration parameters according to the dimming trigger conditions currently met, and in the process of executing the corresponding action, the light source characteristic parameters gradually change with the adjustment amplitude within the adjustment time.
[0189] Among them, the acquisition module 11 is also used to display a scene configuration page in response to a scene creation instruction; the scene configuration page includes a scene condition configuration area and a scene parameter configuration area; the scene adjustment conditions for the target scene entered in the scene condition configuration area, and the target actions and scene adjustment parameters of the target device corresponding to the scene adjustment conditions entered in the scene parameter configuration area are acquired to generate scene configuration data for the target scene.
[0190] Among them, the scene parameter configuration area includes scene transition configuration options; the acquisition module 11 is also used to display the scene transition configuration page in response to the trigger operation for the scene transition configuration option; in response to the scene adjustment duration and scene adjustment amplitude selected on the scene transition configuration page, generate scene adjustment parameters for the target scene.
[0191] Among them, the scene adjustment condition includes a lighting adjustment condition, and the lighting adjustment condition includes a scene adjustment duration and a scene adjustment amplitude corresponding to at least one light source control parameter, and the light source control parameter includes at least one of brightness, color temperature and color.
[0192] It should be noted that: the scene control device provided in the above embodiment only uses the division of the above program modules as an example in the process of configuring the dimming control solution of the dimming product. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the method steps described above. In addition, the scene control device provided in the above embodiment and the scene control method embodiment applied to the electronic device side belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0193] In another aspect, the present application provides an electronic device, see Fig.10, is an optional hardware structure diagram of an electronic device provided in an embodiment of the present application, the electronic device includes a processor 111 and a memory 112, the memory 112 is used to store various types of data to support the operation of the scene control device, and stores a computer program for implementing the scene control method provided in any embodiment of the present application. When the computer program is executed by the processor, the steps of the scene control method provided in any embodiment of the present application are implemented, and the same technical effect can be achieved. In order to avoid repetition, it will not be repeated here.
[0194] See also Fig.11 , is an optional hardware structure block diagram of the electronic device provided in the embodiment of the present application. Fig.11 As shown, electronic devices may have relatively large differences due to different configurations or performances, and may include one or more processors (Processing Units, CPU) 1110 (the processor 1110 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1130 for storing data, and one or more storage media 1120 (such as one or more mass storage devices) for storing application programs 1123 or data 1122. Among them, the memory 1130 and the storage medium 1120 can be short-term storage or permanent storage. The program stored in the storage medium 1120 may include one or more modules, each of which may include a series of instruction operations in the automation control panel. Furthermore, the processor 1110 can be configured to communicate with the storage medium 1120 to execute a series of instruction operations in the storage medium 1120 on the electronic device. The electronic device may also include one or more power supplies 1160, one or more wired or wireless network interfaces 1150, one or more input and output interfaces 1140, and / or one or more operating systems 1121, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, FreeBSD TM, etc.
[0195] The input / output interface 1140 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the electronic device. In one example, the input / output interface 1140 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the input / output interface 1140 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0196] It can be understood by those skilled in the art that Fig.11The structure shown is for illustration only and does not limit the structure of the above-mentioned automatic control panel. Fig.11 More or fewer components as shown, or with Fig.11 Different configurations are shown.
[0197] On the other hand, an embodiment of the present application further provides a scene control system, including the electronic device, gateway and dimming product provided in any embodiment of the present application, when the gateway determines that the scene change parameter meets the scene adjustment condition corresponding to the target scene, it controls the target device to perform the target action, and in the process of executing the target action, gradually adjusts according to the adjustment amplitude within the adjustment time.
[0198] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned working mode configuration method and switch control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium, such as read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk, etc.
[0199] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0200] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0201] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A scene control method, characterized in that: Acquire scene change parameters and current state parameters of the target device under the target area, and scene configuration data corresponding to at least one target scene; the scene configuration data includes scene adjustment conditions of the target scene, target actions of the target device corresponding to the scene adjustment conditions, and corresponding scene adjustment parameters; If the scene change parameter satisfies the scene adjustment condition corresponding to the target scene, obtaining the scene adjustment parameter corresponding to the target action of the target device in the target scene according to the scene change parameter; The scene adjustment parameters include a scene adjustment duration and a scene adjustment amplitude corresponding to at least one control parameter; In the case where the scene adjustment amplitude is lower than the maximum variable amplitude, the scene adjustment duration is determined based on the ratio of the scene adjustment amplitude to the maximum variable amplitude; the scene adjustment amplitude includes a pre-configured same adjustment amplitude or a different adjustment amplitude to gradually adjust the corresponding scene; Determine a scene adjustment parameter of a matching target action according to the scene adjustment condition satisfied by the current state parameter and the control parameter, and control the target device to perform gradual adjustment within the scene adjustment duration according to the scene adjustment amplitude during the execution of the target action; Different target actions have corresponding scene adjustment durations and scene adjustment amplitudes.
2. The method according to claim 1, characterized in that If the scene change parameter satisfies the scene adjustment condition corresponding to the target scene, acquiring the scene adjustment parameter corresponding to the target action of the target device in the target scene according to the scene change parameter, including: Matching the scene change parameters with the scene adjustment conditions of each of the target scenes; If they match, it is determined that the scene change parameters meet the scene adjustment conditions, and the execution action corresponding to the matched target scene and the scene adjustment parameters including the adjustment duration and the adjustment amplitude are obtained.
3. The method according to claim 2, characterized in that If the scene changes, the scene adjustment parameters are determined to meet the scene adjustment conditions, and the execution actions corresponding to the matching target scenes and the scene adjustment parameters including the adjustment duration and the adjustment amplitude are obtained, including: If they match, it is determined that the scene change parameter satisfies the scene adjustment condition, and scene configuration data corresponding to at least one target scene in the target area is obtained; the scene configuration data includes multiple execution actions of the dimming product, and dimming configuration parameters including the adjustment duration and adjustment amplitude of at least one light source characteristic parameter; The controlling the target device to perform the target action based on the current state parameter, and performing gradual adjustment within the adjustment time according to the adjustment amplitude during the execution of the target action, includes: The dimming product is controlled to perform a corresponding action, and in the process of performing the corresponding action, the corresponding light source characteristic parameter is controlled to gradually change with the adjustment amplitude within the adjustment time.
4. The method according to claim 2, characterized in that If the scene changes, the scene adjustment parameters are determined to meet the scene adjustment conditions, and the execution actions corresponding to the matching target scenes and the scene adjustment parameters including the adjustment duration and the adjustment amplitude are obtained, including: If they match, it is determined that the scene change parameter meets the scene adjustment condition, and the dimming configuration parameters corresponding to the dimming product and the plurality of set dimming trigger conditions are obtained; The determining of the scene adjustment parameter of the matched target action according to the scene adjustment condition satisfied by the current state parameter and the control parameter, and controlling the target device to perform gradual adjustment within the scene adjustment duration according to the scene adjustment amplitude during the execution of the target action, comprises: The dimming product is controlled to determine matching dimming configuration parameters according to the dimming trigger condition currently satisfied, and during the execution of the corresponding action, the characteristic parameters of the light source gradually change with the adjustment amplitude within the adjustment duration.
5. The method according to claim 1, characterized in that Before acquiring the scene change parameters of the target area and the current state parameters of the target device, the method includes: In response to the scene creation instruction, display a scene configuration page; the scene configuration page includes a scene condition configuration area and a scene parameter configuration area; The scene adjustment conditions for the target scene entered in the scene condition configuration area, as well as the target actions and scene adjustment parameters of the target device corresponding to the scene adjustment conditions entered in the scene parameter configuration area are obtained to generate scene configuration data for the target scene.
6. The method according to claim 5, characterized in that The scene parameter configuration area includes scene transition configuration options; In response to a trigger operation on the scene transition configuration option, displaying a scene transition configuration page; In response to the scene adjustment duration and scene adjustment amplitude selected in the scene transition configuration page, scene adjustment parameters for the target scene are generated.
7. The method according to any one of claims 1 to 6, characterized in that: The scene adjustment condition includes a lighting adjustment condition, and the lighting adjustment condition includes a scene adjustment duration and a scene adjustment amplitude corresponding to at least one light source control parameter, and the light source control parameter includes at least one of brightness, color temperature and color.
8. A scene control device, characterized in that: include: An acquisition module, used to acquire scene change parameters under the target area and current state parameters of the target device, as well as scene configuration data corresponding to at least one target scene; The scene configuration data includes the scene adjustment conditions of the target scene, the target action of the target device corresponding to the scene adjustment conditions, and the corresponding scene adjustment parameters; A dimming module, configured to obtain, according to the scene change parameters, scene adjustment parameters corresponding to the target action of the target device in the target scene if the scene change parameters meet the scene adjustment conditions corresponding to the target scene; the scene adjustment parameters include a scene adjustment duration and a scene adjustment amplitude corresponding to at least one control parameter, and when the scene adjustment amplitude is lower than the maximum variable amplitude, the scene adjustment duration is determined based on the ratio of the scene adjustment amplitude to the maximum variable amplitude; the scene adjustment amplitude includes pre-configured identical adjustment amplitudes or different adjustment amplitudes to gradually adjust the corresponding scene; Determine a matching target action scene adjustment parameter according to the scene adjustment condition satisfied by the current state parameter and the control parameter, and control the target device to perform gradual adjustment within the scene adjustment duration according to the scene adjustment amplitude during the execution of the target action; Different target actions have corresponding scene adjustment durations and scene adjustment amplitudes.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein the computer program implements the method according to any one of claims 1 to 7 when executed by the processor.
10. A scene control system, characterized in that: It includes the electronic device, gateway and target device as described in claim 9, when the gateway determines that the scene change parameter meets the scene adjustment condition corresponding to the target scene, controls the target device to execute the target action, and performs gradual adjustment within the adjustment time according to the adjustment amplitude during the execution of the target action.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
