What this blueprint does:
Motion-activated lighting for any PIR or radar sensor – designed to be easy to configure with only the settings you actually need, nothing more. Quick to set up, covers the most common use cases.
Features: Multi-sensor support · separate on/off light targets · illuminance gate · brightness & color temp · fade-in transition · off-delay in seconds (10 s for hallways, 5 min for offices) · dim-before-off warning · “keep lights on” override for visitors · schedule restriction · manual off is respected
Works with: Aqara FP300, Eve Motion, Philips Hue Motion, IKEA VALLHORN, and any sensor with occupancy/motion/presence device class.
Just try it ![]()
Feedback and suggestions welcome! ![]()
Release History:
Release History
• v2.0 – March 11, 2026 – “Keep Lights On” override
Feature: New optional input_boolean / switch helper to prevent automatic turn-off. While active, lights won’t dim or turn off – but still turn on normally with occupancy. Perfect for visitors.
• v1.9 – March 11, 2026 – Manual off respected
Fix: Lights manually turned off (voice, switch, app) while the room is still occupied no longer turn back on during the dim-before-off phase. If all target lights are already off, the dim/off sequence is skipped entirely.
• v1.8 – March 10, 2026 – Off-delay in seconds
Feature: Off-delay changed from minutes to seconds (0–3600), enabling short delays like 10 s for hallways. Default: 300 s (= 5 min).
• v1.7 – March 10, 2026 – Bugfixes & robustness
Fix: Off-delay now starts from the last sensor going off, not the first. Fix: “Schedule Restriction” without a selected helper no longer causes an error. Fix: Sensors with state unavailable/unknown no longer block turn-off. Improvement: Re-check after dim phase prevents turn-off if someone re-enters during dimming. Improvement: Added max_exceeded: silent to suppress log spam from frequent sensor events.
• v1.6 – January 15, 2026 – Fade-in on turn-on
Feature: Configurable fade-in transition when lights turn on (0–60 s, default: instant).
• v1.5 – January 2, 2026 – Schedule restriction
Feature: Optional schedule helper to restrict automation to specific time periods.
• v1.4 – January 2, 2026 – UI polish
Improvement: Enhanced description with emojis and version info. Required fields marked, input groups collapsed by default, improved selectors.
• v1.3 – December 31, 2025 – Dim before off
Feature: Optional courteous dim phase before turning off, with configurable transition and hold time. Inputs now organized into sections with icons.
• v1.2 – December 29, 2025 – Multi-sensor support
Feature: Support for multiple occupancy/motion sensors. Renamed blueprint to reflect broader compatibility. Default off-delay increased to 5 min.
• v1.1 – December 27, 2025 – Illuminance fix
Bugfix: Lux check now only evaluated on turn-on, preventing feedback loop from the lamp’s own light.
• v1.0 – December 26, 2025 – Initial release
Occupancy-based lighting with illuminance gate, fixed brightness/color temp, and configurable off-delay.