Presence 'did not change' in X minutes has no effect


#1

1) Give a description of the problem
Presence ‘did not change’ doesn’t seem to apply.
Sometimes a presence changes to ‘not present’ and back to ‘present’ immediately for no apparent reason, often when opening the Smartthings app. To prevent this firing the ‘people are home’ actions (unlocking doors, turning on lights, notifying) I added the second condition to the IF.

2) What is the expected behaviour?
IF statement should not evaluate true unless both conditions are met

3) What is happening/not happening?
condition described doesn’t seem to make any difference.

**4) Post a Green Snapshot of the piston![image|45x37]05821-701

5) Attach logs after turning logging level to Full
edit: added logs - shows condition ‘did not change’ is evaluating true, even though the log shows it did change 4 seconds ago

4/25/2021, 4:49:45 PM +273ms
+2ms ╔Received event [Jason Phone].presence = present with a delay of 99ms
+95ms ║RunTime Analysis CS > 33ms > PS > 6ms > PE > 55ms > CE
+97ms ║Runtime (42892 bytes) successfully initialized in 6ms (v0.3.110.20191009) (94ms)
+98ms ║╔Execution stage started
+120ms ║║Comparison (enum) present changes_to (string) present = true (1ms)
+122ms ║║Cancelling condition #2’s schedules…
+123ms ║║Condition #2 evaluated true (20ms)
+170ms ║║Comparison (enum) present did_not_change = true (30ms)
+210ms ║║Comparison (enum) present did_not_change = true (40ms)
+231ms ║║Comparison (enum) not present did_not_change = true (20ms)
+342ms ║║Comparison (enum) present did_not_change = true (110ms)
+345ms ║║Cancelling condition #22’s schedules…
+346ms ║║Condition #22 evaluated true (222ms)
+347ms ║║Cancelling condition #1’s schedules…
+349ms ║║Condition group #1 evaluated true (state changed) (246ms)
+351ms ║║Cancelling statement #18’s schedules…
+364ms ║║Executed virtual command setVariable (3ms)
+379ms ║║Comparison (time) 60585641 is_between (time) 28800000 … (time) 79200000 = true (9ms)
+382ms ║║Time restriction check passed
+384ms ║║Condition #17 evaluated true (17ms)
+385ms ║║Condition group #3 evaluated true (state did not change) (18ms)
+387ms ║║Cancelling statement #3’s schedules…
+394ms ║║Calculating (string) Jason + (string) is home >> (string) Jason is home
+418ms ║║Executed virtual command [Galaxy S8, Galaxy S9+, Jason’s Galaxy S10].sendPushNotification (16ms)
+421ms ║║Cancelling statement #9’s schedules…
+453ms ║║Executed physical command [Front Door Lock].unlock() (29ms)
+454ms ║║Executed [Front Door Lock].unlock (31ms)
+467ms ║║Comparison (integer) 450 is_less_than (integer) 100 = false (1ms)
+468ms ║║Condition #12 evaluated false (10ms)
+711ms ║║Comparison (dynamic) Cloudy is_not (string) Clear = true (2ms)
+713ms ║║Condition #23 evaluated true (243ms)
+714ms ║║Condition group #11 evaluated true (state did not change) (256ms)
+716ms ║║Cancelling statement #14’s schedules…
+1090ms ║║Executed physical command [Front hall light].setLevel([99]) (361ms)
+1091ms ║║Executed virtual command [Front hall light].fadeLevel (368ms)
+1138ms ║║Executed physical command [Outside lights].setLevel([99]) (39ms)
+1139ms ║║Executed virtual command [Outside lights].fadeLevel (46ms)
+1143ms ║║Executed virtual command [Front hall light, Outside lights].wait (1ms)
+1145ms ║║Requesting a wake up for Sun, Apr 25 2021 @ 5:19:46 PM EDT (in 1800.0s)
+1151ms ║╚Execution stage complete. (1053ms)
+1153ms ║Setting up scheduled job for Sun, Apr 25 2021 @ 5:19:46 PM EDT (in 1799.994s)
+1161ms ╚Event processed successfully (1160ms)
4/25/2021, 4:49:41 PM +537ms
+2ms ╔Received event [Jason Phone].presence = not present with a delay of 86ms
+89ms ║RunTime Analysis CS > 23ms > PS > 6ms > PE > 60ms > CE
+92ms ║Runtime (42891 bytes) successfully initialized in 6ms (v0.3.110.20191009) (89ms)
+93ms ║╔Execution stage started
+112ms ║║Comparison (enum) not present changes_to (string) present = false (1ms)
+114ms ║║Cancelling condition #2’s schedules…
+115ms ║║Condition #2 evaluated false (18ms)
+116ms ║║Condition group #1 evaluated false (state did not change) (20ms)
+118ms ║╚Execution stage complete. (26ms)
+119ms ╚Event processed successfully (119ms)