Automatic dimming methods, devices, equipment and storage media

By selecting effective adjustable lamps, calculating spatial distance weights, and dynamically adjusting the PID control coefficient, the problem of poor adaptability of traditional dimming methods is solved, achieving adaptive lamp brightness adjustment and improving the accuracy and flexibility of dimming.

CN123124178APending Publication Date: 2026-11-17MIDEA INTELLIGENT LIGHTING & CONTROLS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611200076.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-07
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Traditional automatic dimming methods for lighting fixtures cannot adaptively adjust based on the brightness of the fixtures, resulting in inconsistent performance of the system in different spatial layouts and an inability to flexibly respond to changes in ambient light.

Method used

By acquiring ambient light intensity, luminaire status information, and brightness, effective adjustable luminaires are selected, spatial distance weight and comprehensive spatial efficiency are calculated, the PID control coefficient is dynamically adjusted, and the adjustment step size is calculated in combination with the current system sensitivity to achieve adaptive adjustment of luminaire brightness.

Benefits of technology

It achieves adaptive dimming under different spatial layouts and lighting conditions, improving the accuracy and flexibility of dimming and maintaining a stable and suitable ambient illuminance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123124178A_ABST
    Figure CN123124178A_ABST
Patent Text Reader

Abstract

This application discloses an automatic dimming method, apparatus, device, and storage medium, relating to the field of automatic dimming technology. The method includes: acquiring the current ambient light intensity value, the status information of each lamp, and the current brightness of each lamp; determining the current illuminance error based on the current ambient light intensity value; filtering lamps based on the current illuminance error, online status, on / off status, and current brightness to obtain effectively adjustable lamps, and determining the current system sensitivity based on the effectively adjustable lamps; calculating spatial distance weights based on the effectively adjustable lamps, and determining the comprehensive spatial efficiency based on the spatial distance weights; dynamically adjusting the PID control coefficient based on the current illuminance error and the comprehensive spatial efficiency to obtain an illuminance range; calculating the adjustment step size based on the illuminance range, current illuminance error, current system sensitivity, spatial distance weights, and the number of effectively adjustable lamps; and adjusting the brightness of the effectively adjustable lamps based on the adjustment step size.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automatic dimming technology, and in particular to automatic dimming methods, apparatus, devices and storage media. Background Technology

[0002] Maintaining stable and appropriate illuminance is crucial for visual comfort and work efficiency. Traditional lighting control relies on manual adjustment or timed switching, which cannot respond to changes in natural light. To achieve automatic dimming, current dimming solutions mainly adjust each luminaire using fixed adjustment coefficients, resulting in inconsistent system performance in different spatial layouts and an inability to flexibly adapt to the brightness of the luminaires. Summary of the Invention

[0003] The main objective of this application is to provide an automatic dimming method, apparatus, device, and storage medium, which aims to solve the technical problem that current automatic dimming methods for lamps cannot adaptively adjust according to the brightness of the lamps.

[0004] To achieve the above objectives, this application proposes an automatic dimming method, the automatic dimming method comprising: Obtain the current ambient light level, the status information of each lamp, and the current brightness of each lamp; The current illuminance error is determined based on the current ambient light intensity value; The effective adjustable lamps are selected by filtering the lamps based on the current illuminance error, the status information, and the current brightness, and the current system sensitivity is determined based on the effective adjustable lamps. Calculate the spatial distance weight based on the effective adjustable luminaires, and determine the overall spatial efficiency based on the spatial distance weights; The PID control coefficient is dynamically adjusted based on the current illuminance error and the overall space efficiency to obtain the illuminance range. The adjustment step size is calculated based on the illuminance range, the current illuminance error, the current system sensitivity, the spatial distance weight, and the number of effective adjustable luminaires. The brightness of the adjustable lamp is adjusted according to the adjustment step size.

[0005] In one embodiment, the step of dynamically adjusting the PID control coefficient based on the current illuminance error and the overall space efficiency to obtain the illuminance range includes: The PID adjustment coefficient is dynamically adjusted by using the current illuminance error and the overall space efficiency to obtain the adjusted PID coefficient. The illuminance range value is calculated based on the adjusted PID coefficients.

[0006] In one embodiment, the step of dynamically adjusting the PID control coefficient based on the current illuminance error and the overall space efficiency to obtain the adjusted PID coefficient includes: Obtain the reference proportional gain, integral gain, reference differential gain, proportional space adjustment coefficient, initial pulse coefficient, and differential space adjustment coefficient; The proportional gain is calculated based on the baseline proportional gain, the proportional space adjustment coefficient, and the overall space efficiency. The current proportional term coefficient is adjusted based on the proportional gain and the current illuminance error to obtain the adjusted proportional term coefficient; Calculate the integral accumulation based on the initial pulse coefficient and the current illuminance error; The coefficient of the current integral term is adjusted based on the integral accumulation and the integral gain to obtain the adjusted integral term coefficient; The differential gain is calculated based on the reference differential gain, the differential space adjustment coefficient, and the overall space efficiency; The current differential term coefficient is adjusted based on the differential gain and the difference between the current illuminance error and the historical illuminance error to obtain the adjusted differential term coefficient. The adjusted PID coefficients are obtained based on the adjusted proportional term coefficient, the adjusted integral term coefficient, and the adjusted differential term coefficient.

[0007] In one embodiment, the step of calculating the adjustment step size based on the illuminance threshold, the current illuminance error, the current system sensitivity, the spatial distance weight, and the number of effective adjustable luminaires includes: The basic unit adjustment amount is calculated based on the number of effective adjustable lamps, the illuminance range, and the current system sensitivity. Obtain the target illuminance value, and calculate the deviation ratio based on the target illuminance value and the current illuminance error; The adjustment step size is determined based on the deviation ratio, the spatial distance weight, the number of effective adjustable lamps, and the basic unit adjustment amount.

[0008] In one embodiment, the step of determining the adjustment step size based on the deviation ratio, the spatial distance weight, the number of effective adjustable lamps, and the basic unit adjustment amount includes: Obtain the correspondence between the deviation ratio and the step size adjustment threshold and damping factor; The current step size adjustment threshold and the current damping factor are determined based on the correspondence and the deviation ratio. The initial step size is calculated based on the current damping factor, the basic unit adjustment amount, the spatial distance weight, and the number of effective adjustable lamps. The initial step size is adjusted according to the current step size adjustment threshold to obtain the adjustment step size.

[0009] In one embodiment, the step of filtering the luminaires to obtain effective adjustable luminaires based on the current illuminance error, the state information, and the current brightness includes: The online status and on / off status of each lamp are obtained based on the status information. The online-to-offline lamps are filtered to obtain candidate lamps; Based on the current illuminance error, the switch status, and the current brightness, the candidate lamps are screened to obtain effective adjustable lamps.

[0010] In one embodiment, the step of filtering the candidate luminaires based on the current illuminance error, the switching state, and the current brightness to obtain effective adjustable luminaires includes: The direction of lamp adjustment is determined based on the current illuminance error; When the lamp adjustment direction is to increase brightness, candidate lamps whose current brightness is the first brightness threshold are filtered out to obtain effective adjustable lamps; When the lamp adjustment direction is to dim, candidate lamps whose current brightness is the second brightness threshold are filtered to obtain effective adjustable lamps, wherein the first brightness threshold is greater than the second brightness threshold.

[0011] In one embodiment, the step of determining the current system sensitivity based on the effectively adjustable luminaire includes: Obtain the total historical brightness value of the effective adjustable luminaire and the historical ambient light brightness value; The change in brightness is calculated based on the current total brightness of the adjustable luminaire and the historical total brightness of the luminaires that have been turned on. The change in ambient illuminance is calculated based on the historical ambient illuminance value and the current ambient illuminance value. The current system sensitivity is calculated based on the changes in ambient illuminance and brightness.

[0012] In one embodiment, the step of calculating the current system sensitivity based on the change in ambient illuminance and the change in luminance includes: The observation sensitivity is calculated based on the changes in ambient illuminance and the changes in brightness. When the change in brightness is greater than or equal to a preset adjustment step size threshold and the change in ambient illuminance is greater than or equal to an environmental sensor resolution threshold, the current system sensitivity is calculated using a preset smoothing coefficient and the observation sensitivity.

[0013] In one embodiment, the step of determining the current system sensitivity based on the effectively adjustable luminaire includes: With the current dimming set to initial dimming, obtain the number of lights that are turned on in the effective adjustable luminaires and the average brightness of the effective adjustable luminaires; When the number of lights already turned on is greater than or equal to a preset number and the average brightness is greater than or equal to a preset brightness threshold, the current system sensitivity is calculated based on the current ambient light brightness value, the number of lights already turned on, and the average brightness.

[0014] In one embodiment, the step of calculating the spatial distance weight based on the effective adjustable luminaire and determining the overall spatial efficiency based on the spatial distance weight includes: Obtain the physical distance between the adjustable luminaire and the light sensing terminal, and set the initial space efficiency; The distance attenuation power is dynamically adjusted based on the initial spatial efficiency. Based on the physical distance and the dynamically adjusted distance attenuation power, the spatial distance weight of the effective adjustable luminaire is calculated. Calculate the remaining adjustable capacity of the effective adjustable luminaires; Using the spatial distance weight as the weight, the remaining adjustable capacity is weighted and summed to obtain the overall spatial efficiency.

