The Attendre function in scenes

Hello everyone,

Since the beginning, I don’t really understand how « Wait » placed in a scene works.

I’ll take a simple scene as an example: a sensor turns on a light and in that scene I put a « Wait » of 5 min to turn off that same light. I think the « Wait » timer starts at the moment the light turns on (give or take a few seconds).
The timer begins counting down the 5 minutes.

So this is where it gets complicated:

  1. Case: If the sensor is triggered again, is the timer restarted for 5 minutes and stacked with the previous one, without marking the end of the first timer?

  2. Case: Or, if the sensor is triggered again, is the timer restarted for 5 minutes and does not stack with the previous one, so the timer’s end will be effective after 5 minutes? And then the light would turn off according to the sensor’s triggering. And concretely our 5-minute timer would no longer be respected. I think it happens like in the second case. So this timer would not be usable;

Am I wrong?

How do you handle a scene like that?

Thanks for your replies

In scenes, the « wait » just pauses the execution of the steps, without caring how many occurrences of that scene are being triggered.

Taking a somewhat extreme example: if your trigger condition is met every 5 seconds and you have a « wait » of 5 minutes in the middle of your scene, you’ll end up with 150 occurrences of your scene running at any one time.

As for motion sensors, there’s usually a timeout so that no new movement is detected for x seconds after a detection. On the ones I use, I’ve found that there is no new detection for 60 seconds after a first pass, even if I play hide-and-seek in front of the sensor :wink:

Hi @Psoy,

We have a dedicated mechanism for that in Gladys :slight_smile:

For the trigger of the turn-on scene, you do:

Screenshot 2026-01-14 at 19.37.15

Using the option « Run only when the threshold is passed »

And for the trigger of the turn-off scene, you do:

Screenshot 2026-01-14 at 19.36.55

With the option « Run the scene after the condition has been valid for 2 minutes ».

This option will mean here:

  • As soon as the sensor reports an « Absent » value
  • THEN wait 2 minutes
  • AND if during those 2 minutes we don’t receive « Present »
  • THEN turn off the light

It’s very powerful, and indeed you must not use the Wait blocks to do this yourself — it’s impossible to achieve this behavior without this trigger :slight_smile:

1 Like

Thanks for the tip, but you can only set minutes and not seconds.
Indeed, on some sensors I don’t want to wait 1 minute but rather 30 seconds; with this solution it’s not possible :blush:

Even if I set it to 0.5?

I tried using a comma without success, but with a dot (0.5) it works :slight_smile: