Triggers after Wait not executing

I am having issues with a wait command. It never triggers the stuff after the wait command. but if I remove the if statement and triggers the part manually then it works, what am I doing wrong.

Try making your IF statements Never Cancel Tasks. Also, post a full log and trace of execution to help us debug.

Ok So I simplified the piston to avoid variable issues:

and here is the log, it triggered as expected on person detection and changed my view, and then the user pushed the button but after 15 seconds it did not revert back to my default view.

Logs
4/18/2024, 3:52:52 PM +15ms
+3ms	╔Received event [Front Door Camera on Home C5].smartDetectType = waiting with a delay of 190ms, canQueue: true, calledMyself: false
+29ms	║Runtime (9063 bytes) initialized 26 LockT > 1ms > r9T > 3ms > pistonT > 1ms (first state access 19 m:3 4 22) (v0.3.114.20240115_HE)
+32ms	║╔Execution stage started
+53ms	║║Comparison (string) waiting changes_to (string) person = false (0ms)
+54ms	║║Condition #3 evaluated false (8ms)
+58ms	║║Comparison (string) waiting changes_to (string) package = false (0ms)
+61ms	║║Condition #4 evaluated false (6ms)
+70ms	║║Comparison gets = false (event device/attr eXcluded)
+73ms	║║Condition #5 evaluated false (11ms)
+77ms	║║Condition group #2 evaluated false (condition changed) (31ms)
+79ms	║║Condition group #1 evaluated false (condition did not change) (41ms)
+87ms	║║Comparison changes_to = false (event device/attr eXcluded)
+89ms	║║Condition #15 evaluated false (7ms)
+93ms	║║Comparison changes_to = false (event device/attr eXcluded)
+95ms	║║Condition #16 evaluated false (5ms)
+199ms	║║Comparison gets = false (event device/attr eXcluded)
+200ms	║║Condition #17 evaluated false (104ms)
+201ms	║║Condition group #14 evaluated false (condition did not change) (120ms)
+202ms	║║Condition group #13 evaluated false (condition did not change) (121ms)
+208ms	║╚Execution stage complete. (176ms)
+213ms	╚Event processed successfully (211ms)
4/18/2024, 3:52:51 PM +469ms
+3ms	╔Received event [Front Door Doorbell on Home C5].pushed = 1 with a delay of 32ms, canQueue: true, calledMyself: false
+25ms	║Runtime (9035 bytes) initialized 21 LockT > 1ms > r9T > 3ms > pistonT > 0ms (first state access 14 m:3 4 17) (v0.3.114.20240115_HE)
+27ms	║╔Execution stage started
+38ms	║║Comparison changes_to = false (event device/attr eXcluded)
+41ms	║║Condition #3 evaluated false (8ms)
+48ms	║║Comparison changes_to = false (event device/attr eXcluded)
+50ms	║║Condition #4 evaluated false (7ms)
+57ms	║║Comparison (integer) 1 gets (integer) 1 = true (1ms)
+62ms	║║Condition #5 evaluated true (10ms)
+64ms	║║Condition group #2 evaluated true (condition did not change) (31ms)
+83ms	║║Comparison (string) Front Door is_not (string) Front Door = false (2ms)
+85ms	║║Condition #6 evaluated false (20ms)
+87ms	║║Cancel condition #1's schedules...9 (st:10)
+88ms	║║Condition group #1 evaluated false (condition changed) (56ms)
+93ms	║║Comparison changes_to = false (event device/attr eXcluded)
+94ms	║║Condition #15 evaluated false (3ms)
+97ms	║║Comparison changes_to = false (event device/attr eXcluded)
+98ms	║║Condition #16 evaluated false (4ms)
+102ms	║║Comparison gets = false (event device/attr eXcluded)
+104ms	║║Condition #17 evaluated false (5ms)
+107ms	║║Condition group #14 evaluated false (condition changed) (16ms)
+109ms	║║Condition group #13 evaluated false (condition changed) (20ms)
+114ms	║╚Execution stage complete. (87ms)
+144ms	╚Event processed successfully (141ms)
4/18/2024, 3:52:47 PM +496ms
+2ms	╔Received event [Front Door Camera on Home C5].smartDetectType = person with a delay of 31ms, canQueue: true, calledMyself: false
+18ms	║Runtime (8983 bytes) initialized 14 LockT > 0ms > r9T > 2ms > pistonT > 0ms (first state access 9 m:3 3 11) (v0.3.114.20240115_HE)
+20ms	║╔Execution stage started
+26ms	║║Comparison (string) person changes_to (string) person = true (1ms)
+28ms	║║Condition #3 evaluated true (4ms)
+32ms	║║Comparison (string) person changes_to (string) package = false (0ms)
+33ms	║║Condition #4 evaluated false (4ms)
+36ms	║║Comparison gets = false (event device/attr eXcluded)
+37ms	║║Condition #5 evaluated false (4ms)
+39ms	║║Condition group #2 evaluated true (condition changed) (16ms)
+43ms	║║Comparison (string) 16 Live View is_not (string) Front Door = true (1ms)
+45ms	║║Condition #6 evaluated true (5ms)
+46ms	║║Condition group #1 evaluated true (condition changed) (24ms)
+560ms	║║Executed device command [Albert's Office Display on Home C5].selectLiveview(Front Door) (511ms)
+566ms	║║Executed virtual command wait [15000] (1ms)
+568ms	║║Requesting wake up at Thu, Apr 18 2024 @ 3:53:03 PM MDT (in 14999ms) for 9 (st:10)
+571ms	║╚Execution stage complete. (551ms)
+682ms	║Setting up scheduled job for Thu, Apr 18 2024 @ 3:53:03 PM MDT (in 14991ms)
+684ms	╚Event processed successfully (682ms)












Am I correct in that you reach a wait, and a wake up time is scheduled. But, before the execution awakens, another trigger fires the piston again?

Yes and no. I check tomsee if its already on front door or back door and if so skip. But that seems to break the wait statment.

I always seem to have issues with wait Statements

Have you tried setting both IFs to Asynch?

Just tried that and no luck. It just gets stuck on the wait command. It never triggers past that

Hi @albertjmulder Were you able to find a solution? I'm having the same issue all my pistons with a wait command don't fire up past the wait command

Nope