[0015] In one embodiment, the step of adjusting the brightness of the effectively adjustable lamp according to the adjustment step size includes: The direction of lamp adjustment is determined based on the current illuminance error; The brightness of the effectively adjustable lamp is adjusted according to the lamp adjustment direction and the adjustment step size.

[0016] Furthermore, to achieve the above objectives, this application also proposes an automatic dimming device, which includes: The acquisition module is used to acquire the current ambient light intensity value, the status information of each lamp, and the current brightness of each lamp; The determination module is used to determine the current illuminance error based on the current ambient light intensity value; The filtering module is used to filter the lamps based on the current illuminance error, the status information, and the current brightness to obtain effective adjustable lamps, and to determine the current system sensitivity based on the effective adjustable lamps; The calculation module is used to calculate the spatial distance weight based on the effective adjustable luminaire, and determine the comprehensive spatial efficiency based on the spatial distance weight; The adjustment module is used to dynamically adjust the PID adjustment coefficient based on the current illuminance error and the overall space efficiency to obtain the illuminance range value; The calculation module is also used to calculate the adjustment step size based on the illuminance threshold, the current illuminance error, the current system sensitivity, the spatial distance weight, and the number of effective adjustable lamps; An adjustment module is used to adjust the brightness of the effectively adjustable lamp according to the adjustment step size.

[0017] In addition, to achieve the above objectives, this application also proposes an automatic dimming device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the automatic dimming method as described above.

[0018] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the automatic dimming method described above.

[0019] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the automatic dimming method described above.

[0020] The proposed technical solutions first select effective adjustable luminaires that can participate in the adjustment, then calculate the comprehensive spatial efficiency based on the spatial position relationship between the luminaires and the sensor, and then dynamically adjust the PID adjustment coefficient based on the illuminance error and the comprehensive spatial efficiency. Finally, the adjustment step size adapted to the current situation is calculated based on parameters such as the current system sensitivity. The brightness adjustment of the effective adjustable luminaires is completed according to the adjustment step size. It can adapt to different spatial layouts and the actual state of the current luminaires to adjust the dimming parameters, which solves the problem of poor adaptability of traditional fixed adjustment coefficient solutions. It can maintain a stable and suitable ambient illuminance and improve the accuracy and flexibility of dimming. Attached Figure Description

[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0022] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a flowchart illustrating an embodiment of the automatic dimming method of this application. Figure 2 This is a schematic diagram of the architecture of an automatic dimming system provided in an embodiment of the automatic dimming method of this application; Figure 3 This is a flowchart illustrating Embodiment 2 of the automatic dimming method of this application; Figure 4 This is a flowchart illustrating Embodiment 3 of the automatic dimming method of this application; Figure 5 This is a schematic diagram of the adaptive PID algorithm control flow provided in an embodiment of the automatic dimming method of this application; Figure 6 This is a flowchart illustrating Embodiment 4 of the automatic dimming method of this application; Figure 7 A simplified flowchart illustrating an embodiment of the automatic dimming method of this application; Figure 8 This is a schematic diagram of the module structure of the automatic dimming device according to an embodiment of this application; Figure 9 This is a schematic diagram of the device structure of the hardware operating environment involved in the automatic dimming method in the embodiments of this application.

[0024] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0025] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0026] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0027] The main solution of this application embodiment is as follows: Obtain the current ambient light intensity value, the status information of each lamp, and the current brightness of each lamp; determine the current illuminance error based on the current ambient light intensity value; filter the lamps based on the current illuminance error, the status information, and the current brightness to obtain effective adjustable lamps, and determine the current system sensitivity based on the effective adjustable lamps; calculate the spatial distance weight based on the effective adjustable lamps, and determine the comprehensive spatial efficiency based on the spatial distance weight; dynamically adjust the PID control coefficient based on the current illuminance error and the comprehensive spatial efficiency to obtain the illuminance range; calculate the adjustment step size based on the illuminance range, the current illuminance error, the current system sensitivity, the spatial distance weight, and the number of effective adjustable lamps; and adjust the brightness of the effective adjustable lamps based on the adjustment step size.

[0028] Because existing automatic dimming solutions mostly use fixed adjustment coefficients to adjust the brightness of lamps, they cannot adapt to different spatial layouts, nor can they make adaptive adjustments based on the actual working status of the lamps. This can easily lead to large fluctuations in ambient illuminance and poor dimming effect.

[0029] This application provides a solution that first selects effective adjustable luminaires that can participate in regulation, then calculates the comprehensive spatial efficiency based on the spatial relationship between the luminaires and sensors, and subsequently dynamically adjusts the PID control coefficient according to the illuminance error and the comprehensive spatial efficiency. Control parameters are automatically adjusted with the spatial efficiency, effectively improving overshoot or stalling, achieving a smooth dimming experience. The control of the luminaires can both brighten and dim, and control the luminaires' on / off states when necessary. High-efficiency luminaires in the vicinity undertake the main regulation tasks, with dynamic power-law optimization of resource allocation.

[0030] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone; or an electronic device or automatic dimming device capable of performing the above functions, such as a computing control unit deployed on a cloud server. The following description uses a computing control unit deployed on a cloud server as an example to illustrate this embodiment and the subsequent embodiments. All actions involving the acquisition of signals, information, or data in this application are performed in accordance with the relevant data protection regulations of the locality and with authorization from the owner of the corresponding device.

[0031] Based on this, the embodiments of this application provide an automatic dimming method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the automatic dimming method of this application.

[0032] In this embodiment, the automatic dimming method includes steps S10 to S40: Step S10: Obtain the current ambient light intensity value, the status information of each lamp, and the current brightness of each lamp.

[0033] It should be noted that the automatic dimming method in this embodiment is applied to a computing control unit deployed on a cloud server. The computing control unit, the light sensing terminal, and multiple intelligent lamps with adjustable brightness form an automatic dimming system, such as... Figure 2 As shown, Figure 2This is a schematic diagram of the architecture of an automatic dimming system. The light sensing terminal integrates an illuminance sensor and a wireless communication module. The system includes an application layer, a control layer, a network layer, and a device layer. The application layer includes a user configuration interface for adjusting and setting parameters. The control layer includes a computing control unit, which is a processor deployed in the cloud, gateway, or built into the terminal. The computing control unit is used for dimming task lifecycle management and spatially perceptive adaptive PID adjustment algorithms. The network layer includes wireless communication networks, such as Bluetooth, BLE Mesh, or WiFi. The device layer mainly includes smart lamps. The light sensing terminal reports the illuminance and the RSSI (Received Signal Strength Indication) value of each lamp, which is transmitted to the computing control unit through the wireless communication network. Then, the computing control unit queries the lamp status or adjusts the brightness and sends instructions to the smart lamps for adjustment. After adjustment, the smart lamps broadcast signal frames to the light sensing terminal.

[0034] It is understandable that the current ambient light brightness value is the current ambient light brightness value detected by the light sensor terminal. The status information of each lamp can include the on / off status, online status, connection status, etc., and may also include other statuses. The current brightness of each lamp is the current brightness percentage of each lamp, which can be 0%-100%. A current brightness of 0% indicates that the lamp is in the off state.

[0035] It should be noted that the optical sensing terminal collects ambient illuminance values ​​at a preset period. Simultaneously, it scans and receives the wireless signal frames periodically broadcast by each lamp, extracting RSSI values ​​from them. The control unit then estimates the physical distance between each lamp and the terminal based on a logarithmic distance path loss model. :

[0036] in rice, This refers to the standard signal strength at 1 meter preset by the manufacturer for the lighting fixture. Environmental attenuation factor. The preset value is set within the range of 2.0 to 3.0 based on the indoor environment type. If there is no prior information, the default value is 2.5.

[0037] The system automatically maintains spatial dimming groups for optical sensor terminals based on distance thresholds. The grouping threshold is user-defined (i.e., the spatial radius centered on the optical sensor terminal); if not set by the user, a default value (e.g., 5 meters) is used. Lights falling within this radius are automatically assigned to the terminal's dimming group. To avoid frequent group changes due to boundary signal jitter, a hysteresis logic is employed: a light fixture already assigned to a group is removed only if its distance continuously exceeds the threshold by more than 20% of the threshold value.

[0038] The conditions for determining whether to initiate a dimming task are: (a) the current ambient light level is not within the preset target illuminance range; and (b) there is at least one online and controllable luminaire within the dimming group of the space. The target illuminance range is defined as follows: , The lower limit of illuminance, To allow for fluctuating bandwidth, a typical value is 50 lux. It is a dynamic value set by the user or determined by system policy.

[0039] A single dimming process is called a "dimming task." It is created through atomic operations to ensure that only one active task exists on a single terminal. A timeout timer is registered at startup (configurable from 30 to 120 seconds, typically 60 seconds); if the timeout occurs, the task is forcibly terminated and resources are released. The task consists of multiple "dimming rounds," each round executing a closed loop of "measurement-decision-execution." If the previous round's instructions have not been completed, the idle time is skipped, and the latest ambient light value and list of luminaires are obtained.

[0040] Understandably, if the current ambient light level is within the target illuminance range, the dimming task is considered successfully completed, the task is terminated, and the timeout timer is canceled. If the number of rounds executed for this task reaches the preset limit (e.g., 15 rounds), it is determined that the target cannot be achieved under the current conditions, the task is terminated, and resources are released.

[0041] If the current ambient light intensity value is not within the target illuminance range and the dimming count has not reached the preset count, such as 15 rounds, then step S10 is executed to query the online status, on / off status and current brightness percentage of all lamps in the group at once.

[0042] Understandably, spatial distance sensing can be replaced by any wireless technology that can reflect distance, such as UWB, Wi-Fi FTM, ultrasound, or Zigbee.

[0043] Step S20: Determine the current illuminance error based on the current ambient light value.

[0044] It should be noted that the current illuminance error can be calculated based on the current ambient light value. The current illuminance error is the difference between the current target illuminance value and the current ambient light value. Therefore, the target illuminance range can be obtained. The current ambient target brightness value is... Therefore, the current illuminance error is calculated as follows:

[0045] in, , The median of the acceptable range. This is the current illuminance error. This represents the current ambient light level.

[0046] Step S30: Based on the current illuminance error, the status information, and the current brightness, filter the lamps to obtain effective adjustable lamps, and determine the current system sensitivity based on the effective adjustable lamps.

[0047] It should be noted that, based on the screening criteria, offline lamps and lamps that are in the off state and have a negative illuminance error e can be excluded first: when e is negative, it means that the current actual brightness is higher than the median of the target brightness range, and the ambient illuminance needs to be reduced. Lamps that are already off cannot be further reduced in brightness, so they are not included in the screening range. Then exclude lamps whose current brightness has reached the upper limit of adjustment and whose illuminance error e is positive, as well as lamps whose current brightness has reached the lower limit of adjustment and whose illuminance error e is negative. The remaining lamps are the effective adjustable lamps.

[0048] In one feasible implementation, step S30, "screening the luminaires based on the current illuminance error, the state information, and the current brightness to obtain effective adjustable luminaires," may include steps A11-A13: Step A11: Obtain the online status and on / off status of each lamp based on the status information; It should be noted that the online status of each light fixture refers to the online status of each smart light fixture in the current space, which includes online or offline status, and the on / off status of each light fixture refers to whether each light fixture is turned on.

[0049] Step A12: Filter the lamps whose online status is offline to obtain candidate lamps; If a light fixture is offline, it will be removed from the list of light fixtures that meet the distance threshold, and online light fixtures will be selected as candidate light fixtures.

[0050] Step A13: Based on the current illuminance error, the switch status, and the current brightness, the candidate lamps are screened to obtain effective adjustable lamps.

[0051] In practice, candidate lamps that are either on or off can be further screened based on the current illuminance error, thereby eliminating lamps that cannot be adjusted and obtaining effective adjustable lamps.

[0052] In one feasible implementation, step A12 may include: determining the lamp adjustment direction based on the current illuminance error; when the lamp adjustment direction is to increase brightness, filtering candidate lamps whose current brightness is a first brightness threshold to obtain effective adjustable lamps; when the lamp adjustment direction is to decrease brightness, filtering candidate lamps whose current brightness is a second brightness threshold to obtain effective adjustable lamps, wherein the first brightness threshold is greater than the second brightness threshold.

[0053] It should be noted that if the current illuminance error is positive, it means that the current actual brightness is lower than the target brightness, and the ambient illuminance needs to be increased. In this case, candidate lamps that are in the off state or whose current brightness has reached the maximum brightness limit are eliminated, and the remaining lamps are the effective adjustable lamps. If the current illuminance error is negative, it means that the current actual brightness is higher than the target brightness, and the ambient illuminance needs to be reduced. In this case, candidate lamps whose current brightness has reached the minimum brightness limit are eliminated, and the remaining lamps are the effective adjustable lamps.

[0054] Specifically, if the current illuminance error is positive (e>0), and the lamp adjustment direction is to increase brightness, then it checks if there are any candidate lamps that are already turned on. If there are no candidate lamps that are already turned on, the nearest lamp that is currently off is turned on. The algorithm is first called to predict the brightness and then further adjusts this lamp. If there are candidate lamps that are already turned on, but the current brightness of all candidate lamps has reached 100%, i.e., the first brightness threshold, then this candidate lamp is removed. It is then checked if there are any other candidate lamps that can be turned on. If there are no candidate lamps that can be turned on, then it is determined that the brightness of all currently online candidate lamps has reached their maximum capacity, and the adjustment is terminated.

[0055] If the current illuminance error is negative, i.e., e<0, and the lamp adjustment direction is to dim, then it is determined whether there are candidate lamps that have been turned on. If the brightness of the candidate lamps that have been turned on has dropped to the second brightness threshold, i.e., 1%, then the candidate lamps are removed. If all the lamps that have been turned on have dropped to 1% but the illuminance still exceeds the standard, the lamp that is farthest away is turned off to reduce the total light output. If there are no lamps that can be turned off, then it is determined that the ambient light is dominant and the process is terminated.

[0056] In practical implementation, the current system sensitivity reflects the overall dimming margin of the currently effective adjustable luminaires: the larger the remaining adjustment margin, the higher the system sensitivity, and the smaller the step size of a single adjustment can be to avoid overshoot; the smaller the remaining adjustment margin, the lower the system sensitivity, and the larger the step size of a single adjustment needs to be to ensure adjustment efficiency.

[0057] Therefore, the current system sensitivity can be calculated based on the parameter information of the currently available adjustable luminaires. If all luminaires are in the off state, a conservative default value can be used, and the current system sensitivity S = The lux / % value is used as a starting value. Once valid measurement data is obtained, the true sensitivity will be calibrated and override this default value.

[0058] Step S40: Calculate the spatial distance weight based on the effective adjustable luminaire, and determine the comprehensive spatial efficiency based on the spatial distance weight.

[0059] It should be noted that after the effective adjustable luminaires are screened, the corresponding spatial distance weights are calculated based on the previously estimated physical distances between each effective adjustable luminaire and the light sensing terminal. The closer the luminaire is to the light sensing terminal, the greater the weight it is assigned.

[0060] In one feasible implementation, step S40 may include steps A21 to A25: Step A21: Obtain the physical distance between the adjustable luminaire and the light sensing terminal, and set the initial space efficiency; It should be noted that, as mentioned above, the physical distance between each lamp and the optical sensing terminal can be calculated based on the RSSI value of each lamp. Based on this distance, the effective adjustable lamps and the physical distance between them can be selected.

[0061] The initial space efficiency can be either the set estimate or the overall space efficiency obtained after the last adjustment.

[0062] Step A22: Dynamically adjust the distance attenuation power based on the initial spatial efficiency; In practice, the distance attenuation power can be dynamically adjusted based on the initial space efficiency, while the default distance attenuation power is used for the initial calculation. To obtain a space efficiency Then, based on the temporary Recalculate The value is stabilized after one iteration. To reduce computational complexity, the value from the previous round can also be used directly. Update this round The default value for the first round is 2.0. The distance decay power formula is:

[0063] in, , .when When the level is high and regulatory resources are abundant, Approaching version 2.0, the large degree of weight differentiation helps to focus the adjustment task on high-efficiency luminaires to achieve rapid convergence; when When the level is low and regulatory resources are scarce, Automatic scaling reduces the weight difference between near and far lights, ensuring that even inefficient far lights receive a reasonable step size share and preventing system stagnation due to the exhaustion of efficient near lights. For p, besides linear scaling, piecewise functions can also be used, such as... hour , hour , hour To simplify calculations.

[0064] Step A23: Calculate the spatial distance weight of the effective adjustable luminaire based on the physical distance and the dynamically adjusted distance attenuation power; In practical implementation, the spatial distance weight of the effective adjustable luminaire can be calculated based on the physical distance and the distance attenuation power after dynamic adjustment, as shown in the following formula:

[0065] In the above formula, Spatial distance weights A higher weight indicates that the lamp contributes more efficiently to the illuminance of the photosensitive point. The number of effectively adjustable lighting fixtures.

[0066] In practical implementation, segmented discrete weights (fixed values ​​for near, medium, and far distances) can also be used, which is suitable for devices with limited computing resources.

[0067] Step A24: Calculate the remaining adjustable capacity of the available adjustable luminaires; It should be noted that the remaining adjustable capacity of an effective adjustable luminaire refers to the range of brightness that a single luminaire can adjust under the current dimming direction. For brightening scenarios, the remaining adjustable capacity is the difference between the luminaire's maximum brightness limit and the current brightness; for dimming scenarios, the remaining adjustable capacity is the difference between the current brightness and the luminaire's minimum brightness limit. Specifically, in scenarios requiring brightening, the remaining adjustable capacity... In scenes requiring darkening, the remaining adjustable capacity . The larger the value, the more adjustment tasks the lamp can handle.

[0068] Step A25: Using the spatial distance weight as the weight, perform a weighted summation of the remaining adjustable capacity to obtain the overall spatial efficiency.

[0069] It should be noted that the overall space efficiency is calculated as follows:

[0070] In the above formula, To improve overall space efficiency, and ,therefore, The comprehensive space efficiency quantifies "the overall adjustment potential of the current effective adjustable luminaire group under space efficiency weighting." When the remaining capacity of the nearby (high-weight) luminaires is large, A value close to 1 indicates that the system has "sufficient adjustment resources," meaning that a small adjustment in brightness can produce a significant change in illuminance. When all effectively adjustable luminaires are nearing their brightness limits, or when high-efficiency luminaires have exhausted their capacity and only distant (low-weight) luminaires remain, A value close to 0 indicates that the system "lacks regulatory resources" and requires greater regulatory effort to drive changes in illuminance.

[0071] Step S50: Dynamically adjust the PID adjustment coefficient based on the current illuminance error and the overall space efficiency to obtain the illuminance range.

[0072] It should be noted that conventional fixed-coefficient PID control strategies are unsuitable for scenarios where both control resources and spatial distribution are dynamically changing. Therefore, this solution employs a method of dynamically adjusting PID parameters based on comprehensive spatial efficiency to ensure control stability under different scenarios. The illuminance threshold is the total brightness value that needs to be adjusted in this dimming round.

[0073] The coefficients can be adjusted based on the initial preset PID baseline coefficients and the current overall space efficiency to obtain the adjusted PID adjustment coefficients. Then, the illuminance range value can be calculated based on the adjusted PID adjustment coefficients.

[0074] Step S60: Calculate the adjustment step size based on the illuminance range, the current illuminance error, the current system sensitivity, the spatial distance weight, and the number of effective adjustable lamps.

[0075] In practice, the total control quantity of the illuminance domain can be converted into the brightness domain step size of each effective adjustable lamp based on the illuminance domain value, the current illuminance error, the current system sensitivity, the spatial distance weight, and the number of effective adjustable lamps. Specifically, the basic unit adjustment quantity can be calculated first, and then the corresponding initial step size can be allocated based on the spatial distance weight of each effective adjustable lamp. Then, the initial step size can be constrained by certain constraints to obtain the final adjustment step size.

[0076] Step S70: Adjust the brightness of the adjustable lamp according to the adjustment step size.

[0077] It should be noted that after obtaining the adjustment step size for each effective adjustable luminaire, the brightness of the currently effective adjustable luminaire can be gradually adjusted according to this adjustment step size, thereby enabling the ambient illuminance to quickly converge to the preset target range. After sending the adjustment command, the dimming round task is completed, and it waits for the next round cycle for the optical sensor terminal to collect the latest ambient illuminance data, repeating the above measurement, decision-making, and adjustment process until the illuminance reaches the target or the task terminates.

[0078] In one feasible implementation, step S70 may include steps A31-A32: Step A31: Determine the lamp adjustment direction based on the current illuminance error; It should be noted that a positive illuminance error means that the current actual brightness is lower than the target value and needs to be adjusted in the direction of increasing brightness; a negative illuminance error means that the current actual brightness is higher than the target value and needs to be adjusted in the direction of decreasing brightness.

[0079] Step A32: Adjust the brightness of the adjustable lamp according to the lamp adjustment direction and the adjustment step size.

[0080] If the adjustment direction is to increase brightness, the current brightness of each adjustable lamp is increased by the corresponding adjustment step to obtain the adjusted brightness value; if the adjustment direction is to decrease brightness, the current brightness of each adjustable lamp is decreased by the corresponding adjustment step to obtain the adjusted brightness value. After adjustment, the new brightness value is sent to the corresponding smart lamp via the network, and the lamp completes the output adjustment.

[0081] It should be noted that if the final step size of all effectively adjustable lamps... If all values ​​are 0, then the spatial distance weight is selected. The largest effective luminaire is forced to be assigned a minimum step size:

[0082] The step size for all other lights remains 0. Compared to applying a 1% step size to all stuck lights, applying the minimum adjustment only to the light with the highest weight effectively prevents excessive illuminance changes caused by the cumulative effect of multiple simultaneous minor adjustments, thus avoiding new oscillations when approaching the target. After completing the adjustment, the error of this round is calculated. Accumulated points 1. Calibrated sensitivity Comprehensive space efficiency and the brightness array of each lamp Write the state to the state cache for use in the next round.

[0083] As a feasible implementation method, millimeter-wave radar or infrared sensors can be integrated to automatically reduce target illumination or pause dimming when no one is present, and to fine-tune the weights to prevent glare when the location of people is detected.

[0084] This embodiment provides an automatic dimming method. First, it selects effective adjustable luminaires that can participate in the adjustment. Then, it calculates the comprehensive spatial efficiency based on the spatial position relationship between the luminaires and the sensor. Subsequently, it dynamically adjusts the PID adjustment coefficient based on the illuminance error and the comprehensive spatial efficiency. Then, it calculates the adjustment step size adapted to the current situation based on parameters such as the current system sensitivity. Finally, it completes the brightness adjustment of the effective adjustable luminaires according to the adjustment step size. It can adapt to different spatial layouts and the actual state of the current luminaires to adjust the dimming parameters, which solves the problem of poor adaptability of traditional fixed adjustment coefficient schemes. It can maintain a stable and suitable ambient illuminance and improve the accuracy and flexibility of dimming.

[0085] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3Step S50 includes steps S501 to S502: Step S501: Dynamically adjust the PID adjustment coefficient using the current illuminance error and the overall space efficiency to obtain the adjusted PID coefficient.

[0086] It should be noted that the initial PID control coefficients include proportional, integral, and derivative coefficients, with these three baseline coefficients either preset by the user or configured by the system default. In this scheme, coefficient adjustments follow this logic: when the overall space efficiency is high, it indicates sufficient control resources and ample remaining capacity for high-efficiency luminaires, allowing for a slight increase in the proportional coefficient to accelerate the control speed, while simultaneously slightly reducing the integral coefficient to avoid overshoot due to accumulated errors; when the overall space efficiency is low, it indicates scarce control resources, requiring a larger control margin, thus necessitating a slight decrease in the proportional coefficient to prevent overshoot, while simultaneously slightly increasing the integral coefficient to help gradually push the illuminance towards the target.

[0087] In one feasible implementation, step S501 may include steps B11 to B15: Step B11: Obtain the reference proportional gain, integral gain, reference differential gain, proportional space adjustment coefficient, initial pulse coefficient, and differential space adjustment coefficient; It should be noted that the reference proportional gain, integral gain, and reference derivative gain are the reference gains of the PID coefficients, for example, the reference proportional gain. Set to 0.5, integral gain Set it to 0.10, and set the reference differential gain to 0.18.

[0088] The proportional space adjustment coefficient is denoted as The differential space adjustment coefficient is denoted as The initial pulse coefficient is denoted as The above parameters are all preset empirical values ​​and can be adjusted by the user according to the actual scenario. If no adjustment is made, the system default value will be used. The proportional space adjustment coefficient ranges from 0.2 to 0.5, with a typical value of 0.3. This coefficient determines the strength of the influence of space efficiency on gain. The initial pulse coefficient ranges from 0.3 to 1.0, with a typical value of 0.6. For example, the differential space adjustment coefficient ranges from 0.2 to 0.5, with a typical value of 0.3.

[0089] Step B12: Calculate the proportional gain based on the reference proportional gain, the proportional space adjustment coefficient, and the overall space efficiency; In practical implementation, proportional gain Based on comprehensive space efficiency Perform monotonically decreasing adjustment:

[0090] in, For proportional gain, As the reference proportional gain, This is the proportional space adjustment coefficient. For overall space efficiency, when At higher levels, smaller levels To ensure robust control, it is necessary to prevent overshooting caused by excessive force. At lower levels, The automatic recovery to near the reference value makes the control behavior more proactive, requiring a stronger response to avoid stagnation. Verification using typical parameters: hour, ; hour, . It is always positive, and the control polarity remains unchanged.

[0091] Step B13: Adjust the current proportional term coefficient according to the proportional gain and the current illuminance error to obtain the adjusted proportional term coefficient; In practical implementation, the adjustment of the proportional term coefficient is expressed as follows:

[0092] In the above, P is the adjustment ratio coefficient. This is the current illuminance error. This is the proportional gain.

[0093] Step B14: Calculate the integral accumulation based on the initial pulse coefficient and the current illuminance error; In practical implementation, to overcome the initial response lag caused by the integral term accumulating from zero, an initial pulse proportional to the current error is assigned to the integral accumulation. Therefore, the integral accumulation is calculated as follows:

[0094] in, Here, e represents the cumulative integral, and e represents the current illuminance error. The initial pulse coefficient is denoted as .

[0095] It is understandable that in subsequent dimming rounds, before updating the accumulated points, detection errors will occur. Is the symbol the same as the one from the previous round? Conversely, if the sign is reversed (i.e., the adjustment direction changes), the integral cumulant... Reset to zero and restart with the initial pulse. Start accumulating. This allows the system to respond quickly when adjusting direction.

[0096] If the sign is not reversed, normal accumulation occurs (only when...). (Updated regularly)

[0097] At the same time, a hard limit is applied to the cumulative amount to prevent integral saturation:

