Landscape lamp intelligent control method and system based on light induction and timing

By using a light-sensing and timing-based intelligent control method for landscape lighting, and utilizing photosensitive sensors and RTC units to calculate sunrise and sunset times, personalized and precise control of landscape lighting is achieved. This solves the energy waste and comfort issues of traditional landscape lighting control methods, and achieves a balance between energy saving and comfortable lighting.

CN121038048AInactive Publication Date: 2025-11-28HANGZHOU BEICHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511271240.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-08
Publication Date
2025-11-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional landscape lighting control methods require manual timed switching, which cannot be flexibly adjusted according to ambient lighting conditions, resulting in energy waste and an inability to achieve a balance between energy saving and comfortable lighting.

Method used

The system employs a light-sensing and timing-based intelligent control method for landscape lighting. It detects light intensity using a photosensitive sensor, calculates sunrise and sunset times using an RTC unit, sets seasonal light intensity levels, and automatically controls the on/off status of the landscape lights to achieve personalized and precise lighting management.

Benefits of technology

It improves the intelligence level of landscape lighting, achieves a balance between energy saving and comfortable lighting, avoids energy waste, and ensures that landscape lights are turned on and off at appropriate times to meet the lighting needs of different seasons.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

The invention relates to the technical field of landscape lamp intelligent control, in particular to a landscape lamp intelligent control method and system based on light sensing and timing, and the method comprises the steps: obtaining a seasonal illumination intensity grade group, obtaining a current illumination value sequence, determining a current seasonal illumination intensity grade, carrying out the fault detection of a light sensing unit, and obtaining fault detection data; if fault data exists in the fault detection data, obtaining the state of the landscape lamp, and if non-fault data exists in the fault detection data, extracting a second illumination intensity grade and a fourth illumination intensity grade from the illumination intensity grades in the current season, and determining a target sunrise and sunset interval; landscape lamp intelligent control based on light induction and timing is completed based on the landscape lamp turn-on state or the landscape lamp turn-off state. The intelligent level of the landscape lamp can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent control technology for landscape lighting, and in particular to an intelligent control method and system for landscape lighting based on light sensing and timing. Background Technology

[0002] Light sensing refers to the process of detecting ambient light intensity using a photosensitive sensor and converting the light signal into an electrical signal. Timing refers to executing specific operations according to a preset schedule or time interval using a clock module or timer function. Landscape lighting refers to lighting fixtures used for outdoor landscape illumination, typically for beautifying the environment and enhancing nighttime landscape effects.

[0003] Traditional landscape lighting typically uses manual switches, requiring manual on / off timing. This method is not only time-consuming and labor-intensive, but also lacks the flexibility to adjust to actual ambient lighting conditions, leading to energy waste. Furthermore, traditional control methods cannot dynamically adjust brightness based on ambient light intensity and weather conditions, failing to achieve a balance between energy saving and comfortable lighting. Therefore, improving the intelligence level of landscape lighting is an urgent technical problem to be solved. Summary of the Invention

[0004] This invention provides a smart control method for landscape lighting based on light sensing and timing, and a computer-readable storage medium. Its main purpose is to improve the intelligence level of landscape lighting and achieve a balance between energy saving and comfortable lighting.

[0005] To achieve the above objectives, the present invention provides a smart control method for landscape lighting based on light sensing and timing, comprising: The intelligent control system for landscape lighting and multiple seasonal detection periods were identified. The intelligent control system for landscape lighting includes: landscape lights, a light-off unit, a light-on unit, an automatic lighting control mode, a photosensitive sensor, a light-sensing unit, and an RTC unit. Based on multiple seasonal detection periods and the intelligent control system for landscape lighting, seasonal light intensity level groups are obtained. The seasonal light intensity level group includes multiple seasonal light intensity levels, and each seasonal light intensity level corresponds one-to-one with a seasonal detection period. The seasonal light intensity level includes multiple light intensity levels. Obtain the current illumination value sequence, determine the current seasonal illumination intensity level based on the current illumination value sequence and seasonal illumination intensity level group, perform fault detection on the light sensing unit, and obtain fault detection data, where fault detection data is either fault data or non-fault data; If the fault detection data is fault data, then the landscape lighting status is obtained based on the automatic lighting control mode. If the fault detection data is non-fault data, then extract the second and fourth light intensity levels from the current seasonal light intensity level, and determine the target sunrise and sunset interval based on the current seasonal light intensity level. If the current seasonal light intensity level is greater than or equal to the second light intensity level, the current seasonal light intensity level is less than the fourth light intensity level, and the current seasonal light intensity level is within the target sunrise and sunset interval, then the lighting unit is triggered to obtain the landscape lights in the lighting state. If the current seasonal light intensity level is less than the second light intensity level, the current seasonal light intensity level is greater than or equal to the fourth light intensity level, and the current seasonal light intensity level is not within the target sunrise and sunset interval, then the light-off unit is triggered, and the landscape lights are in the light-off state. Intelligent control of landscape lights is achieved based on their status, whether they are on or off, using light sensing and timing.

[0006] Optionally, the step of obtaining seasonal light intensity level groups based on multiple seasonal detection periods and the intelligent landscape lighting control system includes: Perform the following operations for each of the multiple seasonal testing periods: Using preset historical detection frequencies, seasonal detection periods, the RTC unit of the landscape lighting intelligent control system, and photosensitive sensors, multi-source data is collected from the landscape lighting to obtain a set of ambient light intensity values, a set of current times, and a set of geographical locations. The sunset time set is calculated based on the set of current times and geographical locations. The ambient light intensity values ​​correspond one-to-one with the current time, geographical location, and sunset time. Normalize each ambient light intensity value in the set of ambient light intensity values ​​to obtain a normalized set of ambient light intensity values. Set an initial set of cluster center points, and obtain the mean set of cluster centers and the set of cluster center point groups based on the initial set of cluster center points and the normalized ambient light intensity value set; The total clustering error is calculated based on the sunset time set, the mean set of cluster centers of each category, the set of cluster center points of each category, and the initial set of cluster center points. The total clustering error is then compared with the preset total clustering error threshold. If the total clustering error is greater than the preset total clustering error threshold, the mean set of the cluster centers of the category is used as the initial set of cluster centers, and the process of collecting multi-source data of the landscape lights using the preset historical detection frequency, seasonal detection period, RTC unit of the landscape lighting intelligent control system and photosensitive sensor is returned until the total clustering error is less than or equal to the preset total clustering error threshold. If the total clustering error is less than or equal to the preset total clustering error threshold, the set of average cluster centers of each category will be used as the seasonal light intensity level, where the light intensity level corresponds one-to-one with the average cluster center of each category. By summarizing the seasonal light intensity levels, we obtain the seasonal light intensity level groups.

[0007] Optionally, obtaining the cluster center mean set based on the initial cluster center set and the normalized ambient light intensity value set includes: For each normalized ambient light intensity value in the set of normalized ambient light intensity values, the following operations are performed: extract the initial cluster center points from the initial cluster center point set in sequence, and calculate the light intensity cluster distance based on the normalized ambient light intensity value and the initial cluster center points; Summarize the light intensity clustering distances to obtain a light intensity clustering distance group. Extract the minimum light intensity clustering distance from the light intensity clustering distance group and determine the cluster center point index based on the minimum light intensity clustering distance. The minimum light intensity clustering distance is assigned based on the cluster center point index to obtain the category cluster center point group; The cluster centroids of each category are summarized to obtain the cluster centroid set. The cluster centroid mean set is obtained from the cluster centroid set. There is a one-to-one correspondence between the cluster centroids in the cluster centroid set and the cluster centroid mean in the cluster centroid mean set.

[0008] Optionally, the step of calculating the total clustering error based on the sunset time set, the set of mean cluster centers for each category, the set of cluster center points for each category, and the initial set of cluster center points includes: Obtain the installation angle of the photosensitive sensor, and calculate the spatiotemporal correction factor based on the installation angle and the current time; The target sunset time is determined from the sunset time set based on the normalized ambient light intensity value. The total clustering error is calculated based on the current time, target sunset time, spatiotemporal correction factor, mean set of cluster centers, set of cluster center points, and initial set of cluster centers. The formula for calculating the total clustering error is as follows: in, This represents the total clustering error. This represents the number of initial cluster centers in the initial cluster center set. This represents the normalized ambient light intensity value. Represents the natural constant. Represents the first cluster of cluster centers in the set of categories. Cluster center groups for each category This represents the preset adjustment time sensitivity coefficient. Indicates the target sunset time. Represents the cosine function. Represents the first cluster of cluster center means. Mean of cluster centers for each category This indicates the preset adjustment coefficient. Indicates the current time. Represents the spatiotemporal correction factor. Indicates the installation angle.

