Skip to Content

Bathroom | At 3am the light only needs to show you the floor

Feeling for a switch in the dark is dangerous; full brightness ends your night. The answer is in between.
November 8, 2025 by
Bathroom | At 3am the light only needs to show you the floor
渥屋科技股份有限公司, 系統管理者
Bathroom

SMART HOME BUTLER · BATHROOM

At 3am the light only needs to show you the floor

Feeling for a switch in the dark is the dangerous option. Full brightness ends your night. A night sensor light lives in between the two.

8%
Enough light to walk by at night
1 sec
From detecting you to the light being on
90 sec
Grace period before it fades away

Those thirty seconds at 3am, and why both options are wrong

It is three in the morning and you need the bathroom. You have two choices, and neither of them is good.

The first is to leave the light off. Your eyes do adapt to darkness, but a bathroom rarely has any moonlight in it. The threshold, the bath mat, the water someone dripped an hour ago — none of it is visible. This is the hour when most falls at home happen, and the bathroom is where they happen. Older people are at the sharpest risk, because night vision fades with age and balance is not what it was.

The second is to turn the light on. The switch is usually by the door, so you have to cross the dark room to reach it, which is the risky part in the first place. You find it, you press it, and the ceiling fixture comes on at full output. That brightness was designed for shaving and putting on makeup, not for a two minute visit. Pupils that were wide open in the dark take the full hit, melatonin drops, and you go back to bed to lie there for another twenty minutes.

So the real question is not whether to turn a light on. It is how bright. The answer is far lower than most people expect: around 8%. That is enough to see the floor and the threshold, and not enough for your brain to decide morning has arrived.

Why 8%, rather than just any small number

After a few hours in the dark your eyes are extremely sensitive. A tiny amount of light goes a long way. Keep the level under 10% and your pupils barely have to adjust, so there is none of that stabbing glare. At the same time, push the colour temperature to the warmest end you have. The closer to candlelight, the less blue there is to wake you.

Brightness and colour are two separate things, and plenty of people set the first and assume they are done. A very dim but cold white light will still bring you round. Setting both is what makes it work.

100% 50% 25% 8% 0% Held steady while you are in there 90 second fade after you leave Old way one · ceiling light at full, and you have to go back and switch it off Old way two · no light at all, and the threshold and the wet floor stay invisible Detected · up to 8% within a second You leave the room Fully dark enter 1 min 2 min 3 min 4 min The vertical scale is deliberately uneven; the low end is stretched, or the 8% line would sit right on the floor of the chart
One night-time trip, three ways of handling it. The blue line is the sensor light: up to 8% within a second, held there for as long as you are in the room, then ninety seconds of fade down to nothing. The grey dashed line is the ceiling light at full, on in one step and staying there. The line along the bottom is leaving it off.

What it actually does during one trip

The same chart, told as a sequence. It makes clearer when the system steps in and when it stays out of the way.

  1. 03:11

    You are still in bed

    Nobody is in the bathroom and the light is off. The occupancy sensor reports every few seconds, and the report keeps saying no one. The system is just waiting.

  2. 03:12

    You reach the door

    The sensor reports someone. The system checks that this is night, then brings the light up to 8% at the warmest colour it can produce. From your first step inside to the light being on is under a second, so it never feels like waiting.

  3. 03:12 to 03:14

    The two minutes you are in there

    As long as the sensor can still see you, nothing changes. It will not decide you left because you stood still, and it will not brighten. You do not have to think about it at all.

  4. 03:14

    You walk out

    The sensor reports empty. The system does not kill the light immediately; it waits ninety seconds. That buffer covers your walk back to the bedroom, and it stops a moment of bending down being read as leaving.

  5. 03:15 and a half

    The light fades out

    Not a snap to black, but a slow slide down to zero over a few seconds. If you happen to still be awake in bed, the change registers only at the edge of your vision instead of as a sudden drop.

The fade matters more than it sounds. The instant a light is cut, your eyes go through a short blind period that is genuinely worse than the darkness you started in. Ramping down gives them time to keep up.

Four things it quietly takes care of

Safety

The floor, the threshold and the edge of the mat are all visible. In a home with an older person, this one is worth more than the other three combined.

Sleep

Low level, warm colour, so your brain never concludes it is morning. Back in bed, most people are asleep again within a few minutes.

Quiet

No bumping into things in the dark, and none of that ceiling-light glare spilling through the door into the bedroom. Whoever is asleep next to you stays asleep.

No effort