[0098] Points cap Determined based on target illumination level. In typical indoor scenarios ( At 300~750 lux, lux·round. This value is based on the following derivation: In the common system sensitivity range (0.5~5.0 lux / %), the integral accumulation of 120 corresponds to a potential brightness compensation of about 24%~240%, which is sufficient to meet the needs of normal adjustment; at the same time, this upper limit can effectively prevent the integral term from expanding infinitely in long-term large deviation conditions, and avoid overshoot when approaching the target.

[0099] Step B15: Adjust the coefficient of the current integral term according to the integral accumulation and the integral gain to obtain the adjusted integral term coefficient; In practical implementation, the coefficient of the integral term can be adjusted by calculating the integral cumulant and the integral gain, as shown in the following formula:

[0100] Where I is the coefficient of the adjusted integral term. For integral gain, This represents the accumulated points.

[0101] Step B16: Calculate the differential gain based on the reference differential gain, the differential space adjustment coefficient, and the overall space efficiency; It should be noted that when At higher levels, the rate of change in illuminance produced by a single system adjustment is large; therefore, it is advisable to appropriately reduce the illuminance. This prevents the differential term from becoming overly sensitive to normal fluctuations or measurement noise, maintaining smooth control; when At lower levels, the system response is sluggish; increasing the level appropriately will improve performance. It can enhance the ability to capture the trend of error changes.

[0102] The differential gain is calculated based on the baseline differential gain, the differential space adjustment coefficient, and the overall space efficiency as follows:

[0103] in, For differential gain, As the reference differential gain, The differential space adjustment coefficient is... For overall space efficiency.

[0104] Step B17: Adjust the current differential term coefficient based on the differential gain and the difference between the current illuminance error and the historical illuminance error to obtain the adjusted differential term coefficient; Understandably, the differential term coefficient can be adjusted based on the differential gain and the difference between the current illuminance error and the historical illuminance error, as calculated below:

[0105] in, This refers to the historical illuminance error, i.e., the illuminance error from the previous adjustment round, in the first round. (at this time D represents the coefficient of the adjusted differential term.

[0106] It should be noted that, , and Mapping relationships can also employ nonlinear mappings such as S-curves, piecewise linear mappings, and lookup table methods, as long as they satisfy the condition "following the curve". The functional relationship is "increasing and monotonically decreasing".

[0107] Step B18: Obtain the adjusted PID coefficients based on the adjusted proportional term coefficient, the adjusted integral term coefficient, and the adjusted differential term coefficient.

[0108] In practice, the proportional term coefficient, integral term coefficient, and derivative term coefficient can be adjusted as the PID coefficients.

[0109] Step S502: Calculate the illuminance range value based on the adjusted PID coefficients.

[0110] Understandably, the illuminance threshold is calculated as follows:

[0111] in, This represents the illuminance range.

[0112] This embodiment dynamically adjusts the PID control coefficient based on the current illuminance error and the overall spatial efficiency to obtain the adjusted PID coefficient; then, the illuminance threshold is calculated based on the adjusted PID coefficient. Through these steps, the PID control coefficient is adaptively updated according to the spatial adjustment resource status, solving the problem of poor adaptability of fixed coefficients in different scenarios. This ensures adjustment speed when resources are abundant while avoiding overshoot and adjustment stagnation when resources are scarce, further improving the stability and accuracy of the dimming process.

[0113] Based on the first embodiment of this application, in the third embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2Step S60 includes steps S601 to S603: Step S601: Calculate the basic unit adjustment amount based on the number of effective adjustable lamps, the illuminance range, and the current system sensitivity.

[0114] It should be noted that the basic unit adjustment amount is calculated as follows:

[0115] In the above formula, The basic unit of adjustment, Illuminance threshold For the current system sensitivity, The number of effectively adjustable lighting fixtures.

[0116] Step S602: Obtain the target illuminance value, and calculate the deviation ratio based on the target illuminance value and the current illuminance error.

[0117] It should be noted that the target illuminance value refers to the lower and upper limits of illuminance within the target illuminance interval. The median of the target illuminance interval can be calculated from the target illuminance value. .

[0118] In practice, the deviation ratio can be calculated based on the median and the current illuminance error. Specifically, the deviation ratio can be calculated by the ratio of the absolute value of the current illuminance error to the median, as follows:

[0119] in, This represents the deviation ratio.

[0120] Step S603: Determine the adjustment step size based on the deviation ratio, the spatial distance weight, the number of effective adjustable lamps, and the basic unit adjustment amount.

[0121] It should be noted that the adjustment step size can be calculated based on the deviation ratio, spatial distance weight, number of effective adjustable lamps, and basic unit adjustment amount. For example, it can be calculated first based on the spatial distance weight of each effective adjustable lamp. First, an initial step size is assigned, and then specific constraints are determined through the deviation ratio. The initial step size is then constrained by these constraints to obtain the adjustment step size.

[0122] In one feasible implementation, step S603 may include steps C11 to C14: Step C11: Obtain the correspondence between the deviation ratio and the step size adjustment threshold and damping factor; It should be noted that, to prevent the step size from being too large or too small, a dynamic maximum step size is introduced. and damping factor Both are based on the deviation ratio Make dynamic adjustments.

[0123] In practical implementation, the correspondence between the deviation ratio, the step size adjustment threshold, and the damping factor is shown in Table 1 below: Table 1

[0124] When the deviation is large, a larger step size is allowed to quickly narrow the gap; when the deviation is small, the step size is tightened and the damping is strengthened. Combined with the natural deceleration effect of the differential term, it helps to smoothly approach the target and suppress overshoot oscillation.

[0125] Step C12: Determine the current step size adjustment threshold and the current damping factor based on the correspondence and the deviation ratio; In practice, the current step size adjustment threshold and the current damping factor can be determined according to Table 1 above and the current deviation ratio. For example, if the current deviation ratio is 0.3, then the current step size adjustment threshold is 30 and the damping factor is 0.80.

[0126] Step C13: Calculate the initial step size based on the current damping factor, the basic unit adjustment amount, the spatial distance weight, and the number of effective adjustable lamps; Understandably, the initial step size can be calculated based on the current damping factor, the basic unit adjustment, the spatial distance weight, and the number of effective air conditioning and lighting fixtures, as shown in the following formula:

[0127] In the above formula, The initial step size, Given the current damping factor, the adjustment task is weighted according to spatial efficiency. The illuminance is allocated by assigning a larger step size to high-weight (near-distance) luminaires and a smaller step size to low-weight (far-distance) luminaires. This allows a limited total illuminance adjustment to produce a greater illuminance gain.

[0128] Step C14: Adjust the initial step size according to the current step size adjustment threshold to obtain the adjustment step size.

[0129] Understandably, to prevent the step size from being too large or too small, the initial step size can be truncated based on the current step size threshold, as shown in the following formula:

[0130] The final adjustment step size can be obtained from the above formula. For example... Figure 5 As shown, Figure 5The diagram illustrates the adaptive PID algorithm control flow. Inputs include: L_cur, L_mid, the brightness B_i and distance d_i of each lamp. The algorithm checks if data from the previous round exists. If yes, it calculates ΔL and ΔB, back-calculates the observation sensitivity S_new, and checks if it passes the validity test (ΔB≥1%, ΔL≥1 lux, S_new∈[0.1, 20]). If no, it uses the old current system sensitivity S. If yes, it updates S through exponential smoothing. If no data from the previous round exists, it checks if any lamps are already on with an average brightness ≥1%. If yes, it estimates S = clamp(1.5·L_cur / (N·B_avg), 0.8, 10.0). If no, it uses the default value S = 2.0. By calculating the illuminance error e = L_mid - L_cur and the deviation ratio r, the adjustment direction is determined and effective adjustable lamps are screened. If e > 0, the lamps are brightened, and those that have reached 100% brightness are excluded. If e < 0, the lamps are dimmed, and those that have reached 1% brightness are excluded. Based on the space efficiency from the previous round... Dynamically calculate p, and then calculate the distance weight w_i and the overall space efficiency. Then, the PID three-term calculation is performed by considering the overall space efficiency and the current illuminance error, where P = Kp·e, Kp = Kp_base·(1-k· ), I=Ki·I_sum, D = Kd·(e-e_prev), Kd = Kd_base·(1-u· U_lux = P + I + D, b_per = U_lux / (S·N_valid), initial step size is assigned according to distance weight w_i: raw_step_i = round(b_per·w_i·N_valid· ), determine M_step and ) based on r The step size is truncated. Is step_i = 0 for all valid lamps? If not, the step size step_i of each lamp is output. If so, the valid lamp with the largest weight is forcibly assigned a step size of sgn(e)·1%.

[0131] This embodiment calculates the basic unit adjustment amount based on the number of effectively adjustable luminaires, the illuminance range, and the current system sensitivity; obtains the target illuminance value, and calculates the deviation ratio based on the target illuminance value and the current illuminance error; and determines the adjustment step size based on the deviation ratio, the spatial distance weight, the number of effectively adjustable luminaires, and the basic unit adjustment amount. Through the above steps, dynamic adaptation of the adjustment step size is achieved: when the illuminance deviation is large, a large step size is used to quickly reduce the error; when the illuminance is close to the target, the step size is automatically narrowed and damping is increased. Combined with the spatial distance weight allocation rules, brightness adjustment becomes more precise and efficient, while further reducing the probability of overshoot oscillation and improving the smoothness of dimming.

[0132] Based on the first embodiment of this application, in the fourth embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 6 Step 30 includes steps S301 to S305: Step S301: Select effective adjustable lamps by filtering the lamps according to the current illuminance error, the status information and the current brightness.

[0133] It should be noted that an effective adjustable luminaire must meet the following conditions simultaneously: First, the luminaire is in an online working state and there is no situation where it is offline, malfunctions, or unable to respond to adjustment commands; Second, the luminaire is in the on / off state, and there is no need to adjust the brightness of a luminaire that is in the off state; Third, the current brightness has not reached the boundary threshold of the adjustment direction, that is, when adjusting to increase brightness, the current brightness of the luminaire is less than 100%, and when adjusting to decrease brightness, the current brightness of the luminaire is greater than 1%.

[0134] Step S302: Obtain the total historical brightness value of the effective adjustable lamps and the historical ambient light brightness value.

[0135] In practice, the system sensitivity can be calculated in the background by comparing the measured data of the current round with that of the previous round. Therefore, the total historical brightness of the effectively adjustable lamps and the historical ambient light brightness can be obtained, which is the total brightness of the lamps turned on in the previous round. And the measured illuminance from the previous round .

[0136] Step S303: Calculate the brightness change based on the current total brightness value of the effective adjustable lamp and the historical total brightness value of the lamps that have been turned on.

[0137] In practical implementation, the change in brightness is calculated as follows:

[0138] In the above formula, The change in brightness This represents the current total brightness of an effectively adjustable luminaire. This represents the total brightness of lights that have been turned on in the past.

[0139] Step S304: Calculate the change in ambient illuminance based on the historical ambient light intensity value and the current ambient light intensity value.

[0140] In practical implementation, the change in ambient illuminance is calculated as follows:

[0141] In the above formula, The change in ambient illuminance This represents the historical ambient light level.

[0142] Understandably, when the number of lights in two rounds is inconsistent (if a new light is turned on), the missing elements in the shorter array are treated as 0 to ensure that the brightness change of the newly added lights is fully accounted for.

[0143] Step S305: Calculate the current system sensitivity based on the change in ambient illuminance and the change in brightness.

[0144] Understandably, the current system sensitivity can be calculated based on changes in ambient illuminance and brightness.

[0145] In one feasible implementation, step S305 may include steps D11-D12: Step D11: Calculate the observation sensitivity based on the change in ambient illuminance and the change in brightness; It should be noted that the observation sensitivity is calculated as follows:

[0146] In the above formula, This refers to the observation sensitivity.

[0147] Step D12: When the change in brightness is greater than or equal to the preset adjustment step size threshold and the change in ambient illuminance is greater than or equal to the ambient sensor resolution threshold, calculate the current system sensitivity using the preset smoothing coefficient and the observation sensitivity.

[0148] In practice, before updating the calibrated sensitivity through observation sensitivity, a validity check is required. If the check fails, the system sensitivity from the previous round is used as the current system sensitivity.

[0149] If the change in brightness is not less than the minimum adjustment step size of the system and the change in illuminance is not less than the effective resolution of a typical ambient light sensor, that is... , lux, and observation sensitivity The lux / %, or observation sensitivity, must fall within a reasonable physical range. Outliers are usually caused by abnormal events such as communication delays or transient obstructions and should be removed. If all the above conditions are met, the validity check is confirmed, and exponential smoothing can be used for updating. Specifically, the old, calibrated system sensitivity can be updated by setting a smoothing coefficient and the observation sensitivity, as shown below:

[0150] Among them, the smoothing coefficient The value range is 0.3 to 0.8. The larger the value, the greater the weight of historical data, and the stronger the suppression of noise in a single measurement, but the slower the response to changes in the real environment. A typical value is 0.6.

[0151] In practice, if it is the first dimming round, the data has not yet been fully collected. At this time, the current system sensitivity can be estimated. Therefore, the steps to obtain the current system sensitivity may also include: When the current dimming is set to initial dimming, the number of lights that are turned on and the average brightness of the effective adjustable lights are obtained. When the number of lights that are turned on is greater than or equal to a preset number and the average brightness is greater than or equal to a preset brightness threshold, the current system sensitivity is calculated based on the current ambient light brightness value, the number of lights that are turned on, and the average brightness.

[0152] It should be noted that if this is the first dimming session, the system can obtain the number of currently active adjustable lights and their average brightness. The preset number can be set to 1, and the preset brightness threshold can be set to 1%. And its average brightness ,but:

[0153] The coefficient 1.5 is derived from engineering experience that the marginal sensitivity of LED luminaires is usually higher than the average sensitivity within their typical operating range, and 0.8 is the lower limit of protection to prevent severe underestimation. The upper limit of the initial S is set to 10. If the initial S is too high, the adjustment range will be too small. Therefore, the upper limit of the initial S is lower than the S_new updated through actual measurement.

[0154] The above formula does not apply if all lights are off. In this case, a conservative default value is used. The lux / % value is used as the initial value. After obtaining valid measurement data in the second round, the true sensitivity will be calibrated and override this default value.

[0155] For example, in a typical office setting, a 20-square-meter office is equipped with four LED downlights and one light sensor terminal. The user sets the grouping threshold to 5 meters and the target illuminance range to [ ] in the system configuration interface. In the morning, as natural light diminished, the indoor illuminance dropped to 360 lux, and the system automatically initiated dimming. The terminal measured the distances of the four lights to be 1.5m, 2.0m, 3.5m, and 4.0m, all within the 5-meter threshold. The lux level needs to be increased. All effective light fixtures are included. The default power factor will be used in the first round. Calculated After dynamic adjustments in subsequent rounds, Maintaining a high level, the two nearest lights account for approximately 65% ​​of the step size. Meanwhile... The illuminance level dropped to 78% of the baseline value, demonstrating robust control. The illuminance level smoothly entered the acceptable range after only three rounds, and the task was completed. If the two nearby lights in the example above were removed, only two distant lights at 3.5m and 4.0m would remain in the group. At this point... Control algorithm improvement Up to 95% of the baseline, while dynamically exponential. The power factor was automatically reduced from 2.0 to approximately 1.3, narrowing the weight difference between near and far lights. Far lights received a larger step size share than with a fixed power factor, avoiding a situation where they barely adjusted due to excessively low weight. The system continued to advance at an acceptable pace, eventually achieving the target.

[0156] When the illuminance is too high, such as in a large office area near a window, direct afternoon sunlight can cause the indoor illuminance to rise to 680 lux, exceeding the user-set target range. The upper limit of lux. System calculation error. At this point, the system enters a dimming process. In the first few rounds, the algorithm gradually reduces the brightness of each light fixture. When the brightness of all on lights has been reduced to 1%, the illuminance is still 560 lux, exceeding the standard. At this point, the system determines that there is no room for further dimming and checks whether there are any lights still on. Since all lights are still on and their brightness is 1%, the system, according to the rules, selects to turn off the light furthest from the light sensor terminal (contributing the least to illuminance). After turning off the light, the total light output decreases, and the illuminance drops back to 535 lux, entering the acceptable range. If the illuminance still exceeds the standard after turning off all lights, the system terminates the task and prompts that the current ambient light is too strong.

[0157] This embodiment filters the luminaires based on the current illuminance error, the status information, and the current brightness to obtain effective adjustable luminaires; it obtains the historical total brightness value of the effective adjustable luminaires and the historical ambient light brightness value; it calculates the brightness change based on the current total brightness value and the historical total brightness value of the effective adjustable luminaires; it calculates the ambient illuminance change based on the historical ambient light brightness value and the current ambient light brightness value; and it calculates the current system sensitivity based on the ambient illuminance change and the brightness change. Through the above steps, online real-time calibration and updating of system sensitivity are achieved, eliminating the need for manual on-site calibration during the installation and commissioning phase, significantly reducing the time and labor costs of system deployment; at the same time, the sensitivity is dynamically corrected according to changes in operating conditions such as luminaire aging and environmental obstruction, always maintaining calibration accuracy, avoiding problems such as slow adjustment speed and large overshoot caused by sensitivity deviation, further improving the long-term stability and accuracy of the automatic dimming system.

[0158] For example, to help understand the implementation flow of the automatic dimming method obtained by combining this embodiment with the above embodiment one, please refer to... Figure 7 , Figure 7 A simplified flowchart of an automatic dimming method is provided. Specifically: At the start of the current dimming round, it is determined whether the previous round's instructions have been executed. If not, the current round is skipped, and the process waits for the next cycle. If yes, the current illuminance value (i.e., the current ambient light brightness value) and the list of dimming luminaires in the space are obtained. It is then determined whether the illuminance is within the target range. If yes, no dimming is required for this round. If not, it is determined whether the number of dimming rounds has exceeded the upper limit. If yes, the task terminates, indicating that the number of dimming rounds has exceeded the iteration limit. If not, the online status, on / off status, and current brightness of each luminaire are checked to determine if any luminaires are online and controllable. If not, the task terminates because there are no usable luminaires, i.e., no adjustable luminaires. If yes, the adjustment direction is determined. If the adjustment direction is to increase brightness, it is then determined whether any luminaires with brightness below 100% are already on. If yes, the spatially aware adaptive PID algorithm is invoked to calculate the adjustment step size. If no, it is determined whether there are any lights that are off. If no, the task terminates because all lights have reached their maximum brightness. If yes, the nearest light is turned on, and the initial brightness is predicted. If the adjustment direction is to dim, it is determined whether there are any lights that are already on with a brightness higher than 1%. If yes, the spatially aware adaptive PID algorithm is invoked to calculate the adjustment step size. If no, it is determined whether there are any lights that are already on and can be turned off. If no, the task terminates because the ambient light is too strong and the illuminance cannot be reduced. If yes, the farthest light is turned off, and this round ends. During the process of invoking the spatially aware adaptive PID algorithm to calculate the adjustment step size, the adjustment step size of each light is calculated and output, and then a brightness command is issued concurrently to adjust the brightness. The data of this round is recorded for use in subsequent adjustments.

[0159] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the automatic dimming method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0160] This application also provides an automatic dimming device, please refer to... Figure 8 The automatic dimming device includes: The acquisition module 10 is used to acquire the current ambient light intensity value, the status information of each lamp, and the current brightness of each lamp.

[0161] The determination module 20 is used to determine the current illuminance error based on the current ambient light brightness value.

[0162] The filtering module 30 is used to filter the lamps to obtain effective adjustable lamps based on the current illuminance error, the status information and the current brightness, and to determine the current system sensitivity based on the effective adjustable lamps.

[0163] The calculation module 40 is used to calculate the spatial distance weight based on the effective adjustable lamps, and to determine the comprehensive spatial efficiency based on the spatial distance weight.

[0164] The adjustment module 50 is used to dynamically adjust the PID adjustment coefficient according to the current illuminance error and the comprehensive space efficiency to obtain the illuminance range value.

[0165] The calculation module 40 is also used to calculate the adjustment step size based on the illuminance threshold, the current illuminance error, the current system sensitivity, the spatial distance weight, and the number of effective adjustable lamps.

[0166] The adjustment module 60 is used to adjust the brightness of the effective adjustable lamp according to the adjustment step size.

[0167] The automatic dimming device provided in this application, employing the automatic dimming method described in the above embodiments, can solve the technical problem that current automatic dimming methods for lamps cannot adaptively adjust according to the brightness of the lamps. Compared with the prior art, the beneficial effects of the automatic dimming device provided in this application are the same as those of the automatic dimming method provided in the above embodiments, and other technical features of the automatic dimming device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0168] In one embodiment, the adjustment module 50 is further configured to dynamically adjust the PID adjustment coefficient based on the current illuminance error and the overall space efficiency to obtain the adjusted PID coefficient; The illuminance range value is calculated based on the adjusted PID coefficients.

