CN114237063A - Scene control method, device and system, electronic equipment and medium - Google Patents
Scene control method, device and system, electronic equipment and medium Download PDFInfo
- Publication number
- CN114237063A CN114237063A CN202111545962.1A CN202111545962A CN114237063A CN 114237063 A CN114237063 A CN 114237063A CN 202111545962 A CN202111545962 A CN 202111545962A CN 114237063 A CN114237063 A CN 114237063A
- Authority
- CN
- China
- Prior art keywords
- scene
- dimming
- target
- adjusting
- adjustment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 115
- 230000008859 change Effects 0.000 claims abstract description 182
- 230000000875 corresponding effect Effects 0.000 claims description 258
- 230000009471 action Effects 0.000 claims description 168
- 230000001276 controlling effect Effects 0.000 claims description 67
- 230000008569 process Effects 0.000 claims description 66
- 230000007704 transition Effects 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 3
- 238000001514 detection method Methods 0.000 description 32
- 230000001960 triggered effect Effects 0.000 description 26
- 230000000694 effects Effects 0.000 description 24
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000005286 illumination Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 235000019557 luminance Nutrition 0.000 description 1
- 238000004020 luminiscence type Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000000746 purification Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The embodiment of the application provides a scene control method, a scene control device, a scene control system, electronic equipment and a computer storage medium, which can be applied to an intelligent home scene, wherein the method comprises the following steps: acquiring scene change parameters in a target area and current state parameters of target equipment; if the scene change parameter meets the scene adjusting condition corresponding to the target scene, acquiring a scene adjusting parameter corresponding to the target device in the target scene; the scene adjusting parameters comprise scene adjusting duration and scene adjusting amplitude corresponding to at least one control parameter; and controlling the target equipment to perform gradual change adjustment according to the scene adjustment amplitude within the scene adjustment duration according to the current state parameter and the control parameter.
Description
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a scene control method, apparatus, and system, an electronic device, and a computer-readable storage medium.
Background
People's requirement for life quality constantly improves, and intelligent home is more and more extensive with application, but in the execution action process of known intelligent home equipment, state change is unified and is set for, can not satisfy more individualized user demand of more different users, and is intelligent inadequately.
Disclosure of Invention
In order to solve the existing technical problems, the present application provides a scene control method, an apparatus and a system, an electronic device and a computer-readable storage medium, which can meet the requirement of dimming in a comfortable change process under different scenes.
In order to achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a scene control method, including:
acquiring scene change parameters in a target area and current state parameters of target equipment;
if the scene change parameter meets the scene adjusting condition corresponding to the target scene, acquiring a scene adjusting parameter corresponding to the target device in the target scene; the scene adjusting parameters comprise scene adjusting duration and scene adjusting amplitude corresponding to at least one control parameter;
and controlling the target equipment to perform gradual change adjustment according to the scene adjustment amplitude within the scene adjustment duration according to the current state parameter and the control parameter.
In a second aspect, an embodiment of the present application provides a scene control apparatus, including:
the state acquisition module is used for acquiring scene change parameters in a target area and current state parameters of target equipment;
a scene obtaining module, configured to obtain a scene adjustment parameter corresponding to the target device in a target scene if the scene change parameter meets a scene adjustment condition corresponding to the target scene; the scene adjusting parameters comprise scene adjusting duration and scene adjusting amplitude corresponding to at least one control parameter;
and the control module is used for controlling the target equipment to carry out gradual change adjustment according to the scene adjustment amplitude within the scene adjustment duration according to the current state parameter and the control parameter.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable by the processor, where the computer program, when executed by the processor, implements the method of any embodiment of the present application applied to an electronic device side.
In the above embodiment, the electronic device obtains the scene change parameter in the target area and the current state parameter of the target device, and if the scene change parameter meets the scene adjustment condition corresponding to the target scene, obtains the scene adjustment parameter corresponding to the target device in the target scene, and controls the target device to perform gradual change adjustment according to the corresponding scene adjustment amplitude in the scene adjustment duration according to the current state parameter and the control parameter in the scene adjustment parameter.
In a fourth aspect, an embodiment of the present application provides a scene control system, including the electronic device, the gateway, and the target device according to any embodiment of the present application, where the gateway determines that the dimming product satisfies the dimming trigger condition, and controls the dimming product to have the characteristic parameter of the light source gradually change with the adjustment amplitude within the adjustment duration.
In the above embodiment, the scene control system obtains the scene change parameter in the target area and the current state parameter of the target device through the electronic device, and obtains the 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, and controls the target device to perform gradual change adjustment according to the corresponding scene adjustment amplitude in the scene adjustment duration according to the current state parameter and the control parameter in the scene adjustment parameter.
In a fifth aspect, this application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the computer program implements the scene control method according to any embodiment of this application.
In the above embodiments, the computer-readable storage media respectively belong to the same concepts as the corresponding scene control method embodiments, so that the computer-readable storage media respectively have the same technical effects as the corresponding scene control method embodiments, and are not described herein again.
Drawings
FIG. 1 is an Internet of things system architecture diagram in an embodiment of the present application;
FIG. 2 is a flowchart illustrating a scene control method according to an embodiment of the present application;
FIG. 3 is a flowchart of a scene control method according to another embodiment of the present application;
FIG. 4 is a flowchart of a scene control method according to another embodiment of the present application;
fig. 5 is a flowchart of a scenario control method provided in an alternative specific example of the present application;
FIG. 6 is a flow chart illustrating an exemplary configuration of a dimming product in the scene control method shown in FIG. 5;
FIGS. 7 and 8 are schematic diagrams of a dimming configuration in one embodiment;
FIG. 9 is a diagram illustrating a scene control apparatus according to an embodiment of the present application;
FIG. 10 is a schematic diagram of an electronic device in an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device in another embodiment of the present application.
Detailed Description
The technical solution of the present application is further described in detail with reference to the drawings and specific embodiments of the specification.
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to the expression "some embodiments" which describe a subset of all possible embodiments, it being 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.
In the following description, references to the terms "first, second, and third" are only used to distinguish between similar items and do not denote a particular order, but rather the terms "first, second, and third" are used to indicate that a particular order or sequence of items may be interchanged where appropriate to enable embodiments of the application described herein to be practiced otherwise than as specifically illustrated or described herein.
Referring to fig. 1, an internet of things system architecture diagram of a scene control method and an application scenario selectable for an intelligent home device control method provided in an embodiment of the present application is shown, where the internet of things system includes an electronic device 11, a server 12, a gateway 13, and an intelligent home device 14. The terminal device 11 refers to a device having communication and storage functions, for example: the smart phone, the desktop computer, the notebook computer, the tablet computer or other smart communication devices with network connection functions. The server 12 may include one or more physical servers, such as a network access server, a database server, a cloud server, and so forth. Optionally, the gateway 13 may be a gateway device built based on a ZigBee protocol, the smart home device 14 accesses the gateway 13 and is controlled by the terminal device 11, and the terminal device 11 is provided with a client capable of managing the smart home, where the client may be an application client (such as a mobile phone APP) or a web client, and is not limited herein. The user can control the smart home devices 14 by operating the client, the terminal device 11 receives a control instruction input by the user for the smart home devices 14 through the client, communicates with the server 12, and the server 12 forwards the control instruction input by the user to the corresponding smart home devices 14 through the gateway 13, so that remote intelligent control over the smart home devices 14 is realized. The terminal device 11 may also receive, through the client, the working parameter configuration information for the smart home device 14 input by the user, and report the working parameter configuration information to the server 12, where the server 12 sends the working parameter configuration information to the gateway 13 for local storage, and 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 may be a device that is added to the gateway 13 in advance, for example, the smart home device 14 may be a device in a suite to which the gateway 13 belongs, which is preset when the gateway leaves a factory; or may be a device that is subsequently connected to the gateway 13 by user operation.
Optionally, the smart home device 14 may establish a network connection with the gateway 13 based on the ZigBee protocol, so as to join in the ZigBee network.
The smart home devices 14 and the terminal devices 11 may both access the ethernet through the gateway 13, and the gateway 13 may access the server 12 through a wired or wireless communication connection. For example, the gateway 13 and the terminal device 11 may store the acquired information in the server 12. Optionally, the terminal device 11 may also establish a network connection with the server 12 through 2G/3G/4G/5G, WiFi, so as to obtain data sent by the server 12.
Optionally, the terminal device 11, the gateway 13, and the smart home device 14 may be in the same local area network, or may be in the same wide area network as 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 devices 14 connected to the gateway 13 through a local area network path; and may also interact with the gateway 13 and the smart home devices 14 connected to the gateway 13 via 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 devices 14 connected to the gateway 13 through a wide area network path. The internet of things system can further realize the control of opening, closing or working mode switching of the intelligent household equipment 14 in the range of the local area network or correspondingly connected with the intelligent household equipment 14 through the intelligent household equipment 14. The smart home devices 14 may include, but are not limited to, smart home products such as light adjusting products, automatic curtains, air conditioners, and the like. The dimming product can be various intelligent lamps, such as lamps controlled by a constant current driver and a dimming control module, other non-lamp intelligent household products with a light illumination function, and the like.
Referring to fig. 2, a scene control method provided in an embodiment of the present application may be applied to the electronic devices such as the terminal device and the gateway shown in fig. 1. The scene control method includes, but is not limited to, S101, S102, and S103, which are specifically introduced as follows:
s101, acquiring scene change parameters in a target area and current state parameters of target equipment;
the target area may refer to a predetermined area, such as an area where the target device is located. In an alternative example, the target device is a dimming product and the target area is a lighting area of the dimming product. The target device may be any preset smart home product serving as an object to be controlled, such as a dimming product, specifically, a smart lamp. The current state parameter refers to a relevant parameter characterizing the current state of the target device. Scene change parameters refer to parameters that characterize a change in conditions within a scene.
S103, if the scene change parameters meet the scene adjusting conditions corresponding to the target scene, acquiring scene adjusting parameters corresponding to the target equipment in the target scene; the scene adjusting parameters comprise scene adjusting duration and scene adjusting amplitude corresponding to at least one control parameter;
the scene adjusting condition is a preset judgment condition for determining whether to trigger the acquisition of the scene adjusting parameter. The scene adjusting parameters are related parameters for controlling one or more working parameters of the target device to perform specified changes, the scene adjusting parameters comprise scene adjusting time and scene adjusting amplitude corresponding to at least one control parameter, different control parameters can respectively correspond to different adjusting modes of the target device, each control parameter corresponds to one adjusting mode of the target device, and one adjusting mode corresponds to a group of set values of the scene adjusting time and the scene adjusting amplitude. The scene change parameter refers to a value of the target device that changes within a preset time.
The scene change parameter meeting the scene adjustment condition corresponding to the target scene refers to the scene adjustment condition corresponding to the scene change parameter in the area where the target device is located, for example, the target device may be a dimming product, and if the scene change parameter meeting the scene adjustment condition corresponding to the target scene, the illumination brightness in the room where the dimming product is located may be lower than a preset brightness value.
And if the scene change parameters meet the scene adjusting conditions corresponding to the target scene, the electronic equipment detects the illumination brightness of the room where the dimming product is located, and controls the light of the dimming product to change within the set scene adjusting duration in a set scene adjusting range when the illumination brightness of the room where the dimming product is located is determined to be lower than the preset brightness value.
And S105, controlling the target equipment to perform gradual change adjustment according to the scene adjustment amplitude within the scene adjustment duration according to the current state parameter and the control parameter.
The scene adjustment duration refers to the duration for controlling the working state of the target device, and the scene adjustment amplitude refers to the variation amplitude in unit time in the process of adjusting the working state of the target device. If the target device is a dimming product, the scene adjustment duration may refer to a time length for dimming the dimming product.
After the electronic equipment acquires the scene adjusting parameters corresponding to the target equipment in the target scene, the target equipment is controlled to carry out gradual change adjustment according to the scene adjusting amplitude in the scene adjusting duration according to the current state parameters and the control parameters of the target equipment. The control target device performs gradual change adjustment according to the scene adjustment amplitude in the scene adjustment duration correspondingly means that the dimming product is controlled to adjust the current brightness to the specified brightness in a mode of increasing the specified brightness value per unit time in the corresponding time length.
In the above embodiment, the electronic device obtains the scene change parameter in the target area and the current state parameter of the target device, and if the scene change parameter satisfies the scene adjustment condition corresponding to the target scene, obtains the scene adjustment parameter corresponding to the target device in the target scene, and controls the target device to perform gradual change adjustment according to the corresponding scene adjustment amplitude in the scene adjustment duration according to the current state parameter and the control parameter in the scene adjustment parameter.
In some embodiments, the scene adjustment condition comprises a light adjustment condition, the scene adjustment parameter comprises a scene adjustment duration and a scene adjustment amplitude corresponding to at least one light source control parameter, and the light source control parameter comprises at least one of brightness, color temperature and color.
The scene adjusting condition may be a light adjusting condition, and when it is detected that the light change satisfies the light adjusting condition, the corresponding light source control parameter of the target lamp is controlled to gradually change within the scene adjusting duration by the scene adjusting amplitude. The light source control parameter can be brightness, color temperature or color, correspondingly, when the light change is detected to meet the light adjusting condition, the brightness, the color temperature or the color of the target lamp is controlled to gradually change in a scene adjusting range within the scene adjusting time; alternatively, the light source control parameter may be any two combination of brightness, color temperature and color.
Correspondingly, when the light change is detected to meet the light adjusting condition, controlling two of the brightness, the color temperature and the color of the target lamp to gradually change within the scene adjusting duration by the scene adjusting amplitude; the light source control parameters may also be brightness, color temperature and color. Correspondingly, when the light change is detected to meet the light adjusting condition, the brightness, the color temperature and the color of the target lamp are controlled to be gradually changed within the scene adjusting duration by the scene adjusting amplitude.
In the above embodiment, the light adjusting condition is used as the scene adjusting condition, and corresponding light source control parameters can be set for different light source characteristic luminances, color temperatures and colors of the light source, so that a more personalized dimming scheme can be created, the ambient light requirements under different scenes can be met, and the dimming requirements can be realized in a more comfortable change process.
In some embodiments, in step S103, if the scene change parameter meets a scene adjustment condition corresponding to a target scene, acquiring, according to the scene change parameter, a scene adjustment parameter corresponding to the target device in the target scene, where the acquiring includes:
acquiring scene configuration data corresponding to at least one target scene in a target area; the scene configuration data comprises a scene adjusting condition of the target scene, and a target action and a scene adjusting parameter of the target device corresponding to the scene adjusting condition;
matching the scene change parameters with the scene adjusting conditions of each target scene;
if so, determining that the scene change parameters meet the scene adjusting conditions, and acquiring the execution action corresponding to the matched target scene and the scene adjusting parameters including the adjusting duration and the adjusting amplitude;
the controlling the target device to perform gradual change adjustment according to the adjustment amplitude within the adjustment duration according to the current state parameter of the target device includes:
and controlling the target equipment to execute the target action based on the current state parameter, and performing gradual change adjustment within the adjustment duration according to the adjustment amplitude in the process of executing the target action.
The target scene may be a preset scene or any one of a plurality of preset scenes, such as a sleep scene, a reading scene, a movie scene, and the like. The scene configuration data refers to relevant parameters for controlling one or more intelligent household products contained in a scene to execute corresponding actions under a corresponding scene.
For example, in a sleep scene, the horizontal inner lamp is turned off, the air conditioner is turned on and adjusted to a specified temperature, and the air purifier is turned on and adjusted to a corresponding purification mode; in a reading scene, turning on a lamp in a study room, turning on an air conditioner, adjusting to a specified temperature, turning on a sound box and playing corresponding music; in a movie scene, the lamps in the living room are adjusted to be in a low-brightness mode, and the video playing equipment is started.
The scene adjustment condition may be a preset judgment condition for determining whether to trigger the corresponding scene to be turned on. Setting a scene adjusting condition for triggering scene opening correspondingly for each scene, when detecting that the scene change parameter meets a certain scene adjusting condition, acquiring the scene adjusting parameters of the executing action, the adjusting time length and the adjusting amplitude corresponding to the target scene matched with the scene adjusting condition, controlling the target device to execute the target action based on the current state parameter, and controlling the target device to perform gradual change adjustment in the adjusting time length according to the adjusting amplitude in the process of executing the target action.
In the above embodiment, the scene adjustment condition, the execution action of the target device corresponding to the scene adjustment condition, and the scene adjustment parameter are defined by the scene configuration data, so that the gradual change adjustment scheme for the target device is conveniently implemented in a manner that the user configures the scene, and setting requirements of more personalized scenes of different users are conveniently met.
In some embodiments, the target device is a dimming product, the target action is a light-on action or a light-off action, and the scene adjustment parameters include dimming configuration parameters corresponding to the specified light-on and/or light-off actions of the dimming product; the dimming configuration parameters comprise the adjusting time length and the adjusting amplitude corresponding to at least one light source characteristic parameter of the dimming product.
The dimming configuration parameter is a parameter configured to control light of the dimming product to change in a specific manner, such as that the brightness of the control light gradually changes from zero to brightest within a set time period when the lamp is turned on, the color temperature of the control light gradually changes from zero to a preset value within the set time period when the lamp is turned on, and the brightness of the control light gradually changes from the current brightness to zero within the set time period when the lamp is turned off. The lighting characteristic of the dimming product may be determined by a plurality of light source characteristic parameters, and the change of light in a specific manner may be one of the plurality of light source characteristic parameters that can affect the lighting characteristic of the dimming product during lighting, where one or more of the light source characteristic parameters are changed according to the configured parameter.
It is understood that the light source characteristic parameters are used to characterize the dimensions of the light emission characteristics of the dimming product, including but not limited to the brightness, color temperature, color, and flicker frequency of the light. The adjusting duration refers to the total duration of gradual change adjustment of the light emitting characteristics of the light modulation product, and the adjusting amplitude refers to the variation amplitude of the corresponding light source characteristic parameters in the gradual change adjustment process of the light emitting characteristics of the light modulation product. The dimming configuration parameters include an adjustment duration and an adjustment amplitude corresponding to at least one light source characteristic parameter of the dimming product, and the adjustment duration and the adjustment amplitude may refer to: the dimming configuration parameters comprise the adjusting time length and the adjusting amplitude corresponding to one light source characteristic parameter of the dimming product; the dimming configuration parameters comprise the adjustment duration and the adjustment amplitude which correspond to the characteristic parameters of the plurality of light sources of the dimming product; the dimming configuration parameters comprise the adjusting time length and the adjusting amplitude corresponding to each light source characteristic parameter in the plurality of light source characteristic parameters of the dimming product.
In some embodiments, the dimming configuration parameters may include a plurality of sets corresponding to different specific actions performed by the dimming product, and the electronic device obtains the dimming configuration parameters of the dimming product, including: the electronic equipment acquires dimming configuration parameters corresponding to each specific action when the dimming product respectively specifies a plurality of specific actions, wherein the dimming configuration parameters corresponding to each specific action comprise an adjusting time length and an adjusting amplitude corresponding to at least one light source characteristic parameter of the dimming product.
The user can configure the scene in the electronic device, and set the scene name and the target action and scene adjustment parameter of one or more target devices included in the corresponding scene. In an optional example, the electronic device obtains a dimming configuration parameter of the dimming product, and sends the dimming configuration parameter to the gateway, and 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 in an adjustment amplitude within the adjustment duration.
Specifically, the electronic device may send the dimming configuration parameters to the gateway through a direct or indirect communication connection with the gateway. The gateway can locally store the dimming configuration parameters, and when the gateway determines that the dimming product meets the dimming triggering condition, the gateway controls the corresponding light source characteristic parameters of the dimming product to gradually change in the adjusting amplitude within the adjusting time length. The dimming triggering condition may refer to a preset condition for triggering the dimming product to perform a specific action, such as a preset condition for triggering the dimming product to turn on, a preset condition for triggering the dimming product to turn off, a preset condition for triggering the dimming product to switch between different light emitting modes, and the like. The preset condition for triggering the dimming product to execute the specific action may include a default condition for triggering the dimming product to execute the specific action, for example, the preset condition for triggering the dimming product to start is a start instruction for controlling the dimming product to start, which is sent by the electronic device and obtained by the gateway; the condition that the user configures through the electronic device may also be included, for example, the preset condition that the dimming product is triggered to be turned on is a configuration condition that the gateway judges that the dimming product is currently turned on according to the received state parameters fed back by the other smart home devices. Wherein, the dimming triggering condition may refer to: the dimming trigger conditions are respectively set in a one-to-one correspondence mode according to different specific actions executed by the dimming product, or the uniform dimming trigger conditions are set by executing a plurality of specific actions on the dimming product. When the dimming product is used as a target device included in a target scene, the scene adjustment condition for triggering the target scene can be directly used as a dimming trigger condition for triggering the dimming product to execute a specific action.
In the above embodiment, the electronic device obtains the dimming configuration parameters of the dimming product, sends the dimming configuration parameters to the gateway, and determines that the dimming product meets the dimming triggering condition through the gateway, the corresponding light source characteristic parameters of the dimming product are controlled to change in the dimming time so as to gradually change the dimming amplitude.
In some embodiments, an electronic device obtains scene configuration data; the scene configuration data comprises a scene adjusting condition, an executing action of a dimming product corresponding to the scene adjusting condition and a dimming configuration parameter corresponding to the executing action;
and the electronic equipment sends the dimming configuration parameters to a gateway, and when the gateway determines scene change parameter scene adjusting conditions, the electronic equipment controls the light source characteristic parameters corresponding to the dimming products to gradually change in the adjusting amplitude within the adjusting time length.
Optionally, the electronic device sends the scene configuration data to the gateway, and when the gateway detects that the scene change parameter satisfies the scene adjustment condition corresponding to the target scene, the dimming product is controlled to execute the target action, and the dimming product is controlled to gradually change the corresponding light source characteristic parameter by the adjustment amplitude within the adjustment duration in the process of executing the target action.
The target scene refers to a set of automation information for automatically controlling one or more execution actions of one or more target devices based on preset trigger conditions.
The user can create one or more automatic scenes for controlling the target device through the electronic device, and the scene configuration data of each scene respectively can contain one or more setting data aiming at the execution action of the target device. The scene adjustment condition is a condition to be satisfied before the target device included in the target scene is triggered to execute the set target action.
Optionally, the scene adjustment condition may include at least one of: the method comprises the steps that the designated intelligent household equipment is in a set working state, the detection equipment detects the designated behavior of a person, the detection equipment detects that the person is in a designated area, and a specific instruction sent by a user is received.
The target device may include, but is not limited to, any smart home device such as a light fixture, a curtain, a television, a monitoring system, etc. that a user wants to remotely control through an electronic device. The scene is related to the personal taste, living habits and the like of the user. In different scenes, different intelligent household devices which a user wants to turn on or turn off are different, and the user sets actions of one or more target intelligent household devices in the corresponding scene in advance by creating the scene in advance. When the intelligent home equipment is used, the scene needing to enter at present can be directly selected, and the control over the execution action of one or more intelligent home equipment pre-configured in the scene can be realized, so that the control operation is simplified. The setting instruction of the target action of the target device may refer to a selection instruction of turning on or off the smart home device in different working modes. Taking the smart home device as the lamp 1 as an example, the setting instruction for the target action of the lamp 1 may include turning on the lamp 1, turning off the lamp 1, switching the lamp 1 from the working mode 1 to the working mode 2, and the like.
The target device included in the scene may be a dimming product, and the corresponding scene configuration data includes a scene adjustment condition, a target action of the dimming product corresponding to the scene adjustment condition, and a dimming configuration parameter corresponding to the target action. The method includes the steps that the electronic equipment obtains scene configuration data according to configuration operation of a user on a scene, the scene configuration data are sent to the gateway to be stored locally, when the gateway detects that a scene adjusting condition is met, the scene is triggered, and the intelligent home equipment contained in the corresponding control scene respectively executes corresponding actions.
In the above embodiment, the electronic device may obtain the dimming configuration parameter of the dimming product through a process of configuring a scene, and when the smart home device included in the scene is set as the dimming product, the dimming configuration parameter is further set for the target action of the dimming product, so that when the scene adjustment condition of the target scene is satisfied, the target scene is triggered. At this time, it can be determined that the dimming product also correspondingly meets the triggering condition of the specified target action, and in the process of executing the target action by the dimming product, the light gradually changes according to the set dimming configuration parameters, so that a more personalized dimming scheme is convenient to create. Furthermore, the dimming configuration parameters of the dimming product can be set in the scene configuration, and 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 respectively included in different scenes to execute the same action, and the same or different dimming configuration parameters are set for the same action executed in different scenes; it is also possible to configure target actions to be included in different scenes respectively to perform different settings. The same or different dimming configuration parameters can be set when different set target actions are executed in different scenes, the lighting effect of the same dimming product is changed, and the dimming product can be used more comfortably by a user in different scenes.
In some embodiments, referring to fig. 3, before acquiring the scene change parameter in the target area and the current state parameter of the target device, the method includes:
s1011, responding to the scene creating instruction, and displaying a scene configuration page; the scene configuration page comprises a scene condition configuration area and a scene parameter configuration area;
and S1031, acquiring the scene adjusting condition for the target scene input in the scene condition configuration area, and the target action and the scene adjusting parameter of the target device corresponding to the scene adjusting condition input in the scene parameter configuration area, and generating the scene configuration data for the target scene.
Optionally, the electronic device obtains a scene creation instruction, enters a scene configuration page of a target scene according to the scene creation instruction, obtains a selected instruction of 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; and obtaining the adjusting time length and the adjusting amplitude corresponding to at least one light source characteristic parameter of the dimming product on a product setting page.
The electronic equipment can be provided with a client for managing the smart home, and a user can acquire a scene creation instruction through an interface provided by the client. The electronic device obtains the scene creating instruction, which may be a specific voice instruction, a gesture instruction, or a touch instruction for receiving a scene creating key preset in the interface by the user, which is obtained by the electronic device.
The electronic device enters the scene configuration page according to the scene creation instruction, and obtains scene configuration data of the target scene, which may specifically include: the user selects a scene to be created in a scene configuration page of the electronic equipment, inputs a scene adjusting condition which needs to be met when the corresponding scene is triggered, and inputs a target action and a scene adjusting parameter of target equipment corresponding to the scene adjusting condition in a scene parameter configuration area.
The user can configure which smart home devices are controlled to respectively execute which actions when the scene is triggered, and set dimming configuration parameters when the dimming product executes the target action when the smart home devices are selected as the dimming products. 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 a selection instruction of the dimming product, enters the product setting page of the dimming product, and receives dimming configuration parameters of the dimming product input by a user through the product setting page, where the dimming configuration parameters include an adjustment duration and an adjustment amplitude corresponding to at least one light source characteristic parameter.
The electronic equipment acquires a scene adjusting condition of a target scene and execution action information of the intelligent home equipment corresponding to the scene adjusting condition according to configuration operation of a user in a scene configuration page, when the intelligent home equipment is a dimming product, the intelligent home equipment enters a product setting page of the dimming product according to a selected instruction of the dimming product, and acquires an execution action of the dimming product corresponding to the scene adjusting condition and dimming configuration parameters corresponding to the execution action according to the operation of the user in the product setting page to form configuration data of the target scene. It should be noted that the scene configuration page may be one page, or may include multiple associated pages that jump based on a previous operation, and the product setting page may be one page, or may include multiple associated pages that jump based on a previous operation.
Taking the user wants to create the viewing scene a as an example, the viewing scene a includes the lamp 1 being turned on, the lamp 2 being turned off, the curtain 1 being turned off, and the air conditioner 1 being turned on. The user can input the creation operation of the viewing scene A on the electronic device, further set a scene adjustment condition A which needs to be met when the viewing scene A is triggered, add the execution action information of the intelligent household equipment corresponding to the viewing scene A, which is the execution action information of the lamp 1, the lamp 2, the curtain 1 and the air conditioner 1, the execution action information is set, a first dimming configuration parameter is set for the lamp 1 to execute the opening action, and a second dimming configuration parameter is set for the lamp 2 to execute the closing action. The electronic device forming the configuration data of viewing scene a according to the setting operation of the user may include: the scene adjusting condition a is that the lamp 1 is turned on (the lamp 1 is gradually changed according to the first dimming configuration parameter in the turning-on process in a set manner), the lamp 2 is turned off (the lamp 2 is gradually changed according to the second dimming configuration parameter in the turning-off process in a set manner), the curtain 1 is turned off, and the air conditioner 1 is turned on.
In the above embodiment, the electronic device provides the scene configuration page to guide the user to complete the configuration operation on the target scene, so that the dimming configuration operation of the dimming product can be simplified, the scene configuration difficulty is reduced, the dimming schemes of different scenes can be created more conveniently, and the automatic configuration efficiency is improved.
In some embodiments, the scene parameter configuration region includes a scene transition configuration option;
responding to the triggering operation aiming at the scene transition configuration option, and displaying a scene transition configuration page;
and generating scene adjusting parameters aiming at the target scene in response to the scene adjusting duration and the scene adjusting amplitude selected in the scene transition configuration page.
The scene transition configuration page is a nested page which is jumped and linked based on different configuration operations in the process of configuring the scene. In an optional embodiment, the target device is a dimming product, the scene transition page is a product setting page configured for the dimming product, a scene transition configuration option may be set in the scene parameter configuration area, the electronic device may display the scene transition configuration page according to a configuration operation of the scene transition configuration option selected by a user, and the adjustment duration and the adjustment amplitude corresponding to at least one light source characteristic parameter of the dimming product are obtained according to the scene adjustment duration and the scene adjustment amplitude selected by the user in the scene transition configuration page. The light source characteristic parameters of the dimming product can include a plurality of light source characteristic parameters, a user can input a value of adjusting time length and adjusting amplitude on a product setting page, and the electronic equipment is provided for acquiring the uniform adjusting time length and adjusting amplitude of the plurality of light source characteristic parameters of the dimming product; or, the user may set corresponding adjustment duration and adjustment amplitude for a plurality of light source characteristic parameters on the product setting page, where the light source characteristic parameters include brightness, color temperature, and/or color.
The light source characteristic parameters include a plurality of light source characteristic parameters, and the light modulation configuration parameters of the light modulation product can be uniform adjustment time and adjustment amplitude set for the plurality of light source characteristic parameters, or the adjustment time and the adjustment amplitude set for the plurality of light source characteristic parameters respectively. Configuration options of a plurality of light source characteristic parameters to be selected can be preset in the product setting page, and a user can select the light source characteristic parameters to be adjusted in sequence and set corresponding adjusting time length and adjusting amplitude for the light source characteristic parameters.
In the above embodiment, the scene transition configuration page may be set to set the target action and the scene adjustment parameter of the target device, for example, the plurality of light source characteristic parameters of the dimming product may be set to be the uniform adjustment duration and the uniform adjustment amplitude, or may be set to be different adjustment durations and different adjustment amplitudes, and correspondingly, when the dimming product is controlled to perform the corresponding action to perform gradual change in the setting manner, the plurality of light source characteristic parameters may gradually change with the same adjustment amplitude within the adjustment duration, or the plurality of light source characteristic parameters may gradually change with different adjustment amplitudes within the adjustment duration, so that the dimming customized dimension of the dimming product is higher, and a richer light gradual change effect may be achieved.
In some embodiments, if matching, determining that the scene change parameter satisfies a scene adjustment condition, and acquiring an execution action corresponding to a matched target scene and scene adjustment parameters including an adjustment duration and an adjustment amplitude, where the scene adjustment parameters include:
if so, determining that the scene change parameters meet scene adjustment conditions, and acquiring scene configuration data corresponding to at least one target scene in a target area; the scene configuration data comprises a plurality of execution actions of the dimming product and dimming configuration parameters comprising an adjustment duration and an adjustment amplitude of at least one light source characteristic parameter;
the controlling the target device to execute the target action based on the current state parameter and perform gradual change adjustment within the adjustment duration according to the adjustment amplitude in the process of executing the target action includes:
and controlling the dimming product to execute corresponding action, and controlling the dimming product to gradually change the corresponding light source characteristic parameter by the adjusting amplitude in the adjusting time length in the process of executing the corresponding action.
The target scenes can include one or more than one, each target scene is provided with a corresponding scene adjusting condition, the scene change parameters are matched with the scene adjusting conditions of the target scenes, when the scene change parameters are matched with any scene adjusting condition in the target scenes, the scene change parameters are determined to meet the scene adjusting conditions, the executing action corresponding to the matched target scenes and the scene adjusting parameters including adjusting duration and adjusting amplitude are obtained.
In an optional example, the target device in the target scene includes a dimming product, and the scene adjustment parameter includes a dimming configuration parameter of the dimming product, wherein obtaining the dimming configuration parameter of the dimming product includes: and acquiring dimming configuration parameters corresponding to a plurality of execution actions of the dimming product, wherein the dimming configuration parameters comprise dimming trigger conditions, adjusting time length and adjusting amplitude. The electronic equipment sends the dimming configuration parameters to the gateway, and when the gateway detects that the dimming product meets the dimming triggering condition of the corresponding execution action, the dimming product is controlled to execute the corresponding action, and the corresponding light source characteristic parameters are controlled to gradually change in the adjustment amplitude in the corresponding action execution process.
The dimming product may have a plurality of different execution actions, and the dimming setting of the dimming product by the user using the electronic device may be to set different dimming configuration parameters for the plurality of different execution actions, respectively. The electronic equipment sends the dimming configuration parameters to the gateway for local storage, and when the gateway detects that the dimming product meets the dimming triggering condition of the corresponding execution action, the dimming product is controlled to execute the corresponding action, and the corresponding light source characteristic parameters are controlled to gradually change in the adjustment amplitude in the corresponding action execution process. If the implementation action of the lamp 1 includes turning on and off, the dimming setting of the lamp 1 can set a corresponding first adjusting duration and a first adjusting amplitude for the turning on of the lamp 1, and set a corresponding second adjusting duration and a second adjusting amplitude for the turning off of the lamp 2, and when the gateway detects that the dimming trigger condition of the turning on of the lamp 1 is met, the gateway controls the turning on of the lamp 1 and controls the characteristic parameter of the corresponding light source to gradually change in the first adjusting duration by the first adjusting amplitude in the turning on process; when the gateway detects that the dimming triggering condition of the lamp 1 is met, the lamp 1 is controlled to be turned off, and in the turning-off process, the corresponding light source characteristic parameters are controlled to gradually change in a second adjusting range within a second adjusting time length, so that dimming of different light gradual change effects of the dimming product is achieved according to different execution actions.
The step of controlling the dimming product to perform the corresponding action and controlling the dimming product to gradually change the corresponding light source characteristic parameters in the adjustment duration with the adjustment amplitude during the corresponding action may refer to that the plurality of light source characteristic parameters gradually change with the uniform adjustment amplitude in the adjustment duration, or may refer to that the plurality of light source characteristic parameters gradually change with the preset different adjustment amplitudes in the adjustment duration, so as to achieve a more diversified dimming effect of the dimming product.
In the above embodiment, the dimming configuration parameters are respectively set for different execution actions of the dimming product, so that different light gradient effects are presented in the process that the dimming product is triggered to execute different execution actions, and a user can apply the dimming product more comfortably.
In some embodiments, if matching, determining that the scene change parameter satisfies a scene adjustment condition, and acquiring an execution action corresponding to a matched target scene and scene adjustment parameters including an adjustment duration and an adjustment amplitude, where the scene adjustment parameters include:
if so, determining that the scene change parameters meet the scene adjusting conditions, and acquiring dimming configuration parameters respectively corresponding to the dimming products and the plurality of set dimming triggering conditions;
the controlling the target device to execute the target action based on the current state parameter and perform gradual change adjustment within the adjustment duration according to the adjustment amplitude in the process of executing the target action includes:
and controlling the dimming product to determine the matched dimming configuration parameters according to the dimming triggering conditions which are met currently, wherein the characteristic parameters of the light source gradually change in the adjusting amplitude in the corresponding action process.
The target scenes can include one or more than one target scene, each target scene is provided with a corresponding scene adjusting condition, the scene change parameters are matched with the scene adjusting conditions of the target scenes, when the scene change parameters are matched with any one of the scene adjusting conditions in the target scenes, the scene change parameters are determined to meet the scene adjusting conditions, and the dimming configuration parameters corresponding to the dimming products contained in the matched target scenes and the multiple set dimming triggering conditions are obtained.
In an optional example, the electronic device obtains dimming configuration parameters corresponding to the dimming product and the plurality of set dimming triggering conditions, respectively, sends the dimming configuration parameters to the gateway, and controls the light source characteristic parameters corresponding to the dimming product to gradually change in adjustment amplitude within the adjustment duration when the gateway determines that the dimming product meets the dimming triggering conditions. The plurality of dimming triggering conditions can be in one-to-one correspondence with the plurality of dimming configuration parameters, the electronic equipment sends the dimming configuration parameters to the gateway, when the gateway detects that the dimming product meets one of the plurality of set dimming triggering conditions, the dimming product is controlled to determine the matched dimming configuration parameters according to the currently met dimming triggering conditions, and the light source characteristic parameters gradually change in the adjusting amplitude in the adjusting time length in the corresponding action executing process.
The dimming trigger conditions for triggering the dimming products to perform the actions may include a plurality of dimming trigger conditions, and the plurality of dimming trigger conditions may be set to trigger the dimming products to perform the same actions, or may be set to trigger the dimming products to perform different actions, respectively. The dimming setting of the dimming product by the electronic device by the user may be to set different dimming configuration parameters for a plurality of different dimming triggering conditions, where the plurality of different dimming triggering conditions 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, respectively.
The electronic equipment sends the dimming configuration parameters to the gateway for local storage, when the gateway detects that the dimming product meets one of a plurality of set dimming triggering conditions, the dimming product is controlled to determine the matched dimming configuration parameters according to the currently met dimming triggering conditions, and the light source characteristic parameters gradually change in the adjusting range within the adjusting time length in the corresponding action executing process. For example, the executing action of the lamp 1 includes turning on, and the setting of the dimming triggering condition for triggering the lamp 1 to turn on includes: when a person is detected in the set range of the lamp 1, the lamp 1 receives a pressing command of opening the control panel K, and the lamp 1 receives a control command of opening the electronic device, the dimming setting of the lamp 1 can set a corresponding first adjusting duration and a first adjusting amplitude for the dimming triggering condition when a person is detected in the set range of the lamp 1, the dimming triggering condition sets a corresponding second adjusting duration and a second adjusting amplitude when the lamp 1 receives the pressing command of opening the control panel K, and the dimming triggering condition sets a corresponding third adjusting duration and a third adjusting amplitude when the lamp 1 receives the control command of opening the electronic device.
When the gateway determines that a person is detected in the set range of the lamp 1 according to the detection data reported by the sensor, the gateway controls the lamp 1 to be started and controls the corresponding light source characteristic parameters to gradually change in a first regulation amplitude within a first regulation duration in the starting process. And when the gateway judges that the lamp 1 receives the opening pressing instruction of the control panel K according to the state parameters reported by the control panel switch K, the gateway controls the lamp 1 to be opened and controls the corresponding light source characteristic parameters to gradually change in a second adjusting range within a second adjusting duration in the opening process. When the gateway determines that the lamp 1 receives a starting control instruction sent by the electronic device, the gateway controls the lamp 1 to be started and controls the corresponding light source characteristic parameters to gradually change in a third adjusting amplitude within a third adjusting time length in the starting process, so that dimming of different light gradual changing effects is realized when the dimming product is triggered to execute actions according to different dimming triggering conditions.
The step of controlling the dimming product to determine the matched dimming configuration parameters according to the currently met dimming triggering condition, wherein the step of gradually changing the light source characteristic parameters within the adjusting time length in the corresponding action executing process by the adjusting amplitude may refer to that the plurality of light source characteristic parameters gradually change within the adjusting time length by a uniform adjusting amplitude, or that the plurality of light source characteristic parameters gradually change within the adjusting time length by preset different adjusting amplitudes, so as to achieve a more diversified dimming effect of the dimming product.
In the above embodiment, by respectively setting the corresponding dimming configuration parameters when the dimming product is triggered to execute the action based on the different dimming triggering conditions, different light gradual change effects are presented in the process of controlling the dimming product to be triggered to execute the same or different actions by the different dimming triggering conditions, so that a user can conveniently assemble more dimming schemes for controlling the light gradual change adjustment, and the user can more comfortably apply the dimming product.
In another aspect of the embodiment of the present application, please refer to fig. 4, which further provides a scene control method applied to a scene control system, including the following steps:
s201, the electronic equipment acquires dimming configuration parameters of a dimming product; the dimming configuration parameters comprise adjusting time length and adjusting amplitude corresponding to at least one light source characteristic parameter of the dimming product.
The dimming configuration parameter refers to a parameter that varies in a specific manner by being configured to control the light of the dimming product. The lighting characteristic of the dimming product may be determined by a plurality of light source characteristic parameters, and the change of light in a specific manner may be one of the plurality of light source characteristic parameters that can affect the lighting characteristic of the dimming product during lighting, wherein one or more of the light source characteristic parameters are changed according to the configured parameter.
The light source characteristic parameters are used for characterizing the dimension of the light emitting characteristics of the dimming product, including but not limited to the brightness, color temperature, color, flicker frequency, and the like of light. The adjusting duration refers to the total duration of gradual change adjustment of the light emitting characteristics of the light modulation product, and the adjusting amplitude refers to the variation amplitude of the corresponding light source characteristic parameters in the gradual change adjustment process of the light emitting characteristics of the light modulation product. The dimming configuration parameters include an adjustment duration and an adjustment amplitude corresponding to at least one light source characteristic parameter of the dimming product, and the adjustment duration and the adjustment amplitude may refer to: the dimming configuration parameters comprise the adjusting time length and the adjusting amplitude corresponding to one light source characteristic parameter of the dimming product; the dimming configuration parameters comprise the adjustment duration and the adjustment amplitude which correspond to the characteristic parameters of the plurality of light sources of the dimming product; the dimming configuration parameters comprise the adjusting time length and the adjusting amplitude corresponding to each light source characteristic parameter in the plurality of light source characteristic parameters of the dimming product.
S203, the electronic equipment reports the dimming configuration parameters to a cloud end, and the cloud end issues the dimming configuration parameters to a gateway; or, the electronic device sends the dimming configuration parameter to a gateway.
The user adopts electronic equipment to configure the luminescence of the dimming product to form dimming configuration parameters, the electronic equipment sends the dimming configuration parameters to the gateway through the cloud end or directly sends the dimming configuration parameters to the gateway, and the gateway receives the dimming configuration parameters and carries out local storage. The gateway may refer to a gateway device such as a router that accesses the dimming product to a network, or may further include a proxy gateway that can perform a data communication function between the gateway device and the smart home product in the local area network according to a set condition.
And S205, 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 by the adjustment amplitude within the adjustment duration.
And the gateway locally stores the corresponding relation between the dimming configuration parameters and the dimming products, and when the gateway determines that the dimming products meet the dimming triggering conditions, the gateway controls the characteristic parameters of the corresponding light sources of the dimming products to gradually change in an adjusting amplitude within the adjusting time length. The dimming triggering condition may refer to a preset condition for triggering the dimming product to perform a specific action, such as a preset condition for triggering the dimming product to turn on, a preset condition for triggering the dimming product to turn off, a preset condition for triggering the dimming product to switch between different light emitting modes, and the like. The preset condition for triggering the dimming product to execute the specific action may include a default condition for triggering the dimming product to execute the specific action, for example, the preset condition for triggering the dimming product to start is a start instruction for controlling the dimming product to start, which is sent by the electronic device and obtained by the gateway; the condition that the user configures through the electronic device may also be included, for example, the preset condition that the dimming product is triggered to be turned on is a configuration condition that the gateway judges that the dimming product is currently turned on according to the received state parameters fed back by the other smart home devices. Wherein, the dimming triggering condition may refer to: the dimming trigger conditions are respectively set in a one-to-one correspondence mode according to different specific actions executed by the dimming product, or the uniform dimming trigger conditions are set by executing a plurality of specific actions on the dimming product.
In the above embodiment, the user may configure the dimming product by using the electronic device, the electronic device obtains the dimming configuration parameter of the dimming product, the dimming configuration parameter is sent to the gateway, when it is determined by the gateway that the dimming product meets the dimming triggering condition, the corresponding light source characteristic parameter of the dimming product is controlled to gradually change in the adjustment duration with the adjustment amplitude, so the dimming configuration parameter of the dimming product is set by using the electronic device, and the light source characteristic parameter of the dimming product is used as the dimming dimension, so that the custom dimension of the dimming scheme for dimming the dimming product is higher, a more personalized dimming scheme is convenient to create, ambient light requirements under different scenes are met, and the dimming requirement is realized by using a more comfortable change process.
In some embodiments, in S201, the electronic device obtains a dimming configuration parameter of a dimming product, including:
the electronic equipment acquires scene configuration data of a target automation scene; the scene configuration data comprises a trigger condition of target automation, an execution action of a dimming product corresponding to the trigger condition and a dimming configuration parameter corresponding to the execution action.
The automation scene refers to a set of automation information for automatically controlling one or more execution actions of one or more smart home devices based on preset trigger conditions. The user can create one or more automatic scenes for controlling the intelligent household equipment through the electronic equipment, and the scene configuration data of each automatic scene correspondingly can contain one or more setting data for executing actions of the intelligent household equipment. The target automation scenario refers to an automation scenario that a user currently wants to create. The triggering condition refers to a condition that needs to be met before the smart home device included in the target automation scene is triggered to execute a corresponding action, and optionally, the triggering condition may include at least one of the following conditions: the method comprises the steps that the designated intelligent household equipment is in a set working state, the detection equipment detects the designated behavior of a person, the detection equipment detects that the person is in a designated area, and a specific instruction sent by a user is received.
The smart home devices may include, but are not limited to, any smart home product such as a lamp, a curtain, a television, a monitoring system, etc. that a user wants to remotely control through an electronic device. The automation is related to personal preferences, living habits and the like of the user, under different automation scenes, the intelligent home devices which the user wants to open or close are different, the user can directly select the current automation scene needing to enter when the intelligent home device is used by pre-establishing the automation scene and pre-setting the action of one or more target intelligent home devices included under the corresponding automation scene, and therefore the control operation is simplified. The action setting instruction of the target intelligent household equipment refers to a selection instruction of a user for starting, closing and different working modes of the intelligent household equipment. Taking the smart home device as the lamp 1 as an example, the setting instruction for the execution action of the lamp 1 may include turning on the lamp 1, turning off the lamp 1, switching the lamp 1 from the working mode 1 to the working mode 2, and the like. The intelligent household equipment contained in the automatic scene can be a dimming product, and the corresponding scene configuration data comprises a target automation triggering condition, an execution action of the dimming product corresponding to the triggering condition and a dimming configuration parameter corresponding to the execution action.
In S205, when the gateway determines that the dimming product meets the dimming triggering condition, the gateway controls the corresponding light source characteristic parameter of the dimming product to gradually change by the adjustment amplitude within the adjustment duration, including:
and when the gateway detects that the triggering condition of the target automation is met, controlling the dimming product to execute the corresponding action of the target automation, and controlling the dimming product to gradually change the corresponding light source characteristic parameter by the adjustment amplitude in the adjustment duration in the process of executing the corresponding action.
The electronic device sends the scene configuration data to the gateway for local storage, when the gateway detects that a triggering condition of target automation is met, the automation scene is triggered, and the intelligent home devices contained in the corresponding control scenes respectively execute corresponding actions.
In the above embodiment, the electronic device may obtain the dimming configuration parameter of the dimming product through the process of configuring the automation scene, and when the smart home device included in the automation scene is set as the dimming product, the dimming configuration parameter is further set for the execution action of the dimming product, so that when the target automation trigger condition is met, the automation scene is triggered, at this time, it may be determined that the dimming product also correspondingly meets the dimming trigger condition, and in the process of executing the corresponding action by the dimming product, the light gradually changes according to the set dimming configuration parameter, so as to create a more personalized dimming scheme. Furthermore, the setting of the dimming configuration parameters of the dimming product is realized in the automatic scene configuration, and the dimming configuration parameters and the setting execution actions of the dimming product can be associated, that is, the dimming product can be configured to be respectively contained in different automatic scenes to execute the same action, and the same or different dimming configuration parameters are set when the same action is executed in different automatic scenes; the dimming control system can also be configured to execute different setting actions in different automation scenes respectively, and set the same or different dimming configuration parameters when different setting actions are executed in different automation scenes respectively, so that the lighting effect of the same dimming product is changed to be more varied, and the requirement that a user uses the dimming product more comfortably in different scenes is met.
In some embodiments, when the gateway determines that the dimming product satisfies the dimming triggering condition, before controlling the corresponding light source characteristic parameter of the dimming product to gradually change by the adjustment magnitude within the adjustment duration, the method further includes:
the gateway receives a preset condition detection parameter and judges whether the trigger condition of the target automation is met or not according to the condition detection parameter; the condition detection parameter includes at least one of: the detection signal sent by the appointed sensor, the switch control command sent by the appointed panel switch and the dimming control command sent by the electronic equipment.
The dimming product is used as one of the smart home devices included in the target automation scene, and the dimming trigger condition of the dimming product may 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, and at this time, the dimming product is used as one of the smart home devices included in the target automation scene and also correspondingly executes the set execution actions. Before the gateway determines whether the dimming product meets the dimming triggering condition, the gateway receives a preset condition detection parameter, and judges whether the target automation triggering condition is met according to the condition detection parameter. The condition detection parameters may be detection signals sent by a designated sensor, the sensor may be one or more designated sensors for detecting whether a person is in the ambient environment of the dimming product, and the gateway determines that the target automation trigger condition is satisfied when receiving the detection signals collected by the designated sensors to determine that the dimming product is close to the light modulator or when receiving the detection signals collected by the designated sensors to determine that the person enters a certain room. The condition detection parameter may be a switch control instruction sent by a designated panel switch, the panel switch may be a designated panel switch for turning on or off the dimming product, and the gateway determines that the target automation-satisfying trigger condition is satisfied when receiving the switch control instruction sent by the designated panel switch for controlling turning on or off of the dimming product. The condition detection parameter may also be a dimming control instruction sent by the user through the electronic device, for example, an application program for controlling the dimming product is installed on the electronic device, a control key for controlling the dimming product to be turned on or turned off may be provided on an application program interface, the user sends the dimming control instruction by clicking the control key on the application program interface, and when the gateway receives the dimming control instruction sent by the electronic device, it is determined that the target automation-satisfying trigger condition is satisfied.
In the above embodiment, the gateway receives the preset condition detection parameter, and determines whether the trigger condition of the target automation is met according to the condition detection parameter, so that a dimming scheme for controlling the dimming product to change light more can be implemented through the gateway.
In some embodiments, the electronic device obtains a dimming configuration parameter of a dimming product, including:
the electronic equipment acquires dimming configuration parameters corresponding to a plurality of execution actions of a dimming product respectively;
when the gateway determines that the dimming product meets the dimming triggering condition, the gateway controls the corresponding light source characteristic parameter of the dimming product to gradually change in the adjustment amplitude within the adjustment duration, including:
the gateway receives preset condition detection parameters, controls the dimming product to execute corresponding actions and controls the dimming product to gradually change the characteristic parameters of the light source within the adjusting time length by the adjusting amplitude in the process of executing the corresponding actions when the dimming product meets one dimming triggering condition of the executing actions according to the condition detection parameters.
The executing action may include turning on, turning off, mode switching, etc., the dimming product may have a plurality of different executing actions, and the dimming setting of the dimming product by the user using the electronic device may be to set different dimming configuration parameters for the plurality of different executing actions, respectively. The electronic equipment sends the dimming configuration parameters to the gateway for local storage, and when the gateway detects that the dimming product meets the dimming triggering condition of the corresponding execution action, the dimming product is controlled to execute the corresponding action, and the corresponding light source characteristic parameters are controlled to gradually change in the adjustment amplitude in the corresponding action execution process. If the implementation action of the lamp 1 includes turning on and off, the dimming setting of the lamp 1 can set a corresponding first adjusting duration and a first adjusting amplitude for the turning on of the lamp 1, and set a corresponding second adjusting duration and a second adjusting amplitude for the turning off of the lamp 2, and when the gateway detects that the dimming trigger condition of the turning on of the lamp 1 is met, the gateway controls the turning on of the lamp 1 and controls the characteristic parameter of the corresponding light source to gradually change in the first adjusting duration by the first adjusting amplitude in the turning on process; when the gateway detects that the dimming triggering condition of the lamp 1 is met, the lamp 1 is controlled to be turned off, and in the turning-off process, the corresponding light source characteristic parameters are controlled to gradually change in a second adjusting range within a second adjusting time length, so that dimming of different light gradual change effects of the dimming product is achieved according to different execution actions.
The step of controlling the dimming product to perform the corresponding action and controlling the dimming product to gradually change the corresponding light source characteristic parameters in the adjustment duration with the adjustment amplitude during the corresponding action may refer to that the plurality of light source characteristic parameters gradually change with the uniform adjustment amplitude in the adjustment duration, or may refer to that the plurality of light source characteristic parameters gradually change with the preset different adjustment amplitudes in the adjustment duration, so as to achieve a more diversified dimming effect of the dimming product.
In the above embodiment, the user may set the corresponding dimming configuration parameters for different execution actions of the dimming product by using the electronic device, so that different light gradient effects are exhibited in the process of controlling the dimming product to be triggered to execute the different execution actions, and the user can apply the dimming product more comfortably.
In some embodiments, the electronic device obtains a dimming configuration parameter of a dimming product, including:
the electronic equipment acquires dimming configuration parameters corresponding to a dimming product and a plurality of set dimming triggering conditions respectively;
when the gateway determines that the dimming product meets the dimming triggering condition, the gateway controls the corresponding light source characteristic parameter of the dimming product to gradually change in the adjustment amplitude within the adjustment duration, including:
the gateway receives preset condition detection parameters, when the dimming product meets one dimming trigger condition according to the condition detection parameters, the dimming product is controlled to determine matched dimming configuration parameters according to the dimming trigger condition which is met currently, and the light source characteristic parameters gradually change in the adjusting range in the adjusting time length in the corresponding action process.
The dimming triggering condition may be a condition sent by different control terminals capable of controlling the dimming products to respectively perform actions. The dimming trigger conditions for triggering the dimming products to perform the actions may include a plurality of dimming trigger conditions, and the plurality of dimming trigger conditions may be set to trigger the dimming products to perform the same actions, or may be set to trigger the dimming products to perform different actions, respectively. The dimming setting of the dimming product by the electronic device by the user may be to set different dimming configuration parameters for a plurality of different dimming triggering conditions, where the plurality of different dimming triggering conditions 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, respectively.
The electronic equipment sends the dimming configuration parameters to the gateway for local storage, when the gateway detects that the dimming product meets one of a plurality of set dimming triggering conditions, the dimming product is controlled to determine the matched dimming configuration parameters according to the currently met dimming triggering conditions, and the light source characteristic parameters gradually change in the adjusting range within the adjusting time length in the corresponding action executing process. For example, the executing action of the lamp 1 includes turning on, and the setting of the dimming triggering condition for triggering the lamp 1 to turn on includes: when a person is detected in the set range of the lamp 1, the lamp 1 receives the opening pressing instruction of the control panel K, the lamp 1 receives the opening control instruction sent by the electronic equipment, the dimming setting of the lamp 1 can set a corresponding first adjusting time length and a corresponding first adjusting amplitude for the dimming triggering condition when a person is detected in the setting range of the lamp 1, set a corresponding second adjusting time length and a corresponding second adjusting amplitude for the dimming triggering condition when the lamp 1 receives a start pressing instruction of the control panel K, set a corresponding third adjusting time length and a corresponding third adjusting amplitude for the dimming triggering condition when the lamp 1 receives a start control instruction sent by the electronic equipment, and the gateway determines that the person is detected in the setting range of the lamp 1 according to the detection data reported by the sensor, controlling the lamp 1 to be started, and controlling the corresponding light source characteristic parameters to gradually change in a first adjusting range within a first adjusting duration in the starting process; the gateway judges that when the lamp 1 receives a starting pressing instruction of the control panel K according to the state parameters reported by the control panel switch K, the lamp 1 is controlled to be started, and in the starting process, the corresponding light source characteristic parameters are controlled to gradually change in a second adjusting range within a second adjusting duration; when the gateway determines that the lamp 1 receives a starting control instruction sent by the electronic device, the gateway controls the lamp 1 to be started and controls the corresponding light source characteristic parameters to gradually change in a third adjusting amplitude within a third adjusting time length in the starting process, so that dimming of different light gradual changing effects is realized when the dimming product is triggered to execute actions according to different dimming triggering conditions.
The step of controlling the dimming product to determine the matched dimming configuration parameters according to the currently met dimming triggering condition, wherein the step of gradually changing the light source characteristic parameters within the adjusting time length in the corresponding action executing process by the adjusting amplitude may refer to that the plurality of light source characteristic parameters gradually change within the adjusting time length by a uniform adjusting amplitude, or that the plurality of light source characteristic parameters gradually change within the adjusting time length by preset different adjusting amplitudes, so as to achieve a more diversified dimming effect of the dimming product.
In the above embodiment, by respectively setting the corresponding dimming configuration parameters when the dimming product is triggered to execute the action based on the different dimming triggering conditions, different light gradual change effects are presented in the process of controlling the dimming product to be triggered to execute the same or different actions by the different dimming triggering conditions, so that a user can conveniently assemble more dimming schemes for controlling the light gradual change adjustment, and the user can more comfortably apply the dimming product.
In some embodiments, said controlling the corresponding light source characteristic parameter of the dimming product to fade at the adjustment magnitude over the adjustment duration comprises:
when the adjusting amplitude is lower than the maximum variable amplitude, updating the adjusting time length according to the proportion of the adjusting amplitude to the maximum variable amplitude;
and controlling the corresponding light source characteristic parameters of the dimming products to gradually change in the adjustment amplitude within the updated adjustment time length.
The maximum variable amplitude may refer to a preset numerical value representing the variation amplitude, or may refer to a ratio representing the variation amplitude, for example, the maximum variable amplitude may be 100%. Taking time for expressing the adjusting time length and delta for expressing the adjusting amplitude as an example, setting the excessive time of one-time adjustment as time, and when the adjusting amplitude delta of the brightness or the color temperature in the light source characteristic parameter is set to be lower than 100%, calculating the excessive time according to the automatic proportion to update the adjusting time length time so as to avoid the condition that the adjusting scheme is wrong due to the fact that the excessive time is too long when the adjusting amplitude is small.
In the above embodiment, the adjustment range is set to the variation range of the characteristic parameter of the corresponding light source during one adjustment, and the adjustment duration is automatically calculated and updated proportionally according to the relative relationship between the adjustment range and the maximum variation range, so as to ensure that the dimming product effectively presents the gradual light change effect.
Optionally, the controlling the characteristic parameter of the light source corresponding to the dimming product to gradually change by the adjustment amplitude in the adjustment duration further includes:
and when the adjusting amplitude is null, controlling the characteristic parameters of the corresponding light source of the dimming product to gradually change with constant adjusting amplitude in the adjusting time length.
The adjustment range being null may refer to the adjustment range being set to zero, not set, or set regardless of the ratio. When the adjusting range is empty, the brightness, the color temperature and the color of the dimming product are controlled to change according to the constant adjusting time length, namely, the dimming product is controlled to be turned on or turned off according to a factory set mode in the process of executing the executing actions such as opening and closing. In another alternative embodiment, the adjustment range may be set without considering the ratio as a separate configuration option, and when the user selects the non-considering ratio through the separate configuration option, the user will control the change of the brightness, the color temperature and the color of the dimming product according to a constant adjustment duration even if the adjustment range is not empty, that is, the dimming product is controlled to be turned on or off in a factory-set manner during the execution of the actions such as turning on, turning off and the like.
In the above embodiment, when the user adopts the electronic device to perform dimming setting on the dimming product, the adjustment amplitude may be set to be null, so that the dimming product is configured to be turned on or off in the execution action process according to a factory setting mode, and the lighting requirement of the dimming product under a specific scene is met.
In some embodiments, the electronic device obtains a dimming configuration parameter of a dimming product, including:
the electronic equipment acquires the adjusting time length and the adjusting amplitude corresponding to the brightness, the adjusting time length and the adjusting amplitude corresponding to the color temperature and the adjusting time length and the adjusting amplitude corresponding to the color of the dimming product;
the controlling the corresponding light source characteristic parameter of the dimming product to gradually change at the adjustment amplitude in the adjustment time length comprises:
and controlling the brightness, the color temperature and the color of the dimming product to gradually change in a corresponding adjusting range in the adjusting time length respectively corresponding to the dimming product.
The light source characteristic parameters can comprise brightness, color temperature and color, when a user adopts the electronic equipment to adjust the light of the light adjusting product, the adjustment time length and the adjustment amplitude can be respectively set for the brightness, the color temperature and the color of the light adjusting product, so that in the process of controlling the light adjusting product to execute actions, the brightness, the color temperature and the color of the light adjusting product can be gradually changed in the corresponding adjustment time lengths in a corresponding adjustment amplitude, and thus, a plurality of light source characteristic parameters of the light adjusting product, such as the brightness, the color temperature and the color, can be respectively set with the light adjusting variables and are mutually controlled. It should be noted that the dimming configuration parameters may be set in multiple groups in a one-to-one correspondence manner according to different execution actions of the dimming product, or in multiple groups in a one-to-one correspondence manner according to different dimming triggering conditions of the dimming product, and the dimming configuration parameters of different groups are independent from each other. For example, the electronic device obtaining the dimming duration and the dimming amplitude corresponding to the brightness, the dimming duration and the dimming amplitude corresponding to the color temperature, and the dimming duration and the dimming amplitude corresponding to the color of the dimming product may refer to the electronic device obtaining a first dimming configuration parameter corresponding to the execution of a first execution action and a dimming configuration parameter corresponding to the execution of a second execution action of the dimming product, where the dimming duration and the dimming amplitude corresponding to the brightness, the dimming duration and the dimming amplitude corresponding to the color temperature, and the dimming duration and the dimming amplitude corresponding to the color of the dimming product in the first dimming configuration parameter and the second dimming configuration parameter may be different, respectively, and thus, when the dimming product is controlled to execute the first execution action, the brightness, the color temperature, and the color of the dimming product are controlled to gradually change in the corresponding dimming durations and the corresponding dimming amplitudes, and when the dimming product is controlled to execute the second execution action, and controlling the brightness, the color temperature and the color of the dimming product to gradually change in the corresponding adjusting range within the corresponding adjusting time length according to the second dimming configuration parameter.
For another example, the electronic device obtaining the adjusting time length and the adjusting amplitude corresponding to the brightness of the dimming product, the adjusting time length and the adjusting amplitude corresponding to the color temperature, and the adjusting time length and the adjusting amplitude corresponding to the color may refer to that the electronic device obtains a first dimming configuration parameter for executing a corresponding action when the dimming product is triggered by a first dimming trigger condition and a second dimming configuration parameter for executing a corresponding action when the dimming product is triggered by a second dimming trigger condition, and the adjusting time length and the adjusting amplitude corresponding to the brightness, the adjusting time length and the adjusting amplitude corresponding to the color temperature, and the adjusting time length and the adjusting amplitude corresponding to the color in the first dimming configuration parameter and the second dimming configuration parameter may be different, respectively, so that when the dimming product is controlled to execute the action based on the first dimming trigger condition, the brightness, the color temperature, and the color of the dimming product are controlled to gradually change in the corresponding adjusting time lengths and the corresponding adjusting amplitudes, when the dimming product is controlled to act based on the second dimming triggering condition, the brightness, the color temperature and the color of the dimming product are controlled to gradually change in a corresponding adjusting range within the corresponding adjusting time length according to the second dimming configuration parameter.
In the above embodiment, the plurality of light source characteristic parameters of the dimming product may be respectively set with adjustment variables and are independent of each other, so as to meet the sensitivity of a person to light in different scenes, increase the dimensionality of dimming, and also increase personalized requirements, a user can freely configure the adjustment variables, so that different gradient effects can be triggered and realized according to different targets, and the dimming product can be more comfortably applied by the user in different scenes, for example, after the configuration of the dimming product a is completed, dimming of the light gradient effect when the dimming product a is turned on or off is realized, and after the configuration of the dimming product B is completed, dimming of light color change when the dimming product B is turned on or off is realized; or after the configuration of the dimming product a is completed, dimming of the dimming product a with a light gradual change effect is realized when the target automation scene 1 is triggered, and dimming of light color change is realized when the target automation scene 2 is triggered.
Referring to fig. 5 and fig. 6, in order to more generally understand the scene control method provided in the embodiment of the present application, the following description takes a target device as a dimming product as an example, and the scene control method includes the following steps:
s11, the terminal equipment acquires the automatic creation data and reports the data to the cloud;
the user may perform scene configuration through the terminal device, as shown in fig. 6, an application (Aqara Home APP) configured for the smart Home device may be installed on the terminal device, the user may open the application on the terminal device to perform scene configuration operation, and the terminal device obtains the automatic creation data according to the configuration operation of the user. The automatically creating data may include controlling the plurality of smart home devices to perform a preset action based on a set trigger condition. The smart home device can be a dimming product, and the data corresponding to the dimming product executing the preset action comprises dimming configuration parameters corresponding to the dimming product executing the action. The dimming configuration parameters comprise adjusting variables of light source characteristic parameters of the dimming product, such as adjusting time length and adjusting amplitude; referring to fig. 6 and 7, an optional interface schematic diagram of a configuration interface for a dimming product is shown, where a configuration interface may be preset with a condition configuration option corresponding to newly-established automation and a candidate configuration option for light source characteristic parameters such as brightness, color temperature, and color, a user may select a condition that needs to be satisfied when a Motion sensor (Motion sensor T1) detects that a person moves as an automatic corresponding trigger, select brightness, color temperature, and color to set an adjustment duration and an adjustment amplitude corresponding to the brightness, color temperature, and color, a candidate configuration option for performing actions such as turning on and off may be preset in the configuration interface, and a user may select an adjustment duration and an adjustment amplitude for turning on and off the brightness, color temperature, and color corresponding to the user.
S12, the cloud receives the automatic creation data, forms the trigger condition and the automation logic of the execution action according to the automatic creation data, and issues the trigger condition and the automation logic to the gateway;
as shown in fig. 6, the cloud may be an artificial intelligence internet of things (AIOT) cloud, the terminal device sends the automatic creation data to the cloud, the cloud establishes a trigger-execution logic (i.e., an automation logic for triggering conditions and executing actions) according to the automatic creation data, and issues the trigger-execution logic to a corresponding gateway. In one optional specific example, the automatically created command may include:
open- -on
Off
Adjusting brightness, colour temperature-move to level
Changing colour
The cloud may form a representation of the automation logic of the trigger condition and the execution action according to the automation creation data in the following manner:
on/off-on/off + option (time/delta variable)
Regulation status-move to level + option (time/delta variable)
Regulation + on/off-move to level with on/off + option (time/delta variable)
S13, the gateway receives the triggering conditions sent by the cloud and the automation logic of the execution action, and performs local storage;
as shown in fig. 6, the cloud issues the automation formed by the trigger-execution logic to the gateway (Hub), and the gateway establishes the trigger-execution logic and detects whether the current environmental condition meets the trigger condition to obtain the condition detection parameter.
And S14, the gateway receives the condition detection parameters to determine whether the dimming triggering condition is met, and if yes, the gateway controls the dimming product to execute the action and realizes the dimming gradual change effect according to the configured dimming configuration parameters.
As shown in fig. 6, the gateway detects whether the current environmental condition satisfies the trigger condition, where the detection parameter may be that the gateway receives a detection parameter sent by a pre-associated sensor, and the condition detection parameter may be that the gateway receives detection information that a specified human body sensor detects a human body, or receives a control instruction sent by the electronic device to control the dimming product to be turned on or turned off to perform an action. Such as: the triggering-executing logic is that a human time dimming product (Device) turns on the lamp and gradually changes according to the set conditions in the process of turning on the lamp. When the human body sensor detects that a person exists, the gateway determines that the current trigger condition is met according to the detection information of the human body sensor, and then the light adjusting product is controlled to be turned on according to the configuration of the Option, so that the user-defined gradual change effect is realized; for another example, the logic for trigger-execution is: when a person enters a room, the desk lamp is turned on and gradually adjusted to 50% of the maximum brightness, and when the gateway detects the detection information that the person enters the room according to the human body sensor, the gateway controls the desk lamp to be turned on according to the configured dimming configuration parameters and gradually changes to 50% of the maximum brightness within the set adjustment time.
In some optional embodiments, when the user creates automation using the electronic device, an effective condition for automation may be further set, for example, a configuration interface may also be preset with a configuration option to be selected for execution once, if the user selects the configuration option to be configured for execution once, the corresponding automation logic is automatically turned off after the execution once, and when the dimming product is triggered again, dimming gradual change is no longer performed according to the configured dimming configuration parameter.
In the embodiment, the user can freely configure the gradual change mode of light emission when the dimming product is turned on or turned off, the self-defined dimensionality of dimming is high, the user can conveniently create a personalized dimming scheme, and the dimming requirement is met in different scenes and under the condition of ambient light in a comfortable change process. For example, when the desk lamp is turned off at night, the time length of 15 seconds gradually changes to the color temperature of 2700K, and meanwhile, the brightness also gradually changes to zero, so that the desk lamp brings comfortable experience to people.
Referring to fig. 9, in another aspect of the present application, a scene control apparatus is provided, and in an exemplary embodiment, the scene control apparatus may be implemented by an electronic device. The scene control apparatus includes: the acquiring module 11 is configured to acquire a scene change parameter in a target area and a current state parameter of a target device; the dimming module 12 is configured to acquire a scene adjustment parameter corresponding to the target device in the target scene if the scene change parameter meets a scene adjustment condition corresponding to the target scene; the scene adjusting parameters comprise scene adjusting duration and scene adjusting amplitude corresponding to at least one control parameter; and controlling the target equipment to perform gradual change adjustment according to the scene adjustment amplitude within the scene adjustment duration according to the current state parameter and the control parameter.
The dimming module 12 is specifically configured to acquire scene configuration data corresponding to at least one target scene in a target area; the scene configuration data comprises a scene adjusting condition of the target scene, and a target action and a scene adjusting parameter of the target device corresponding to the scene adjusting condition; matching the scene change parameters with the scene adjusting conditions of each target scene; if so, determining that the scene change parameters meet the scene adjusting conditions, and acquiring the execution action corresponding to the matched target scene and the scene adjusting parameters including the adjusting duration and the adjusting amplitude; and controlling the target equipment to execute the target action based on the current state parameter, and performing gradual change adjustment within the adjustment duration according to the adjustment amplitude in the process of executing the target action.
The dimming module 12 is specifically configured to acquire scene configuration data corresponding to at least one target scene in a target area; the scene configuration data comprises a plurality of execution actions of the dimming product and dimming configuration parameters comprising an adjustment duration and an adjustment amplitude of at least one light source characteristic parameter; and controlling the dimming product to execute corresponding action, and controlling the dimming product to gradually change the corresponding light source characteristic parameter by the adjusting amplitude in the adjusting time length in the process of executing the corresponding action.
The dimming module 12 is specifically configured to obtain dimming configuration parameters corresponding to a dimming product and a plurality of set dimming trigger conditions respectively; and controlling the dimming product to determine the matched dimming configuration parameters according to the dimming triggering conditions which are met currently, wherein the characteristic parameters of the light source gradually change in the adjusting amplitude in the corresponding action process.
The obtaining module 11 is further configured to respond to a scene creating instruction and display a scene configuration page; the scene configuration page comprises a scene condition configuration area and a scene parameter configuration area; acquiring a scene adjusting condition aiming at a target scene input in the scene condition configuration area, and a target action and a scene adjusting parameter of a target device corresponding to the scene adjusting condition input in the scene parameter configuration area, and generating scene configuration data aiming at the target scene.
Wherein the scene parameter configuration area comprises a scene transition configuration option; the obtaining module 11 is further configured to respond to a trigger operation for the scene transition configuration option, and display a scene transition configuration page; and generating scene adjusting parameters aiming at the target scene in response to the scene adjusting duration and the scene adjusting amplitude selected in the scene transition configuration page.
The scene adjusting condition comprises a light adjusting condition, the light adjusting condition comprises a scene adjusting time length and a scene adjusting amplitude corresponding to at least one light source control parameter, and the light source control parameter comprises at least one of brightness, color temperature and color.
It should be noted that: in the configuration process of implementing the dimming control scheme of the dimming product, the scene control apparatus provided in the above embodiment is only illustrated by dividing the program modules, and in practical applications, the processing may be distributed to different program modules according to needs, that is, the internal structure of the apparatus may be divided into different program modules, so as 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, and specific implementation processes thereof are described in the method embodiment and are not described herein again.
In another aspect of the present application, please refer to fig. 10, which is an optional hardware structure diagram of an electronic device according to an embodiment of the present application, where the electronic device includes a processor 111 and a memory 112, the memory 112 is used for storing various types of data to support operations of a scene control apparatus, and is stored with a computer program for implementing a scene control method according to any embodiment of the present application, and when the computer program is executed by the processor, the steps of the scene control method according to any embodiment of the present application are implemented, and the same technical effects can be achieved, and are not repeated herein.
Please refer to fig. 11, which is a block diagram illustrating an alternative hardware structure of an electronic device according to an embodiment of the present disclosure. As shown in fig. 11, electronic devices may vary greatly in configuration or performance and may include one or more processors (CPUs) 1110 (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, one or more storage media 1120 (e.g., one or more mass storage devices) storing applications 1123 or data 1122. The memory 1130 and the storage medium 1120 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 1120 may include one or more modules, each of which may include a sequence of instructions operating on an automation control panel. Still further, the processor 1110 may be configured to communicate with the storage medium 1120, and 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-output interfaces 1140, and/or one or more operating systems 1121, such as windows server, MacOSXTM, unix, linux, FreeBSDTM, and so forth.
The input output interface 1140 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the electronic device. In one example, i/o interface 1140 includes a network adapter (NIC) that may be coupled to other network devices via a base station to communicate with the internet. In one example, the input/output interface 1140 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
It will be understood by those skilled in the art that the structure shown in fig. 11 is merely illustrative and is not intended to limit the structure of the above-described automation control panel. For example, the electronic device may also include more or fewer components than shown in FIG. 11, or have a different configuration than shown in FIG. 11.
On the other hand, according to another aspect of the embodiments of the present application, a scene control system is further provided, which includes the electronic device, the gateway, and the dimming product provided in any embodiment of the present application, where the gateway determines that the scene change parameter meets a scene adjustment condition corresponding to a target scene, controls the target device to execute the target action, and performs gradual change adjustment within the adjustment duration according to the adjustment amplitude in a process of executing the target action.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the foregoing working mode configuration method and the foregoing switch control method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (11)
1. A method of scene control, characterized by:
acquiring scene change parameters in a target area and current state parameters of target equipment;
if the scene change parameter meets the scene adjusting condition corresponding to the target scene, then
Acquiring scene adjusting parameters corresponding to the target equipment in the target scene; the scene adjusting parameters comprise scene adjusting duration and scene adjusting amplitude corresponding to at least one control parameter;
and controlling the target equipment to perform gradual change adjustment according to the scene adjustment amplitude within the scene adjustment duration according to the current state parameter and the control parameter.
2. The method of claim 1, wherein obtaining the scene adjustment parameter corresponding to the target device in the target scene according to the scene change parameter if the scene change parameter satisfies the scene adjustment condition corresponding to the target scene comprises:
acquiring scene configuration data corresponding to at least one target scene in a target area; the scene configuration data comprises a scene adjusting condition of the target scene, and a target action and a scene adjusting parameter of the target device corresponding to the scene adjusting condition;
matching the scene change parameters with the scene adjusting conditions of each target scene;
if so, determining that the scene change parameters meet the scene adjusting conditions, and acquiring the execution action corresponding to the matched target scene and the scene adjusting parameters including the adjusting duration and the adjusting amplitude;
the controlling the target device to perform gradual change adjustment according to the adjustment amplitude within the adjustment duration according to the current state parameter of the target device includes:
and controlling the target equipment to execute the target action based on the current state parameter, and performing gradual change adjustment within the adjustment duration according to the adjustment amplitude in the process of executing the target action.
3. The method of claim 2, wherein if matching, determining that the scene change parameter satisfies a scene adjustment condition, and obtaining an execution action corresponding to the matched target scene and a scene adjustment parameter including an adjustment duration and an adjustment magnitude, comprises:
if so, determining that the scene change parameters meet scene adjustment conditions, and acquiring scene configuration data corresponding to at least one target scene in a target area; the scene configuration data comprises a plurality of execution actions of the dimming product and dimming configuration parameters comprising an adjustment duration and an adjustment amplitude of at least one light source characteristic parameter;
the controlling the target device to execute the target action based on the current state parameter and perform gradual change adjustment within the adjustment duration according to the adjustment amplitude in the process of executing the target action includes:
and controlling the dimming product to execute corresponding action, and controlling the dimming product to gradually change the corresponding light source characteristic parameter by the adjusting amplitude in the adjusting time length in the process of executing the corresponding action.
4. The method of claim 2, wherein if matching, determining that the scene change parameter satisfies a scene adjustment condition, and obtaining an execution action corresponding to the matched target scene and a scene adjustment parameter including an adjustment duration and an adjustment magnitude, comprises:
if so, determining that the scene change parameters meet the scene adjusting conditions, and acquiring dimming configuration parameters respectively corresponding to the dimming products and the plurality of set dimming triggering conditions;
the controlling the target device to execute the target action based on the current state parameter and perform gradual change adjustment within the adjustment duration according to the adjustment amplitude in the process of executing the target action includes:
and controlling the dimming product to determine the matched dimming configuration parameters according to the dimming triggering conditions which are met currently, wherein the characteristic parameters of the light source gradually change in the adjusting amplitude in the corresponding action process.
5. The method of claim 1, wherein prior to obtaining the scene change parameters and the current state parameters of the target device under the target area, comprising:
responding to a scene creating instruction, and displaying a scene configuration page; the scene configuration page comprises a scene condition configuration area and a scene parameter configuration area;
acquiring a scene adjusting condition aiming at a target scene input in the scene condition configuration area, and a target action and a scene adjusting parameter of a target device corresponding to the scene adjusting condition input in the scene parameter configuration area, and generating scene configuration data aiming at the target scene.
6. The method of claim 5, wherein the scene parameter configuration region includes a scene transition configuration option;
responding to the triggering operation aiming at the scene transition configuration option, and displaying a scene transition configuration page;
and generating scene adjusting parameters aiming at the target scene in response to the scene adjusting duration and the scene adjusting amplitude selected in the scene transition configuration page.
7. The method of any one of claims 1 to 6,
the scene adjusting condition comprises a light adjusting condition, the light adjusting condition comprises a scene adjusting time length and a scene adjusting amplitude corresponding to at least one light source control parameter, and the light source control parameter comprises at least one of brightness, color temperature and color.
8. A scene control apparatus, comprising:
the acquisition module is used for acquiring scene change parameters in a target area and current state parameters of target equipment;
the dimming module is used for acquiring scene adjusting parameters corresponding to the target equipment in a target scene if the scene change parameters meet the scene adjusting conditions corresponding to the target scene; the scene adjusting parameters comprise scene adjusting duration and scene adjusting amplitude corresponding to at least one control parameter; and controlling the target equipment to perform gradual change adjustment according to the scene adjustment amplitude within the scene adjustment duration according to the current state parameter and the control parameter.
9. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, the computer program, when executed by the processor, implementing the method of any of claims 1 to 7.
10. A scene control system, comprising the electronic device according to claim 9, a gateway, and a target device, wherein when the gateway determines that the scene change parameter satisfies a scene adjustment condition corresponding to a target scene, the gateway controls the target device to execute the target action, and performs gradual adjustment within the adjustment duration according to the adjustment magnitude during execution of the target action.
11. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111545962.1A CN114237063B (en) | 2021-12-16 | 2021-12-16 | Scene control method, device and system, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111545962.1A CN114237063B (en) | 2021-12-16 | 2021-12-16 | Scene control method, device and system, electronic equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114237063A true CN114237063A (en) | 2022-03-25 |
CN114237063B CN114237063B (en) | 2024-10-11 |
Family
ID=80757368
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111545962.1A Active CN114237063B (en) | 2021-12-16 | 2021-12-16 | Scene control method, device and system, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114237063B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114740748A (en) * | 2022-04-29 | 2022-07-12 | 青岛海尔科技有限公司 | Smart home scene creation method and device, storage medium and electronic device |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11301342A (en) * | 1998-04-22 | 1999-11-02 | Aisin Seiki Co Ltd | Headlight controller |
CN103108461A (en) * | 2013-01-24 | 2013-05-15 | 珠海市蓝德节能科技有限公司 | Light-emitting diode (LED) color temperature adjusting device |
CN104244528A (en) * | 2014-09-22 | 2014-12-24 | 小米科技有限责任公司 | Intelligent lamp control method and device |
WO2016019005A1 (en) * | 2014-07-29 | 2016-02-04 | Lumifi, Inc. | Automated and pre-configured set up of light scenes |
KR20160036460A (en) * | 2014-09-25 | 2016-04-04 | 도시바 라이텍쿠 가부시키가이샤 | Light illuminating device and light illuminating method |
CN106100951A (en) * | 2016-08-22 | 2016-11-09 | 美的智慧家居科技有限公司 | Scene mode control method, equipment and the system of intelligent home device |
CN107272433A (en) * | 2017-07-26 | 2017-10-20 | 深圳贯和通物联科技有限公司 | A kind of intelligent home furnishing control method and device |
CN109725541A (en) * | 2018-12-12 | 2019-05-07 | 深圳绿米联创科技有限公司 | Generation method, device, electronic equipment and the storage medium of automation |
CN110851221A (en) * | 2019-10-30 | 2020-02-28 | 青岛海信智慧家居系统股份有限公司 | Smart home scene configuration method and device |
CN110972348A (en) * | 2018-09-29 | 2020-04-07 | 松下电气机器(北京)有限公司 | Cultivation illumination control method, device and system |
CN113301694A (en) * | 2021-05-28 | 2021-08-24 | 东风汽车有限公司东风日产乘用车公司 | Display lamp breathing control method, storage medium and electronic equipment |
CN113347768A (en) * | 2021-06-04 | 2021-09-03 | 深圳市欧瑞博科技股份有限公司 | Intelligent light regulation and control method and device, electronic equipment and storage medium |
-
2021
- 2021-12-16 CN CN202111545962.1A patent/CN114237063B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11301342A (en) * | 1998-04-22 | 1999-11-02 | Aisin Seiki Co Ltd | Headlight controller |
CN103108461A (en) * | 2013-01-24 | 2013-05-15 | 珠海市蓝德节能科技有限公司 | Light-emitting diode (LED) color temperature adjusting device |
WO2016019005A1 (en) * | 2014-07-29 | 2016-02-04 | Lumifi, Inc. | Automated and pre-configured set up of light scenes |
CN104244528A (en) * | 2014-09-22 | 2014-12-24 | 小米科技有限责任公司 | Intelligent lamp control method and device |
KR20160036460A (en) * | 2014-09-25 | 2016-04-04 | 도시바 라이텍쿠 가부시키가이샤 | Light illuminating device and light illuminating method |
CN106100951A (en) * | 2016-08-22 | 2016-11-09 | 美的智慧家居科技有限公司 | Scene mode control method, equipment and the system of intelligent home device |
CN107272433A (en) * | 2017-07-26 | 2017-10-20 | 深圳贯和通物联科技有限公司 | A kind of intelligent home furnishing control method and device |
CN110972348A (en) * | 2018-09-29 | 2020-04-07 | 松下电气机器(北京)有限公司 | Cultivation illumination control method, device and system |
CN109725541A (en) * | 2018-12-12 | 2019-05-07 | 深圳绿米联创科技有限公司 | Generation method, device, electronic equipment and the storage medium of automation |
CN110851221A (en) * | 2019-10-30 | 2020-02-28 | 青岛海信智慧家居系统股份有限公司 | Smart home scene configuration method and device |
CN113301694A (en) * | 2021-05-28 | 2021-08-24 | 东风汽车有限公司东风日产乘用车公司 | Display lamp breathing control method, storage medium and electronic equipment |
CN113347768A (en) * | 2021-06-04 | 2021-09-03 | 深圳市欧瑞博科技股份有限公司 | Intelligent light regulation and control method and device, electronic equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114740748A (en) * | 2022-04-29 | 2022-07-12 | 青岛海尔科技有限公司 | Smart home scene creation method and device, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN114237063B (en) | 2024-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3504937B1 (en) | Illumination control | |
KR101527328B1 (en) | Lighting apparatus and Method for controlling thereof | |
US20200257274A1 (en) | Method, Apparatus and System for Controlling Device | |
US20200215295A1 (en) | Systems and methods for managing ambient conditions | |
EP3574713B1 (en) | Recommendation engine for a lighting system | |
JP6854987B1 (en) | Rendering dynamic light scenes based on one or more light settings | |
KR20170075597A (en) | Method and appratus for controlling a device | |
US10834796B2 (en) | Lighting control | |
CN109479361B (en) | Illumination control system and method | |
CN114237063B (en) | Scene control method, device and system, electronic equipment and medium | |
KR20110022980A (en) | Apparatus for controlling emotional illumination using weather and time information and method thereof | |
CN114637216A (en) | Scene configuration method and device, control method and device, intelligent equipment and medium | |
US10959315B2 (en) | System and method for operation of multiple lighting units in a building | |
Hu et al. | IoT-based LED lighting control in smart home | |
CN207652747U (en) | A kind of intelligent dimming control system for lamps and lanterns | |
KR101663370B1 (en) | Lighting control application | |
KR101656938B1 (en) | Lighting control system | |
CN115586727A (en) | Automatic configuration method and device, control method and device, equipment and medium | |
US10813198B2 (en) | Automated control method and apparatus | |
CN115250561A (en) | Intelligent lamp control method and device, intelligent lamp, equipment and medium | |
JP2022542096A (en) | Method and controller for controlling a group of lighting units | |
US20190215178A1 (en) | Aspect oriented control system for dynamic topology of utility devices | |
CN116668220A (en) | Processing method and device of automatic template, electronic equipment and storage medium | |
KR102500379B1 (en) | Event-based Smart Lighting Common Platform System | |
CN114237062A (en) | Device control method and apparatus, electronic device, and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |