Execution mode for scenes

After a few months of using Home Assistant (don’t throw tomatoes at me :tomato:), I find that an interesting feature is missing from Gladys regarding scene management.

In the past, I’ve seen many discussions about this need:

  • when motion is detected on a sensor
  • turn the light on, wait 2 minutes, turn the light off

But most users encounter the following problem: if several motion detections happen, the scene is launched several times in parallel and the light goes into show mode :light_bulb: (continuous on/off).

The solution to this was often a virtual device storing the state or conditions (if the light isn’t already on).

But I find HA has an interesting approach to handle this: the scene execution modes.

For the scenario above, the single mode directly solves the problem. If the scene is currently running, a warning is logged and it won’t be started a second time.

We could leave the parallel mode for existing scenes. And the other modes might be too complex today :thinking:

What do you think? If the demand is strong, I can draft a specification.

Hi @cicoub13 :slight_smile:

We already have this behavior in Gladys for the scenario you describe :slight_smile:

For turning on, you need to create this trigger (standard) :

![Screenshot 2026-02-17 at 21.15.33|690x321](upload://41bTbSLdSDeLHdJLBtQNpHlC

1 Like

Ah darn. I’ll try then. Thanks.