[0009] Optionally, determining the current seasonal light intensity level based on the current light value sequence and the seasonal light intensity level group includes: Extract the current illumination value sequentially from the current illumination value sequence, determine the current season based on the current illumination value, and determine the target season illumination intensity level from the seasonal illumination intensity level group based on the current season; Based on the current illumination value, the current illumination intensity level is determined from the target season illumination intensity level. The next current illumination value adjacent to the current illumination value is extracted from the current illumination value sequence to obtain the adjacent illumination value. The adjacent illumination value is used as the current illumination value. The process of extracting the current illumination value from the current illumination value sequence is repeated until all current illumination values ​​in the current illumination value sequence have been extracted. Summarize the current light intensity levels to obtain the current light intensity level group, and determine whether the current light intensity levels in the current light intensity level group are all the same; If the current light intensity levels in the current light intensity level group are all different, then collect the subsequent light value sequence, use the subsequent light value sequence as the current light value sequence, and return to the step of extracting the current light value from the current light value sequence in turn, until the current light intensity levels in the current light intensity level group are all the same. If all current light intensity levels in the current light intensity level group are the same, then any one of the current light intensity levels in the current light intensity level group shall be taken as the current seasonal light intensity level.

[0010] Optionally, The fault detection of the photosensitive unit, to obtain fault detection data, includes: Start the pre-built photosensitive unit light shield, collect data from the photosensitive unit according to the light shield after startup and the preset sampling rate, obtain the original voltage value set, and calculate the voltage mean and voltage standard deviation of the original voltage value set. A stepped brightness test was performed on the photosensitive unit to obtain the response curve, and the linearity and sensitivity deviation were calculated based on the response curve. If the average voltage, standard deviation of voltage, linearity, and sensitivity deviation do not meet the preset normal photosensitive unit parameter range conditions, the fault detection data will be confirmed as fault data. If the average voltage, standard deviation of voltage, linearity, and sensitivity deviation meet the preset normal photosensitive unit parameter range conditions, then the fault detection data will be confirmed as fault-free data.

[0011] Optionally, obtaining the landscape lighting status based on the automatic lighting control mode includes: The landscape lights are controlled according to the preset seasonal lighting times and automatic lighting control modes to obtain the initial landscape light brightness. The illumination deviation is calculated based on the preset target brightness and the initial landscape light brightness. The historical illumination deviation is obtained. The time interval and the difference in illumination deviation are obtained based on the illumination deviation and the historical illumination deviation. Obtain the total compensation coefficient, calculate the environmental degradation index based on the total compensation coefficient, and set the first-level compensation interval and the second-level compensation interval; If the environmental degradation index is within the first-level compensation range or the second-level compensation range, the deviation change rate is calculated based on the time interval and the difference in light deviation, and a first threshold and a second threshold are set, wherein the first threshold is greater than the second threshold. If the illumination deviation is less than zero, the deviation change rate is less than the first threshold and greater than the second threshold, then the brightness state of the initial landscape light is adjusted by using the preset first increase brightness gradient to obtain the first landscape light state. If the illumination deviation is less than zero and the deviation change rate is less than or equal to the second threshold, then the brightness state of the initial landscape light is adjusted by using the preset second brightness gradient to obtain the second landscape light state. If the illumination deviation is less than zero and the deviation change rate is greater than the first threshold, then the brightness state of the initial landscape light is adjusted by using the preset third brightness gradient to obtain the third landscape light state. If the illumination deviation is greater than zero and the deviation change rate is greater than or equal to the first threshold, then the brightness state of the initial landscape light is adjusted by using the preset first brightness reduction gradient to obtain the fourth landscape light state. If the illumination deviation is greater than zero, the deviation change rate is greater than or equal to the second threshold and less than the first threshold, then the brightness state of the initial landscape light is adjusted by using the preset second brightness reduction gradient to obtain the fifth landscape light state. If the illumination deviation is greater than zero and the deviation change rate is less than the second threshold, then the brightness state of the initial landscape light is adjusted by using the preset third brightness reduction gradient to obtain the sixth landscape light state. The landscape light status is obtained based on the first, second, third, fourth, fifth, and sixth landscape light statuses.

[0012] Optionally, obtaining the total compensation coefficient includes: Obtain haze concentration data, wind speed data, temperature data, and precipitation data; obtain wind speed level based on wind speed data; obtain precipitation intensity level based on precipitation data; and calculate comprehensive environmental status index based on haze concentration data, wind speed level, and precipitation intensity level. The total compensation coefficient is calculated based on comprehensive environmental conditions, temperature data, wind speed level, and precipitation intensity level. The formula for calculating the total compensation coefficient is as follows: in, This represents the total compensation coefficient. This represents a comprehensive indicator of environmental status. This represents data on smog concentration. Indicates the level of precipitation intensity. Representing temperature data, Indicates wind speed level.

[0013] Optionally, the step of increasing the initial brightness of the landscape lights using a preset first brightness gradient to obtain a first landscape light state includes: Obtain the pulse width modulation duty cycle of the initial landscape light brightness, and determine whether the pulse width modulation duty cycle is within the preset pulse width modulation duty cycle range; If the pulse width modulation duty cycle is within the preset pulse width modulation duty cycle range, the pulse width modulation duty cycle is adjusted by the first increase in brightness gradient to obtain the adjusted duty cycle. If the pulse width modulation duty cycle is not within the preset pulse width modulation duty cycle range, then obtain the upper limit and lower limit of the pulse width modulation duty cycle range, and compare the pulse width modulation duty cycle with the upper limit and the pulse width modulation duty cycle with the lower limit. If the pulse width modulation duty cycle is greater than the upper limit of the interval, then the upper limit of the interval shall be used as the pulse width modulation duty cycle; If the pulse width modulation duty cycle is less than the lower limit of the interval, then the lower limit of the interval shall be used as the pulse width modulation duty cycle; The status of the first landscape light is determined by adjusting the duty cycle or pulse width modulation duty cycle.

[0014] To achieve the above objectives, the present invention also provides an intelligent control system for landscape lighting based on light sensing and timing, comprising: The detection period confirmation module is used to confirm the intelligent control system for landscape lighting and multiple seasonal detection periods. The intelligent control system for landscape lighting includes: landscape lights, a light-off unit, a light-on unit, an automatic lighting control mode, a photosensitive sensor, a light-sensing unit, and an RTC unit. Based on the multiple seasonal detection periods and the intelligent control system for landscape lighting, it obtains a group of seasonal light intensity levels. The group of seasonal light intensity levels includes multiple seasonal light intensity levels, and each seasonal light intensity level corresponds one-to-one with a seasonal detection period. The seasonal light intensity level includes multiple light intensity levels. The light intensity level group acquisition module is used to acquire the current light value sequence, determine the current seasonal light intensity level based on the current light value sequence and the seasonal light intensity level group, perform fault detection on the light sensing unit, and obtain fault detection data, wherein the fault detection data is fault data or non-fault data. The light sensor fault detection module is used to obtain the landscape light status based on the automatic light control mode if the fault detection data is fault data, and to extract the second light intensity level and the fourth light intensity level from the current seasonal light intensity level if the fault detection data is not fault data, and to determine the target sunrise and sunset interval based on the current seasonal light intensity level. The landscape lighting status control module is used to trigger the lighting unit to ensure the landscape lights are in an on state if the current season's light intensity level is greater than or equal to the second light intensity level, less than the fourth light intensity level, and the current season's light intensity level is within the target sunrise / sunset interval. If the current season's light intensity level is less than the second light intensity level, greater than or equal to the fourth light intensity level, and the current season's light intensity level is not within the target sunrise / sunset interval, the lighting unit is triggered to ensure the landscape lights are in a off state. Based on the landscape lighting status, whether the landscape lights are on or off, intelligent control of the landscape lights is achieved based on light sensing and timing.

[0015] To address the above problems, the present invention also provides an electronic device, the electronic device comprising: Memory, storing at least one instruction; The processor executes the instructions stored in the memory to implement the above-described intelligent control method for landscape lighting based on light sensing and timing.

[0016] To address the aforementioned problems, the present invention also provides a computer-readable storage medium storing at least one instruction, which is executed by a processor in an electronic device to implement the above-described intelligent control method for landscape lighting based on light sensing and timing.

[0017] To address the problems described in the background art, this invention identifies an intelligent landscape lighting control system and multiple seasonal detection periods. The intelligent landscape lighting control system includes: landscape lights, a light-off unit, a light-on unit, an automatic lighting control mode, a photosensor, a light-sensing unit, and an RTC unit. This invention determines multiple seasonal detection periods, taking into account the differences in light duration and intensity across different seasons. This allows the landscape lighting control to be adjusted according to seasonal changes, improving the flexibility and adaptability of landscape lighting control and avoiding unreasonable control due to seasonal factors. Based on the multiple seasonal detection periods and the intelligent landscape lighting control system, seasonal light intensity level groups are obtained. These seasonal light intensity level groups include multiple seasonal... The invention establishes a one-to-one correspondence between seasonal light intensity levels and seasonal detection periods. Each seasonal light intensity level includes multiple levels. This allows for personalized control of landscape lighting based on the characteristics of different seasons, improving the accuracy and rationality of landscape lighting control and meeting the lighting needs of different seasons. The invention acquires the current light value sequence, confirms the current seasonal light intensity level based on the current light value sequence and the seasonal light intensity level group, and performs fault detection on the light sensing unit to obtain fault detection data. This fault detection data can be either faulty or non-faulty data. The invention achieves this by acquiring the current light value sequence and confirming the current light value and the seasonal light intensity level. The system monitors the light intensity level of the previous season, enabling real-time monitoring of the current lighting conditions and reflecting changes in ambient light promptly. This provides the latest data support for the real-time control of the landscape lights. Fault detection of the light sensor unit allows for timely identification of any malfunctions. Once a fault is detected, appropriate measures can be taken to ensure the reliability and stability of the landscape light control. If the fault detection data indicates a fault, the landscape light status is obtained based on the automatic lighting control mode. This invention ensures that even when the light sensor unit malfunctions, the landscape lights can still be switched on and off according to the preset automatic control mode. This operation ensures the basic lighting function of the landscape lights, preventing malfunctions due to light sensor failure. If the fault detection data is normal, the second and fourth light intensity levels are extracted from the current seasonal light intensity level. Based on the current seasonal light intensity level, the target sunrise and sunset interval is determined. This invention provides specific light intensity thresholds for the switching control of the landscape lights by extracting the second and fourth light intensity levels from the current seasonal light intensity level. Combined with the current light value to determine the target sunrise and sunset interval, the control conditions are further refined, allowing the switching operation of the landscape lights to more accurately match the sunrise and sunset times, improving the scientific and rational nature of the landscape light control.If the current seasonal light intensity level is greater than or equal to the second light intensity level, less than the fourth light intensity level, and within the target sunrise / sunset interval, the lighting unit is triggered, resulting in the landscape lights being turned on. This invention, by setting specific light intensity levels and sunrise / sunset interval conditions, triggers the lighting unit when these conditions are met, ensuring the landscape lights are accurately turned on at the appropriate time. This avoids turning on the lights too early or too late, satisfying the landscape lighting needs while saving energy. If the current seasonal light intensity level is less than the second light intensity level, etc. If the current seasonal light intensity level is greater than or equal to the fourth light intensity level and is not within the target sunrise / sunset interval, the lighting unit is triggered, resulting in the landscape lights being switched off. Similarly, this invention triggers the lighting unit when the set light intensity level and sunrise / sunset interval conditions are met, ensuring the landscape lights are accurately switched off at the appropriate time, avoiding unnecessary lighting, reducing energy waste, and lowering operating costs. Based on the landscape light status—whether the lights are on or off—intelligent control of the landscape lights is achieved through light sensing and timing. Therefore, this invention can improve the intelligence level of landscape lights and achieve a balance between energy saving and comfortable lighting. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating an embodiment of the intelligent control method for landscape lighting based on light sensing and timing provided by the present invention. Figure 2 A functional block diagram of a landscape lighting intelligent control system based on light sensing and timing provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of an electronic device that implements the intelligent control method for landscape lighting based on light sensing and timing, according to an embodiment of the present invention.

[0019] Explanation of reference numerals in the attached figures: 10. Electronic device; 11. Processor; 12. Memory; 13. Bus.

[0020] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0021] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0022] This application provides a smart control method for landscape lighting based on light sensing and timing. The executing entity of this smart control method includes, but is not limited to, at least one of the following electronic devices that can be configured to execute the method provided in this application: a server, a terminal, etc. In other words, the smart control method for landscape lighting based on light sensing and timing can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster.

[0023] Reference Figure 1 The diagram shown is a flowchart illustrating a landscape lighting intelligent control method based on light sensing and timing, according to an embodiment of the present invention. In this embodiment, the landscape lighting intelligent control method based on light sensing and timing includes: S1. Identify the intelligent control system for landscape lighting and multiple seasonal detection periods. The intelligent control system for landscape lighting includes: landscape lights, a light-off unit, a light-on unit, an automatic lighting control mode, a photosensitive sensor, a light-sensing unit, and an RTC unit.

[0024] It should be explained that a landscape lighting intelligent control system is an integrated lighting management system designed to optimize the operation of landscape lights through automation and intelligent technologies, achieving energy-saving, efficient, and comfortable lighting effects. This system uses multiple units working collaboratively to automatically control the switching on / off and brightness adjustment of landscape lights based on ambient light conditions and a preset schedule. Landscape lights refer to lighting fixtures used for outdoor landscape lighting, typically for beautifying the environment and enhancing nighttime landscape effects. The "lights off" unit is responsible for turning off the landscape lights. The "lights on" unit is responsible for turning on the landscape lights. The automatic lighting control mode is a module used to automatically adjust the brightness or on / off status of landscape lights according to different environmental conditions and time. The light sensing unit is used to detect ambient light intensity; it includes a photosensitive sensor (such as the BH1750) that can monitor ambient light intensity in real time and convert it into an electrical signal. The RTC unit is used to provide accurate time information; it includes a real-time clock chip (such as the DS3231) that can calculate sunrise and sunset times based on geographical location. Multiple seasonal detection periods are included: spring detection period, summer detection period, autumn detection period, and winter detection period.

[0025] S2. Based on multiple seasonal detection periods and the intelligent control system for landscape lighting, obtain seasonal light intensity level groups. The seasonal light intensity level groups include multiple seasonal light intensity levels, and each seasonal light intensity level corresponds one-to-one with a seasonal detection period. The seasonal light intensity level includes multiple light intensity levels.

[0026] Specifically, the acquisition of seasonal light intensity level groups based on multiple seasonal detection periods and the intelligent landscape lighting control system includes: Perform the following operations for each of the multiple seasonal testing periods: Using preset historical detection frequencies, seasonal detection periods, the RTC unit of the landscape lighting intelligent control system, and photosensitive sensors, multi-source data is collected from the landscape lighting to obtain a set of ambient light intensity values, a set of current times, and a set of geographical locations. The sunset time set is calculated based on the set of current times and geographical locations. The ambient light intensity values ​​correspond one-to-one with the current time, geographical location, and sunset time. Normalize each ambient light intensity value in the set of ambient light intensity values ​​to obtain a normalized set of ambient light intensity values. Set an initial set of cluster center points, and obtain the mean set of cluster centers and the set of cluster center point groups based on the initial set of cluster center points and the normalized ambient light intensity value set; The total clustering error is calculated based on the sunset time set, the mean set of cluster centers of each category, the set of cluster center points of each category, and the initial set of cluster center points. The total clustering error is then compared with the preset total clustering error threshold. If the total clustering error is greater than the preset total clustering error threshold, the mean set of the cluster centers of the category is used as the initial set of cluster centers, and the process of collecting multi-source data of the landscape lights using the preset historical detection frequency, seasonal detection period, RTC unit of the landscape lighting intelligent control system and photosensitive sensor is returned until the total clustering error is less than or equal to the preset total clustering error threshold. If the total clustering error is less than or equal to the preset total clustering error threshold, the set of average cluster centers of each category will be used as the seasonal light intensity level, where the light intensity level corresponds one-to-one with the average cluster center of each category. By summarizing the seasonal light intensity levels, we obtain the seasonal light intensity level groups.

[0027] It should be explained that historical detection frequency refers to the frequency at which the system collects ambient light intensity values ​​within past detection periods. For example, the historical detection frequency is once every 5 minutes. Seasonal detection period refers to the time period during which ambient light intensity values ​​are detected in each season. For example, in summer, the seasonal detection period is 19:00-9:00. Ambient light intensity value refers to the current ambient light intensity measured by a photosensor. Ambient light intensity value set refers to the set of all ambient light intensity values. Current time set refers to the set of all current times. Geographical location set refers to the set of all geographic locations. In the embodiments of this invention, all geographic locations in the geographic location set are the same. Current time refers to the current date and time information obtained by the system through the RTC unit. Geographical location refers to the specific latitude and longitude information of the landscape lights, used to calculate sunrise and sunset times. The calculation of the sunset time set based on the current time set and geographic location set refers to sequentially extracting ambient light intensity values ​​from the ambient light intensity value set, confirming the corresponding current time and geographic location from the current time set and geographic location set based on the ambient light intensity values, calculating the sunset time based on the current time, geographic location, and sun position algorithm, and summing the sunset times to obtain the sunset time set. Normalizing each ambient light intensity value in the ambient light intensity value set refers to normalizing each ambient light intensity value in the set using the maximum-minimum normalization formula. The normalized ambient light intensity value set refers to the collection of normalized ambient light intensity values. The purpose of normalization in this embodiment is to eliminate the influence of data dimensions, facilitating subsequent analysis and processing. Initial cluster centroids refer to the cluster centroids that are pre-set manually based on experience at the start of the clustering algorithm. The total clustering error threshold refers to a pre-set upper limit for error in the clustering algorithm; when the total clustering error is less than or equal to this threshold, the algorithm stops iterating. The initial cluster centroid set refers to the collection of all initial cluster centroids.

[0028] Specifically, obtaining the mean set of cluster centers based on the initial set of cluster centers and the normalized set of ambient light intensity values ​​includes: For each normalized ambient light intensity value in the set of normalized ambient light intensity values, the following operations are performed: extract the initial cluster center points from the initial cluster center point set in sequence, and calculate the light intensity cluster distance based on the normalized ambient light intensity value and the initial cluster center points; Summarize the light intensity clustering distances to obtain a light intensity clustering distance group. Extract the minimum light intensity clustering distance from the light intensity clustering distance group and determine the cluster center point index based on the minimum light intensity clustering distance. The minimum light intensity clustering distance is assigned based on the cluster center point index to obtain the category cluster center point group; The cluster centroids of each category are summarized to obtain the cluster centroid set. The cluster centroid mean set is obtained from the cluster centroid set. There is a one-to-one correspondence between the cluster centroids in the cluster centroid set and the cluster centroid mean in the cluster centroid mean set.

