ThisCalculator

Everyday

Presence Sensors for Home Assistant Morning Routine

Updated · Standard formula, shown below

Alarm time (minutes after midnight) 465 clock
Time in bed (minutes)
480 min
You entered
Wake-up buffer (minutes)
15 min
You entered

Presence Sensors for Home Assistant Morning Routine

Presence sensors let Home Assistant know exactly when and where you are in your home, so your morning routine can run automatically—lights turn on as you step out of bed, the kettle starts when you enter the kitchen, and the bathroom heats up before you arrive. This article explains how presence sensors work with Home Assistant, how to choose the right ones, and how to build a reliable morning automation.

Formula

The calculator above works out what time your alarm should be set for, given the time you go to bed and a wake-up buffer. The formula is:

Alarm time = Bedtime + Time in bed − Wake-up buffer

Where:

  • Bedtime is the time you go to sleep (in minutes after midnight, e.g., 23:30 = 1410).
  • Time in bed is the total minutes you plan to spend in bed (default 480 = 8 hours).
  • Wake-up buffer is the extra minutes you want between your alarm and when you actually need to be up (default 15).

The result is shown as a 24-hour clock time (e.g., 07:30). This is a planning tool—it does not account for how long it takes you to fall asleep or how many times you hit snooze.

Worked Example

Using the defaults: you go to bed at 23:30 (1410 minutes after midnight), plan to be in bed for 480 minutes (8 hours), and want a 15-minute buffer after your alarm.

  1. Convert bedtime to minutes: 23:30 = 23 × 60 + 30 = 1410 minutes.
  2. Add time in bed: 1410 + 480 = 1890 minutes.
  3. Subtract the buffer: 1890 − 15 = 1875 minutes.
  4. Convert back to a time: 1875 ÷ 60 = 31.25 hours, which is 31 hours and 15 minutes after midnight. Since that’s past 24:00, subtract 24 hours: 31:15 − 24:00 = 07:15.

So the alarm should be set for 07:15. The calculator shows 07:15 as the result.

What Presence Sensors Actually Detect

Presence sensors in Home Assistant are devices that tell the system whether a person is in a given area. They differ from simple motion sensors because they can detect stillness—for example, someone sitting at a desk or lying in bed. The main types are:

  • Passive infrared (PIR) – detect body heat and movement. Cheap and common, but they stop reporting after a few minutes of no motion, so they can’t tell if you’re still in the room.
  • Millimeter-wave (mmWave) radar – detect even tiny movements like breathing. They can report presence continuously, even if you’re perfectly still. Examples include the Aqara FP2 and the Everywhere Smart Hub.
  • Ultrasonic – use sound waves to detect motion. Less common, but useful in some setups.
  • Camera-based – use computer vision. More complex and privacy-sensitive, but can identify specific people.
  • Bluetooth/BLE presence – detect a phone or wearable’s Bluetooth signal. Good for room-level presence, but can be unreliable if the device goes to sleep.

For a morning routine, mmWave sensors are usually the best choice because they can tell if you’re still in bed, not just that you moved.

How to Build a Morning Routine with Presence Sensors

A typical morning automation in Home Assistant uses a combination of a presence sensor and a time condition. Here’s a step-by-step approach:

  1. Install the sensor – Place a mmWave sensor above your bed, angled to cover the bed area. Make sure it can detect you lying still.
  2. Add the sensor to Home Assistant – Most mmWave sensors integrate via Zigbee, Z-Wave, or Wi-Fi. Follow the manufacturer’s instructions to pair it.
  3. Create an automation – In Home Assistant, go to Settings → Automations → Create New. Choose “State� as the trigger.
  4. Set the trigger – Select the sensor’s binary_sensor entity. Set “From� to “on� (occupied) and “To� to “off� (clear). This triggers when you leave the bed.
  5. Add conditions – Add a “Time� condition so it only runs between, say, 6:00 and 10:00 on weekdays. You can also add a condition that the sun is below the horizon if you want it dark.
  6. Add actions – Turn on the bedroom lights at a low brightness, start the kettle (via a smart plug), turn on the bathroom floor heating, and play your morning playlist.

You can also use the sensor to detect when you get back into bed (e.g., for a snooze) or to turn off lights after you leave the room.

Choosing the Right Sensor for Your Home

Not all presence sensors are equal. Here’s what to consider:

  • Range – Check the detection range. Most mmWave sensors cover 5–8 meters, which is enough for a bedroom. Some have a narrower field of view.
  • Power – Some sensors are battery-powered, others need a USB cable. For a fixed installation like above a bed, USB is easier.
  • Integration – Zigbee and Z-Wave sensors work locally and don’t require cloud. Wi-Fi sensors may need a hub or an app.
  • Price – PIR sensors cost $10–20, while mmWave sensors range from $30–60. Higher price usually means better stillness detection.
  • Privacy – Radar sensors don’t record images, so they’re more privacy-friendly than cameras.

For a morning routine, you don’t need a sensor with person identification—you just need to know if someone is in bed. A single mmWave sensor per room is usually sufficient.

Common Problems and Fixes

Even with good sensors, you may encounter issues:

  • False negatives (sensor says you’re not there) – This happens if the sensor is placed too far away or if a blanket blocks the radar. Move it closer or adjust the angle. Some sensors have sensitivity settings.
  • False positives (sensor says you’re there when you’re not) – Caused by moving objects like a ceiling fan or a pet. Use the sensor’s detection zone settings to exclude those areas.
  • Delay in detection – Some sensors have a “hold timeâ€� before they report clear. Set this to a few seconds if you want a quick response.
  • Battery drain – If using battery-powered sensors, they may die quickly. Use USB-powered sensors for always-on areas like the bedroom.
  • Automation not triggering – Check that the sensor’s entity is in Home Assistant and that the state changes are being recorded. Use the “Developer Toolsâ€� → “Statesâ€� to see live updates.

Comparing Presence Sensors to Other Automation Triggers

Presence sensors are not the only way to trigger a morning routine. Here’s how they compare:

  • Time-based – Simple, but doesn’t know if you’re actually awake. Lights might turn on when you’re still asleep.
  • Motion sensors – Trigger on movement, but stop after a few minutes of stillness. You might walk into a dark bathroom because the sensor timed out.
  • Phone alarm integration – Some apps (like Sleep as Android) can trigger Home Assistant when your alarm goes off. This works, but requires an app and may not work if you use a physical alarm.
  • Presence sensors – The most reliable for detecting “you are out of bed.â€� They work regardless of whether you have your phone with you.

For a truly hands-free morning, presence sensors are the best choice. They react to your actual behavior, not a schedule.

Cost and Setup Considerations

The total cost of a presence-sensor morning routine depends on how many rooms you cover. A basic setup for one bedroom might cost:

  • 1 mmWave sensor (e.g., Aqara FP2): ~$50
  • 1 smart plug for the kettle: ~$15
  • 1 smart light bulb or switch: ~$15
  • Home Assistant hub (if you don’t have one): Raspberry Pi 4 or similar, ~$60

That’s roughly $140 for a single-room setup. If you already have Home Assistant and some smart devices, the incremental cost is just the sensor. There are no subscription fees for local integrations.

Setup time is typically 1–2 hours, including mounting the sensor, pairing it, and writing the automation. Most of the time goes into adjusting the sensor’s position and sensitivity.

Frequently Asked Questions

Q: Can I use a regular motion sensor instead of a presence sensor for my morning routine?
Yes, but it will only trigger when you move. If you sit up in bed and then stay still, a PIR sensor will stop reporting after a few minutes, so it might not trigger the automation. A presence sensor (mmWave) detects you even when you’re still, making it more reliable for “out of bed� events.

Q: Do presence sensors work through blankets or walls?
Radar sensors can detect through thin coverings like a blanket, but not through walls. They are designed to work within a single room. Place the sensor so it has a clear line of sight to the bed, and avoid mounting it behind thick furniture.

Q: How do I prevent the sensor from triggering when my pet jumps on the bed?
Most mmWave sensors have detection zones that you can configure. Set the zone to cover only the area where you sleep, or adjust the sensitivity to ignore smaller objects. Some sensors also have a “pet immunity� setting, though it’s not common on mmWave models.

Q: Can I use presence sensors to detect when I wake up, not just when I leave the bed?
Yes. Some sensors can detect micro-movements like breathing. You can set an automation to trigger when the sensor detects a change from “still� to “moving� (i.e., you start tossing or sitting up). This requires a sensor with advanced settings, like the Aqara FP2, which offers occupancy and motion states.

Q: Do I need a Zigbee or Z-Wave hub for these sensors?
It depends on the sensor. Many mmWave sensors (like the Aqara FP2) use Wi-Fi and connect directly to Home Assistant via the manufacturer’s integration. Others use Zigbee and need a Zigbee coordinator (like a Conbee II or a Home Assistant SkyConnect). Check the sensor’s specifications before buying.

Q: What if the sensor says I’m in bed but I’m actually up?
This is a false positive. It can happen if the sensor is placed too close to a window with moving curtains, or if it picks up a fan. Adjust the detection zone or sensitivity. If the problem persists, move the sensor to a different location.

Related

Formula used
in t | Time in bed (minutes) | min | 480 | 0
in w | Wake-up buffer (minutes) | min | 15 | 0
out wake | Alarm time (minutes after midnight) | clock | 480 - w | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.