A lighting automation blueprint for motion and occupancy sensors, with flexible lighting profiles, Idle lighting, turn-off blockers, and optional door sensors.
Features
-
Activity and door sensors
- Motion and occupancy sensors control the lighting cycle.
- Door sensors can optionally turn the lights on.
-
Lighting profiles
- Use fixed lighting settings or Time-based profiles with brightness, color, and optional transitions.
- Time-based profiles support specific times, sunrise/sunset, input_datetime, and Schedule.
- When Dynamic updates are enabled, profiles can change automatically while activity is detected.
-
State-based profiles
- Override the active lighting settings when configured entity states match.
- Profiles are evaluated in order, with the first matching profile taking priority.
- Brightness and Color can both be disabled to use a State-based profile as a temporary hold or pause, keeping the current lighting unchanged while the profile is active.
-
Idle lighting
- Optionally apply different brightness and color after the Activity delay and before turn-off.
-
Turn-off blockers
- Prevent either Idle lighting or final turn-off while configured entity states match.
- The two stages can be controlled independently — for example, allow the lights to dim but prevent them from turning off completely.
-
Turn-on conditions
- Use Home Assistant conditions to control when activity or door sensors are allowed to turn the lights on.
-
Turn-off watchdog
- Helps make sure the lights don’t stay on by mistake when there is no activity.
- When enabled, lights turned on from outside the automation are also handled using the same delays, blockers, and turn-off rules.
The main idea is flexibility. Profiles and blockers can be added as needed, combine different entities and states with Any or All matching, and be used for anything from TV or guest modes to temporary holds and more specific lighting rules.
Another blueprint Profile-based lighting