[0029] It should be explained that calculating the light intensity clustering distance based on the normalized ambient light intensity value and the initial cluster centroids refers to calculating the light intensity clustering distance using the Euclidean distance formula. A light intensity clustering distance set refers to the set of light intensity clustering distances from a given normalized ambient light intensity value to each initial cluster centroid in the initial cluster centroid set. The minimum light intensity clustering distance refers to the smallest light intensity clustering distance in the light intensity clustering distance set. The cluster centroid index refers to the position of the minimum light intensity clustering distance within the light intensity clustering distance set. A category cluster centroid set refers to the cluster centroid set obtained by allocating the minimum light intensity clustering distance according to the cluster centroid index. A category cluster centroid set refers to the set composed of all category cluster centroid sets. The cluster center mean set refers to the set of cluster center means of each category, which is obtained by calculating the mean of all data points in each cluster center group. The cluster center mean of all categories is then summarized to obtain the cluster center mean set.

[0030] In detail, the calculation of the total clustering error based on the sunset time set, the set of mean cluster centers for each category, the set of cluster center points for each category, and the initial set of cluster center points includes: Obtain the installation angle of the photosensor, and calculate the spatiotemporal correction factor based on the installation angle and the current time. The formula for calculating the spatiotemporal correction factor is as follows: in, Represents the spatiotemporal correction factor. Indicates the current time. Indicates the installation angle. Represents the sine function. Represents pi; The target sunset time is determined from the sunset time set based on the normalized ambient light intensity value. The total clustering error is calculated based on the current time, target sunset time, spatiotemporal correction factor, mean set of cluster centers, set of cluster center points, and initial set of cluster centers. The formula for calculating the total clustering error is as follows: in, This represents the total clustering error. This represents the number of initial cluster centers in the initial cluster center set. This represents the normalized ambient light intensity value. Represents the natural constant. Represents the first cluster of cluster centers in the set of categories. Cluster center groups for each category This represents the preset adjustment time sensitivity coefficient. Indicates the target sunset time. Represents the cosine function. Represents the first cluster of cluster center means. Mean of cluster centers for each category This indicates the preset adjustment coefficient. Indicates the current time. Represents the spatiotemporal correction factor. Indicates the installation angle.

[0031] It should be explained that the spatiotemporal correction factor is a correction factor used to adjust the light intensity data, taking into account the influence of time and installation angle on light intensity. It dynamically adjusts the light intensity value through a combination of a sine function and the installation angle to more accurately reflect actual lighting conditions. The installation angle refers to the angle at which the photosensitive sensor is installed relative to the horizontal plane; this angle affects the light intensity received by the sensor because the amount of light received by the sensor varies at different angles. The target sunset time refers to the sunset time identified from the sunset time set corresponding to the normalized light intensity value. The adjustment coefficient is a pre-set coefficient used to adjust the weight of the spatiotemporal correction factor in the calculation of the total clustering error; it determines the degree of influence of the spatiotemporal correction factor on the final error. The larger the spatiotemporal correction factor, the greater its influence on the final error. The adjustment time sensitivity coefficient is a pre-set coefficient used to control the degree of influence of the difference between the current time and the target sunset time on the clustering error. The larger the adjustment time sensitivity coefficient, the greater the influence of the difference between the current time and the target sunset time on the clustering error.

[0032] S3. Obtain the current illumination value sequence, determine the current seasonal illumination intensity level based on the current illumination value sequence and the seasonal illumination intensity level group, perform fault detection on the light sensing unit, and obtain fault detection data, where the fault detection data is fault data or non-fault data.

[0033] Specifically, determining the current seasonal light intensity level based on the current light value sequence and the seasonal light intensity level group includes: Extract the current illumination value sequentially from the current illumination value sequence, determine the current season based on the current illumination value, and determine the target season illumination intensity level from the seasonal illumination intensity level group based on the current season; Based on the current illumination value, the current illumination intensity level is determined from the target season illumination intensity level. The next current illumination value adjacent to the current illumination value is extracted from the current illumination value sequence to obtain the adjacent illumination value. The adjacent illumination value is used as the current illumination value. The process of extracting the current illumination value from the current illumination value sequence is repeated until all current illumination values ​​in the current illumination value sequence have been extracted. Summarize the current light intensity levels to obtain the current light intensity level group, and determine whether the current light intensity levels in the current light intensity level group are all the same; If the current light intensity levels in the current light intensity level group are all different, then collect the subsequent light value sequence, use the subsequent light value sequence as the current light value sequence, and return to the step of extracting the current light value from the current light value sequence in turn, until the current light intensity levels in the current light intensity level group are all the same. If all current light intensity levels in the current light intensity level group are the same, then any one of the current light intensity levels in the current light intensity level group shall be taken as the current seasonal light intensity level.

[0034] It should be explained that the current illumination value sequence refers to a series of illumination intensity values ​​continuously collected by the light-sensing unit (photosensitive sensor), reflecting the changes in the current ambient illumination intensity. The current illumination value refers to a single illumination intensity value extracted from the current illumination value sequence, used to determine the current ambient illumination intensity. The current season refers to the season determined based on the current illumination value, current time, or geographical location. The target season illumination intensity level refers to the corresponding seasonal illumination intensity level for the current season. The current illumination intensity level refers to the level determined based on the current illumination value within the target season illumination intensity level. The adjacent illumination value refers to the next illumination value adjacent to the current illumination value in the current illumination value sequence. The current illumination intensity level group refers to the set of all current illumination intensity levels during the processing of the current illumination value sequence. The subsequent illumination value sequence refers to the illumination value sequence collected in the next adjacent collection period of the current illumination value sequence.

[0035] Specifically, the fault detection of the photosensitive unit to obtain fault detection data includes: Start the pre-built photosensitive unit light shield, collect data from the photosensitive unit according to the light shield after startup and the preset sampling rate, obtain the original voltage value set, and calculate the voltage mean and voltage standard deviation of the original voltage value set. A stepped brightness test was performed on the photosensitive unit to obtain the response curve, and the linearity and sensitivity deviation were calculated based on the response curve. If the average voltage, standard deviation of voltage, linearity, and sensitivity deviation do not meet the preset normal photosensitive unit parameter range conditions, the fault detection data will be confirmed as fault data. If the average voltage, standard deviation of voltage, linearity, and sensitivity deviation meet the preset normal photosensitive unit parameter range conditions, then the fault detection data will be confirmed as fault-free data.

[0036] It should be explained that the light-shielding cloth for the photosensitive unit refers to a device used to block the photosensitive unit, used to test the performance of the photosensitive unit under no-light conditions, and to help detect whether the photosensitive unit has light leakage or other abnormalities. The sampling rate refers to the pre-set frequency at which the photosensitive unit collects data. The raw voltage value set refers to the set of all voltage values ​​collected by the photosensitive unit. The voltage mean refers to the average value of the raw voltage value set. The voltage standard deviation refers to the standard deviation of the raw voltage values ​​in the raw voltage value set. The step-brightness test of the photosensitive unit to obtain the response curve refers to using a controllable light source to gradually change the light intensity, recording the output electrical signal of the photosensitive unit at each light intensity, and plotting the recorded output electrical signal of the photosensitive unit into a response curve, where the horizontal axis of the response curve represents the light intensity, and the vertical axis represents the output electrical signal of the photosensitive unit. The output electrical signal can be voltage or current. Linearity evaluates the linear relationship between the output of the photosensitive unit and the light intensity; the higher the linearity, the closer the relationship between the output of the photosensitive unit and the light intensity is to linearity. Sensitivity deviation evaluates the change in sensitivity of the photosensitive unit under different light intensities. The smaller the sensitivity deviation, the more stable the sensitivity of the photosensitive unit. Normal photosensitive unit parameter range conditions refer to the pre-set normal range of the photosensitive unit's performance parameters. These range conditions include: average voltage range, standard voltage deviation range, linearity range, and sensitivity deviation range.

[0037] S4. If the fault detection data is fault data, then obtain the landscape light status based on the automatic lighting control mode.

[0038] Specifically, obtaining the landscape lighting status based on the automatic lighting control mode includes: The landscape lights are controlled according to the preset seasonal lighting times and automatic lighting control modes to obtain the initial landscape light brightness. The illumination deviation is calculated based on the preset target brightness and the initial landscape light brightness. The historical illumination deviation is obtained. The time interval and the difference in illumination deviation are obtained based on the illumination deviation and the historical illumination deviation. Obtain the total compensation coefficient, calculate the environmental degradation index based on the total compensation coefficient, and set the first-level compensation interval and the second-level compensation interval; If the environmental degradation index is within the first-level compensation range or the second-level compensation range, the deviation change rate is calculated based on the time interval and the difference in light deviation, and a first threshold and a second threshold are set, wherein the first threshold is greater than the second threshold. If the illumination deviation is less than zero, the deviation change rate is less than the first threshold and greater than the second threshold, then the brightness state of the initial landscape light is adjusted by using the preset first increase brightness gradient to obtain the first landscape light state. If the illumination deviation is less than zero and the deviation change rate is less than or equal to the second threshold, then the brightness state of the initial landscape light is adjusted by using the preset second brightness gradient to obtain the second landscape light state. If the illumination deviation is less than zero and the deviation change rate is greater than the first threshold, then the brightness state of the initial landscape light is adjusted by using the preset third brightness gradient to obtain the third landscape light state. If the illumination deviation is greater than zero and the deviation change rate is greater than or equal to the first threshold, then the brightness state of the initial landscape light is adjusted by using the preset first brightness reduction gradient to obtain the fourth landscape light state. If the illumination deviation is greater than zero, the deviation change rate is greater than or equal to the second threshold and less than the first threshold, then the brightness state of the initial landscape light is adjusted by using the preset second brightness reduction gradient to obtain the fifth landscape light state. If the illumination deviation is greater than zero and the deviation change rate is less than the second threshold, then the brightness state of the initial landscape light is adjusted by using the preset third brightness reduction gradient to obtain the sixth landscape light state. The landscape light status is obtained based on the first, second, third, fourth, fifth, and sixth landscape light statuses.

[0039] It should be explained that seasonal lighting time refers to the pre-set turning-on time of the landscape lights according to seasonal changes. Sunrise and sunset times differ in different seasons, therefore, the lighting time needs to be adjusted according to the season to ensure that the landscape lights are turned on at appropriate times, improving lighting effects and saving energy. For example, turning on the lights at 18:00 in winter and 19:30 in summer. Initial landscape light brightness refers to the initial brightness set when the landscape lights are turned on according to the automatic lighting control mode. Target brightness refers to the pre-set ideal light intensity value, serving as a reference standard for adjusting the brightness of the landscape lights. Illumination deviation refers to the difference between the initial landscape light brightness and the target brightness. Historical illumination deviation refers to the previously calculated illumination deviation value. The process of obtaining the time interval and difference based on illumination deviation and historical illumination deviation involves obtaining the historical deviation time based on the historical illumination deviation, obtaining the current deviation time based on the current deviation, subtracting the historical deviation time from the current deviation time to obtain the time interval, and subtracting the historical illumination deviation from the current illumination deviation to obtain the illumination deviation difference. The total compensation coefficient is a quantitative indicator that comprehensively considers the impact of multiple environmental factors (such as haze, precipitation, temperature, wind speed, etc.) on the brightness of the landscape lights. The first-level compensation range refers to the range with a moderate environmental degradation index, requiring a certain degree of brightness compensation. The second-level compensation range refers to the range with a high environmental degradation index, requiring a greater degree of brightness compensation. In the step of calculating the environmental degradation index based on the total compensation coefficient, the environmental degradation index = 100. Total compensation coefficient. The first increase in brightness gradient, the second increase in brightness gradient, the third increase in brightness gradient, the first decrease in brightness gradient, the second decrease in brightness gradient, and the third decrease in brightness gradient are all manually set brightness gradients. Furthermore, the first increase in brightness gradient is less than the second increase in brightness gradient, which is less than the third increase in brightness gradient, and the first decrease in brightness gradient is less than the second decrease in brightness gradient, which is less than the third decrease in brightness gradient. Brightness state control refers to the operation of adjusting the initial brightness of the landscape lights.

[0040] Understandably, both the first and second thresholds are pre-set thresholds used in conjunction with the rate of change of illumination deviation to collaboratively control the landscape lighting status. The first landscape lighting status refers to a state where the illumination deviation is less than zero, the rate of change of deviation is less than the first threshold but greater than the second threshold, and the brightness is increased. The second landscape lighting status refers to a state where the illumination deviation is less than zero and the rate of change of deviation is less than or equal to the second threshold, and the brightness is increased. The third landscape lighting status refers to a state where the illumination deviation is less than zero and the rate of change of deviation is greater than the first threshold, and the brightness is increased. The fourth landscape lighting status refers to a state where the illumination deviation is greater than zero and the rate of change of deviation is greater than or equal to the first threshold, and the brightness is decreased. The fifth landscape lighting status refers to a state where the illumination deviation is greater than zero, the rate of change of deviation is greater than or equal to the second threshold but less than the first threshold, and the brightness is decreased. The sixth landscape lighting status refers to a state where the illumination deviation is greater than zero and the rate of change of deviation is less than the second threshold, and the brightness is decreased. The process of obtaining the landscape light status based on the first, second, third, and fourth landscape light statuses means that when the illumination deviation is less than zero and the deviation change rate is less than a first threshold, the landscape light status is the first landscape light status; when the illumination deviation is less than zero, the deviation change rate is greater than or equal to the first threshold, and the deviation change rate is less than a second threshold, the landscape light status is the second landscape light status; when the illumination deviation is greater than zero, the deviation change rate is greater than or equal to the second threshold, and the deviation change rate is less than the second threshold, the landscape light status is the third landscape light status; and when the illumination deviation is greater than zero, the deviation change rate is greater than or equal to the third threshold, and the deviation change rate is less than the third threshold, the landscape light status is the fourth landscape light status.

[0041] Specifically, obtaining the total compensation coefficient includes: Obtain haze concentration data, wind speed data, temperature data, and precipitation data; obtain wind speed level based on wind speed data; obtain precipitation intensity level based on precipitation data; and calculate comprehensive environmental status index based on haze concentration data, wind speed level, and precipitation intensity level. The total compensation coefficient is calculated based on comprehensive environmental conditions, temperature data, wind speed level, and precipitation intensity level. The formula for calculating the total compensation coefficient is as follows: in, This represents the total compensation coefficient. This represents a comprehensive indicator of environmental status. This represents data on smog concentration. Indicates the level of precipitation intensity. Representing temperature data, Indicates wind speed level.

[0042] It should be explained that haze concentration data refers to the haze concentration value in the current environment collected by haze sensors (such as PM2.5 sensors). Wind speed data refers to the wind speed value in the current environment collected by wind speed sensors. Temperature data refers to the temperature value in the current environment collected by temperature sensors. Precipitation data refers to the precipitation situation in the current environment collected by rain gauges. Obtaining the wind speed level based on wind speed data means retrieving the corresponding wind speed level from the environmental parameter database based on the wind speed data. The environmental parameter database is a database that stores real-time and historical data of various environmental parameters, providing a fast retrieval function to quickly find the corresponding category or level based on the input parameter value. The method for obtaining the precipitation intensity level based on precipitation data is the same as the method for obtaining the wind speed level based on wind speed data, and will not be repeated here. The calculation formula for the comprehensive environmental state index in the step of calculating the comprehensive environmental state index based on haze concentration data, wind speed level, and precipitation intensity level is as follows:

[0043] in, This indicates the preset weight of the smog concentration data. This indicates the preset wind speed level weight. The weights represent the preset weights for precipitation intensity levels. The weight for haze concentration data refers to a pre-set coefficient indicating the importance of haze concentration data in the calculation of the comprehensive environmental status index. The weight for wind speed level refers to a pre-set coefficient indicating the importance of wind speed level in the calculation of the comprehensive environmental status index. The weight for precipitation intensity level refers to a pre-set coefficient indicating the importance of precipitation intensity level in the calculation of the comprehensive environmental status index. The larger the weights for haze concentration data, wind speed level, and precipitation intensity level, the higher their importance in the calculation of the comprehensive environmental status index.

[0044] Specifically, the step of increasing the initial brightness of the landscape lights using a preset first brightness gradient to obtain a first landscape light state includes: Obtain the pulse width modulation duty cycle of the initial landscape light brightness, and determine whether the pulse width modulation duty cycle is within the preset pulse width modulation duty cycle range; If the pulse width modulation duty cycle is within the preset pulse width modulation duty cycle range, the pulse width modulation duty cycle is adjusted by the first increase in brightness gradient to obtain the adjusted duty cycle. If the pulse width modulation duty cycle is not within the preset pulse width modulation duty cycle range, then obtain the upper limit and lower limit of the pulse width modulation duty cycle range, and compare the pulse width modulation duty cycle with the upper limit and the pulse width modulation duty cycle with the lower limit. If the pulse width modulation duty cycle is greater than the upper limit of the interval, then the upper limit of the interval shall be used as the pulse width modulation duty cycle; If the pulse width modulation duty cycle is less than the lower limit of the interval, then the lower limit of the interval shall be used as the pulse width modulation duty cycle; The status of the first landscape light is determined by adjusting the duty cycle or pulse width modulation duty cycle.

[0045] It should be explained that the pulse width modulation (PWM) duty cycle used to obtain the initial brightness of the landscape lights refers to reading the current PWM duty cycle of the landscape lights through the hardware interface of the control system (such as GPIO pins). In other words, the PWM duty cycle is the pulse width modulation duty cycle. The pulse width modulation duty cycle range refers to a pre-set range of PWM duty cycles used to limit the minimum and maximum values ​​of the PWM duty cycle. The first brightness gradient refers to a pre-set amplitude used to represent the adjustment of the landscape light brightness under specific conditions; this amplitude is between 0 and 1. Adjusting the duty cycle refers to the value obtained after adjusting the PWM duty cycle according to the first brightness gradient when adjusting the brightness. The upper limit of the range refers to the maximum value of the pulse width modulation duty cycle range. The lower limit of the range refers to the minimum value of the pulse width modulation duty cycle range.

[0046] S5. If the fault detection data is non-fault data, then extract the second and fourth light intensity levels from the current seasonal light intensity levels, and determine the target sunrise and sunset intervals based on the current seasonal light intensity levels.

[0047] It should be explained that both the second and fourth light intensity levels refer to levels extracted from the light intensity levels. In this embodiment of the invention, the fourth light intensity level is greater than the second light intensity level. The method for determining the target sunrise and sunset interval based on the current seasonal light intensity level is the same as the method for calculating the sunset time set based on the current time set and geographical location set, and will not be repeated here. The target sunrise and sunset interval refers to the time period between sunrise and sunset calculated based on the current season and geographical location.

[0048] S6. If the current season's light intensity level is greater than or equal to the second light intensity level, the current season's light intensity level is less than the fourth light intensity level, and the current season's light intensity level is within the target sunrise and sunset interval, then the lighting unit is triggered to obtain the landscape lights in the lighting state.

[0049] It should be explained that landscape lights in the "on" state refer to landscape lights that are turned on and used to provide illumination.

[0050] S7. If the current seasonal light intensity level is less than the second light intensity level, the current seasonal light intensity level is greater than or equal to the fourth light intensity level, and the current seasonal light intensity level is not within the target sunrise and sunset interval, then the light-off unit is triggered to obtain the landscape lights in the light-off state.

[0051] It should be explained that landscape lights in the off state refer to landscape lights that are turned off.

[0052] S8. Based on the status of the landscape lights, whether they are on or off, complete the intelligent control of the landscape lights based on light sensing and timing.

[0053] It should be explained that the intelligent control is based on the status of the landscape lights, whether they are on or off. This achieves a landscape light control method that combines light sensing and timing, making full use of illumination and time information, improving the level of intelligence in landscape light control, and providing users with a more comfortable, convenient, and energy-saving landscape lighting experience.

[0054] To address the problems described in the background art, this invention identifies an intelligent landscape lighting control system and multiple seasonal detection periods. The intelligent landscape lighting control system includes: landscape lights, a light-off unit, a light-on unit, an automatic lighting control mode, a photosensor, a light-sensing unit, and an RTC unit. This invention determines multiple seasonal detection periods, taking into account the differences in light duration and intensity across different seasons. This allows the landscape lighting control to be adjusted according to seasonal changes, improving the flexibility and adaptability of landscape lighting control and avoiding unreasonable control due to seasonal factors. Based on the multiple seasonal detection periods and the intelligent landscape lighting control system, seasonal light intensity level groups are obtained. These seasonal light intensity level groups include multiple seasonal... The invention establishes a one-to-one correspondence between seasonal light intensity levels and seasonal detection periods. Each seasonal light intensity level includes multiple levels. This allows for personalized control of landscape lighting based on the characteristics of different seasons, improving the accuracy and rationality of landscape lighting control and meeting the lighting needs of different seasons. The invention acquires the current light value sequence, confirms the current seasonal light intensity level based on the current light value sequence and the seasonal light intensity level group, and performs fault detection on the light sensing unit to obtain fault detection data. This fault detection data can be either faulty or non-faulty data. The invention achieves this by acquiring the current light value sequence and confirming the current light value and the seasonal light intensity level. The system monitors the light intensity level of the previous season, enabling real-time monitoring of the current lighting conditions and reflecting changes in ambient light promptly. This provides the latest data support for the real-time control of the landscape lights. Fault detection of the light sensor unit allows for timely identification of any malfunctions. Once a fault is detected, appropriate measures can be taken to ensure the reliability and stability of the landscape light control. If the fault detection data indicates a fault, the landscape light status is obtained based on the automatic lighting control mode. This invention ensures that even when the light sensor unit malfunctions, the landscape lights can still be switched on and off according to the preset automatic control mode. This operation ensures the basic lighting function of the landscape lights, preventing malfunctions due to light sensor failure. If the fault detection data is normal, the second and fourth light intensity levels are extracted from the current seasonal light intensity level. Based on the current seasonal light intensity level, the target sunrise and sunset interval is determined. This invention provides specific light intensity thresholds for the switching control of the landscape lights by extracting the second and fourth light intensity levels from the current seasonal light intensity level. Combined with the current light value to determine the target sunrise and sunset interval, the control conditions are further refined, allowing the switching operation of the landscape lights to more accurately match the sunrise and sunset times, improving the scientific and rational nature of the landscape light control.If the current seasonal light intensity level is greater than or equal to the second light intensity level, less than the fourth light intensity level, and within the target sunrise / sunset interval, the lighting unit is triggered, resulting in the landscape lights being turned on. This invention, by setting specific light intensity levels and sunrise / sunset interval conditions, triggers the lighting unit when these conditions are met, ensuring the landscape lights are accurately turned on at the appropriate time. This avoids turning on the lights too early or too late, satisfying the landscape lighting needs while saving energy. If the current seasonal light intensity level is less than the second light intensity level, etc. If the current seasonal light intensity level is greater than or equal to the fourth light intensity level and is not within the target sunrise / sunset interval, the lighting unit is triggered, resulting in the landscape lights being switched off. Similarly, this invention triggers the lighting unit when the set light intensity level and sunrise / sunset interval conditions are met, ensuring the landscape lights are accurately switched off at the appropriate time, avoiding unnecessary lighting, reducing energy waste, and lowering operating costs. Based on the landscape light status—whether the lights are on or off—intelligent control of the landscape lights is achieved through light sensing and timing. Therefore, this invention can improve the intelligence level of landscape lights and achieve a balance between energy saving and comfortable lighting.

[0055] like Figure 2 The diagram shown is a functional block diagram of a landscape lighting intelligent control system based on light sensing and timing provided in an embodiment of the present invention.

[0056] The intelligent landscape lighting control system 100 based on light sensing and timing described in this invention can be installed in an electronic device. Depending on the functions implemented, the intelligent landscape lighting control system 100 may include a detection period confirmation module 101, a light intensity level group acquisition module 102, a light sensor fault detection module 103, and a landscape lighting status control module 104. The module described in this invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device. The detection period confirmation module 101 is used to confirm the landscape lighting intelligent control system and multiple seasonal detection periods. The landscape lighting intelligent control system includes: landscape lights, a light-off unit, a light-on unit, an automatic lighting control mode, a photosensitive sensor, a light-sensing unit, and an RTC unit. Based on the multiple seasonal detection periods and the landscape lighting intelligent control system, it obtains a seasonal light intensity level group. The seasonal light intensity level group includes multiple seasonal light intensity levels, and the seasonal light intensity levels correspond one-to-one with the seasonal detection periods. The seasonal light intensity levels include multiple light intensity levels. The light intensity level group acquisition module 102 is used to acquire the current light value sequence, determine the current seasonal light intensity level based on the current light value sequence and the seasonal light intensity level group, perform fault detection on the light sensing unit, and obtain fault detection data, wherein the fault detection data is fault data or non-fault data. The light sensor fault detection module 103 is used to obtain the landscape light status based on the automatic light control mode if the fault detection data is fault data, and to extract the second light intensity level and the fourth light intensity level from the current seasonal light intensity level if the fault detection data is not fault data, and to determine the target sunrise and sunset interval based on the current seasonal light intensity level. The landscape lighting status control module 104 is used to trigger the lighting unit to make the landscape lights appear to be on if the current seasonal light intensity level is greater than or equal to the second light intensity level, less than the fourth light intensity level, and the current seasonal light intensity level is within the target sunrise / sunset interval. If the current seasonal light intensity level is less than the second light intensity level, greater than or equal to the fourth light intensity level, and not within the target sunrise / sunset interval, the lighting unit is triggered to make the landscape lights appear to be off. Based on the landscape lighting status, whether the landscape lights are on or off, intelligent control of the landscape lights based on light sensing and timing is achieved.

[0057] In detail, the modules in the landscape lighting intelligent control system 100 based on light sensing and timing described in this embodiment of the invention employ the same methods as described above. Figure 1 The method used here is the same as the intelligent control method for landscape lighting based on light sensing and timing, and can produce the same technical effect, so it will not be repeated here.

[0058] like Figure 3 The diagram shown is a structural schematic of an electronic device that implements a landscape lighting intelligent control method based on light sensing and timing, according to an embodiment of the present invention.

[0059] The electronic device 1 may include a processor 10, a memory 11 and a bus 12, and may also include a computer program stored in the memory 11 and capable of running on the processor 10, such as a landscape lighting intelligent control method program based on light sensing and timing.

[0060] The memory 11 includes at least one type of readable storage medium, such as flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as the portable hard drive of the electronic device 1. In other embodiments, the memory 11 can be an external storage device of the electronic device 1, such as a plug-in portable hard drive, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the electronic device 1. Furthermore, the memory 11 includes both internal storage units and external storage devices of the electronic device 1. The memory 11 can be used not only to store application software and various types of data installed on the electronic device 1, such as the code of a landscape lighting intelligent control method program based on light sensing and timing, but also to temporarily store data that has been output or will be output.

[0061] In some embodiments, the processor 10 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control unit of the electronic device, connecting various components of the entire electronic device through various interfaces and lines. It executes programs or modules stored in the memory 11 (e.g., a landscape lighting intelligent control method program based on light sensing and timing), and calls data stored in the memory 11 to perform various functions of the electronic device 1 and process data.

[0062] The bus 12 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 12 can be divided into an address bus, a data bus, a control bus, etc. The bus 12 is configured to realize the connection and communication between the memory 11 and at least one processor 10, etc.