[0169] In one embodiment, the adjustment module 50 is further configured to acquire a reference proportional gain, an integral gain, a reference differential gain, a proportional space adjustment coefficient, an initial pulse coefficient, and a differential space adjustment coefficient. The proportional gain is calculated based on the baseline proportional gain, the proportional space adjustment coefficient, and the overall space efficiency. The current proportional term coefficient is adjusted based on the proportional gain and the current illuminance error to obtain the adjusted proportional term coefficient; Calculate the integral accumulation based on the initial pulse coefficient and the current illuminance error; The coefficient of the current integral term is adjusted based on the integral accumulation and the integral gain to obtain the adjusted integral term coefficient; The differential gain is calculated based on the reference differential gain, the differential space adjustment coefficient, and the overall space efficiency; The current differential term coefficient is adjusted based on the differential gain and the difference between the current illuminance error and the historical illuminance error to obtain the adjusted differential term coefficient. The adjusted PID coefficients are obtained based on the adjusted proportional term coefficient, the adjusted integral term coefficient, and the adjusted differential term coefficient.

[0170] In one embodiment, the calculation module 40 is further configured to calculate a basic unit adjustment amount based on the number of effective adjustable lamps, the illuminance range, and the current system sensitivity; Obtain the target illuminance value, and calculate the deviation ratio based on the target illuminance value and the current illuminance error; The adjustment step size is determined based on the deviation ratio, the spatial distance weight, the number of effective adjustable lamps, and the basic unit adjustment amount.

[0171] In one embodiment, the calculation module 40 is further configured to obtain the correspondence between the deviation ratio and the step size adjustment threshold and the damping factor; The current step size adjustment threshold and the current damping factor are determined based on the correspondence and the deviation ratio. The initial step size is calculated based on the current damping factor, the basic unit adjustment amount, the spatial distance weight, and the number of effective adjustable lamps. The initial step size is adjusted according to the current step size adjustment threshold to obtain the adjustment step size.

[0172] In one embodiment, the filtering module 30 is further configured to obtain the online status and on / off status of each lamp based on the status information; The online-to-offline lamps are filtered to obtain candidate lamps; Based on the current illuminance error, the switch status, and the current brightness, the candidate lamps are screened to obtain effective adjustable lamps.

[0173] In one embodiment, the filtering module 30 is further configured to determine the lamp adjustment direction based on the current illuminance error; When the lamp adjustment direction is to increase brightness, candidate lamps whose current brightness is the first brightness threshold are filtered out to obtain effective adjustable lamps; When the lamp adjustment direction is to dim, candidate lamps whose current brightness is the second brightness threshold are filtered to obtain effective adjustable lamps, wherein the first brightness threshold is greater than the second brightness threshold.

[0174] In one embodiment, the filtering module 30 is further configured to obtain the total historical brightness value of the effective adjustable lamps and the historical ambient light brightness value; The change in brightness is calculated based on the current total brightness of the adjustable luminaire and the historical total brightness of the luminaires that have been turned on. The change in ambient illuminance is calculated based on the historical ambient illuminance value and the current ambient illuminance value. The current system sensitivity is calculated based on the changes in ambient illuminance and brightness.

[0175] In one embodiment, the screening module 30 is further configured to calculate the observation sensitivity based on the change in ambient illuminance and the change in brightness; When the change in brightness is greater than or equal to a preset adjustment step size threshold and the change in ambient illuminance is greater than or equal to an environmental sensor resolution threshold, the current system sensitivity is calculated using a preset smoothing coefficient and the observation sensitivity.

[0176] In one embodiment, the filtering module 30 is further configured to obtain the number of lights that have been turned on and the average brightness of the effective adjustable lamps when the current dimming is the initial dimming. When the number of lights already turned on is greater than or equal to a preset number and the average brightness is greater than or equal to a preset brightness threshold, the current system sensitivity is calculated based on the current ambient light brightness value, the number of lights already turned on, and the average brightness.

[0177] In one embodiment, the calculation module 40 is further configured to obtain the physical distance between the effectively adjustable luminaire and the optical sensing terminal, and set an initial space efficiency. The distance attenuation power is dynamically adjusted based on the initial spatial efficiency. Based on the physical distance and the dynamically adjusted distance attenuation power, the spatial distance weight of the effective adjustable luminaire is calculated. Calculate the remaining adjustable capacity of the effective adjustable luminaires; Using the spatial distance weight as the weight, the remaining adjustable capacity is weighted and summed to obtain the overall spatial efficiency.

[0178] In one embodiment, the adjustment module 60 is further configured to determine the lamp adjustment direction based on the current illuminance error; The brightness of the effectively adjustable lamp is adjusted according to the lamp adjustment direction and the adjustment step size.

[0179] This application provides an automatic dimming device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the automatic dimming method in Embodiment 1 above.

[0180] The following is for reference. Figure 9The diagram illustrates a structural schematic suitable for implementing the automatic dimming device in the embodiments of this application. The automatic dimming device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), tablets, PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The automatic dimming device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.

[0181] like Figure 9 As shown, the automatic dimming device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in ROM (Read Only Memory) 1002 or a program loaded from storage device 1003 into RAM (Random Access Memory) 1004. RAM 1004 also stores various programs and data required for the operation of the automatic dimming device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via bus 1005. Input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touch screens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, LCDs (Liquid Crystal Displays), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the automatic dimming device to communicate wirelessly or wiredly with other devices to exchange data. Although the figures show automatic dimming devices with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0182] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0183] The automatic dimming device provided in this application, employing the automatic dimming method described in the above embodiments, can solve the technical problem that current automatic dimming methods for lamps cannot adaptively adjust according to the brightness of the lamps. Compared with the prior art, the beneficial effects of the automatic dimming device provided in this application are the same as those of the automatic dimming method provided in the above embodiments, and other technical features of this automatic dimming device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0184] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0185] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. 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 scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0186] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the automatic dimming method in the above embodiments.

[0187] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, RAM (Random Access Memory), ROM (Read Only Memory), EPROM (Erasable Programmable Read Only Memory or Flash Memory), optical fibers, CD-ROM (CD-Read Only Memory), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0188] The aforementioned computer-readable storage medium may be included in the automatic dimming device; or it may exist independently and not assembled into the automatic dimming device.

[0189] The aforementioned computer-readable storage medium carries one or more programs that, when executed by an automatic dimming device, cause the automatic dimming device to: acquire the current ambient light intensity value, the status information of each lamp, and the current brightness of each lamp; determine the current illuminance error based on the current ambient light intensity value; filter the lamps based on the current illuminance error, the status information, and the current brightness to obtain effective adjustable lamps, and determine the current system sensitivity based on the effective adjustable lamps; calculate the spatial distance weight based on the effective adjustable lamps, and determine the comprehensive spatial efficiency based on the spatial distance weight; dynamically adjust the PID control coefficient based on the current illuminance error and the comprehensive spatial efficiency to obtain an illuminance range; calculate the adjustment step size based on the illuminance range, the current illuminance error, the current system sensitivity, the spatial distance weight, and the number of effective adjustable lamps; and adjust the brightness of the effective adjustable lamps based on the adjustment step size.

[0190] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including LAN (Local Area Network) or WAN (Wide Area Network)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0191] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0192] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0193] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described automatic dimming method, which can solve the technical problem that current automatic dimming methods for lamps cannot adaptively adjust according to the brightness of the lamps. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the automatic dimming method provided in the above embodiments, and will not be repeated here.

[0194] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the automatic dimming method described above.

[0195] The computer program product provided in this application can solve the technical problem that current automatic dimming methods for lamps cannot adaptively adjust according to the brightness of the lamps. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the automatic dimming methods provided in the above embodiments, and will not be repeated here.

[0196] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. An automatic dimming method, characterized in that, The automatic dimming method includes: Obtain the current ambient light level, the status information of each lamp, and the current brightness of each lamp; The current illuminance error is determined based on the current ambient light intensity value; The effective adjustable lamps are selected by filtering the lamps based on the current illuminance error, the status information, and the current brightness, and the current system sensitivity is determined based on the effective adjustable lamps. Calculate the spatial distance weight based on the effective adjustable luminaires, and determine the overall spatial efficiency based on the spatial distance weights; The PID control coefficient is dynamically adjusted based on the current illuminance error and the overall space efficiency to obtain the illuminance range. The adjustment step size is calculated based on the illuminance range, the current illuminance error, the current system sensitivity, the spatial distance weight, and the number of effective adjustable luminaires. The brightness of the adjustable lamp is adjusted according to the adjustment step size.

2. The method as described in claim 1, characterized in that, The step of dynamically adjusting the PID control coefficient based on the current illuminance error and the overall space efficiency to obtain the illuminance range includes: The PID adjustment coefficient is dynamically adjusted by using the current illuminance error and the overall space efficiency to obtain the adjusted PID coefficient. The illuminance range value is calculated based on the adjusted PID coefficients.

3. The method as described in claim 2, characterized in that, The step of dynamically adjusting the PID control coefficient using the current illuminance error and the overall space efficiency to obtain the adjusted PID coefficient includes: Obtain the reference proportional gain, integral gain, reference differential gain, proportional space adjustment coefficient, initial pulse coefficient, and differential space adjustment coefficient; The proportional gain is calculated based on the baseline proportional gain, the proportional space adjustment coefficient, and the overall space efficiency. The current proportional term coefficient is adjusted based on the proportional gain and the current illuminance error to obtain the adjusted proportional term coefficient; Calculate the integral accumulation based on the initial pulse coefficient and the current illuminance error; The coefficient of the current integral term is adjusted based on the integral accumulation and the integral gain to obtain the adjusted integral term coefficient; The differential gain is calculated based on the reference differential gain, the differential space adjustment coefficient, and the overall space efficiency; The current differential term coefficient is adjusted based on the differential gain and the difference between the current illuminance error and the historical illuminance error to obtain the adjusted differential term coefficient. The adjusted PID coefficients are obtained based on the adjusted proportional term coefficient, the adjusted integral term coefficient, and the adjusted differential term coefficient.

4. The method as described in claim 1, characterized in that, The step of calculating the adjustment step size based on the illuminance range, the current illuminance error, the current system sensitivity, the spatial distance weight, and the number of effective adjustable luminaires includes: The basic unit adjustment amount is calculated based on the number of effective adjustable lamps, the illuminance range, and the current system sensitivity. Obtain the target illuminance value, and calculate the deviation ratio based on the target illuminance value and the current illuminance error; The adjustment step size is determined based on the deviation ratio, the spatial distance weight, the number of effective adjustable lamps, and the basic unit adjustment amount.

5. The method as described in claim 4, characterized in that, The step of determining the adjustment step size based on the deviation ratio, the spatial distance weight, the number of effective adjustable lamps, and the basic unit adjustment amount includes: Obtain the correspondence between the deviation ratio and the step size adjustment threshold and damping factor; The current step size adjustment threshold and the current damping factor are determined based on the correspondence and the deviation ratio. The initial step size is calculated based on the current damping factor, the basic unit adjustment amount, the spatial distance weight, and the number of effective adjustable lamps. The initial step size is adjusted according to the current step size adjustment threshold to obtain the adjustment step size.

6. The method as described in claim 1, characterized in that, The step of selecting effective adjustable lamps based on the current illuminance error, the status information, and the current brightness includes: The online status and on / off status of each lamp are obtained based on the status information. The online-to-offline lamps are filtered to obtain candidate lamps; Based on the current illuminance error, the switch status, and the current brightness, the candidate lamps are screened to obtain effective adjustable lamps.

7. The method as described in claim 6, characterized in that, The step of filtering the candidate luminaires based on the current illuminance error, the switching state, and the current brightness to obtain effective adjustable luminaires includes: Determine the lamp adjustment direction based on the current illuminance error; When the lamp adjustment direction is to increase brightness, candidate lamps whose current brightness is the first brightness threshold are filtered out to obtain effective adjustable lamps; When the lamp adjustment direction is to dim, candidate lamps whose current brightness is the second brightness threshold are filtered to obtain effective adjustable lamps, wherein the first brightness threshold is greater than the second brightness threshold.

8. The method as described in claim 1, characterized in that, The steps for determining the current system sensitivity based on the aforementioned adjustable luminaires include: Obtain the total historical brightness value of the effective adjustable luminaire and the historical ambient light brightness value; The brightness change is calculated based on the current total brightness value of the effective adjustable lamps and the historical total brightness value of the lamps that have been turned on. The change in ambient illuminance is calculated based on the historical ambient light intensity value and the current ambient light intensity value. The current system sensitivity is calculated based on the changes in ambient illuminance and brightness.

9. The method as described in claim 8, characterized in that, The step of calculating the current system sensitivity based on the change in ambient illuminance and the change in brightness includes: The observation sensitivity is calculated based on the changes in ambient illuminance and the changes in brightness. When the change in brightness is greater than or equal to a preset adjustment step size threshold and the change in ambient illuminance is greater than or equal to an environmental sensor resolution threshold, the current system sensitivity is calculated using a preset smoothing coefficient and the observation sensitivity.

10. The method according to any one of claims 1 to 9, characterized in that, The steps for determining the current system sensitivity based on the aforementioned adjustable luminaires include: With the current dimming set to initial dimming, obtain the number of lights that are turned on in the effective adjustable luminaires and the average brightness of the effective adjustable luminaires; When the number of lights already turned on is greater than or equal to a preset number and the average brightness is greater than or equal to a preset brightness threshold, the current system sensitivity is calculated based on the current ambient light brightness value, the number of lights already turned on, and the average brightness.

11. The method according to any one of claims 1 to 9, characterized in that, The steps of calculating the spatial distance weight based on the effective adjustable luminaires and determining the comprehensive spatial efficiency based on the spatial distance weights include: Obtain the physical distance between the adjustable luminaire and the light sensing terminal, and set the initial space efficiency; The distance attenuation power is dynamically adjusted based on the initial spatial efficiency. Based on the physical distance and the dynamically adjusted distance attenuation power, the spatial distance weight of the effective adjustable luminaire is calculated. Calculate the remaining adjustable capacity of the effective adjustable luminaires; Using the spatial distance weight as the weight, the remaining adjustable capacity is weighted and summed to obtain the overall spatial efficiency.

12. The method according to any one of claims 1 to 9, characterized in that, The step of adjusting the brightness of the effectively adjustable lamp according to the adjustment step size includes: Determine the lamp adjustment direction based on the current illuminance error; The brightness of the effectively adjustable lamp is adjusted according to the lamp adjustment direction and the adjustment step size.

13. An automatic dimming device, characterized in that, The device includes: The acquisition module is used to acquire the current ambient light intensity value, the status information of each lamp, and the current brightness of each lamp; The determination module is used to determine the current illuminance error based on the current ambient light intensity value; The filtering module is used to filter the lamps based on the current illuminance error, the status information, and the current brightness to obtain effective adjustable lamps, and to determine the current system sensitivity based on the effective adjustable lamps; The calculation module is used to calculate the spatial distance weight based on the effective adjustable luminaire, and determine the comprehensive spatial efficiency based on the spatial distance weight; The adjustment module is used to dynamically adjust the PID adjustment coefficient based on the current illuminance error and the overall space efficiency to obtain the illuminance range value; The calculation module is also used to calculate the adjustment step size based on the illuminance threshold, the current illuminance error, the current system sensitivity, the spatial distance weight, and the number of effective adjustable lamps; An adjustment module is used to adjust the brightness of the effectively adjustable lamp according to the adjustment step size.

14. An automatic dimming device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the automatic dimming method as described in any one of claims 1 to 12.

15. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the automatic dimming method as described in any one of claims 1 to 12.