A Home Assistant automation blueprint that dynamically adjusts light brightness levels and optional switches whenever your home's mode changes (Morning, Day, Evening, Night, Away).
- Mode-Driven Lighting: Automatically sets predefined light brightness percentages matching your active day mode.
- Optional Switch Control: Easily enable/disable power switches or outlets alongside your lights for each mode.
- Network Load Spreading: Implements a randomized delay (5–31 seconds) to distribute Zigbee/Z-Wave network traffic when running multiple automation instances simultaneously.
- Away Mode Shutoff: Automatically turns off targeted lights and switches when mode switches to Away.
- Modern UI Sections: Organized into collapsible UI configuration sections inside Home Assistant for a clean, intuitive setup.
This blueprint relies on an entity tracking your active day modes (supporting states Morning, Day, Evening, Night, Away).
- Recommended Integration: Day Modes for Home Assistant (Available via HACS).
- Alternative: Any standard
input_selectorsensorentity returning matching state values.
Click the button below to import the blueprint directly into your Home Assistant instance:
- In Home Assistant, go to Settings > Automations & Scenes > Blueprints.
- Click Import Blueprint in the bottom right corner.
- Paste the blueprint URL:
[https://github.com/ticstyle/HA-Change-light-when-mode-changes/blob/main/change_light_when_mode_changes.yaml](https://github.com/ticstyle/HA-Change-light-when-mode-changes/blob/main/change_light_when_mode_changes.yaml) - Click Preview and then Import.
| Section | Input | Description | Default |
|---|---|---|---|
| General | mode |
Sensor or input_select tracking day modes | sensor.day_modes |
| General | light_target |
Target light entity, device, or area | {} |
| General | control_switches |
Master toggle to enable switch/outlet control | false |
| General | switch_target |
Target switch entity, device, or area | {} |
| Morning | morning_toggle |
Enable processing for Morning mode | true |
| Morning | morning_brightness |
Light brightness percentage (0–100%) | 10% |
| Morning | morning_switch_on |
Turn switches ON or OFF during Morning | true |
| Day | day_toggle |
Enable processing for Day mode | true |
| Day | day_brightness |
Light brightness percentage (0–100%) | 75% |
| Day | day_switch_on |
Turn switches ON or OFF during Day | true |
| Evening | evening_toggle |
Enable processing for Evening mode | true |
| Evening | evening_brightness |
Light brightness percentage (0–100%) | 35% |
| Evening | evening_switch_on |
Turn switches ON or OFF during Evening | true |
| Night | night_toggle |
Enable processing for Night mode | true |
| Night | night_brightness |
Light brightness percentage (0–100%) | 0% |
| Night | night_switch_on |
Turn switches ON or OFF during Night | false |
| Away | away_toggle |
Enable processing for Away mode | true |
| Away | away_switch_on |
Turn switches ON or OFF during Away | false |
This project is open-source and licensed under the MIT License.