---
title: "The lamp goes off while you sit on the sofa: motion sensor or presence sensor?"
description: "An ordinary motion sensor turns the lamp off when you sit still. A presence sensor is made for exactly that. How they differ and how to make lighting that doesn’t leave you in the dark."
canonical: "https://realhomeautomations.com/en/projects/motion-sensor-or-presence-sensor-lamp-goes-off/"
language: en-US
updated: 2026-11-23T16:24:04+00:00
---

# The lamp goes off while you sit on the sofa: motion sensor or presence sensor?

An ordinary motion sensor turns the lamp off when you sit still. A presence sensor is made for exactly that. How they differ and how to make lighting that doesn’t leave you in the dark.

> Canonical HTML page: https://realhomeautomations.com/en/projects/motion-sensor-or-presence-sensor-lamp-goes-off/

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

## Tools required

- Sonoff SNZB-06P (Zigbee presence sensor; one piece)
- Zigbee hub or Home Assistant with a Zigbee adapter
- A lamp controlled by Home Assistant (one you already have)


## What readers will learn

- Understand why a motion sensor turns the lamp off
- Tell motion from presence
- Build presence-based lighting with an off delay
- Keep manual control


## Skill requirements

- Pair a Zigbee device to Home Assistant
- Build an automation with a trigger and a delay

## Project kit

- [Sonoff SNZB-06P Zigbee Presence Sensor](https://realhomeautomations.com/en/product/sonoff-snzb-06p-zigbee-presence-sensor/index.md)

You sit on the sofa with your phone or a book. After a few minutes the lamp quietly goes off, because you haven't moved enough. You get up, wave your hand and the light comes back. That is what makes motion lighting annoying.

 ## What you will get

- Clarity on when a motion sensor is enough and when you need a presence sensor.
- An automation for a lamp in a room where you sit still: it comes on when you walk in and goes off when you've left.
- Manual control that still works, and safe behaviour when the connection is lost.

 ## What you need

- [Sonoff SNZB-06P](https://realhomeautomations.com/bg/produkt/sonoff-snzb-06p-zigbee-presence-sensor/): a Zigbee presence sensor. You need 1 piece per room.
- You need a Zigbee hub or Home Assistant with a Zigbee adapter.
- A lamp that Home Assistant already controls: a smart bulb or a lamp behind a relay.
- A free spot for the sensor with a view of where you sit.

 The time is about an hour for setup and two to three days of observation.

 ## How it works

 **A motion sensor** (PIR) reacts to change: a warm object that moves. If you sit still, after a while it "sees" an empty room.

 **A presence sensor** is designed to detect a person even when they aren't moving much. The manufacturer describes it as a presence sensor, not just a motion one. The specific range and sensitivity are in its documentation and are set during installation.

 The automation is the same: sensor → the lamp comes on → when there has been no presence for a set time, the lamp goes off.

 ## How it is at our place

 In Marto's Home Assistant, the kitchen uses a presence sensor and the “Sensor light” blueprint (by Blackshome), with the delay set to 5 and no colour control. The bathroom has a separate presence sensor with an automation for the lamp, and the wardrobe uses a motion sensor.

 ## Steps

- Place the sensor so that it sees where you sit and doesn't face a window or a fan. Follow the manufacturer's guide.
- Pair it in Home Assistant. You should see an entity `binary_sensor` for presence.
- Sit still and watch its state in Developer tools → States. That is how you make sure it sees you.
- Create an automation. An example with sample names:

 ```
alias: Living room – light by presence
triggers:
  - trigger: state
    entity_id: binary_sensor.hol_prisastvie
    to: "on"
    id: vlizam
  - trigger: state
    entity_id: binary_sensor.hol_prisastvie
    to: "off"
    for: "00:05:00"
    id: izlizam
actions:
  - choose:
      - conditions: "{{ trigger.id == 'vlizam' }}"
        sequence:
          - action: light.turn_on
            target: {entity_id: light.hol}
      - conditions: "{{ trigger.id == 'izlizam' }}"
        sequence:
          - action: light.turn_off
            target: {entity_id: light.hol}
mode: restart
```

- Set the delay to your taste. Five minutes is an example; start with a longer one and shorten it.
- Add a darkness condition if the room is bright during the day. That way the light doesn't switch on needlessly.
- Keep the wall switch or button working.

 ## Checking the result

- Walk in and see whether the lamp comes on.
- Sit still for longer than the delay. The lamp should not go off.
- Walk out and wait for the delay. The lamp should go off.
- Take the sensor's battery out. Automatic switch-off stops, so check that manual control of the lamp works.

 ## If it doesn't work

- The lamp goes off while you sit: the sensor doesn't see you. Move it or change the angle.
- It comes on for no reason: it faces a window, a fan or a pet. Lower the sensitivity.
- It doesn't go off: there is permanent presence. Look at the sensor's history.
- No response: weak Zigbee connection. Move the sensor closer or add a mains-powered device between it and the adapter.

 ## Limitations

 Range and blind spots depend on the installation. If there are people lying in bed or a child lying down in the room, the sensor may not detect them accurately. With Home Assistant off, the lamp is controlled manually.

 ## Sources and verification status

- [ZHA](https://www.home-assistant.io/integrations/zha/), checked on 22.11.2026.
- [Blueprints](https://www.home-assistant.io/docs/blueprint/), checked on 22.11.2026.
- [Automations](https://www.home-assistant.io/docs/automation/), checked on 22.11.2026.
- The Sonoff SNZB-06P product page in the shop and the manufacturer's documentation.
- Marto's automations were read in read-only mode in his Home Assistant on 22.11.2026.