Don’t want bright lights when the sun is setting, or do you want to have a window light that turn on and off automatically at different sun elevations?
This blueprint fade the brightness of lights depending on the elevation of the sun.
Example of use cases:
Have bedroom lights that don’t start to dim until the sun is way below the horizon, but stay dim almost until the sun sets and gets brighter and brighter until the sun is over the horizon.
Have a window light that turn on automatically just before sunset and let it dim until it’s completely dark outside.
- Control one or more lights in each automation.
- Don’t update the brightness if brightness has been changed manually (by user).
- Control max and min brightness in percent.
- Mode to automatically turn on and/or off at sunset/sunrise.
- Mode to only update brightness if the light is already turned on.
- NEW: Option to reverse dimming
The Configuration (default value in parenthesis):
Select the light entities or light groups to affect
The elevation when brightness shall start to change during sunset (0 degrees)
The elevation when brightness shall stop to change during sunset (-30 degrees)
Toggle if the light shall be turned on when passing the start elevation described above (off)
The elevation when brightness shall start to change during sunrise (-8 degrees)
The elevation when brightness shall stop to change during sunrise (6 degrees)
Toggle if the light shall be turned off when passing the stop elevation described above (off)
Max brightness in percent (100%)
Min brightness in percent (1%)
Transition time (0 seconds)
Debug toggle (off)
If a light is manually adjusted, the automation will not touch the light until it has been turned off and on again manually (or at next sunset if automation is configured to automatically turn on the lights).
Click the badge to import this Blueprint: (needs Home Assistant Core 2021.3 or higher)
I’m currently working on dynamic elevations. This is useful on places where the elevation change a lot depending on the different seasons.
Please use the issue tracker on GitHub, or write a comment here to report problems or share your ideas for improvements.