Daily Automatic Light Color Adjustment
Description
This Home Assistant blueprint adjusts the color and brightness of selected lights based on the day of the week. The automation allows you to configure color, brightness, and time periods for each day of the week. It runs every minute and adjusts the lights accordingly. The time period can be set based on a fixed time or sunrise/sunset, with optional offsets.
Repository
For more details and updates, visit the repository: GitHub - daily-light-adjustment-blueprint
Features
-
Automatically adjusts lights every day based on customizable time periods and colors.
-
Supports optional
input_boolean
to control whether the automation is active. -
Allows setting different colors and brightness levels for each day of the week.
-
Supports both fixed time or sunrise/sunset as starting and ending times for the automation period.
-
Configurable sunrise/sunset offsets to fine-tune the timing of the automation.
-
Adjustments take effect from a defined threshold time (default: 12:00 PM) each day.
Inputs
-
Lights to adjust: Select the lights that will be automatically adjusted.
-
Optional boolean entity: Select an
input_boolean
to control whether the automation is active (optional). -
Threshold Time: The time from which daily changes take effect until the same time on the next day.
-
Start Time Type: Select the start time type: Fixed Time, Sunrise, or Sunset.
-
Start Time for Automation: Specify a fixed start time if you select “Fixed Time”.
-
End Time Type: Select the end time type: Fixed Time, Sunrise, or Sunset.
-
End Time for Automation: Specify a fixed end time if you select “Fixed Time”.
-
Sunrise Offset: Offset (in minutes) for sunrise.
-
Sunset Offset: Offset (in minutes) for sunset.
-
Enable [Day]: Enable or disable the automation for each day (Monday-Sunday).
-
[Day] RGB Color: RGB color for each day.
-
[Day] Brightness (percent): Brightness level (percentage) for each day.
Conditions
-
The automation only runs if the optional
input_boolean
is active (if provided). -
The automation runs within the specified time range (start time to end time) every day.