# Help needed setting up a scene with motion sensors

**URL:** https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854
**Category:** eWeLink App
**Tags:** scene, zigbee, sensor
**Created:** [January 12, 2025, 8:40am UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854 "2025-01-12T08:40:21Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![herresko](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@herresko](https://forum.ewelink.cc/u/herresko)
#### Post date: [January 12, 2025, 8:40am UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/1 "2025-01-12T08:40:21Z")

</div>

Hi  
Need help to solve a small problem. In my bathroom I use a motion sensor (Zigbee) to turn the light on and off. This works ok. The problem is that when I’m in the shower, which is behind curtains, the motion sensor registeres no motion although I’m still there. My first attempt to a solution was to put a secondary sensor up within the shower area and to modify the scene for turning off the light, so that both sensors needed to sense no motion. Both the scene don’t work. Although I can see from the sensors’ log that they registered no motion it doesn’t activate the scene. My guess is that it is perhaps a timing problem, that the sensors’ don’t register at exactly the same time. Any suggestions for making it work?

---

<div class="post-metadata">

### Author: ![john.e.dixon](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/john.e.dixon/32/1626_2.png) [@john.e.dixon](https://forum.ewelink.cc/u/john.e.dixon)
#### Post date: [January 12, 2025, 1:16pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/2 "2025-01-12T13:16:43Z")

</div>

Apart from the motion sensor that you have to switch on, you need a _presence_ sensor, e.g. SNZB06P, not another motion sensor.

---

<div class="post-metadata">

### Author: ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)
#### Post date: [January 12, 2025, 7:17pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/3 "2025-01-12T19:17:05Z")

</div>

> [@herresko](#):
>
> Hi  
> Need help to solve a small problem. In my bathroom I use a motion sensor (Zigbee) to turn the light on and off. This works ok. The problem is that when I’m in the shower, which is behind curtains, the motion sensor registeres no motion although I’m still there. My first attempt to a solution was to put a secondary sensor up within the shower area and to modify the scene for turning off the light, so that both sensors needed to sense no motion. Both the scene don’t work. Although I can see from the sensors’ log that they registered no motion it doesn’t activate the scene. My guess is that it is perhaps a timing problem, that the sensors’ don’t register at exactly the same time. Any suggestions for making it work?

Create two scenes:

- First “PIRs-Active”.  

- Second “off”.  

**So how does it work?**

 ![pirs](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/d/d44497cdb9c1740426a40db14c8f7d8802720186.jpeg)

When one of the PIR sensors sends a signal about detecting motion the scene does two things:  
It turns on your light device.  
It turns on the manual “off” scene.

The manual scene performs a delay of for example 30 seconds and then turns off your light device.

Every time a manual scene starts and the ewelink server will count down to the action, any PIR signal that wakes up the “PIRs-Active” scene will trigger the manual “off” scene again and this causes the countdown to stop/start again. In other words, as long as the PIR signals come before the set time, the light will be on.

If the signals do not arrive before the countdown timer expires, the light will be turned off.

_- Of course, there must be Internet access at all times._  
_- I tested it at home and it works, although it was an ultra-short test._

Your model is based on the fact that the light turns off when both sensors no longer detect movement.

This is probably not easy to achieve in ewelink. It could be done using [https://sequematic.com](https://sequematic.com) and sending variables. But it is much more complicated than the solution I provided above. Although of course it causes the light not to turn off when there is no movement but after a certain time has passed since the last movement. Theoretically, there may be anomalies that negatively affect this model. But you have to test this in practice.

**It is also very important to calibrate the delay time correctly. You need to check how often the PIR sensor actually sends a signal about detecting motion. If the delay time is lower than the repeat time of the sensor, the whole thing will not work properly!!!**

---

<div class="post-metadata">

### Author: ![herresko](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@herresko](https://forum.ewelink.cc/u/herresko)
#### Post date: [January 12, 2025, 7:50pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/4 "2025-01-12T19:50:06Z")

</div>

There is no access to any power source close to the pir, so the SNZB06P is not an option. Also as the problem is a small problem I would prefer to base it on things from the drawer rather than buying new stuff 😀

---

<div class="post-metadata">

### Author: ![herresko](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@herresko](https://forum.ewelink.cc/u/herresko)
#### Post date: [January 12, 2025, 7:51pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/5 "2025-01-12T19:51:33Z")

</div>

sounds very interesting. Will try it out. Thx

---

<div class="post-metadata">

### Author: ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)
#### Post date: [January 12, 2025, 7:57pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/6 "2025-01-12T19:57:38Z")

</div>

> [@herresko](#):
>
> sounds very interesting. Will try it out. Thx

Let us know if you have any results…

---

<div class="post-metadata">

### Author: ![ward](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/ward/32/10437_2.png) [@ward](https://forum.ewelink.cc/u/ward)
#### Post date: [January 13, 2025, 2:08am UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/7 "2025-01-13T02:08:42Z")

</div>

for some sensors for example SONOFF 03p PIR, there’s a new option, allowing you to set a period before the sensor clears its stat. In this case, the PIR would act like a presence sensor.

---

<div class="post-metadata">

### Author: ![ociepa.ekotox](https://avatars.discourse-cdn.com/v4/letter/o/c68b51/32.png) [@ociepa.ekotox](https://forum.ewelink.cc/u/ociepa.ekotox)
#### Post date: [January 13, 2025, 9:14am UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/8 "2025-01-13T09:14:06Z")

</div>

> [@herresko](#):
>
> Need help to solve a small problem. In my bathroom I use a motion sensor (Zigbee) to turn the light on and off. This works ok.

You didn’t write what ZIGBEE gateway you’re using or what model of motion sensor (SNZB-03, SNZB-03P, or another ) . Is it a cloud-based gateway ewelink e.g. Zigbee bridge pro or a local ihost device? There are definitely two possibilities. Building a complex scene or a SNZB-06P presence sensor.

---

<div class="post-metadata">

### Author: ![herresko](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@herresko](https://forum.ewelink.cc/u/herresko)
#### Post date: [January 13, 2025, 12:08pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/9 "2025-01-13T12:08:42Z")

</div>

The PIR is SNZB-03 and the gateway is a ZBBridge-P. The SNZB-06P is for the moment not an option

man. 13. jan. 2025 kl. 10.24 skrev Ociepa Ekotox via eWeLink Forum \<[notifications@ewelinkforum.discoursemail.com](mailto:notifications@ewelinkforum.discoursemail.com)\>:

---

<div class="post-metadata">

### Author: ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)
#### Post date: [January 13, 2025, 2:15pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/10 "2025-01-13T14:15:02Z")

</div>

I tested the above scene model with Sonoff PIR2 and it worked.

What options are there for SNZB-03 to choose from when creating IF in a scene? Detection and?  
My PIR2 is an antique and has only one state…

And do you want it to be based on the ewelink cloud or fully local on the bridge?

---

<div class="post-metadata">

### Author: ![herresko](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@herresko](https://forum.ewelink.cc/u/herresko)
#### Post date: [January 13, 2025, 4:00pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/11 "2025-01-13T16:00:10Z")

</div>

I have also tested and for me it doesn’t work 100%. The only IF for the sensor is motion detect/no motion detect. I don’t fully grasp you question about where to put the scene. I haven’t found anywhere on the bridge to make a scene, except for the armered mode. And I’m only using the ewelink app for making the scenes.

---

<div class="post-metadata">

### Author: ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)
#### Post date: [January 13, 2025, 4:24pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/12 "2025-01-13T16:24:40Z")

</div>

> [@herresko](#):
>
> I have also tested and for me it doesn’t work 100%.

What exactly is happening, what are the symptoms, what do the logs say… we need to have some starting point.

> [@herresko](#):
>
> The only IF for the sensor is motion detect/no motion detect.

Both sensors should be set to detect motion. We don’t touch the option to not detect motion.

> [@herresko](#):
>
> I don’t fully grasp you question about where to put the scene. I haven’t found anywhere on the bridge to make a scene, except for the armered mode. And I’m only using the ewelink app for making the scenes.

I meant scenes (internet required) vs local scenes. It used to be said that some Sonoff bridges have support for local scenes, but I have doubts whether it is possible to do what you want with this.

Theoretically it should be possible to do it using an external service and using variables and you would have to have a paid plan because it would require a webhook but I don’t know if it makes sense to spend so much of my time on it. 😕 I have to think about it.

---

<div class="post-metadata">

### Author: ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)
#### Post date: [January 13, 2025, 4:47pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/13 "2025-01-13T16:47:05Z")

</div>

What is the difference between Scenes and Smart Scenes? Because they are not the same thing, are they?

---

<div class="post-metadata">

### Author: ![ociepa.ekotox](https://avatars.discourse-cdn.com/v4/letter/o/c68b51/32.png) [@ociepa.ekotox](https://forum.ewelink.cc/u/ociepa.ekotox)
#### Post date: [January 13, 2025, 6:07pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/14 "2025-01-13T18:07:55Z")

</div>

> **[Automate Your Home with eWeLink App Smart Scenes - SONOFF Official](https://sonoff.tech/news-and-events/automate-your-home-with-ewelink-app-smart-scenes/)**
>
> Smart Scenes allow you to define specific triggers and actions for your smart devices, enabling them to interact with each other intelligently. Whether it's turning on the lights when you enter a room, adjusting the thermostat based on the time of...

---

<div class="post-metadata">

### Author: ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)
#### Post date: [January 13, 2025, 6:25pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/15 "2025-01-13T18:25:52Z")

</div>

> [@ociepa.ekotox](#):
>
> [Automate Your Home with eWeLink App Smart Scenes - SONOFF Official](https://sonoff.tech/news-and-events/automate-your-home-with-ewelink-app-smart-scenes/)

I read this earlier. 🙂

Maybe my brain is off today but it all sounds like a scene.

eWeLink WEB has a scene position and shows scenes in the device options for this device if they exist. Right? Right.

eWelink APP has a Scene section and in the device options we have Smart Scene. Right? Right.

If we create a scene as THEN we have the option to choose Smart Scene where we have two options to choose from to perform a manual scene or Enable/Disable for automatic scenes. So the same as we have in the WEB version.

So Smart scene is simply a sub option within Scenes for THEN. In other words exactly the same as the WEB version. 🙂

I was a bit confused by the fact that there is a Smart Scene position per device. And I am used to the WEB version and there I do everything in the scene section. 🙂

Or maybe I am still missing something?

---

<div class="post-metadata">

### Author: ![ociepa.ekotox](https://avatars.discourse-cdn.com/v4/letter/o/c68b51/32.png) [@ociepa.ekotox](https://forum.ewelink.cc/u/ociepa.ekotox)
#### Post date: [January 13, 2025, 7:03pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/16 "2025-01-13T19:03:00Z")

</div>

I suspect this is just an automatic scene.  
but in some devices it can be done locally (e.g. zigbee devices or matter devices).

in the future mater devices are supposed to communicate directly without using the matter hub. (e.g. when motion is detected the matter motion sensor will communicate directly with the matter bulb, bypassing the matter hub.

---

<div class="post-metadata">

### Author: ![ociepa.ekotox](https://avatars.discourse-cdn.com/v4/letter/o/c68b51/32.png) [@ociepa.ekotox](https://forum.ewelink.cc/u/ociepa.ekotox)
#### Post date: [January 13, 2025, 7:23pm UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/17 "2025-01-13T19:23:07Z")

</div>

The snzb-06p presence sensor works as an intelligent one. If you set it to report movement only when it is dark or light.

---

<div class="post-metadata">

### Author: ![BobsPit](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@BobsPit](https://forum.ewelink.cc/u/BobsPit)
#### Post date: [January 17, 2025, 4:06am UTC](https://forum.ewelink.cc/t/help-needed-setting-up-a-scene-with-motion-sensors/118854/18 "2025-01-17T04:06:15Z")

</div>

I had the same problem. I just put a door sensor on the bathroom door to go with the motion sensor.  
Motion sensor turns lights on  
No motion door sensor open lights off  
No motion door sensor closed lights on
