---
title: "A night light that guides you to the bathroom without waking you"
description: "A motion sensor switches on a dim light along the way to the bathroom at night. The Sonoff kit contains an SNZB-03PR2 sensor with a light sensor and a ZBMINIR2 Zigbee relay."
canonical: "https://realhomeautomations.com/en/projects/night-light-to-the-bathroom/"
language: en-US
updated: 2026-11-23T16:24:04+00:00
---

# A night light that guides you to the bathroom without waking you

A motion sensor switches on a dim light along the way to the bathroom at night. The Sonoff kit contains an SNZB-03PR2 sensor with a light sensor and a ZBMINIR2 Zigbee relay.

> Canonical HTML page: https://realhomeautomations.com/en/projects/night-light-to-the-bathroom/

- **Difficulty:** Intermediate
- **Build time:** 45–90 minutes
- **Reading time:** 3 minutes

## Tools required

- Sonoff SNZB-03PR2 (motion sensor with a light sensor, Zigbee 3.0)
- Sonoff ZBMINIR2 (10 A Zigbee relay, neutral wire required)
- Zigbee hub or Home Assistant with a Zigbee adapter
- Night lamp or strip on a separate circuit


## What readers will learn

- To understand why the relay doesn't dim and the night lamp is a separate source
- To set a "dark" condition and an off delay
- To check the day, the night and the absence of the sensor


## Skill requirements

- To pair a Zigbee device in an app or in Home Assistant
- To build an automation with a trigger, a condition and an action

## Project kit

- [Night Light Kit – Sonoff (motion sensor + relay)](https://realhomeautomations.com/en/product/night-light-kit-sonoff-motion-sensor-relay/index.md)

You get up at night to go to the bathroom. The ceiling light is too bright and wakes the others. Motion in front of the room switches on a dim, separate light only at night, and during the day the ordinary switch remains.

 ## What you will get

 A motion sensor switches on a small lamp or strip along the way to the bathroom at night and switches it off after a pause without motion. The relay only switches on and off, it **does not dim**. That is why the night light is a separate source on its own circuit: a plinth strip or a small lamp.

 ## What we need

- [The Sonoff "Night light" kit](https://realhomeautomations.com/bg/produkt/night-light-kit-sonoff-motion-sensor-relay/), which contains:
- [Sonoff SNZB-03PR2](https://realhomeautomations.com/bg/produkt/smart-motion-sensor-sonoff-snzb-03pr2-senseguard-motion-gen2-zigbee-3-0-protocol-adjustable-sensitivity-detection-time-battery-life-up-to-3/) - a motion sensor with a light sensor, Zigbee 3.0, CR2477 battery;
- [Sonoff ZBMINIR2](https://realhomeautomations.com/bg/produkt/sonoff-zbminir2-zigbee-smart-relay/) - a 10 A Zigbee relay, neutral wire required.
- A night lamp or strip on a separate circuit and a relay for it.

 You need a Zigbee hub or Home Assistant with a Zigbee adapter.

 ## How it works

 The logic is one: motion → if it is dark → switch on the night lamp → switch it off after a pause without motion. Sonoff describes the SNZB-03PR2 with a separate light sensor (conditions in lux), a cooldown between two detections of 5 to 60 seconds, a range of 6 m and an angle of 120°.

 ## How it is at our place

 In Marto's Home Assistant the hallway uses the "Sensor light" blueprint: during the day a normal scene with an off delay of 1.5 minutes, and in a "sleep lighting" period a night scene with a delay of 0.5 minutes. The night lamps there are dimmable and glow at 1%. A relay can't do that, so here the night light is separate.

 ## Steps

- The relay is installed on the night lamp's circuit.
- Pair the sensor and the relay with the Zigbee hub or in Home Assistant. Expect the sensor to show "motion" and illuminance, and the relay a switch for turning on.
- Place the sensor so that it detects a person leaving the room and doesn't see the night lamp itself.
- Automation: trigger - motion; condition - dark (a threshold in lux, an example value, measure it at your place) or hours; action - switch the relay on; switch off after a pause without motion, for example from 30 seconds to 2 minutes.
- The normal lighting stays on the wall switch.

 ## Checking the result

- Walk through the area during the day: the night lamp shouldn't come on.
- Walk through at night: it comes on within seconds and goes out after the pause.
- Take the battery out of the sensor: the night lamp stays off, and the wall switch turns on the normal lighting.

 ## If it doesn't work

- The sensor doesn't pair → the hub is far away → bring it closer for pairing.
- The lamp is on and triggers the sensor again → the sensor sees it → move it.
- Delay or no detection → weak battery or weak Zigbee signal → replace the battery and check the network.

 ## Limitations

- The sensor detects motion of animals too.
- Without the Zigbee hub or Home Assistant the automation doesn't work, but the wall switch does.

 ## Sources and verification status

 Checked against the Sonoff and Home Assistant documentation, 22.11.2026.

- [SONOFF: SNZB-03PR2 SenseGuard Motion Gen2](https://sonoff.tech/products/sonoff-senseguard-motion-gen2-zigbee-motion-sensor-snzb-03pr2)
- [SONOFF: ZBMINIR2](https://help.sonoff.tech/docs/zbminir2)
- [Home Assistant: Zigbee Home Automation](https://www.home-assistant.io/integrations/zha/)