How is the scenario trigger mechanism implemented? For example, how is the function of turning lights off when the outdoor temperature is higher than 0°C implemented?

In the background, a scenario trigger involves an edge trigger and a continuous trigger. After you set the temperature threshold of 0°C, lights will be turned off when the threshold is reached. If a continuous trigger is adopted, lights will be automatically turned off after you manually turn them on if the temperature is higher than 0°C. To avoid this problem, an edge trigger is adopted. Lights are turned off only when the temperature rises above 0°C.