Stopping a scene from another scene

Hello everyone,

First of all, even if the title looks similar, this is not what I talked about here (Pouvoir activer / désactiver une scène, depuis une scène)

Today I’m still wondering about the management of my scenes:

As part of my Alarm mode, I can activate the Surveillance mode manually (from a button) or from the dashboard.
When this mode is activated, a scene starts: a red spot blinking every 10 seconds.
To configure this scene I had to create a loop (on 2 sec - off 8 sec) that I repeat 4 times.
It seems odd, but if I only do the loop once, the light blinks a bit erratically, so that’s the best solution I found.

The problem is that if I exit Surveillance mode, this scene runs for the full 40 seconds. And that’s where conflicts happen: when I deactivate my alarm, I want the spot to turn green, steady light for 10 sec.

SO: would it be possible from one scene to stop the execution of another scene?

I hope I was clear enough!! :slight_smile:

You can do it by tinkering a bit :slight_smile:

All you need to do is create a virtual MQTT device that will act as a kind of « variable » — the idea of this variable would be to say « Stop the scene = 0 or 1 »

Then in your scene that wants to stop the other scene, you set the value of this device to 0 or 1.

In the scene that should be stopped, add a condition « continue only if » the « stop the scene » is 0.

Okay, this will make the scene a bit heavy but it gets the job done ^^

Also, an action « stop the scene » could be nice too — why not make a feature request :slight_smile:

2 Likes

Good catch — I hadn’t thought of using the « continue if and only if », which will be easy to implement, since I already have my fake MQTT device (state monitoring = 0 / 1).

That solves my problem! That said, I’ll create a feature request to add this action natively :slight_smile: