Help needed setting up a scene with motion sensors

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?

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

2 Likes

Create two scenes:

So how does it work?

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 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!!!

1 Like

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 :grinning:

1 Like

sounds very interesting. Will try it out. Thx

1 Like

Let us know if you have any results…

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.

1 Like

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.

1 Like

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>:

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?

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.

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

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

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. :confused: I have to think about it.

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

2 Likes

I read this earlier. :slight_smile:

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. :slight_smile:

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. :slight_smile:

Or maybe I am still missing something?

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.

1 Like

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

1 Like

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