Blueprint Home Assistant: Adaptive Night Path

Blueprint Home Assistant: Adaptive Night Path

Smart night light path with adaptive time and presence management.

Import in Home Assistant
For more information, you can see the GitHub Repository

πŸ“‹ Blueprint Description

This Blueprint solves the issue of blinding night lights or lights that turn off suddenly while you are still in the room. It is designed to create a dimmed light path triggered only when truly needed.

  • Hybrid Control: You can choose to run the automation during a fixed time frame (e.g., 11 PM - 6 AM) or based strictly on the sun's position (from sunset to sunrise).
  • Advanced Presence Management: Not just simple motion sensors, but full support for presence and occupancy sensors to prevent unwanted turn-offs.

✨ Key Features

  • πŸŒ™ Smart Night Mode: Conditional activation via "Use Sunset/Sunrise" toggle or custom time slots.
  • πŸ’‘ Dimmable Brightness: Set a specific lighting percentage (e.g., 10%) to avoid eye strain.
  • ⏳ Courtesy Timer: User-adjustable off-delay for a smooth transition.
  • πŸ”„ Restart Logic: The automation resets the off-timer every time new presence is detected, ensuring lights stay on as long as you are in the area.
  • 🎯 Flexible Targeting: Supports single lights, light groups, or entire areas.

πŸ›  Requirements

  • Sun Integration: The sun.sun integration must be active (standard in Home Assistant).
  • Binary Sensor: A motion, presence, or occupancy sensor.
  • Dimmable Lights: To fully enjoy the low-brightness feature.

πŸš€ Installation

  1. Click the Import in Home Assistant button above.
  2. Configure the required parameters: sensor, target lights, and preferred activation method (Time or Sun).
  3. Save and enjoy your new smart night path!
1 Like

Looks good. But it would be nice if it could support more than one Motion sensor and instead of a time slot - then it could be a helper. I for example use a alarm Helper to set the time of day, when the light shoud go from niglt light to day light.

Thanks again for a great blueprint