Nothing to find, nothing to remember to switch off. You are not part of it, so the whole thing drops out of your life.

Before and after

MomentHow it goes nowHow it goes after
Entering at nightFeeling along the wall for a switchLit within a second of stepping in
BrightnessEither nothing or everything8%, just enough to see the floor
Back in bedEyes hit by glare, hard to drop offPupils undisturbed, sleep comes back
After you leaveOften left burning until morningFades out by itself 90 seconds later
Daytime useNo differenceSensor stays out of it, switch is yours

What you need to have

Home Assistant treats every device in your home as an entity. The brand and the model do not matter here. What matters is which family it belongs to, and this setup needs very few of them.

JobFamily it belongs toRequired?
Know if anyone is therebinary_sensor occupancyRequired
The light itselflight with dimming and colourRequired
Get alertsnotify phone appRecommended
Tell day from nightsensor light levelNice to have
Know if the door is openbinary_sensor door contactNice to have
Not all sensors behave the same. One kind watches for changes in body heat: cheap, long battery life, but sit still for a minute or two and it decides the room is empty and drops the light on you. Another kind keeps reporting presence for as long as somebody is inside the area, even a completely still somebody. A bathroom clearly wants the second kind, so check which one a sensor is before you buy it.
What if the light cannot change colour? Dimming alone still gets you most of the way; holding the level at 8% is the bigger half of the job. If you later swap in a light that does colour, nothing has to be rebuilt — one field changes.

How the pieces fit together

There are only three roles here. One watches for people, one decides when the light comes on and when it goes off, and one decides what the light should look like when it does.

Occupancy sensor someone / nobody binary_sensor_trigger_light decides when on, when off adalight decides the level and the colour night hours only, hands off in daylight someone enters still there empty for 90 sec 8% within a second, warmest held, never brightened fades over a few seconds, off
The sensor only reports whether anyone is there; every judgement sits in the blueprint. When the light comes on is one question, what the light looks like is another. Keeping them separate means you can change either side later without touching the other.

Use the ready-made pieces for the middle

The hub ships with a tested set of automation blueprints. Think of a blueprint as a fill-in-the-blanks form: the boxes are already drawn, you only supply the answers. The lead role here is binary_sensor_trigger_light, which exists precisely to do on when someone is there, off when they are not.

Box to fillWhat goes in itSuggested
Which sensor to watchThe bathroom occupancy sensorYours
Which light to driveThe bathroom lightYours
Delay before switching offBuffer between leaving and dark90 sec
When it is allowed to runNight only, hands off by day23:00 to 06:00
Level and colourHanded to adalight8% · warmest

Fill those five boxes and the night light is handled. You never have to work out what should happen when somebody stops moving, and you never write a second rule just to switch things off.

Different homes, different numbers

Those are the general values. If your situation is a bit different, adjust from the table below.

Your situationLevelOff afterWhy
Adults, light sleepers8%90 secGeneral value: you can see, you stay sleepy
An older parent at home15%3 minNight vision is weaker and the walk is slower
Kids who go alone10%2 minBrighter is less frightening, and the trip is longer
Large or split bathroom12%2 minMore distance to cover and more blind spots
Actually showering at nightWhatever you pressUnchangedYour manual switch wins; the sensor will not override it
If you cannot decide, start at 8% and 90 seconds. Both numbers can be changed later with a single sentence to the AI. Nothing has to be rebuilt.

Three optional extras

Two blueprints cover the core. The three below are bonuses — add whichever you actually want, and skip the rest without losing anything.

What you wantBlueprintWhat it does
Light the hallway toobinary_sensor_trigger_lightA second rule for the hallway light, so the stretch between the bedroom and the bathroom is covered as well and no part of the trip is dark
Know before the battery diesentity_state_trigger_notifyA push message if the sensor reports nothing at all for a day. A silent sensor is the dangerous case, because a dead one looks exactly like an empty room
Switch modes automaticallyadascene_multiPuts the bathroom into night mode at eleven and back to day mode at six. Once the mode flips, the same sensor behaves differently

Two modes, each owning half the day

Night mode

8%, warmest colour, fade out ninety seconds after you leave. This is the only mode in which the sensor drives the light at all.

Day mode

The sensor stays out of it entirely. Use as much light as you like; the switch answers to you and the system does not interfere.

Manual first

A light you turned on by hand is not something the sensor rule may turn off. Showering at 2am will not go dark halfway through.

Nobody home

With no one to detect, nothing triggers and nothing lights up. There is no separate away mode to configure.

