Conditional Scene Timing

  • 87 Views
  • Last Post 07 July 2014
hdrider465@gmail.com posted this 03 July 2014

Ryan / All

Can you explain how the timing of the conditions for scenes would work under this scenario?

I have a scene that is triggered by a motion sensor. The scene has a 30 second pause and then turns on a siren. I have condition of a virtual button must be set to > 0.

My question is when does the condition apply? At the time of the trigger or at the time of the actions?

So if the condition switched from true to false after the trigger - will the scene continue to run to completion? or will it stop once the condition is no longer true?

You can see from this example I would like to trigger a 30 delay after entering the house to allow me to disable an alarm.



The condition is triggered at the start of the scene. If it isn't met, nothing in the scene will be triggered/changed or executed. In your case, if the condition changed before your 30 second pause was up, the scene would still continue to execute.

I believe ftsikogi is suggesting the same thing... have a scene that repeats every 5 or so seconds. Have it be the one that turns on your siren based on the condition that your "Armed" virtual device is on and "Alarm" virtual device is on. Then, make your "trigger" scene actually set the virtual "Alarm" device to on after your 30 second pause. This way, when you get in, your "Alarm" scene will trigger when you enter the home, but as long as you've set the "Armed" device to off before the "Alarm" device is turned on, you'll be OK. You'll want to make a way to have your "Armed" device switch off if "Alarm" isn't on.

Order By: Standard | Newest | Votes
ftsikogi posted this 04 July 2014

Ryan is the expert to answer on this but I believe that once the scene has been triggered there is no way to stop it.

I have not test the below procedure but what I would try is this:

Create a scene that turns on a virtual button 1 - add a 45 sec pause and then turns off virtual button 1 triggered by a motion detector. A condition will be that the virtual button 2 must be set to > 0.

Create a scene that turns on the siren using one condition. Virtual button 1 must be set to > 0 for 30 seconds

Create an “ARM” scene that turns on virtual button 2

Create a ”DISARM” scene that turns off the virtual button 1 and 2

Hope that helps
Thanks

Ryan-Scott posted this 07 July 2014

Ryan / All

Can you explain how the timing of the conditions for scenes would work under this scenario?

I have a scene that is triggered by a motion sensor. The scene has a 30 second pause and then turns on a siren. I have condition of a virtual button must be set to > 0.

My question is when does the condition apply? At the time of the trigger or at the time of the actions?

So if the condition switched from true to false after the trigger - will the scene continue to run to completion? or will it stop once the condition is no longer true?

You can see from this example I would like to trigger a 30 delay after entering the house to allow me to disable an alarm.



The condition is triggered at the start of the scene. If it isn't met, nothing in the scene will be triggered/changed or executed. In your case, if the condition changed before your 30 second pause was up, the scene would still continue to execute.

I believe ftsikogi is suggesting the same thing... have a scene that repeats every 5 or so seconds. Have it be the one that turns on your siren based on the condition that your "Armed" virtual device is on and "Alarm" virtual device is on. Then, make your "trigger" scene actually set the virtual "Alarm" device to on after your 30 second pause. This way, when you get in, your "Alarm" scene will trigger when you enter the home, but as long as you've set the "Armed" device to off before the "Alarm" device is turned on, you'll be OK. You'll want to make a way to have your "Armed" device switch off if "Alarm" isn't on.

Close