[0063] Figure 3 Only electronic devices with components are shown; it will be understood by those skilled in the art that... Figure 3The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0064] For example, although not shown, the electronic device 1 may also include a power supply (such as a battery) to power the various components. Preferably, the power supply can be logically connected to the at least one processor 10 through a power management device, thereby enabling functions such as charging management, discharging management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.

[0065] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a Wi-Fi interface, a Bluetooth interface, etc.), which is typically used to establish communication connections between the electronic device 1 and other electronic devices.

[0066] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), and optionally, a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device 1 and to display a visual user interface.

[0067] The intelligent landscape lighting control method program based on light sensing and timing, stored in the memory 11 of the electronic device 1, is a combination of multiple instructions. When run in the processor 10, it can achieve the following: The intelligent control system for landscape lighting and multiple seasonal detection periods were identified. The intelligent control system for landscape lighting includes: landscape lights, a light-off unit, a light-on unit, an automatic lighting control mode, a photosensitive sensor, a light-sensing unit, and an RTC unit. Based on multiple seasonal detection periods and the intelligent control system for landscape lighting, seasonal light intensity level groups are obtained. The seasonal light intensity level group includes multiple seasonal light intensity levels, and each seasonal light intensity level corresponds one-to-one with a seasonal detection period. The seasonal light intensity level includes multiple light intensity levels. Obtain the current illumination value sequence, determine the current seasonal illumination intensity level based on the current illumination value sequence and seasonal illumination intensity level group, perform fault detection on the light sensing unit, and obtain fault detection data, where fault detection data is either fault data or non-fault data; If the fault detection data is fault data, then the landscape lighting status is obtained based on the automatic lighting control mode. If the fault detection data is non-fault data, then extract the second and fourth light intensity levels from the current seasonal light intensity level, and determine the target sunrise and sunset interval based on the current seasonal light intensity level. If the current seasonal light intensity level is greater than or equal to the second light intensity level, the current seasonal light intensity level is less than the fourth light intensity level, and the current seasonal light intensity level is within the target sunrise and sunset interval, then the lighting unit is triggered to obtain the landscape lights in the lighting state. If the current seasonal light intensity level is less than the second light intensity level, the current seasonal light intensity level is greater than or equal to the fourth light intensity level, and the current seasonal light intensity level is not within the target sunrise and sunset interval, then the light-off unit is triggered, and the landscape lights are in the light-off state. Intelligent control of landscape lights is achieved based on their status, whether they are on or off, using light sensing and timing.

[0068] Specifically, the processor 10's implementation method for the above instructions can be found in [reference needed]. Figures 1 to 3 The descriptions of the relevant steps in the corresponding embodiments are not repeated here.

[0069] Furthermore, if the modules / units integrated in the electronic device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).

[0070] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor of an electronic device, can perform the following: The intelligent control system for landscape lighting and multiple seasonal detection periods were identified. The intelligent control system for landscape lighting includes: landscape lights, a light-off unit, a light-on unit, an automatic lighting control mode, a photosensitive sensor, a light-sensing unit, and an RTC unit. Based on multiple seasonal detection periods and the intelligent control system for landscape lighting, seasonal light intensity level groups are obtained. The seasonal light intensity level group includes multiple seasonal light intensity levels, and each seasonal light intensity level corresponds one-to-one with a seasonal detection period. The seasonal light intensity level includes multiple light intensity levels. Obtain the current illumination value sequence, determine the current seasonal illumination intensity level based on the current illumination value sequence and seasonal illumination intensity level group, perform fault detection on the light sensing unit, and obtain fault detection data, where fault detection data is either fault data or non-fault data; If the fault detection data is fault data, then the landscape lighting status is obtained based on the automatic lighting control mode. If the fault detection data is non-fault data, then extract the second and fourth light intensity levels from the current seasonal light intensity level, and determine the target sunrise and sunset interval based on the current seasonal light intensity level. If the current seasonal light intensity level is greater than or equal to the second light intensity level, the current seasonal light intensity level is less than the fourth light intensity level, and the current seasonal light intensity level is within the target sunrise and sunset interval, then the lighting unit is triggered to obtain the landscape lights in the lighting state. If the current seasonal light intensity level is less than the second light intensity level, the current seasonal light intensity level is greater than or equal to the fourth light intensity level, and the current seasonal light intensity level is not within the target sunrise and sunset interval, then the light-off unit is triggered, and the landscape lights are in the light-off state. Intelligent control of landscape lights is achieved based on their status, whether they are on or off, using light sensing and timing.

[0071] In the embodiments provided by this invention, it should be understood that the disclosed devices, systems, and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative, and actual implementations may have other classification methods.

[0072] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0073] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.

[0074] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A smart control method for landscape lighting based on light sensing and timing, characterized in that, The method includes: The intelligent control system for landscape lighting and multiple seasonal detection periods were identified. The intelligent control system for landscape lighting includes: landscape lights, a light-off unit, a light-on unit, an automatic lighting control mode, a photosensitive sensor, a light-sensing unit, and an RTC unit. Based on multiple seasonal detection periods and the intelligent control system for landscape lighting, seasonal light intensity level groups are obtained. The seasonal light intensity level group includes multiple seasonal light intensity levels, and each seasonal light intensity level corresponds one-to-one with a seasonal detection period. The seasonal light intensity level includes multiple light intensity levels. Obtain the current illumination value sequence, determine the current seasonal illumination intensity level based on the current illumination value sequence and seasonal illumination intensity level group, perform fault detection on the light sensing unit, and obtain fault detection data, where fault detection data is either fault data or non-fault data; If the fault detection data is fault data, then the landscape lighting status is obtained based on the automatic lighting control mode. If the fault detection data is non-fault data, then extract the second and fourth light intensity levels from the current seasonal light intensity level, and determine the target sunrise and sunset interval based on the current seasonal light intensity level. If the current seasonal light intensity level is greater than or equal to the second light intensity level, the current seasonal light intensity level is less than the fourth light intensity level, and the current seasonal light intensity level is within the target sunrise and sunset interval, then the lighting unit is triggered to obtain the landscape lights in the lighting state. If the current seasonal light intensity level is less than the second light intensity level, the current seasonal light intensity level is greater than or equal to the fourth light intensity level, and the current seasonal light intensity level is not within the target sunrise and sunset interval, then the light-off unit is triggered, and the landscape lights are in the light-off state. Intelligent control of landscape lights is achieved based on their status, whether they are on or off, using light sensing and timing.

2. The intelligent control method for landscape lighting based on light sensing and timing as described in claim 1, characterized in that, The method for obtaining seasonal light intensity level groups based on multiple seasonal detection periods and the intelligent control system for landscape lighting includes: Perform the following operations for each of the multiple seasonal testing periods: Using preset historical detection frequencies, seasonal detection periods, the RTC unit of the landscape lighting intelligent control system, and photosensitive sensors, multi-source data is collected from the landscape lighting to obtain a set of ambient light intensity values, a set of current times, and a set of geographical locations. The sunset time set is calculated based on the set of current times and geographical locations. The ambient light intensity values ​​correspond one-to-one with the current time, geographical location, and sunset time. Normalize each ambient light intensity value in the set of ambient light intensity values ​​to obtain a normalized set of ambient light intensity values. Set an initial set of cluster center points, and obtain the mean set of cluster centers and the set of cluster center point groups based on the initial set of cluster center points and the normalized ambient light intensity value set; The total clustering error is calculated based on the sunset time set, the mean set of cluster centers of each category, the set of cluster center points of each category, and the initial set of cluster center points. The total clustering error is then compared with the preset total clustering error threshold. If the total clustering error is greater than the preset total clustering error threshold, the mean set of the cluster centers of the category is used as the initial set of cluster centers, and the process of collecting multi-source data of the landscape lights using the preset historical detection frequency, seasonal detection period, RTC unit of the landscape lighting intelligent control system and photosensitive sensor is returned until the total clustering error is less than or equal to the preset total clustering error threshold. If the total clustering error is less than or equal to the preset total clustering error threshold, the set of average cluster centers of each category will be used as the seasonal light intensity level, where the light intensity level corresponds one-to-one with the average cluster center of each category. By summarizing the seasonal light intensity levels, we obtain the seasonal light intensity level groups.

3. The intelligent control method for landscape lighting based on light sensing and timing as described in claim 2, characterized in that, The step of obtaining the cluster center mean set based on the initial cluster center set and the normalized ambient light intensity value set includes: For each normalized ambient light intensity value in the set of normalized ambient light intensity values, the following operations are performed: extract the initial cluster center points from the initial cluster center point set in sequence, and calculate the light intensity cluster distance based on the normalized ambient light intensity value and the initial cluster center points; Summarize the light intensity clustering distances to obtain a light intensity clustering distance group. Extract the minimum light intensity clustering distance from the light intensity clustering distance group and determine the cluster center point index based on the minimum light intensity clustering distance. The minimum light intensity clustering distance is assigned based on the cluster center point index to obtain the category cluster center point group; The cluster centroids of each category are summarized to obtain the cluster centroid set. The cluster centroid mean set is obtained from the cluster centroid set. There is a one-to-one correspondence between the cluster centroids in the cluster centroid set and the cluster centroid mean in the cluster centroid mean set.

