Turn lights on when you walk in

Walk in, lights on. If that fails at 2am, the wall switch still works.

Best for: Hallways, closets, entryways, laundry rooms, and bathrooms with a sensor that sees the door.

Not for: A room where people sit still for long periods, or a bathroom with a short PIR timer. A PIR is best for detecting entry motion. Use a longer timeout and the PIR vs mmWave presence article where the automation must know that someone is still in the room.

Why this exists

Nobody should have to fumble for a switch with a basket of laundry or explain the light system to a guest. The first detection needs to happen before a hand reaches the wall control. Keep the switch useful so the room remains ordinary when the hub, sensor, or internet is not.

Use cases

Indoor automation

  • Nighttime navigation - Bathroom lights turn on at low brightness when you get up at night
  • Home office - Lights automatically turn on when you enter your workspace
  • Hallways - Lights turn on as you move through the house
  • Closets - No more fumbling for switches in dark spaces

Outdoor automation

  • Garden shed - Motion sensor triggers light when you enter
  • Porch light - Automatically lights up for guests and delivery drivers

What I used

Job Good enough Never think about it Notes
Detect fast entry motion Shelly BLU Motion ZB Aeotec SmartThings Motion Sensor - my favorite for fast reactions Mount it where it sees the approach to the doorway.
Dim a fixed light TP-Link Tapo S505D Matter Smart Dimmer Switch UltraPro Z-Wave Long Range Dimmer Verify hub compatibility. Keep the physical paddle usable.
Switch a fixed light on or off Leviton DG15S Zigbee switch UltraPro Z-Wave Long Range On/Off Switch Keep the physical paddle usable.

For a bathroom that needs humidity, temperature, and light readings too, use the Zooz ZSE11 800LR Q Sensor instead. It is not my first choice when the fastest motion response is the job.

See recommended gear for the job-first checklist. Product links on this page are direct, non-affiliate Amazon links. Product recommendations and any future affiliate relationships are explained in the disclosure.

Outdoor motion sensing tip
  • Use sensors specifically rated for outdoor use (IP65 or higher)
  • OR protect indoor sensors with weatherproof enclosures
  • OR place sensors under eaves to avoid direct water exposure

Logic

IF entry motion is detected AND the room is dark THEN turn on the light

Setup notes

Start with only the trigger and light action. Once that is reliable, add the daylight condition and any night brightness adjustment.

Advanced features

Multiple brightness levels

Create different levels throughout the night:

9 PM - 11 PM 30% Still awake, need moderate light
11 PM - 5 AM 10% Minimal disturbance
5 AM - 7 AM 20% Gentle wake-up
7 AM - 9 PM 100% Full brightness

Lux-based activation

Only turn on lights if the room is actually dark:

  • Add a condition that light level must be below a certain threshold (e.g., 100 lux)
  • This prevents lights from turning on during daytime when natural light is sufficient

Zone-based motion

For larger rooms, use multiple motion sensors to track which area someone is in and only light that zone.

Common issues and solutions

Lights turn on too slowly

Problem: Delay between motion detection and lights turning on causes you to reach for the switch.
Solutions:
  • Check sensor placement - should detect motion before entering room
  • Reduce automation processing time - use local control instead of cloud
  • Use faster communication protocols (Zigbee/Z-Wave vs WiFi)
  • Optimize automation logic to minimize conditions

Lights turn on when not needed

Problem: Lights activate from pets, sunlight reflections, or other false triggers.
Solutions:
  • Adjust motion sensor sensitivity
  • Add lux sensor condition to prevent daytime activation
  • Use pet-immune motion sensors
  • Position sensor away from windows and heat sources
  • Add time-based conditions

Inconsistent performance

Problem: Sometimes works, sometimes doesn't.
Solutions:
  • Check sensor battery levels
  • Verify wireless signal strength (Zigbee/Z-Wave mesh)
  • Replace batteries before completely dead
  • Add repeaters/extenders for distant sensors
  • Check for interference from other devices

Sensor placement best practices

Height

  • Optimal: 6-8 feet high for best coverage
  • Corners: Good for monitoring entire room
  • Entry points: Near doors for immediate detection

Angle

  • Ceiling mount: Wide coverage, detects all motion
  • Wall mount: Directional, catches people entering
  • Corner mount: 90° coverage, good for hallways

Coverage testing

  1. Mount sensor temporarily with tape
  2. Walk through room at different paths
  3. Verify all entry points are covered
  4. Check for dead zones
  5. Adjust position or add additional sensors
  6. Permanently mount once confirmed

What to avoid

  • Near windows - Sunlight and outdoor motion cause false triggers
  • Near heating/AC vents - Temperature changes trigger sensors
  • Pointed at moving objects - Ceiling fans, curtains, pets
  • Behind furniture - Blocks detection zone

Failure modes

Done when

FAQ

Why do motion lights turn on too slowly?

Put the sensor where it sees someone before they reach the switch, and keep the automation local where the platform supports it.

Should motion lights turn on during the day?

Usually no. Add a light-level condition or restrict the recipe to the times when the room is normally dark.

What happens when the internet is down?

A local hub and compatible devices can keep the automation running, but the physical wall switch must work either way.