Light Transition Effect
Description
This blueprint offers a versatile and customizable solution for creating smooth transitions in your smart lights. Whether adjusting colors, temperature, or brightness, it simulates natural, gradual changes using software—perfect for lights that lack built-in hardware transition effects.
Features
- Color Modes: Supports both RGB and Temperature-based transitions.
- Dynamic Timing: Specify the total transition time and step intervals for smooth changes.
- Brightness Control: Adjust brightness from an initial value to a target level.
- Works with Any Light: Compatible with any RGB or dimmable
light
entity in Home Assistant. - Linear Transition: Smooth and even transitions over time.
Inputs
Input | Description | Default |
---|---|---|
light_entity |
The light entity to control. | - |
color_mode |
Transition mode: RGB or Temperature. | RGB |
initial_color |
Starting RGB color of the light. | [255, 0, 0] |
target_color |
Target RGB color. | [255, 0, 0] |
initial_temp |
Starting color temperature (Kelvin). | 2700 |
target_temp |
Target color temperature (Kelvin). | 6500 |
initial_brightness |
Starting brightness (as a percentage). | 1% |
target_brightness |
Final brightness (as a percentage). | 100% |
transition_time |
Total transition time (by duration). | 1 minute |
step_time |
Time interval between transition steps (seconds). | 1 second |
How It Works
- Turn On the Light: The script initializes your light with the specified brightness and color settings.
- Transition: Gradually changes the light’s properties over the specified transition time, using the chosen colors, brightness and step intervals.
- Final State: The light ends at the target brightness and color values.
- Early Cut Off: The script will end early if the light is turned off.
Usage
- Copy the GitHub link or click on the badge below.
- Import it into Home Assistant via the Blueprints interface.
- Create a new script using the blueprint.
Invite Badge
Use this badge to add the blueprint to your setup: