Methods, devices, and electronic equipment for adjusting indoor illuminance
By using a light intensity sensor to calculate the average illuminance based on the window azimuth angle and the room area ratio, and controlling the opening and closing of the curtains, the problem of mismatch between the timing of shading and the actual light intensity in existing shading solutions is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-21
- Publication Date
- 2026-04-07
AI Technical Summary
Existing shading solutions cannot accurately sense indoor lighting conditions, resulting in a mismatch between the timing of shading and the actual lighting conditions, which affects the user experience.
Illuminance is collected by a light sensor, and the average illuminance in the room is calculated by combining the window azimuth angle and the room area ratio. The opening and closing of the curtains are then controlled based on the average illuminance to adjust the indoor illuminance.
It enables precise adjustment of indoor illuminance based on actual lighting conditions, thus improving the user experience.
Smart Images

Figure CN119655604B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart terminal technology, and in particular to a method, apparatus and electronic device for adjusting indoor illuminance. Background Technology
[0002] Users have certain requirements for the lighting in their homes. Typically, they increase the window area, such as by using floor-to-ceiling windows, to expand indoor lighting. However, high levels of natural light can lead to problems such as furniture being exposed to direct sunlight, excessive sunlight causing room temperature to rise, and / or high air conditioning energy consumption. Furthermore, strong direct sunlight can affect people's skin and visual health, significantly reducing human comfort.
[0003] One existing sunshade solution involves opening and closing curtains at fixed times, but this solution cannot sense the actual weather conditions, resulting in curtains being closed on cloudy days, leading to a poor user experience.
[0004] Another existing shading solution uses a fixed threshold set by a light intensity sensor to trigger shading. Specifically, the threshold of the light intensity sensor is set to a fixed value, and shading is triggered when the light intensity collected by the sensor exceeds this fixed threshold. However, the timing of shading using this solution differs from the actual indoor lighting conditions, resulting in a significant difference in the shading experience. Summary of the Invention
[0005] This application provides a method, apparatus, and electronic device for adjusting indoor illuminance. It also provides a computer-readable storage medium to acquire the average illuminance in a room by collecting illuminance data from a illuminance sensor, and then control the opening or closing of curtains based on the average illuminance, thereby adjusting the illuminance in the room and improving the user experience.
[0006] In a first aspect, embodiments of this application provide a method for adjusting indoor illuminance, comprising: acquiring a first illuminance collected by an illuminance sensor; wherein the illuminance sensor is installed on a window of a room; determining an average illuminance in the room based on the window azimuth angle, the first illuminance, and the area ratio of the window to the room; and opening or closing the curtains based on the average illuminance in the room and the current opening degree of the curtains installed on the window, so as to adjust the illuminance in the room.
[0007] In the above-mentioned method for adjusting indoor illuminance, after the electronic device acquires the first illuminance collected by the illuminance sensor, it determines the average illuminance in the room based on the window azimuth angle, the first illuminance, and the area ratio of the window to the room. Then, based on the average illuminance in the room and the current opening degree of the curtains installed on the window, the electronic device opens or closes the curtains to adjust the illuminance in the room. Thus, the average illuminance in the room can be obtained through the illuminance collected by the illuminance sensor, and the opening or closing of the curtains can be controlled based on the average illuminance in the room, thereby adjusting the illuminance in the room and improving the user experience.
[0008] In one possible implementation, determining the average illuminance in the room based on the window azimuth angle, the first illuminance, and the area ratio of the window to the room includes: determining the average illuminance of direct light and diffused light in the room based on the window azimuth angle, the first illuminance, the area ratio of the window to the room, and the diffuse reflection coefficient; determining the average illuminance of scattered light in the room based on the window azimuth angle, the first illuminance, the area ratio of the window to the room, and the scattering coefficient; and determining the average illuminance in the room based on the average illuminance of direct light and diffused light in the room, and the average illuminance of scattered light in the room.
[0009] In one possible implementation, adjusting the room's illuminance by opening or closing the curtains based on the room's average illuminance and the current opening / closing degree of the curtains installed on the window includes: determining the illuminance range to which the room's average illuminance belongs, and obtaining the curtain opening / closing degree range corresponding to the illuminance range; if the current opening / closing degree of the curtains is not within the curtain opening / closing degree range, then when the current opening / closing degree is less than the minimum value of the curtain opening / closing degree range, obtaining the current time and opening the curtains based on the current time; when the current opening / closing degree is greater than the maximum value of the curtain opening / closing degree range, closing the curtains so that the curtain opening / closing degree falls within the curtain opening / closing degree range.
[0010] In one possible implementation, before determining the average illuminance in the room based on the window azimuth angle, the first illuminance, and the area ratio of the window to the room, the method further includes: acquiring a second illuminance collected by the illuminance sensor within a predetermined time period; filtering the second illuminance to obtain a third illuminance, and acquiring the acquisition time of the third illuminance; and determining the window azimuth angle based on the third illuminance, the acquisition time of the third illuminance, the latitude and longitude of the room location, and the time zone to which the latitude and longitude belong.
[0011] In one possible implementation, at least two illuminance sensors are installed on windows facing the same direction in the room; the acquisition of the first illuminance collected by the illuminance sensors includes: acquiring the maximum value of the illuminance collected by the at least two illuminance sensors installed on windows facing the same direction.
[0012] Secondly, embodiments of this application provide an indoor illuminance adjustment device, which is included in an electronic device and has the function of implementing the electronic device behavior in the first aspect and its possible implementations. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-described functions. For example, an acquisition module, a determination module, and an adjustment module, etc.
[0013] Thirdly, embodiments of this application provide an electronic device, including: one or more processors; a memory; multiple application programs; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform the method provided in the first aspect.
[0014] It should be understood that the second and third aspects of the embodiments of this application are consistent with the technical solutions of the first aspect of the embodiments of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be described again.
[0015] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the method provided in the first aspect.
[0016] Fifthly, embodiments of this application provide a computer program that, when executed by a computer, performs the method provided in the first aspect.
[0017] In one possible design, the program in the fifth aspect can be stored wholly or partially on a storage medium packaged with the processor, or it can be stored wholly or partially on a memory not packaged with the processor. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application;
[0019] Figures 2(a) to 2(b) This is a schematic diagram of the installation of a light intensity sensor according to one embodiment of this application;
[0020] Figure 3A flowchart illustrating a method for adjusting indoor illuminance according to an embodiment of this application;
[0021] Figure 4 A flowchart illustrating a method for adjusting indoor illuminance according to another embodiment of this application;
[0022] Figure 5 This is a schematic diagram illustrating the effect of outdoor sunlight on indoor lighting in one embodiment of this application.
[0023] Figure 6 A flowchart illustrating a method for adjusting indoor illuminance provided in another embodiment of this application;
[0024] Figure 7 A schematic diagram of the structure of an electronic device provided in another embodiment of this application. Detailed Implementation
[0025] The terminology used in the implementation section of this application is for the purpose of explaining specific embodiments of this application only, and is not intended to limit this application.
[0026] The main purpose of shading is to ensure that the actual indoor illuminance is less than the set threshold. However, due to the presence of indoor lighting and the superposition of outdoor incident light, the light source composition is complex, making it difficult to measure the actual indoor illuminance through simple indoor illuminance collection.
[0027] Based on the above problems, this application provides a method for adjusting indoor illuminance. Outdoor illuminance is collected by an illuminance sensor and used as the basic input parameter for determining indoor illuminance. The outdoor illuminance data is combined with the window azimuth angle and the area ratio of the window to the room (also known as the "window-to-room ratio") to calculate the indoor average illuminance. The indoor average illuminance triggers a shading operation.
[0028] The indoor illuminance adjustment method provided in this application embodiment can be applied to electronic devices, wherein the electronic device can be a whole-house smart control unit, which is generally installed in the home's electrical distribution box. Alternatively, the electronic device can be any other device capable of whole-house smart control; this embodiment does not limit the form of the electronic device.
[0029] For example, Figure 1 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application, as shown below. Figure 1As shown, the electronic device 100 may include a processor 110 and a communication interface 120. Optionally, the electronic device 100 may also include a memory 130. The processor 110, the communication interface 120, and the memory 130 can communicate with each other through internal connection paths to transmit control and / or data signals. The memory 130 is used to store computer programs, and the processor 110 is used to retrieve and run the computer programs from the memory 130.
[0030] The processor 110 and memory 130 can be combined into a single processing device, but more commonly they are independent components. The processor 110 is used to execute the program code stored in the memory 130. In specific implementations, the memory 130 can be integrated into the processor 110, or it can be independent of the processor 110.
[0031] In addition, to further enhance the functionality of the electronic device 100, the electronic device 100 may also include one or more of an input unit 160 and a display unit 170.
[0032] Optionally, the electronic device 100 may further include a power supply 150 for providing power to various devices or circuits in the electronic device 100.
[0033] It should be understood that Figure 1 The processor 110 in the illustrated electronic device 100 can be a system-on-a-chip (SoC). The processor 110 may include a central processing unit (CPU) and may further include other types of processors, such as a graphics processing unit (GPU).
[0034] For ease of understanding, the following embodiments of this application will be described using the following methods: Figure 1 Taking the electronic device with the structure shown as an example, and in conjunction with the accompanying drawings and application scenarios, the method for adjusting indoor illuminance provided in this application embodiment will be specifically described.
[0035] The indoor illuminance adjustment method provided in this application uses the illuminance collected by the illuminance sensor as the basic input parameter, therefore, illuminance sensors need to be installed on the windows of the room. Specifically, as shown in Figure 2(a), two illuminance sensors need to be installed on one window to collect outdoor illuminance; as shown in Figure 2(b), if there are multiple windows facing the same direction in the room, then two illuminance sensors are installed in the same direction. Figures 2(a) to 2(b) This is a schematic diagram of the installation of a light intensity sensor provided in one embodiment of this application.
[0036] The method for adjusting indoor illuminance provided in the embodiments of this application will be described below.
[0037] Figure 3 The flowchart illustrates a method for adjusting indoor illuminance according to an embodiment of this application, as follows: Figure 3 As shown, the above-mentioned method for adjusting indoor illuminance may include:
[0038] Step 301: Electronic device 100 acquires the first illuminance value collected by the illuminance sensor. The illuminance sensor is installed on the window of the room.
[0039] Specifically, when at least two illuminance sensors are installed on windows facing the same direction in a room, the electronic device 100 can obtain the first illuminance collected by the illuminance sensors as follows: the electronic device 100 can obtain the maximum value of the illuminance collected by the at least two illuminance sensors installed on windows facing the same direction.
[0040] Step 302: The electronic device 100 determines the average illuminance in the room based on the window azimuth angle, the first illuminance, and the area ratio of the window to the room.
[0041] Step 303: The electronic device 100 opens or closes the curtains based on the average illuminance in the room and the current opening / closing degree of the curtains installed on the windows, so as to adjust the illuminance in the room.
[0042] Specifically, the electronic device 100 adjusts the room's illuminance by opening or closing the curtains based on the average illuminance in the room and the current opening / closing degree of the curtains installed on the windows. This can be achieved by: determining the illuminance range to which the average illuminance in the room belongs, and obtaining the curtain opening / closing degree range corresponding to the illuminance range; if the current opening / closing degree of the curtains is not within the curtain opening / closing degree range, then when the current opening / closing degree of the curtains is less than the minimum value of the curtain opening / closing degree range, obtaining the current time and opening the curtains based on the current time; when the current opening / closing degree of the curtains is greater than the maximum value of the curtain opening / closing degree range, closing the curtains so that the opening / closing degree of the curtains falls within the curtain opening / closing degree range.
[0043] For example, assuming the electronic device 100 determines that the average illuminance in the room belongs to the illuminance range [9000, 20000), then the electronic device 100 can obtain the curtain opening / closing range [10%, 30%] corresponding to the illuminance range. If the current opening / closing degree of the curtain is 40%, then it can be determined that the current opening / closing degree of the curtain is not within the above curtain opening / closing degree range, and the current opening / closing degree of the curtain is greater than the maximum value of the above curtain opening / closing degree range. In this case, the curtain can be closed to make the opening / closing degree of the curtain fall into the above curtain opening / closing degree range. However, if the current opening / closing degree of the curtain is 8%, then it can be determined that the current opening / closing degree of the curtain is not within the above curtain opening / closing degree range, and the current opening / closing degree of the curtain is less than the minimum value of the above curtain opening / closing degree range. In this case, the current time can be obtained, and the curtain can be opened according to the current time to make the opening / closing degree of the curtain fall into the above curtain opening / closing degree range. It should be noted that opening the curtains based on the current time can be done by: pre-setting the time period during which the curtains can be opened, for example, setting the time period during which the curtains can be opened to 7:00 to 17:00. If the current time is within the above time period, the curtains can be opened, and if the current time is not within the above time period, the curtains will not be opened.
[0044] In the above-mentioned method for adjusting indoor illuminance, after the electronic device 100 acquires the first illuminance collected by the illuminance sensor, it determines the average illuminance in the room based on the window azimuth angle, the first illuminance, and the area ratio of the window to the room. Then, based on the average illuminance in the room and the current opening / closing degree of the curtains installed on the window, the electronic device 100 opens or closes the curtains to adjust the illuminance in the room. Thus, the average illuminance in the room can be obtained through the illuminance collected by the illuminance sensor, and the opening or closing of the curtains can be controlled based on the average illuminance in the room, thereby adjusting the illuminance in the room and improving the user experience.
[0045] Figure 4 A flowchart of a method for adjusting indoor illuminance provided in another embodiment of this application is shown below. Figure 4 As shown, this application Figure 3 In the illustrated embodiment, step 302 may include:
[0046] Step 401: The electronic device 100 determines the average illuminance of direct light and diffuse light in the room based on the window azimuth angle, the first illuminance, the area ratio of the window to the room, and the diffuse reflection coefficient; and determines the average illuminance of scattered light in the room based on the window azimuth angle, the first illuminance, the area ratio of the window to the room, and the scattering coefficient.
[0047] Step 402, the electronic device 100 determines the average illuminance in the room based on the average illuminance of direct light and diffused light in the room, and the average illuminance of scattered light in the room.
[0048] Specifically, the average illuminance in the room can be the sum of the average illuminance of direct light and diffused light in the room, and the average illuminance of scattered light in the room.
[0049] Figure 5 This is a schematic diagram illustrating the effect of outdoor sunlight on indoor lighting in one embodiment of this application. See also... Figure 5 The influence of outdoor sunlight on indoor lighting can be decomposed into three parameters: direct light, outdoor diffused light, and indoor diffuse reflection. Therefore, to determine the average illuminance in a room, it is necessary to consider the influence of these three parameters on the average illuminance in the room.
[0050] 1. Average illuminance of direct and diffused light in a room
[0051] Specifically, the window direction can be set to d. win At time t, the sun's orientation is d. sun Additionally, the orientation of the plane of interest can be set to d. plain After obtaining the value I from the light intensity sensor... lux with I env Then, the solar intensity at time t can be obtained as:
[0052] I sun = (I lux - I env ) / cos(d win ,d sun (1)
[0053] In equation (1), I sun Let I be the intensity of sunlight at time t; lux The first illuminance value collected by the illuminance sensor indicates the illuminance at the sunlit location; I env I represents the illuminance in the shaded area. env Based on I lux Obtained proportionally, in practical scenarios, this proportion can typically be 0.3; cos(d win ,d sun ) is the cosine of the angle between the direction of the window and the direction of the sun, cos(d win ,d sun The value of ) can be obtained from the window azimuth angle.
[0054] Based on this, the light intensity I produced by direct light on the plane of interest can be obtained. plainwin :
[0055] I plainwin = I sun · cos(d sun ,d plain (2)
[0056] At this point, since the light cannot directly act on the entire plane, the area S corresponding to the above intensity is... plainwin It can be shown in equation (3).
[0057] S plainwin = S win * tan(d win ,d sun (3)
[0058] In equation (3), S win For the area of the window; see Figure 5 S plainwin It can be Figure 5 The area of the plane shown in Figure 51.
[0059] Since the light intensity produced by direct sunlight is reflected to some extent throughout the room, based on the diffuse reflection coefficient c1 = 0.3 and the theory of diffuse reflection of light, the average illuminance I of direct and diffuse light in the room can be calculated. ave1 :
[0060]
[0061] In equation (4), S room The area of the room. The ratio of window area to room area. The value of is generally in Between, cos(d) win ,d sun ) is the cosine of the angle between the direction of the window and the direction of the sun, cos(d win ,d sun The value of f(S) can be obtained from the window azimuth angle; plainwin S room The ratio of the area of the light spot formed by direct sunlight entering the room through the window to the area of the room.
[0062] 2. Average illuminance of diffused light in the room
[0063] Scattered light contributes to indoor lighting in a diffused manner; therefore, the average illuminance I of scattered light in a room is... ave2 It can be calculated according to formula (5).
[0064]
[0065] In equation (5), c2 is the scattering coefficient, and the value of c2 can be 0.4; f(S room S win () represents the ratio of room area to window area.
[0066] After obtaining the average illuminance of direct light and diffuse light in the room, and the average illuminance of scattered light in the room, the electronic device 100 determines the average illuminance in the room based on the average illuminance of direct light and diffuse light in the room, and the average illuminance of scattered light in the room, as shown in Equation (6).
[0067]
[0068] Figure 6 A flowchart of a method for adjusting indoor illuminance provided in another embodiment of this application is shown below. Figure 6 As shown, this application Figure 3 In the illustrated embodiment, before step 302, the following may also be included:
[0069] Step 601: Electronic device 100 acquires the second illuminance collected by illuminance sensor within a predetermined time period.
[0070] The aforementioned predetermined time period can be a period of time prior to the current time, and can be set by the user in the specific implementation. This embodiment does not limit the aforementioned predetermined time period.
[0071] Step 602: The electronic device 100 filters the second illuminance to obtain the third illuminance and acquires the acquisition time of the third illuminance.
[0072] In some examples, the electronic device 100 can filter the maximum illuminance from the second illuminance as the third illuminance and obtain the acquisition time of the third illuminance. Of course, this is only one implementation of this embodiment and does not constitute a limitation on this embodiment. This embodiment does not limit the method of filtering to obtain the third illuminance.
[0073] Step 603: The electronic device 100 determines the window azimuth angle based on the third illuminance, the time of the third illuminance acquisition, the latitude and longitude of the room's location, and the time zone to which the latitude and longitude belong.
[0074] In this embodiment, the aforementioned window azimuth angle is the solar azimuth angle. In specific implementation, the electronic device 100 can calculate the aforementioned window azimuth angle using the ecliptic coordinate system in the celestial coordinate system based on the third illuminance, the time of the third illuminance acquisition, the latitude and longitude of the location of the aforementioned room, and the time zone to which the aforementioned latitude and longitude belong.
[0075] It is understood that some or all of the steps or operations in the above embodiments are merely examples, and other operations or variations thereof can be performed in the embodiments of this application. Furthermore, the steps may be performed in different orders as presented in the above embodiments, and it is not necessary to perform all the operations in the above embodiments.
[0076] It is understood that, in order to achieve the above-mentioned functions, electronic devices include hardware and / or software modules that perform the respective functions. Based on the algorithm steps of the examples described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0077] This embodiment can divide the electronic device into functional modules according to the above method embodiment. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0078] Figure 7 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application. In the case where functional modules are divided according to their respective functions, Figure 7 A schematic diagram of a possible composition of the electronic device 700 involved in the above embodiments is shown, such as... Figure 7 As shown, the electronic device 700 may include: an acquisition module 701, a determination module 702, and an adjustment module 703;
[0079] The acquisition module 701 is used to acquire the first illuminance collected by the illuminance sensor; wherein the illuminance sensor is installed on the window of the room.
[0080] The determining module 702 is used to determine the average illuminance in the room based on the window azimuth angle, the first illuminance, and the area ratio of the window to the room.
[0081] The adjustment module 703 is used to open or close the curtains based on the average illuminance in the room and the current opening / closing degree of the curtains installed on the window, so as to adjust the illuminance in the room.
[0082] In this embodiment, the determining module 702 is specifically used to determine the average illuminance of direct light and diffuse light in the room based on the window azimuth angle, the first illuminance, the area ratio of the window to the room, and the diffuse reflection coefficient; and to determine the average illuminance of scattered light in the room based on the window azimuth angle, the first illuminance, the area ratio of the window to the room, and the scattering coefficient; and to determine the average illuminance in the room based on the average illuminance of direct light and diffuse light in the room, and the average illuminance of scattered light in the room.
[0083] Furthermore, the determining module 702 is also used to determine the illuminance range to which the average illuminance in the aforementioned room belongs;
[0084] The acquisition module 701 is also used to acquire the curtain opening / closing degree range corresponding to the above illuminance range;
[0085] The adjustment module 703 is specifically used to: when the current opening degree of the curtain is not within the opening degree range of the curtain, if the current opening degree is less than the minimum value of the opening degree range of the curtain, obtain the current time and open the curtain according to the current time; if the current opening degree is greater than the maximum value of the opening degree range of the curtain, close the curtain so that the opening degree of the curtain falls into the opening degree range of the curtain.
[0086] Furthermore, the acquisition module 701 is also used to acquire a second illuminance collected by the illuminance sensor within a predetermined time period before the determination module 702 determines the average illuminance in the room; to filter the second illuminance to obtain a third illuminance, and to acquire the acquisition time of the third illuminance.
[0087] The determination module 702 is also used to determine the window azimuth angle based on the third illuminance, the time of the third illuminance acquisition, the latitude and longitude of the location of the room, and the time zone to which the latitude and longitude belong.
[0088] In this embodiment, at least two illuminance sensors can be installed on windows facing the same direction in the room; thus, the acquisition module 701 is specifically used to acquire the maximum value of the illuminance collected by the at least two illuminance sensors installed on windows facing the same direction.
[0089] It should be noted that this application Figures 3-6 All relevant content of each step involved in the method embodiment shown can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0090] The electronic device 700 provided in this embodiment is used to execute this application. Figures 3-6 The indoor illuminance adjustment method provided in the illustrated embodiment can achieve the same effect as the method described above.
[0091] It should be understood that electronic device 700 can correspond to Figure 1 The electronic device 100 shown. The functions of the acquisition module 701, the determination module 702, and the adjustment module 703 can be derived by… Figure 1 The processor 110 in the electronic device 100 shown is implemented.
[0092] When using integrated units, the electronic device 700 may include a processing module, a storage module, and a communication module.
[0093] The processing module can be used to control and manage the actions of the electronic device 700. For example, it can support the electronic device 700 in executing the steps performed by the acquisition module 701, the determination module 702, and the adjustment module 703. The storage module can support the electronic device 700 in storing program code and data. The communication module can support communication between the electronic device 700 and other devices.
[0094] The processing module can be a processor or controller, which can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as radio frequency circuitry, a Bluetooth chip, and / or a Wi-Fi chip.
[0095] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device 700 involved in this embodiment can be a device having... Figure 1 The device with the structure shown.
[0096] This application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute this application. Figures 3-6 The method provided in the illustrated embodiment.
[0097] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute this application. Figures 3-6 The method provided in the illustrated embodiment.
[0098] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0099] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0100] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0101] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0102] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A method for adjusting indoor illuminance, characterized in that, include: The first illuminance is acquired by a illuminance sensor; wherein the illuminance sensor is installed on the window of the room. The average illuminance in the room is determined based on the window azimuth angle, the first illuminance, and the area ratio of the window to the room. Based on the average illuminance in the room and the current opening / closing degree of the curtains installed on the window, the curtains are opened or closed to adjust the illuminance in the room. The step of determining the average illuminance in the room based on the window azimuth angle, the first illuminance, and the area ratio of the window to the room includes: The average illuminance of direct light and diffuse light in the room is determined based on the window azimuth angle, the first illuminance, the area ratio of the window to the room, and the diffuse reflection coefficient; and the average illuminance of diffuse light in the room is determined based on the window azimuth angle, the first illuminance, the area ratio of the window to the room, and the scattering coefficient. The average illuminance in the room is determined based on the average illuminance of the direct light and diffused light in the room, and the average illuminance of the scattered light in the room.
2. The method according to claim 1, characterized in that, The step of opening or closing the curtains based on the average illuminance in the room and the current opening / closing degree of the curtains installed on the window to adjust the illuminance in the room includes: Determine the illuminance range to which the average illuminance in the room belongs, and obtain the curtain opening / closing range corresponding to the illuminance range; If the current opening degree of the curtain is not within the curtain opening degree range, then when the current opening degree is less than the minimum value of the curtain opening degree range, the current time is obtained, and the curtain is opened according to the current time. When the current opening degree is greater than the maximum value of the curtain opening degree range, the curtain is closed so that the opening degree of the curtain falls into the curtain opening degree range.
3. The method according to claim 1, characterized in that, Before determining the average illuminance in the room based on the window azimuth angle, the first illuminance, and the area ratio of the window to the room, the method further includes: The second illuminance collected by the illuminance sensor within a predetermined time period is obtained; The second illuminance is filtered to obtain the third illuminance, and the acquisition time of the third illuminance is obtained; The window azimuth angle is determined based on the third illuminance, the time of collection of the third illuminance, the latitude and longitude of the room location, and the time zone to which the latitude and longitude belong.
4. The method according to any one of claims 1-3, characterized in that, At least two light intensity sensors are installed on the windows facing the same direction in the room; The first illuminance collected by the illuminance sensor includes: Obtain the maximum illuminance value from at least two illuminance sensors installed on windows facing the same direction.
5. A device for adjusting indoor illuminance, characterized in that, include: An acquisition module is used to acquire the first illuminance collected by a illuminance sensor; wherein the illuminance sensor is installed on the window of the room; The determining module is used to determine the average illuminance in the room based on the window azimuth angle, the first illuminance, and the area ratio of the window to the room. The adjustment module is used to open or close the curtains based on the average illuminance in the room and the current opening degree of the curtains installed on the window, so as to adjust the illuminance in the room. Specifically, the determining module is used to determine the average illuminance of direct light and diffused light in the room based on the window azimuth angle, the first illuminance, the area ratio of the window to the room, and the diffuse reflection coefficient; and to determine the average illuminance of scattered light in the room based on the window azimuth angle, the first illuminance, the area ratio of the window to the room, and the scattering coefficient; and to determine the average illuminance in the room based on the average illuminance of direct light and diffused light in the room, and the average illuminance of scattered light in the room.
6. An electronic device, characterized in that, include: One or more processors; Memory; Multiple applications; And one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs including instructions that, when executed by the electronic device, cause the electronic device to perform the method as described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1-4.
Citation Information
Patent Citations
Intelligent energy-saving control system
CN108663941A