[Blueprint] Simple light switch with multiple motion sensors + timer + input number

Hello, I would like to share one of my first blueprints. It is a simple motion sensor switch — the main feature is that you can connect multiple sensors. I encountered this while renovating my home.

Universal automation for lighting in rooms/hallways:
Turns lights on from motion or door opening, starts a timer when motion stops, and turns lights off when the timer completes. Supports global conditions (e.g. only at night or when someone is home) and can run extra actions after the timer finishes (notifications, scripts).
Use cases: hallway, closet, bathroom, porch.

More blueprints
💡 Main idea (Click to expand)

This blueprint combines multiple trigger sources (motion, door) and provides a flexible timeout and post-timer actions. Works as a base template for most household locations.

  1. Versatility — suitable for hallway, entryway, bathroom.
  2. Flexibility — change timer duration via input_number, add conditions.
  3. Integration — run arbitrary actions after lights off.
⚙️ How it works (short)
  1. Start: any motion sensor → turn lights on and cancel timer.
  2. Motion off: start chosen timer using duration from input_number (minutes).
  3. Door open: turn lights on and start timer (if door sensor provided).
  4. Finish: when timer finishes → turn lights off and run additional actions.
  5. Global conditions: if provided, must be true for the automation to run.

My blueprint:
Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.


My GitHub

:wrench: Automations & tools — smirnowegor (Egor Smirnov) · GitHub
:blue_book: Home Assistant Blueprints — GitHub - smirnowegor/HomeAssistant_blueprints: A collection of refined Home Assistant blueprints with bilingual (Russian/English) documentation — focused on clarity, usability, and advanced automation features. Simple to use.

💬 Contacts
💰 Support the author