4. The intelligent control method for landscape lighting based on light sensing and timing as described in claim 3, characterized in that, The calculation of the total clustering error based on the sunset time set, the mean set of cluster centers, the set of cluster center points, and the initial set of cluster centers includes: Obtain the installation angle of the photosensitive sensor, and calculate the spatiotemporal correction factor based on the installation angle and the current time; The target sunset time is determined from the sunset time set based on the normalized ambient light intensity value. The total clustering error is calculated based on the current time, target sunset time, spatiotemporal correction factor, mean set of cluster centers, set of cluster center points, and initial set of cluster centers. The formula for calculating the total clustering error is as follows: in, This represents the total clustering error. This represents the number of initial cluster centers in the initial cluster center set. This represents the normalized ambient light intensity value. Represents the natural constant. Represents the first cluster of cluster centers in the set of categories. Cluster center groups for each category This represents the preset adjustment time sensitivity coefficient. Indicates the target sunset time. Represents the cosine function. Represents the first cluster of cluster center means. Mean of cluster centers for each category This indicates the preset adjustment coefficient. Indicates the current time. Represents the spatiotemporal correction factor. Indicates the installation angle.

5. The intelligent control method for landscape lighting based on light sensing and timing as described in claim 4, characterized in that, The process of determining the current seasonal light intensity level based on the current light value sequence and the seasonal light intensity level group includes: Extract the current illumination value sequentially from the current illumination value sequence, determine the current season based on the current illumination value, and determine the target season illumination intensity level from the seasonal illumination intensity level group based on the current season; Based on the current illumination value, the current illumination intensity level is determined from the target season illumination intensity level. The next current illumination value adjacent to the current illumination value is extracted from the current illumination value sequence to obtain the adjacent illumination value. The adjacent illumination value is used as the current illumination value. The process of extracting the current illumination value from the current illumination value sequence is repeated until all current illumination values ​​in the current illumination value sequence have been extracted. Summarize the current light intensity levels to obtain the current light intensity level group, and determine whether the current light intensity levels in the current light intensity level group are all the same; If the current light intensity levels in the current light intensity level group are all different, then collect the subsequent light value sequence, use the subsequent light value sequence as the current light value sequence, and return to the step of extracting the current light value from the current light value sequence in turn, until the current light intensity levels in the current light intensity level group are all the same. If all current light intensity levels in the current light intensity level group are the same, then any one of the current light intensity levels in the current light intensity level group shall be taken as the current seasonal light intensity level.

6. The intelligent control method for landscape lighting based on light sensing and timing as described in claim 5, characterized in that, The fault detection of the photosensitive unit, to obtain fault detection data, includes: Start the pre-built photosensitive unit light shield, collect data from the photosensitive unit according to the light shield after startup and the preset sampling rate, obtain the original voltage value set, and calculate the voltage mean and voltage standard deviation of the original voltage value set. A stepped brightness test was performed on the photosensitive unit to obtain the response curve, and the linearity and sensitivity deviation were calculated based on the response curve. If the average voltage, standard deviation of voltage, linearity, and sensitivity deviation do not meet the preset normal photosensitive unit parameter range conditions, the fault detection data will be confirmed as fault data. If the average voltage, standard deviation of voltage, linearity, and sensitivity deviation meet the preset normal photosensitive unit parameter range conditions, then the fault detection data will be confirmed as fault-free data.

7. The intelligent control method for landscape lighting based on light sensing and timing as described in claim 6, characterized in that, The process of obtaining the landscape lighting status based on the automatic lighting control mode includes: The landscape lights are controlled according to the preset seasonal lighting times and automatic lighting control modes to obtain the initial landscape light brightness. The illumination deviation is calculated based on the preset target brightness and the initial landscape light brightness. The historical illumination deviation is obtained. The time interval and the difference in illumination deviation are obtained based on the illumination deviation and the historical illumination deviation. Obtain the total compensation coefficient, calculate the environmental degradation index based on the total compensation coefficient, and set the first-level compensation interval and the second-level compensation interval; If the environmental degradation index is within the first-level compensation range or the second-level compensation range, the deviation change rate is calculated based on the time interval and the difference in light deviation, and a first threshold and a second threshold are set, wherein the first threshold is greater than the second threshold. If the illumination deviation is less than zero, the deviation change rate is less than the first threshold and greater than the second threshold, then the brightness state of the initial landscape light is adjusted by using the preset first increase brightness gradient to obtain the first landscape light state. If the illumination deviation is less than zero and the deviation change rate is less than or equal to the second threshold, then the brightness state of the initial landscape light is adjusted by using the preset second brightness gradient to obtain the second landscape light state. If the illumination deviation is less than zero and the deviation change rate is greater than the first threshold, then the brightness state of the initial landscape light is adjusted by using the preset third brightness gradient to obtain the third landscape light state. If the illumination deviation is greater than zero and the deviation change rate is greater than or equal to the first threshold, then the brightness state of the initial landscape light is adjusted by using the preset first brightness reduction gradient to obtain the fourth landscape light state. If the illumination deviation is greater than zero, the deviation change rate is greater than or equal to the second threshold and less than the first threshold, then the brightness state of the initial landscape light is adjusted by using the preset second brightness reduction gradient to obtain the fifth landscape light state. If the illumination deviation is greater than zero and the deviation change rate is less than the second threshold, then the brightness state of the initial landscape light is adjusted by using the preset third brightness reduction gradient to obtain the sixth landscape light state. The landscape light status is obtained based on the first, second, third, fourth, fifth, and sixth landscape light statuses.

8. The intelligent control method for landscape lighting based on light sensing and timing as described in claim 7, characterized in that, The process of obtaining the total compensation coefficient includes: Obtain haze concentration data, wind speed data, temperature data, and precipitation data; obtain wind speed level based on wind speed data; obtain precipitation intensity level based on precipitation data; and calculate comprehensive environmental status index based on haze concentration data, wind speed level, and precipitation intensity level. The total compensation coefficient is calculated based on comprehensive environmental conditions, temperature data, wind speed level, and precipitation intensity level. The formula for calculating the total compensation coefficient is as follows: in, This represents the total compensation coefficient. This represents a comprehensive indicator of environmental status. This represents data on smog concentration. Indicates the level of precipitation intensity. Representing temperature data, Indicates wind speed level.

9. The intelligent control method for landscape lighting based on light sensing and timing as described in claim 8, characterized in that, The step of increasing the initial brightness of the landscape lights using a preset first brightness gradient to obtain a first landscape light state includes: Obtain the pulse width modulation duty cycle of the initial landscape light brightness, and determine whether the pulse width modulation duty cycle is within the preset pulse width modulation duty cycle range; If the pulse width modulation duty cycle is within the preset pulse width modulation duty cycle range, the pulse width modulation duty cycle is adjusted by the first increase in brightness gradient to obtain the adjusted duty cycle. If the pulse width modulation duty cycle is not within the preset pulse width modulation duty cycle range, then obtain the upper limit and lower limit of the pulse width modulation duty cycle range, and compare the pulse width modulation duty cycle with the upper limit and the pulse width modulation duty cycle with the lower limit. If the pulse width modulation duty cycle is greater than the upper limit of the interval, then the upper limit of the interval shall be used as the pulse width modulation duty cycle; If the pulse width modulation duty cycle is less than the lower limit of the interval, then the lower limit of the interval shall be used as the pulse width modulation duty cycle; The status of the first landscape light is determined by adjusting the duty cycle or pulse width modulation duty cycle.

10. A landscape lighting intelligent control system based on light sensing and timing, characterized in that, The system includes: The detection period confirmation module is used to confirm the intelligent control system for landscape lighting and multiple seasonal detection periods. The intelligent control system for landscape lighting includes: landscape lights, a light-off unit, a light-on unit, an automatic lighting control mode, a photosensitive sensor, a light-sensing unit, and an RTC unit. Based on the multiple seasonal detection periods and the intelligent control system for landscape lighting, it obtains a group of seasonal light intensity levels. The group of seasonal light intensity levels includes multiple seasonal light intensity levels, and each seasonal light intensity level corresponds one-to-one with a seasonal detection period. The seasonal light intensity level includes multiple light intensity levels. The light intensity level group acquisition module is used to acquire the current light value sequence, determine the current seasonal light intensity level based on the current light value sequence and the seasonal light intensity level group, perform fault detection on the light sensing unit, and obtain fault detection data, wherein the fault detection data is fault data or non-fault data. The light sensor fault detection module is used to obtain the landscape light status based on the automatic light control mode if the fault detection data is fault data, and to extract the second light intensity level and the fourth light intensity level from the current seasonal light intensity level if the fault detection data is not fault data, and to determine the target sunrise and sunset interval based on the current seasonal light intensity level. The landscape lighting status control module is used to trigger the lighting unit to ensure the landscape lights are in an on state if the current season's light intensity level is greater than or equal to the second light intensity level, less than the fourth light intensity level, and the current season's light intensity level is within the target sunrise / sunset interval. If the current season's light intensity level is less than the second light intensity level, greater than or equal to the fourth light intensity level, and the current season's light intensity level is not within the target sunrise / sunset interval, the lighting unit is triggered to ensure the landscape lights are in a off state. Based on the landscape lighting status, whether the landscape lights are on or off, intelligent control of the landscape lights is achieved based on light sensing and timing.