One detail people miss. When you turn the ceiling light on yourself, the sensor rule should not come along a few minutes later and switch it back off. Set manual control to take priority, and a genuine late-night shower will never be cut short.

You do not have to set this up yourself

The WOOWTECH hub runs HA-MCP, so the AI can connect straight into your system and do the work, then go back and check that it really runs — rather than handing you a block of settings to paste in.

YouSet up a night light in the bathroom. If someone goes in at night, give a little light, not the full ceiling light, and let it go out on its own afterwards.
pi agentFound the bathroom occupancy sensor and a light that dims and changes colour. I built one rule: between 11pm and 6am, someone detected brings the light to 8% at the warmest setting, and ninety seconds after they leave it fades out. I walked through it once myself — it came on, and it went back off.
YouMy father gets up at night too. Will he see well enough?
pi agentThen I will raise it to 15% and stretch the delay to three minutes, since he moves more slowly. Done, and tested again just now.

Prompts you can copy straight out

Each block below can be copied whole, using the button on the right. Pick the one closest to what you want; you do not need all of them.

The simplest versionUse this if you just want it working
Set up a night light in my bathroom.
If someone goes in at night, give a little light rather than
full brightness, and let it go out again once they leave.
The full versionLevels, hours and alerts in one go
Set up the night sensor light in my bathroom.
Between 11pm and 6am, as soon as the occupancy sensor sees
someone, bring the light to 8% within a second, at the
warmest colour it can do.
Hold it there while they are still in the room, and do not
switch off just because they stopped moving.
Once they leave, wait 90 seconds, then fade out slowly
instead of cutting the light.
Do not run in daylight, and never override a light I turned
on myself.
If the sensor reports nothing at all for a whole day, send me
a push message to change the battery.
When it is done, test it once yourself, make sure it really
works, then tell me which devices you used.
Tuned for your homeUse this one if an older parent lives with you
An older parent lives with us and gets up at night too.
Set the bathroom night light to 15% rather than 8%, and wait
3 minutes after they leave instead of 90 seconds, because
he walks slowly.
If the hallway between the bedroom and the bathroom has a
light as well, treat it the same way.
Test it once yourself before you report back.
Changing it laterOne sentence, no rebuild
The bathroom night light is too dim, I cannot see the floor
properly. Raise it from 8% to 15% and leave everything else
alone. Confirm the current settings back to me afterwards.
When something goes wrongrun a live test with me
I am standing in the bathroom doorway right now, so test it with me on the spot.
I will step inside in a moment. Tell me as it happens whether the sensor picked me up,
what brightness the light was told to use, and what it actually came out at.
If those three numbers do not line up, start from the one that is furthest off.
No need to ask me first, just talk me through it as you go.
One caution: the HA-MCP connection URL is the key to your home. Do not post it anywhere public, and do not hand it to a service you do not know well.

Common questions

Sit still for a moment and the light goes out
That is the sensor type, not the settings. The kind that watches for changes in body heat sees movement rather than people, so no movement reads as an empty room. A sensor that reports continuous presence solves it outright. As a stopgap you can stretch the off delay to three minutes, but that only postpones the problem.
8% is still too dark for me
Eyes differ, and so do floors — dark tiles swallow a surprising amount of light. Push it up to 12% or 15% and see where it lands for you. The rule of thumb is to stop as soon as you can see the floor clearly, and not to keep going past that.
It comes on during the day too
The time window is either missing or too wide. Check that it only runs between 11pm and 6am. If your bathroom has no window and is dim all day anyway, switch to a light-level sensor for that decision — it reads the room better than the clock does.
It turned off the light I switched on myself
Manual control needs to take priority. Turn on the option that leaves a hand-operated light alone, and a late-night shower will not go dark halfway. Changing this takes one sentence to the AI.
There is a two or three second delay
Work out whether the sensor or the light is the slow one. A slow sensor is usually reporting on a long interval to save battery, which the spec will state. A slow light is more often a wireless signal taking too many hops to arrive, so moving a repeater closer tends to help.
Nothing happens at all
Start with the sensor state. Walk in, walk out, and it should change both times. Stuck on one value usually means a flat battery or a dropped connection. If the state looks healthy, read the run history for the rule and see which condition is stopping it.
three in the morning

The next time you get up at night

You will not think about this article, and you will not think about the sensor. You will walk there, walk back, and go on sleeping.

That is what good setup looks like: the more important the job, the less you should ever notice it being done.

Share this post