[ { "id": "Adjust Lights on Time Block Change", "result": { "structured": "TRIGGER: When the time matches morning start [input_datetime.morning_start] OR When the time matches evening start [input_datetime.evening_start] OR When the time matches night start [input_datetime.night_start]. CONDITIONS: None. ACTIONS: For each light in a predefined list, if the light is on, then adjust its settings based on its mode and the current time block. The current time block (morning, evening, or night) is determined by comparing the current time to the start times. For each light: IF light is on, THEN choose based on its mode: IF mode is 'rgb', turn on the light with brightness from input_number.[current_block]_brightness and rgb_color from input_text.[current_block]_rgb. IF mode is 'mired', turn on the light with brightness from input_number.[current_block]_brightness and color_temp from input_number.[current_block]_color_temp. IF mode is 'brightness', turn on the light with brightness from input_number.[current_block]_brightness.", "natural_language": { "trigger": "The automation runs at three specific times of day: when the morning start [input_datetime.morning_start] time arrives, when the evening start [input_datetime.evening_start] time arrives, and when the night start [input_datetime.night_start] time arrives.", "conditions": "There are no explicit conditions that must be met for the action to run once triggered.", "action": "For a list of 13 lights, the automation checks if each light is currently on. If a light is on, it updates the light's settings based on the current time of day (morning, evening, or night). The settings (brightness, color temperature, or RGB color) are fetched from corresponding input helpers named after the current time block. For example, during the 'morning' block, it uses the values from 'input_number.morning_brightness' and 'input_text.morning_rgb'. Each light has a predefined mode ('brightness', 'rgb', or 'mired') which determines which settings are applied." }, "human_like": "Updates the brightness and color of all currently-on lights at the start of morning, evening, and night time periods.", "complexity": "high" } } ]