Hi everyone, I am trying to convert a flow from Stringify that I use as my “alarm system” and have had nothing but troubles with WebCoRE so I’m hoping someone can help me figure this out.
Basically, if my front door opens and someone comes in it waits 30 seconds to see if my SmartThings Arrival sensor is present (I give it a buffer as it doesn’t instantly connect sometimes) and if it isn’t, it gives me a push notification. (To prevent false alarms for when I leave, I have an motion sensor at the front door, so if there is motion inside when the door opens, it knows I’m leaving and to not continue further)
I have spent a week now trying to rebuild variations of this in WebCoRE and never can get it to work, even when I have simplified it and added extra debug messages.
Piston:
What happens: I open the door, and it gives me the push notification #9 and that’s it.
What should happen: after 30 seconds, it should check the state of the presence sensor and give me a notification #17 or #15 but I get neither. (In the future I’d add other things like flashing lights, alarms sounds, etc )
Looking at the logs, it appears the “Wait 30 seconds” works, but after those 30 seconds are up, it just ends and does not do anything.
Full Log:
5/7/2019, 9:07:23 PM +199ms
+1ms ╔Received event [Home].time = 1557277644790 with a delay of -1592ms
+124ms ║RunTime Analysis CS > 23ms > PS > 81ms > PE > 20ms > CE
+128ms ║Runtime (40540 bytes) successfully initialized in 81ms (v0.3.10a.20190223) (126ms)
+130ms ║╔Execution stage started
+132ms ║╚Execution stage complete. (2ms)
+135ms ╚Event processed successfully (134ms)
5/7/2019, 9:06:58 PM +157ms
+2ms ╔Received event [Front Door Contact].contact = closed with a delay of 790ms
+143ms ║RunTime Analysis CS > 25ms > PS > 99ms > PE > 18ms > CE
+146ms ║Runtime (40541 bytes) successfully initialized in 99ms (v0.3.10a.20190223) (142ms)
+147ms ║╔Execution stage started
+157ms ║║Comparison (enum) closed changes_to (string) open = false (1ms)
+159ms ║║Cancelling condition #2's schedules...
+160ms ║║Condition #2 evaluated false (7ms)
+162ms ║║Cancelling condition #1's schedules...
+163ms ║║Condition group #1 evaluated false (state changed) (10ms)
+166ms ║╚Execution stage complete. (19ms)
+167ms ╚Event processed successfully (167ms)
5/7/2019, 9:06:54 PM +567ms
+2ms ╔Received event [Front Door Contact].contact = open with a delay of 829ms
+142ms ║RunTime Analysis CS > 26ms > PS > 99ms > PE > 18ms > CE
+145ms ║Runtime (40546 bytes) successfully initialized in 99ms (v0.3.10a.20190223) (143ms)
+146ms ║╔Execution stage started
+157ms ║║Comparison (enum) open changes_to (string) open = true (0ms)
+159ms ║║Cancelling condition #2's schedules...
+160ms ║║Condition #2 evaluated true (7ms)
+169ms ║║Comparison (enum) off is (string) off = true (2ms)
+171ms ║║Condition #3 evaluated true (10ms)
+173ms ║║Cancelling condition #1's schedules...
+174ms ║║Condition group #1 evaluated true (state changed) (21ms)
+186ms ║║Comparison (enum) not present is_not (string) present = true (2ms)
+188ms ║║Condition #5 evaluated true (11ms)
+189ms ║║Condition group #4 evaluated true (state did not change) (13ms)
+192ms ║║Cancelling statement #8's schedules...
+212ms ║║Executed virtual command sendPushNotification (14ms)
+216ms ║║Cancelling statement #10's schedules...
+221ms ║║Executed virtual command wait (1ms)
+223ms ║║Requesting a wake up for Tue, May 7 2019 @ 9:07:24 PM EDT (in 30.0s)
+228ms ║╚Execution stage complete. (82ms)
+230ms ║Setting up scheduled job for Tue, May 7 2019 @ 9:07:24 PM EDT (in 29.994s)
+239ms ╚Event processed successfully (239ms)
Any help would be greatly appreciated!
Thanks,
Scott