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.