CN116546700A - Light control method and device, storage medium and electronic device - Google Patents

Light control method and device, storage medium and electronic device Download PDF

Info

Publication number
CN116546700A
CN116546700A CN202310339470.XA CN202310339470A CN116546700A CN 116546700 A CN116546700 A CN 116546700A CN 202310339470 A CN202310339470 A CN 202310339470A CN 116546700 A CN116546700 A CN 116546700A
Authority
CN
China
Prior art keywords
pressure
information
current
condition
preset
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.)
Pending
Application number
CN202310339470.XA
Other languages
Chinese (zh)
Inventor
熊景宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202310339470.XA priority Critical patent/CN116546700A/en
Publication of CN116546700A publication Critical patent/CN116546700A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application discloses a light control method, a device, a storage medium and an electronic device, and relates to the technical field of intelligent home/intelligent families, wherein the method comprises the following steps: and obtaining pressure information of the floors, wherein the pressure information comprises pressure position information, the pressure position information is information corresponding to the position where the pressure changes in each floor divided according to a preset division rule, and under the condition that the pressure information meets a preset regulation condition, the current of the lamplight with the corresponding relation with the pressure position information is regulated. Therefore, each floor can be divided according to the preset dividing rule, pressure information can be obtained under the condition that pressure changes, and then current of lamplight with corresponding relation with the pressure position information can be adjusted according to the pressure information, that is to say, the lamplight can be changed along with the position change of the pressure information, fine control of the lamplight can be achieved, and user experience is improved.

Description

Light control method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart home/smart home, in particular to a light control method, a light control device, a storage medium and an electronic device.
Background
Along with the development of science and technology, the proportion of intelligent household appliances in people's daily life is higher and higher, has greatly made things convenient for people's daily life.
At present, the control flow of intelligent lamplight is as follows, a user sends out a lamp which can control a single lamp or a certain area through sending out a voice command, but the mode can not realize the fine control of each lamplight, and the use experience of the user is reduced.
Disclosure of Invention
The application provides a light control method, a light control device, a storage medium and an electronic device, which are used for solving the defect that the fine control of each light cannot be realized in the prior art, reducing the use experience of a user, realizing the fine control of the light and improving the use experience of the user.
The application provides a light control method, which comprises the following steps:
acquiring pressure information of floors, wherein the pressure information comprises pressure position information, and the pressure position information is information corresponding to the position where the pressure changes in each floor divided according to a preset division rule;
and under the condition that the pressure information meets the preset regulation condition, regulating the current of the lamplight with the corresponding relation with the pressure position information.
According to the lamplight control method provided by the application, the pressure information further comprises pressure value change information;
before the step of adjusting the current of the lamp light having a correspondence with the pressure position information, the method further comprises:
and under the condition that the pressure position information meets the preset area condition and the pressure value change information meets the preset pressure value condition, determining that the pressure information meets the preset regulation condition.
According to the light control method provided by the application, before the step of acquiring the pressure information of the floor, the method further comprises the following steps:
and executing the step of acquiring the pressure information of the floor under the condition that the environmental light intensity meets the preset light intensity condition.
According to the lamplight control method provided by the application, the pressure information further comprises the pressure change times, wherein the pressure change times are the change times of the pressure of the same area within the preset time length;
before the step of adjusting the current of the lamp light having a correspondence with the pressure position information, the method further comprises:
and under the condition that the pressure change times meet the preset times conditions, determining that the pressure information meets the preset adjusting conditions.
According to the light control method provided by the application, before the step of adjusting the current of the light having the correspondence relationship with the pressure position information, the method further comprises:
determining corresponding current user information according to the pressure information;
determining current information according to the current user information and the corresponding relation between the pre-stored user information and the current information;
the step of adjusting the current of the lamplight corresponding to the pressure position information comprises the following steps:
and adjusting the current of the lamplight with the corresponding relation with the pressure position information based on the current information.
According to the light control method provided by the application, before the step of adjusting the current of the light having the correspondence relationship with the pressure position information, the method further comprises:
and inputting the pressure information into a pre-trained pressure model to obtain information to be used, wherein the pressure model is a model trained based on sample information.
According to the light control method provided by the application, the information to be used comprises an adjustment sequence and light information to be adjusted, wherein the light information to be adjusted comprises current information to be adjusted and position information to be adjusted;
The step of adjusting the current of the lamplight corresponding to the pressure position information comprises the following steps:
and sequentially adjusting the current of the lamplight of the position information to be adjusted based on the current information to be adjusted according to the adjustment sequence.
The application also provides a light control device, the device includes:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring pressure information of floors, the pressure information comprises pressure position information, and the pressure position information is information corresponding to the position where the pressure changes in each floor divided according to a preset division rule;
and the adjusting module is used for adjusting the current of the lamplight with the corresponding relation with the pressure position information under the condition that the pressure information meets the preset adjusting condition.
The present application also provides an electronic device comprising a memory and a processor, the memory having stored therein a computer program, the processor being arranged to implement a light control method as described in any of the above by execution of the computer program.
The present application also provides a computer-readable storage medium comprising a stored program, wherein the program when run performs a light control method according to any one of the above.
According to the lamplight control method, the device, the storage medium and the electronic device, pressure information of floors is obtained, wherein the pressure information comprises pressure position information, the pressure position information is information corresponding to the position where pressure changes in each floor divided according to the preset dividing rule, and under the condition that the pressure information meets the preset adjusting condition, current of lamplight with the corresponding relation with the pressure position information is adjusted.
Through the mode, each floor can be divided according to the preset division rule, pressure information can be obtained under the condition that pressure changes, and then current of lamplight with corresponding relation with the pressure position information can be adjusted according to the pressure information, that is to say, the lamplight can be changed along with the position change of the pressure information, fine control of the lamplight can be achieved, and the use experience of a user is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a light control method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a light control method provided in the present application;
FIG. 3 is one of the schematic structural diagrams of the floor of the light control method provided in the present application;
FIG. 4 is a second schematic view of the structure of the floor of the light control method provided by the present application;
fig. 5 is a schematic structural diagram of a light control device provided in the present application;
fig. 6 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiments of the present application, a light control method is provided. The light control method is widely applied to intelligent digital control application scenes of full houses such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the above-described light control method may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In order to achieve fine control of lamplight, embodiments of the present application provide a lamplight control method, a lamplight control device, a computer-readable storage medium, an electronic device, and a computer program product. A light control method according to an embodiment of the present application is described below with reference to fig. 2.
As shown in fig. 2, an embodiment of the present application provides a light control method, where the method includes:
s201, pressure information of the floor is acquired.
In case that the user makes contact with the floor, the floor may acquire pressure information through the pressure sensor. The pressure information comprises pressure position information, wherein the pressure position information is information corresponding to the position where the pressure changes in each floor divided according to a preset division rule.
To facilitate understanding of the pressure location information, the pressure location information will be described below with reference to specific examples, and at present, in a place where people are living in daily life, a floor typically includes a plurality of floors, for example, room a includes 20 floors. According to the scheme provided by the embodiment of the application, each floor can be divided into a plurality of areas according to the preset dividing rule, for example, the preset dividing rule is to uniformly divide the floors into 16 areas, and each floor can be divided into 16 areas aiming at 20 floors in a room A. Correspondingly, the pressure position information is information corresponding to the position where the pressure changes in 20 floors divided into 16 areas.
For example, as shown in fig. 3, the floor a in the room B may be divided into 84 areas, and in the case where the pressure changes at the positions corresponding to the areas 5 to 8 in the floor, the pressure position information is information of the positions corresponding to the areas 5 to 8 in the floor B.
The pressure position information can be represented in a coordinate form, can also be represented by a floor and a region number divided by the floor, and can be specifically set according to actual use conditions. The present invention is not particularly limited herein.
The preset division rule may include a plurality of, for example, average division into a plurality of blocks, random division into a plurality of blocks, or non-average division into a plurality of blocks. The setting can be specifically performed according to specific actual scenes. For the same place, different floors can adopt the same preset dividing rule or different preset dividing rules.
S202, under the condition that the pressure information meets the preset adjusting condition, adjusting the current of the lamplight with the corresponding relation with the pressure position information.
After the pressure information is obtained, in order to finely control the light, whether the pressure information meets the preset adjusting condition can be judged, and when the pressure information is determined not to meet the preset adjusting condition, the light is not required to be adjusted, so that the step of obtaining the pressure information of the floor can be continuously executed. Under the condition that the pressure information is determined to meet the preset adjusting condition, the lamp light needs to be adjusted, and the current of the lamp light with the corresponding relation with the pressure position information can be adjusted.
In one embodiment, for each area of the same scene divided according to a preset division rule, the area may be at least composed of a lamplight layer, a pressure sensor and a controller. The controller is used for adjusting the current of the lamplight layer of the area under the condition that the pressure information meets the preset adjusting condition.
As an embodiment, in order to control the light more precisely, the floors with frequent pressure changes may be divided into more areas and the floors with less pressure changes may be divided into less areas according to habits of users in different scenes.
Accordingly, the floor with frequent pressure change can comprise more areas consisting of the lamplight layer, the pressure sensor and the controller, so that finer control can be realized under the condition of adjusting the current of the lamplight according to the pressure information. The floor with less pressure change can comprise less areas consisting of the lamplight layer, the pressure sensor and the controller, so that the manufacturing cost can be saved, and the use experience of a user can be improved.
The pressure information may also include pressure value change information. The pressure value change information may be that the pressure value is changed from small to large, or may be that the pressure value is changed from large to small. Under the condition that the pressure value is changed from small to large, the current of the lamplight with the corresponding relation with the pressure position information can be increased, so that the lamplight with the corresponding relation with the pressure position information is started or the brightness is increased.
When the pressure value is reduced from large to small, the current of the lamp light corresponding to the pressure position information can be reduced, so that the brightness of the lamp light corresponding to the pressure position information is reduced or turned off.
For example, in a bedroom, a user walks through the floor a and the floor B in order, and when the user touches the floor a, the pressure corresponding to the area a in the floor a changes, that is, the pressure value corresponding to the area a increases from small to large. Under the condition that the pressure information of the area range a meets the preset regulation condition, the current of the lamplight corresponding to the area range a can be increased, so that the lamplight corresponding to the area range a is started.
In the case where the user is in contact with the floor B but not with the floor a, the pressure corresponding to the area range a in the floor a is changed again, that is, the pressure value corresponding to the area range a is made smaller from larger. Under the condition that the pressure information of the area range a meets the preset regulation condition, the current of the lamplight corresponding to the area range a can be reduced, so that the lamplight corresponding to the area range a is turned off.
The pressure corresponding to the region B in the floor B changes, i.e. the pressure value corresponding to the region B changes from small to large. Under the condition that the pressure information of the area range b meets the preset regulation condition, the current of the lamplight corresponding to the area range b can be increased, so that the lamplight corresponding to the area range b is started.
The area range a is a range corresponding to at least one area in each area of the floor A after being divided according to a preset dividing rule. The region range B is a range corresponding to at least one region in each region of the floor B divided according to a preset division rule.
The area range a is a range corresponding to the contact surface of the user and the floor a, or a range larger than the contact surface of the user and the floor a, and correspondingly, the area range B is a range corresponding to the contact surface of the user and the floor B, or a range larger than the contact surface of the user and the floor B, and the area range a can be specifically set according to the actual use situation.
In the process that the user walks through the floor A and the floor B in sequence, the light in the area range corresponding to the floor A and the floor B can be changed in real time along with the action of the user, namely, the light can be changed according to the action of the user.
Therefore, in this embodiment, each floor can be divided according to a preset division rule, and under the condition that the pressure changes, the pressure information can be obtained, and then the current of the light with the corresponding relation with the pressure position information can be adjusted according to the pressure information, that is, the light can be correspondingly changed along with the position change of the pressure information, so that the light can be finely controlled, and the use experience of a user is improved.
As an implementation manner of the embodiment of the present application, the pressure information further includes pressure value change information. The pressure value change information may include pressure information before the change and pressure information after the change, and may include only pressure information after the change.
Before the step of adjusting the current of the light having the correspondence with the pressure position information, the method may further include:
and under the condition that the pressure position information meets the preset area condition and the pressure value change information meets the preset pressure value condition, determining that the pressure information meets the preset regulation condition.
The preset area condition may be an area condition set according to different scenes. For different scenes, in the case where the pressure position information is located in the preset area, it may be determined that the pressure position information satisfies the preset area condition.
The preset pressure value condition can be set according to the weight information of personnel involved in the place, and can be set according to the weight information of people, and the like, and can be set according to the weight information of animals of different types. In the case that the pressure value variation information is located in the preset pressure value interval, it may be determined that the pressure value variation information satisfies the preset pressure value condition.
In the case that the pressure position information satisfies the preset area condition and the pressure value change information does not satisfy the preset pressure value condition, it is indicated that other objects may be located in the area, and in order to save energy, a step of subsequently adjusting the current of the lamp light having a correspondence with the pressure position information may not be performed.
In the case that the pressure position information does not satisfy the preset area condition and the pressure value change information satisfies the preset pressure value condition, it is indicated that the user is not located in an area where light control is required, so that in order to save energy, a step of subsequently adjusting the current of light having a correspondence relationship with the pressure position information may not be performed.
It can be seen that, in this embodiment, when the pressure position information meets the preset area condition and the pressure value change information meets the preset pressure value condition, the subsequent adjustment of the current of the light having the corresponding relationship with the pressure position information may be performed, so that the degree of fine control of the light may be further improved.
As an implementation manner of the embodiment of the present application, before the step of obtaining the pressure information of the floor, the method may further include:
And executing the step of acquiring the pressure information of the floor under the condition that the environmental light intensity meets the preset light intensity condition.
In order to further save energy, each area of the floor can also judge whether the environmental light intensity meets the preset light intensity condition. Under the condition that the ambient light intensity is determined to be greater than the preset light intensity threshold value, the current light is sufficient, and auxiliary lighting of the light is not needed, so that the ambient light intensity can be determined to not meet the preset light intensity condition, and the step of acquiring the pressure information of the floor can be omitted.
Under the condition that the environment light intensity is not larger than the preset light intensity threshold value, the current light is insufficient, and auxiliary lighting of the light is needed, so that the environment light intensity can be determined to meet the preset light intensity condition, and the step of acquiring the pressure information of the floor can be executed. Thereby facilitating the subsequent adjustment of the current of the lamplight with the corresponding relation with the pressure position information.
For example, for the user's action of getting up at night, the floor can judge whether the environment light intensity satisfies the preset light intensity condition at first, and under the condition that the environment light intensity is greater than the preset light intensity threshold value, it is indicated that the floor belongs to daytime at present, and no auxiliary lighting of light is needed, so the step of acquiring the pressure information of the floor can be omitted.
Under the condition that the ambient light intensity is greater than a preset light intensity threshold value, the requirement of auxiliary lighting by lamplight is indicated, the ambient light intensity can be determined to meet the preset light intensity condition, and then the step of acquiring the floor pressure information can be executed.
Under the condition that the floor pressure information is acquired, namely, the pressure position information and the pressure value change information are acquired, whether the pressure position information belongs to a region corresponding to the bedside of the user or not can be judged, and whether the pressure value change information belongs to the weight range of the user or not can be judged.
Under the condition that the pressure position information is determined to belong to the region corresponding to the bedside of the user and the pressure value change information is determined to belong to the weight range of the user, the pressure position information is indicated to meet the preset region condition, and the pressure value change information is determined to meet the preset pressure value condition, so that the pressure information can be determined to meet the preset regulation condition. And then the step of adjusting the current of the lamp light having a correspondence with the pressure position information may be performed.
Therefore, the lamplight control method provided by the embodiment of the application can identify special scenes such as the night of a user. Not only can the energy be saved, but also the use experience of the user can be improved.
In one embodiment, the corresponding current value to be adjusted can be determined according to the light intensity value corresponding to the light intensity of the environment, and then the light with the corresponding relation with the pressure position information can be adjusted according to the current value to be adjusted.
By the mode, the light with the brightness conforming to the habit of human eyes can be provided under the condition of weaker light, so that the user can not feel dazzling, and the user can see objects in a place clearly. And in addition, reasonable auxiliary light can be provided under the condition that the light is relatively strong, so that a user can see objects in a place more clearly. The use experience of the user is improved.
As an implementation manner, for each area in the same scene after being divided according to a preset division rule, the area may also be composed of a lamplight layer, a pressure sensor, a light sensor and a controller. Wherein the light sensor is used for detecting the ambient light intensity. For example, as shown in fig. 4, the floor is divided into n areas according to a preset division rule, and each area may include a light layer, a pressure sensor, a light sensor, and a controller. Fig. 4 is a schematic view of the structure of only one area of a floor.
As another embodiment, for each area in the same scene after being divided according to a preset division rule, the area may further be composed of a temperature sensor, a lamplight layer, a pressure sensor, a light sensor and a controller. Wherein the temperature sensor is for determining a temperature of an object contacting the floor.
Accordingly, it may be determined that the pressure information satisfies a preset adjustment condition in a case where the temperature detected by the temperature sensor satisfies a preset temperature condition and the pressure position information satisfies a preset area condition.
And under the condition that the temperature detected by the temperature sensor meets the preset temperature condition, the pressure position information meets the preset area condition and the pressure value change information meets the preset pressure value condition, determining that the pressure information meets the preset regulation condition. The setting can be specifically performed according to actual use conditions. The present invention is not particularly limited herein.
As an implementation manner of the embodiment of the present application, the above pressure information further includes a number of pressure changes, where the number of pressure changes is a number of changes of the pressure in the same area range within a preset duration, and the area range is a range corresponding to at least one area after the floors are divided according to a preset division manner, and may also be a range corresponding to multiple floors, which is all reasonable.
Before the step of adjusting the current of the light having the correspondence with the pressure position information, the method may further include:
and under the condition that the pressure change times meet the preset times conditions, determining that the pressure information meets the preset adjusting conditions.
In one embodiment, the area range may be a range corresponding to the room C, and the user may tap any area of any floor in the room C continuously, so that the number of pressure changes may be generated multiple times, and in a preset period, when the number of pressure changes in the same area range is greater than a preset number threshold, it is indicated that the number of pressure changes satisfies a preset number of conditions, so that it may be determined that the pressure information satisfies a preset adjustment condition.
Under the condition that the pressure information meets the preset adjusting condition, the light effect corresponding to the pressure change times can be determined according to the pressure change times and the corresponding relation between the preset change times and the light effect, and then the light with the corresponding relation with the pressure position information is adjusted by adopting the current information corresponding to the light effect.
The light effect may be a flashing light, a color light, or the like. The light effect can be adjusted according to different applicable scenes, for example, corresponding light special effect adjustment can be performed aiming at different types of music, and the setting can be performed according to actual use requirements.
As one embodiment, the pressure information may include pressure position information and a number of pressure changes. In this case, it may be determined that the pressure information satisfies the preset adjustment condition in a case where it is determined that the pressure position information satisfies the preset area condition and the number of pressure changes satisfies the preset number of times condition. And then can adjust the light that has the correspondence with pressure position information.
As another embodiment, the pressure information may include pressure value change information and the number of pressure changes. In this case, it may be determined that the pressure information satisfies the preset adjustment condition in a case where it is determined that the pressure value variation information satisfies the preset pressure value condition and the number of pressure variations satisfies the preset number of times condition. And then can adjust the light that has the correspondence with pressure position information.
As yet another embodiment, the pressure information may include pressure position information, pressure value change information, and the number of pressure changes. In this case, it may be determined that the pressure information satisfies the preset adjustment condition in a case where it is determined that the pressure position information satisfies the preset area condition, the pressure value change information satisfies the preset pressure value condition, and the number of pressure changes satisfies the preset number of times condition. And then can adjust the light that has the correspondence with pressure position information.
Therefore, in the embodiment, the light effect can be adjusted according to the pressure change times, so that the use requirements of users in different scenes can be met, and the use experience of the users is improved.
As an implementation manner of the embodiment of the present application, before the step of adjusting the current of the light having the correspondence relationship with the pressure position information, the method may further include:
And determining corresponding current user information according to the pressure information.
And determining the current information according to the current user information and the corresponding relation between the pre-stored user information and the current information.
Because the vision conditions of different users are different, in order to further improve the use experience of the users, the corresponding current user information can be determined after the pressure information is acquired. In one embodiment, the corresponding current user information may be determined from the pressure location information. For example, in a home, users corresponding to different rooms are different, and after pressure information is acquired, current user information of the user corresponding to the room can be acquired.
In another embodiment, the corresponding current user information may be determined from the pressure value change information. For example, the pressure value change information characterizes that the changed pressure value is x, and then the corresponding current user information can be determined according to x and the weight range of the user.
After the current user information is obtained, the current information can be determined according to the current user information and the corresponding relation between the pre-stored user information and the current information.
Correspondingly, after the current information is obtained, the step of adjusting the current of the light having the corresponding relation with the pressure position information may include:
And adjusting the current of the lamplight with the corresponding relation with the pressure position information based on the current information.
In one embodiment, the user information may include whether the user has a resident, and in the case that the user has a resident, weak light may be used to illuminate in order to avoid adverse effects on sleep of the resident.
In another embodiment, the user information may further include information about whether the user has symptoms such as night blindness, where the user may use stronger light to illuminate in order to ensure that the user can see objects in the location clearly.
Through the mode, the current information meeting the vision condition of the user can be ensured to be determined for different users, and then the light can be adjusted to the brightness meeting the vision condition of the user, so that the use experience of the user can be further improved, and the use experience of special users such as night blindness and the like can be ensured.
As an implementation manner of the embodiment of the present application, before the step of adjusting the current of the light having the correspondence relationship with the pressure position information, the method may further include:
And inputting the pressure information into a pre-trained pressure model to obtain information to be used.
In order to further improve the use experience of the user, after the pressure information is acquired, the pressure information can be input into a pre-trained pressure model to obtain information to be used. The information to be used can comprise current to be used, so that the current of the lamplight with the corresponding relation of the pressure position information can be adjusted to the current to be used later, and the lamplight fine control conforming to the personal habit of the user can be realized.
Wherein the pressure model is a model trained based on sample information. In particular, sample information may be obtained, where the sample information may include user historical pressure information and historical current information. And inputting the historical pressure information of the user into the initial model to obtain training current information. And adjusting parameters of the initial model based on the difference between the training current information and the historical current information until the initial model converges to obtain a pressure model.
The historical pressure information may include a historical pressure information acquisition time so that it may be determined whether the user has a night-time habit. And also can include historical ambient light intensity, historical pressure value change information, historical pressure value position information, historical pressure change times, and the like.
After the pressure information is input into the pressure model, the pressure model can synthesize at least one of the ambient light intensity, the pressure value change information, the pressure value position information and the pressure change times corresponding to the pressure information to obtain the information to be used.
As an implementation manner of the embodiment of the present application, the information to be used includes an adjustment sequence and light information to be adjusted, where the light information to be adjusted includes current information to be adjusted and position information to be adjusted.
The information to be used may represent light information guiding the user to a place, for example, in the case that the user has a night-taking habit, the information to be used may represent light information guiding the user to a bathroom.
The step of adjusting the current of the light having the correspondence with the pressure position information may include:
and sequentially adjusting the current of the lamplight of the position information to be adjusted based on the current information to be adjusted according to the adjustment sequence.
In the training process of the pressure model, information such as a night time period, a walking frequency, a moving route and required light intensity of each user can be learned according to the night habit corresponding to each user, and then after the pressure information is acquired, guiding route information corresponding to the user can be generated. The guiding route information comprises an adjusting sequence, current information to be adjusted and position information to be adjusted.
Under the condition of sequentially adjusting the current of the lamplight of the position information to be adjusted based on the current information to be adjusted according to the adjustment sequence, a user can see that the lamplight corresponding to different positions is sequentially lightened, and the user can move to the position wanted by the user according to the lightened lamplight.
The light control device provided by the application is described below, and the light control device described below and the light control method described above can be referred to correspondingly.
As shown in fig. 5, an embodiment of the present application provides a light control device, where the device includes:
and an acquisition module 510 for acquiring the pressure information of the floor.
The pressure information comprises pressure position information, wherein the pressure position information is information corresponding to the position where the pressure changes in each floor divided according to a preset division rule.
And the adjusting module 520 is configured to adjust a current of the light having a corresponding relationship with the pressure position information when the pressure information satisfies a preset adjusting condition.
As an implementation manner of the embodiment of the present application, the pressure information further includes pressure value change information.
The apparatus may further include:
the first determining module is used for determining that the pressure information meets a preset adjusting condition when the pressure position information meets a preset area condition and the pressure value change information meets a preset pressure value condition before adjusting the current of the lamplight with the corresponding relation with the pressure position information.
As an implementation manner of the embodiment of the present application, the foregoing apparatus may further include:
and the execution module is used for executing the step of acquiring the pressure information of the floor under the condition that the environmental light intensity meets the preset light intensity condition before the step of acquiring the pressure information of the floor.
As an implementation manner of the embodiment of the present application, the pressure information further includes the number of pressure changes.
The pressure change times are the change times of the pressure in the same area range within a preset time length.
The apparatus may further include:
and the second determining module is used for determining that the pressure information meets the preset adjusting condition under the condition that the pressure change times meet the preset times condition before adjusting the current of the lamplight with the corresponding relation with the pressure position information.
As an implementation manner of the embodiment of the present application, the foregoing apparatus may further include:
And the third determining module is used for determining corresponding current user information according to the pressure information before adjusting the current of the lamplight with the corresponding relation with the pressure position information.
And the fourth determining module is used for determining the current information according to the current user information and the corresponding relation between the pre-stored user information and the current information.
The adjustment module 520 may include:
and the first adjusting unit is used for adjusting the current of the lamplight with the corresponding relation with the pressure position information based on the current information.
As an implementation manner of the embodiment of the present application, the foregoing apparatus may further include:
the input module is used for inputting the pressure information into a pre-trained pressure model before adjusting the current of the lamplight with the corresponding relation with the pressure position information to obtain information to be used, wherein the pressure model is a model trained based on sample information.
As an implementation manner of the embodiment of the present application, the information to be used includes an adjustment sequence and light information to be adjusted.
The lamplight information to be adjusted comprises current information to be adjusted and position information to be adjusted.
The adjustment module 520 may include:
and the second adjusting unit is used for sequentially adjusting the current of the lamplight of the position information to be adjusted according to the adjusting sequence based on the current information to be adjusted.
Fig. 6 illustrates a physical schematic diagram of an electronic device, as shown in fig. 6, which may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a light control method comprising: and obtaining pressure information of the floors, wherein the pressure information comprises pressure position information, the pressure position information is information corresponding to the position where the pressure changes in each floor divided according to a preset division rule, and under the condition that the pressure information meets a preset regulation condition, the current of the lamplight with the corresponding relation with the pressure position information is regulated.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present application further provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a computer readable storage medium, where the computer program, when executed by a processor, can perform a light control method provided by the above methods, where the method includes: and obtaining pressure information of the floors, wherein the pressure information comprises pressure position information, the pressure position information is information corresponding to the position where the pressure changes in each floor divided according to a preset division rule, and under the condition that the pressure information meets a preset regulation condition, the current of the lamplight with the corresponding relation with the pressure position information is regulated.
In still another aspect, the present application further provides a computer readable storage medium, where the computer readable storage medium includes a stored program, where the program executes a light control method provided by the above methods, and the method includes: and obtaining pressure information of the floors, wherein the pressure information comprises pressure position information, the pressure position information is information corresponding to the position where the pressure changes in each floor divided according to a preset division rule, and under the condition that the pressure information meets a preset regulation condition, the current of the lamplight with the corresponding relation with the pressure position information is regulated.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. A method of controlling light, the method comprising:
acquiring pressure information of floors, wherein the pressure information comprises pressure position information, and the pressure position information is information corresponding to the position where the pressure changes in each floor divided according to a preset division rule;
and under the condition that the pressure information meets the preset regulation condition, regulating the current of the lamplight with the corresponding relation with the pressure position information.
2. The light control method of claim 1, wherein the pressure information further comprises pressure value change information;
before the step of adjusting the current of the lamp light having a correspondence with the pressure position information, the method further comprises:
And under the condition that the pressure position information meets the preset area condition and the pressure value change information meets the preset pressure value condition, determining that the pressure information meets the preset regulation condition.
3. The light control method of claim 2, wherein prior to the step of obtaining pressure information for the floor, the method further comprises:
and executing the step of acquiring the pressure information of the floor under the condition that the environmental light intensity meets the preset light intensity condition.
4. The light control method according to claim 1, wherein the pressure information further includes a number of pressure changes, wherein the number of pressure changes is a number of changes of the pressure of the same area range within a preset time period;
before the step of adjusting the current of the lamp light having a correspondence with the pressure position information, the method further comprises:
and under the condition that the pressure change times meet the preset times conditions, determining that the pressure information meets the preset adjusting conditions.
5. A light control method as recited in any one of claims 1-4, wherein prior to said step of adjusting the current of the light having a correspondence with said pressure position information, said method further comprises:
Determining corresponding current user information according to the pressure information;
determining current information according to the current user information and the corresponding relation between the pre-stored user information and the current information;
the step of adjusting the current of the lamplight corresponding to the pressure position information comprises the following steps:
and adjusting the current of the lamplight with the corresponding relation with the pressure position information based on the current information.
6. A light control method as recited in any one of claims 1-4, wherein prior to said step of adjusting the current of the light having a correspondence with said pressure position information, said method further comprises:
and inputting the pressure information into a pre-trained pressure model to obtain information to be used, wherein the pressure model is a model trained based on sample information.
7. The light control method of claim 6, wherein the information to be used comprises an adjustment sequence and light information to be adjusted, wherein the light information to be adjusted comprises current information to be adjusted and position information to be adjusted;
the step of adjusting the current of the lamplight corresponding to the pressure position information comprises the following steps:
And sequentially adjusting the current of the lamplight of the position information to be adjusted based on the current information to be adjusted according to the adjustment sequence.
8. A light control device, the device comprising:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring pressure information of floors, the pressure information comprises pressure position information, and the pressure position information is information corresponding to the position where the pressure changes in each floor divided according to a preset division rule;
and the adjusting module is used for adjusting the current of the lamplight with the corresponding relation with the pressure position information under the condition that the pressure information meets the preset adjusting condition.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 7 by means of the computer program.
CN202310339470.XA 2023-03-31 2023-03-31 Light control method and device, storage medium and electronic device Pending CN116546700A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310339470.XA CN116546700A (en) 2023-03-31 2023-03-31 Light control method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310339470.XA CN116546700A (en) 2023-03-31 2023-03-31 Light control method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN116546700A true CN116546700A (en) 2023-08-04

Family

ID=87444310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310339470.XA Pending CN116546700A (en) 2023-03-31 2023-03-31 Light control method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116546700A (en)

Similar Documents

Publication Publication Date Title
US20210160326A1 (en) Utilizing context information of environment component regions for event/activity prediction
US20210288832A1 (en) Automatically learning and controlling connected devices
US10535349B2 (en) Controlling connected devices using a relationship graph
CN108419453B (en) Lighting lamp control method and device and lighting lamp
US11243502B2 (en) Interactive environmental controller
CN105700389B (en) Intelligent home natural language control method
CN105425602A (en) Automatic control method and apparatus for household appliance
CN110578994A (en) operation method and device
CN111338227B (en) Electronic appliance control method and control device based on reinforcement learning and storage medium
WO2019199365A2 (en) Utilizing context information of environment component regions for event/activity prediction
CN106922058B (en) Control method, the device and system of lamps and lanterns
CN113359503B (en) Equipment control method and related device
CN116088334A (en) Smart home device joint control method, storage medium and electronic device
CN116546700A (en) Light control method and device, storage medium and electronic device
CN112034727A (en) Smart scene-based home equipment management method and smart home control device
CN114915514B (en) Method and device for processing intention, storage medium and electronic device
CN115327934A (en) Intelligent household scene recommendation method and system, storage medium and electronic device
CN115167161A (en) Method and device for determining association relation of lamp, storage medium and electronic device
CN116400608A (en) Equipment control method, storage medium and electronic device
CN106774783B (en) Energy-saving control method and server
CN112524766B (en) Control method and device of air conditioning equipment and electronic device
WO2018033715A1 (en) Improved control device
CN118170038A (en) Smart home control method, control model, storage medium and electronic device
CN117914635A (en) Method and device for controlling smart home equipment to leave home based on vehicle terminal
CN113848748A (en) Intelligent home control method and intelligent home system

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