A Smarter Night: Gentle Lighting for Late-Night Bathroom Trips

Thumbnail for a late night bathrrom automation article
Thumbnail for a late night bathrrom automation article

In This Article

Waking up at night should not mean blinding yourself with harsh light. This smart home automation uses gentle, warm lighting to guide you from bed to the bathroom and back without disturbing your sleep. Whether you have a full smart setup or just a motion sensor and light, we’ll show you how to make your nights safer and more comfortable.

Jump To

If you’ve ever gotten up in the middle of the night to use the bathroom, you know the struggle. One moment you’re groggy and calm, the next you’re squinting under a harsh, bright light that wakes you up like a double espresso. It’s uncomfortable, it disrupts your sleep, and if you live with others, it’s an easy way to wake them up too.

That’s where smart home automation comes in. With just a few carefully placed devices, you can create a gentle lighting pathway from your bed to the bathroom, one that’s bright enough to keep you safe but soft enough to protect your sleep.

In this guide, I’ll walk you through two setups using Home Assistant:

  1. Full Setup – Using a ThirdReality Zigbee Button, contact sensors, motion sensors, and smart lighting.
  2. Easy Setup – For those with just a motion sensor and a smart bulb or night light.

Both options will help you move through your home quietly, safely, and without flooding your eyes with daylight-level brightness at 2 AM.

Why This Home Automation Makes a Big Difference

A lot of people underestimate how much light at night affects the body. Bright, white light, especially above 3000K, signals to your brain that it’s daytime. This can reduce melatonin production, make it harder to fall back asleep, and generally mess with your sleep quality.

By creating an automation where lights turn on dim and warm:

  • You protect your circadian rhythm
  • You reduce the shock of waking up in a dark room
  • You move safely without tripping or bumping into things
  • You avoid waking up others in your home

The beauty of this setup is that it feels natural, like your home is looking out for you. You’re not fumbling for your phone, you’re not flipping switches, you’re just moving and letting the house take care of the rest.

For the following example, we are using Zigbee devices on Home Assistant. However, the concepts are still the same and can be copied into Google Home, Alexa, etc.

Full Setup – Step-by-Step Guide

This version gives you the smoothest, most personalized experience. We’ll use:

  • ThirdReality Zigbee Button at your bedside
  • Bedroom contact sensor on your door
  • Hallway LED strips or smart bulbs
  • Zigbee motion sensor/night light in the bathroom

Step 1 – A Gentle Start from Bed

Before you even step out of bed, you can press the ThirdReality Zigbee Button to dim your bedroom light to just 5–10%. This lets your eyes adjust gradually rather than being hit with brightness the moment you move.

I prefer a warm color temperature here (around 2000–2700K) because it feels cozy and doesn’t mess with your sleep signals. If you have the capabilities, I like to use an LED Strip that sits underneath the bed. That way you can see where your walking and the light never makes it up to the bed for any sleepers.

YAML Example – Bedside Button to Dim Bedroom Light:

alias: Night Button - Dim Bedroom Light
trigger:
- platform: device
domain: zha
device_id: your_thirdreality_button_device_id
type: remote_button_short_press
subtype: button_1
condition: []
action:
- service: light.turn_on
target:
entity_id: light.bedroom_main
data:
brightness_pct: 8
color_temp: 400
transition: 2
mode: single

Step 2 – Smooth Transition to the Hallway

When your bedroom door opens, hallway LED strips or bulbs turn on at about 10% brightness. This prevents that harsh jump from a dim bedroom to total darkness.

YAML Example – Bedroom Door Opens → Hallway Lights Dim:

alias: Bedroom Door Open - Dim Hallway Lights
trigger:
- platform: state
entity_id: binary_sensor.bedroom_door_contact
from: 'off'
to: 'on'
condition:
- condition: time
after: '23:00:00'
before: '06:00:00'
action:
- service: light.turn_on
target:
entity_id: light.hallway_led_strip
data:
brightness_pct: 10
color_temp: 400
transition: 1
mode: single

Step 3 – Motion-Activated Bathroom Light

As soon as you enter the bathroom, a Zigbee motion sensor turns on a night light or dimmed bulb to around 15%. The light should fade in gently to avoid being jarring.

YAML Example – Bathroom Motion Sensor Low Light:

alias: Bathroom Motion - Night Light
trigger:
- platform: state
entity_id: binary_sensor.bathroom_motion
to: 'on'
condition:
- condition: time
after: '23:00:00'
before: '06:00:00'
action:
- service: light.turn_on
target:
entity_id: light.bathroom_night_light
data:
brightness_pct: 15
color_temp: 400
transition: 1
mode: single

Step 4 – Automatic Shutoff

When no motion is detected for five minutes, the bathroom light turns off automatically.

YAML Example – Auto-Off After No Motion:

alias: Bathroom Night Light Auto-Off
trigger:
- platform: state
entity_id: binary_sensor.bathroom_motion
to: 'off'
for:
minutes: 5
condition:
- condition: time
after: '23:00:00'
before: '06:00:00'
action:
- service: light.turn_off
target:
entity_id: light.bathroom_night_light
mode: single

Easy Setup – Just Motion + Light

If you don’t have buttons, contact sensors, or multiple lights, you can still enjoy a simpler version of this automation. All you need is:

  • One motion sensor in the bathroom or hallway
  • One smart bulb or night light

Here’s how it works:

  • Motion is detected → light turns on dim and warm
  • No motion for 5 minutes → light turns off automatically

YAML Example – Simple Bathroom Motion Night Light:

alias: Simple Night Bathroom Light
trigger:
- platform: state
entity_id: binary_sensor.bathroom_motion
to: 'on'
condition:
- condition: time
after: '23:00:00'
before: '06:00:00'
action:
- service: light.turn_on
target:
entity_id: light.bathroom_light
data:
brightness_pct: 15
color_temp: 400
transition: 1
mode: single

YAML Example – Auto-Off for Simple Setup:

yamlCopyEditalias: Simple Night Bathroom Light Auto-Off
trigger:
- platform: state
entity_id: binary_sensor.bathroom_motion
to: 'off'
for:
minutes: 5
condition:
- condition: time
after: '23:00:00'
before: '06:00:00'
action:
- service: light.turn_off
target:
entity_id: light.bathroom_light
mode: single

Pro Tips for Both Setups

Before wrapping up, here are a few things I’ve learned setting up night lighting automations:

  • Use warm tones at night – Set color temperature between 2000–2700K for the least impact on your sleep.
  • Add a delay before hall lights turn off – This ensures you’re not left in the dark mid-walk.
  • Consider hallway floor lighting – LED strips under baseboards or cabinets provide a beautiful, safe guide path.
  • Test brightness levels – Too dim, and you risk tripping; too bright, and you’ll disrupt sleep.
  • Think about other nighttime activities – You might want the same automation to work when checking on kids or getting a drink of water.

Final Thoughts

This is one of those automations that you don’t realize you needed until you’ve lived with it for a week. It’s subtle, thoughtful, and it makes your home feel responsive and alive. Whether you go all-out with multiple devices or keep it simple with a motion sensor and one light, your eyes, and your sleep, will thank you.

Share the Post:

Disclaimer: Some of the links in this post are affiliate links, including Amazon. If you click through and make a purchase, we may earn a small commission at no extra cost to you. This helps support the site and allows us to continue providing helpful content. We only recommend products we personally use or trust.

Jump To

Related Posts

a smart humidifier in a bedroom of a smart home. this is the thumbnail for an article called best smart humidifiers for 2026
Product Reviews

The Best Smart Humidifier for 2026 for Healthier Indoor Air

Dry indoor air is one of those problems you do not always notice right away. But over time, it can affect your sleep, dry out your skin, irritate sinuses, and make your home feel uncomfortable, especially during colder months.

A good humidifier can make a noticeable difference. The right model helps balance indoor humidity, improve comfort, and create a healthier living environment without constant maintenance or noise.

In this guide, we break down the best humidifiers for 2026 based on real-world use, room size, ease of cleaning, noise level, and smart features. Whether you need a humidifier for a bedroom, a large living space, or an entire home, these are the models worth considering this year.

Read More »
amazon alexa turning off air conditioner because a window is open
Automation Ideas

An HVAC Automation That Saves Money When Windows Are Open

You’ll learn how a simple automation can prevent air conditioning from running while windows are open.It explains the real-world problem, the logic behind the solution, and how the automation works. The focus is on improving comfort, reducing energy waste, and keeping the system easy to manage.

Read More »
smart home modern living room
Smart Home Basics

How Many Smart Homes Are There

Smart homes are becoming more common every year as technology becomes easier and more affordable. Millions of households now use devices like smart speakers, thermostats, lights, and security systems. This rapid growth is changing the way people live, making homes more convenient, energy-efficient, and secure. As adoption continues to rise, smart technology is shaping the future of modern living in exciting ways.

Read More »