Piston help (was review) please


#1

1) Give a description of the problem
WAS: False positives from a motion detector, so I added a second, 10’ away.
NOW: Nothing happens.

2) What is the expected behaviour?
When someone enters the driveway and BOTH motion detectors… Detect, then I get a "driveway motion notification.

3) What is happening/not happening?
WAS: Nothing yet - I want a review! :slight_smile: If just one or the other motion detector detects, then I do not want anything to happen - only if BOTH detect motion.
NOW: Need help with the triggering as Paul1964 below commented.

NOTE! The Contact Sensor 4 is wired to an outdoor motion sensor receiver. It’s normally open and closes on motion, sending that to the zwave contact sensor sitting on it. Motion sensor 2 is the second motion sensor.

** SECOND NOTE** Looks like motion sensor 2 triggers on big trucks driving past the driveway. I can adjust it a bit, but it’s fine - the motion sensor connected to Contact Sensor 4 does not. That’s why if I can get this working - it’ll be just what I want!

4) Post a Green Snapshot of the pistonimage

5) Attach logs after turning logging level to Full

8/19/2020, 9:33:22 AM +500ms.
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 110ms
+132ms ║RunTime Analysis CS > 30ms > PS > 47ms > PE > 55ms > CE
+134ms ║Runtime (40560 bytes) successfully initialized in 47ms (v0.3.110.20191009) (132ms)
+135ms ║╔Execution stage started
+149ms ║║Condition #2 evaluated false (10ms)
+150ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+152ms ║╚Execution stage complete. (17ms)
+153ms ╚Event processed successfully (153ms)
8/19/2020, 9:16:35 AM +368ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 65ms
+110ms ║RunTime Analysis CS > 18ms > PS > 40ms > PE > 51ms > CE
+112ms ║Runtime (40561 bytes) successfully initialized in 40ms (v0.3.110.20191009) (110ms)
+113ms ║╔Execution stage started
+125ms ║║Condition #2 evaluated false (8ms)
+126ms ║║Condition group #1 evaluated false (state did not change) (9ms)
+128ms ║╚Execution stage complete. (14ms)
+129ms ╚Event processed successfully (128ms)
8/19/2020, 9:16:19 AM +723ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 116ms
+124ms ║RunTime Analysis CS > 27ms > PS > 46ms > PE > 51ms > CE
+126ms ║Runtime (40560 bytes) successfully initialized in 46ms (v0.3.110.20191009) (124ms)
+127ms ║╔Execution stage started
+141ms ║║Condition #2 evaluated false (10ms)
+142ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+144ms ║╚Execution stage complete. (16ms)
+145ms ╚Event processed successfully (145ms)
8/19/2020, 9:03:36 AM +271ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 111ms
+123ms ║RunTime Analysis CS > 26ms > PS > 46ms > PE > 52ms > CE
+126ms ║Runtime (40562 bytes) successfully initialized in 46ms (v0.3.110.20191009) (123ms)
+127ms ║╔Execution stage started
+140ms ║║Condition #2 evaluated false (10ms)
+141ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+143ms ║╚Execution stage complete. (16ms)
+144ms ╚Event processed successfully (144ms)
8/19/2020, 9:03:29 AM +870ms
+2ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 108ms
+121ms ║RunTime Analysis CS > 24ms > PS > 44ms > PE > 53ms > CE
+123ms ║Runtime (40560 bytes) successfully initialized in 44ms (v0.3.110.20191009) (120ms)
+124ms ║╔Execution stage started
+139ms ║║Condition #2 evaluated false (10ms)
+139ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+141ms ║╚Execution stage complete. (17ms)
+142ms ╚Event processed successfully (142ms)
8/19/2020, 8:47:25 AM +820ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 96ms
+118ms ║RunTime Analysis CS > 21ms > PS > 37ms > PE > 59ms > CE
+120ms ║Runtime (40561 bytes) successfully initialized in 37ms (v0.3.110.20191009) (118ms)
+121ms ║╔Execution stage started
+133ms ║║Condition #2 evaluated false (8ms)
+134ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+136ms ║╚Execution stage complete. (14ms)
+137ms ╚Event processed successfully (136ms)
8/19/2020, 8:47:11 AM +107ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 112ms
+124ms ║RunTime Analysis CS > 26ms > PS > 45ms > PE > 53ms > CE
+126ms ║Runtime (40560 bytes) successfully initialized in 45ms (v0.3.110.20191009) (124ms)
+127ms ║╔Execution stage started
+140ms ║║Condition #2 evaluated false (9ms)
+141ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+143ms ║╚Execution stage complete. (17ms)
+144ms ╚Event processed successfully (144ms)
8/19/2020, 8:39:24 AM +474ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 93ms
+109ms ║RunTime Analysis CS > 21ms > PS > 36ms > PE > 51ms > CE
+111ms ║Runtime (40561 bytes) successfully initialized in 36ms (v0.3.110.20191009) (109ms)
+112ms ║╔Execution stage started
+125ms ║║Condition #2 evaluated false (8ms)
+126ms ║║Condition group #1 evaluated false (state did not change) (9ms)
+127ms ║╚Execution stage complete. (15ms)
+128ms ╚Event processed successfully (128ms)
8/19/2020, 8:39:09 AM +354ms
+2ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 92ms
+115ms ║RunTime Analysis CS > 23ms > PS > 39ms > PE > 53ms > CE
+117ms ║Runtime (40559 bytes) successfully initialized in 39ms (v0.3.110.20191009) (115ms)
+118ms ║╔Execution stage started
+132ms ║║Condition #2 evaluated false (9ms)
+133ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+134ms ║╚Execution stage complete. (16ms)
+135ms ╚Event processed successfully (135ms)
8/19/2020, 8:20:04 AM +247ms
+2ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 109ms
+119ms ║RunTime Analysis CS > 25ms > PS > 44ms > PE > 50ms > CE
+122ms ║Runtime (40562 bytes) successfully initialized in 44ms (v0.3.110.20191009) (118ms)
+122ms ║╔Execution stage started
+136ms ║║Condition #2 evaluated false (10ms)
+137ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+139ms ║╚Execution stage complete. (16ms)
+140ms ╚Event processed successfully (139ms)
8/19/2020, 8:19:45 AM +221ms
+0ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 59ms
+93ms ║RunTime Analysis CS > 19ms > PS > 28ms > PE > 47ms > CE
+95ms ║Runtime (40558 bytes) successfully initialized in 28ms (v0.3.110.20191009) (94ms)
+96ms ║╔Execution stage started
+107ms ║║Condition #2 evaluated false (7ms)
+108ms ║║Condition group #1 evaluated false (state did not change) (9ms)
+109ms ║╚Execution stage complete. (13ms)
+110ms ╚Event processed successfully (110ms)
8/19/2020, 8:12:43 AM +311ms
+2ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 92ms
+113ms ║RunTime Analysis CS > 22ms > PS > 38ms > PE > 53ms > CE
+116ms ║Runtime (40561 bytes) successfully initialized in 38ms (v0.3.110.20191009) (113ms)
+116ms ║╔Execution stage started
+129ms ║║Condition #2 evaluated false (8ms)
+130ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+132ms ║╚Execution stage complete. (16ms)
+133ms ╚Event processed successfully (133ms)
8/19/2020, 8:12:27 AM +333ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 69ms
+97ms ║RunTime Analysis CS > 19ms > PS > 30ms > PE > 48ms > CE
+100ms ║Runtime (40558 bytes) successfully initialized in 30ms (v0.3.110.20191009) (98ms)
+101ms ║╔Execution stage started
+113ms ║║Condition #2 evaluated false (8ms)
+114ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+116ms ║╚Execution stage complete. (15ms)
+117ms ╚Event processed successfully (117ms)
8/19/2020, 8:11:19 AM +518ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 108ms
+124ms ║RunTime Analysis CS > 25ms > PS > 45ms > PE > 55ms > CE
+127ms ║Runtime (40562 bytes) successfully initialized in 45ms (v0.3.110.20191009) (125ms)
+128ms ║╔Execution stage started
+141ms ║║Condition #2 evaluated false (9ms)
+142ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+144ms ║╚Execution stage complete. (16ms)
+145ms ╚Event processed successfully (145ms)
8/19/2020, 8:11:04 AM +380ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 100ms
+117ms ║RunTime Analysis CS > 24ms > PS > 40ms > PE > 53ms > CE
+119ms ║Runtime (40560 bytes) successfully initialized in 40ms (v0.3.110.20191009) (117ms)
+120ms ║╔Execution stage started
+133ms ║║Condition #2 evaluated false (9ms)
+134ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+136ms ║╚Execution stage complete. (16ms)
+137ms ╚Event processed successfully (137ms)
8/19/2020, 8:06:04 AM +371ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 92ms
+117ms ║RunTime Analysis CS > 23ms > PS > 38ms > PE > 56ms > CE
+119ms ║Runtime (40561 bytes) successfully initialized in 38ms (v0.3.110.20191009) (117ms)
+120ms ║╔Execution stage started
+132ms ║║Condition #2 evaluated false (8ms)
+133ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+135ms ║╚Execution stage complete. (15ms)
+136ms ╚Event processed successfully (137ms)
8/19/2020, 8:05:48 AM +165ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 95ms
+112ms ║RunTime Analysis CS > 22ms > PS > 38ms > PE > 53ms > CE
+114ms ║Runtime (40559 bytes) successfully initialized in 38ms (v0.3.110.20191009) (112ms)
+115ms ║╔Execution stage started
+129ms ║║Condition #2 evaluated false (10ms)
+130ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+131ms ║╚Execution stage complete. (16ms)
+132ms ╚Event processed successfully (132ms)
8/19/2020, 8:02:53 AM +469ms
+2ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 110ms
+129ms ║RunTime Analysis CS > 26ms > PS > 46ms > PE > 56ms > CE
+131ms ║Runtime (40562 bytes) successfully initialized in 46ms (v0.3.110.20191009) (128ms)
+132ms ║╔Execution stage started
+145ms ║║Condition #2 evaluated false (9ms)
+146ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+148ms ║╚Execution stage complete. (16ms)
+149ms ╚Event processed successfully (149ms)
8/19/2020, 8:02:37 AM +603ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 66ms
+90ms ║RunTime Analysis CS > 17ms > PS > 28ms > PE > 45ms > CE
+92ms ║Runtime (40558 bytes) successfully initialized in 28ms (v0.3.110.20191009) (90ms)
+93ms ║╔Execution stage started
+103ms ║║Condition #2 evaluated false (6ms)
+104ms ║║Condition group #1 evaluated false (state did not change) (8ms)
+106ms ║╚Execution stage complete. (12ms)
+107ms ╚Event processed successfully (106ms)
8/19/2020, 7:55:28 AM +907ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 57ms
+94ms ║RunTime Analysis CS > 18ms > PS > 28ms > PE > 47ms > CE
+96ms ║Runtime (40560 bytes) successfully initialized in 28ms (v0.3.110.20191009) (94ms)
+97ms ║╔Execution stage started
+109ms ║║Condition #2 evaluated false (9ms)
+110ms ║║Condition group #1 evaluated false (state did not change) (9ms)
+111ms ║╚Execution stage complete. (14ms)
+112ms ╚Event processed successfully (112ms)
8/19/2020, 7:55:12 AM +800ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 92ms
+115ms ║RunTime Analysis CS > 23ms > PS > 40ms > PE > 52ms > CE
+118ms ║Runtime (40559 bytes) successfully initialized in 40ms (v0.3.110.20191009) (115ms)
+119ms ║╔Execution stage started
+131ms ║║Condition #2 evaluated false (8ms)
+132ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+134ms ║╚Execution stage complete. (16ms)
+135ms ╚Event processed successfully (135ms)
8/19/2020, 7:53:53 AM +174ms
+0ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 63ms
+90ms ║RunTime Analysis CS > 18ms > PS > 27ms > PE > 46ms > CE
+92ms ║Runtime (40560 bytes) successfully initialized in 27ms (v0.3.110.20191009) (91ms)
+93ms ║╔Execution stage started
+105ms ║║Condition #2 evaluated false (7ms)
+105ms ║║Condition group #1 evaluated false (state did not change) (8ms)
+107ms ║╚Execution stage complete. (14ms)
+108ms ╚Event processed successfully (109ms)
8/19/2020, 7:53:36 AM +333ms
+2ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 112ms
+130ms ║RunTime Analysis CS > 25ms > PS > 44ms > PE > 61ms > CE
+132ms ║Runtime (40560 bytes) successfully initialized in 44ms (v0.3.110.20191009) (129ms)
+133ms ║╔Execution stage started
+147ms ║║Condition #2 evaluated false (9ms)
+147ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+149ms ║╚Execution stage complete. (16ms)
+150ms ╚Event processed successfully (150ms)
8/19/2020, 7:30:53 AM +97ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 112ms
+118ms ║RunTime Analysis CS > 22ms > PS > 47ms > PE > 50ms > CE
+121ms ║Runtime (40562 bytes) successfully initialized in 47ms (v0.3.110.20191009) (119ms)
+122ms ║╔Execution stage started
+136ms ║║Condition #2 evaluated false (10ms)
+137ms ║║Condition group #1 evaluated false (state did not change) (12ms)
+138ms ║╚Execution stage complete. (17ms)
+139ms ╚Event processed successfully (139ms)
8/19/2020, 7:30:37 AM +140ms
+0ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 63ms
+94ms ║RunTime Analysis CS > 19ms > PS > 29ms > PE > 47ms > CE
+96ms ║Runtime (40558 bytes) successfully initialized in 29ms (v0.3.110.20191009) (95ms)
+97ms ║╔Execution stage started
+108ms ║║Condition #2 evaluated false (7ms)
+109ms ║║Condition group #1 evaluated false (state did not change) (9ms)
+110ms ║╚Execution stage complete. (13ms)
+111ms ╚Event processed successfully (111ms)
8/19/2020, 7:08:07 AM +909ms
+0ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 53ms
+89ms ║RunTime Analysis CS > 18ms > PS > 27ms > PE > 45ms > CE
+92ms ║Runtime (40560 bytes) successfully initialized in 27ms (v0.3.110.20191009) (90ms)
+92ms ║╔Execution stage started
+102ms ║║Condition #2 evaluated false (6ms)
+103ms ║║Condition group #1 evaluated false (state did not change) (7ms)
+105ms ║╚Execution stage complete. (13ms)
+106ms ╚Event processed successfully (106ms)
8/19/2020, 7:07:49 AM +858ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 89ms
+118ms ║RunTime Analysis CS > 23ms > PS > 40ms > PE > 55ms > CE
+121ms ║Runtime (40559 bytes) successfully initialized in 40ms (v0.3.110.20191009) (118ms)
+122ms ║╔Execution stage started
+135ms ║║Condition #2 evaluated false (9ms)
+136ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+138ms ║╚Execution stage complete. (17ms)
+139ms ╚Event processed successfully (139ms)
8/19/2020, 7:05:52 AM +58ms
+2ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 108ms
+128ms ║RunTime Analysis CS > 26ms > PS > 46ms > PE > 56ms > CE
+131ms ║Runtime (40562 bytes) successfully initialized in 46ms (v0.3.110.20191009) (127ms)
+131ms ║╔Execution stage started
+145ms ║║Condition #2 evaluated false (10ms)
+146ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+148ms ║╚Execution stage complete. (17ms)
+149ms ╚Event processed successfully (149ms)
8/19/2020, 7:05:36 AM +178ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 62ms
+113ms ║RunTime Analysis CS > 20ms > PS > 32ms > PE > 61ms > CE
+115ms ║Runtime (40559 bytes) successfully initialized in 32ms (v0.3.110.20191009) (113ms)
+116ms ║╔Execution stage started
+127ms ║║Condition #2 evaluated false (7ms)
+129ms ║║Condition group #1 evaluated false (state did not change) (8ms)
+130ms ║╚Execution stage complete. (14ms)
+131ms ╚Event processed successfully (131ms)
8/18/2020, 7:46:03 PM +969ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 96ms
+126ms ║RunTime Analysis CS > 25ms > PS > 49ms > PE > 53ms > CE
+129ms ║Runtime (40561 bytes) successfully initialized in 49ms (v0.3.110.20191009) (127ms)
+130ms ║╔Execution stage started
+144ms ║║Condition #2 evaluated false (10ms)
+145ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+147ms ║╚Execution stage complete. (17ms)
+149ms ╚Event processed successfully (149ms)
8/18/2020, 7:45:39 PM +193ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 63ms
+94ms ║RunTime Analysis CS > 18ms > PS > 28ms > PE > 48ms > CE
+97ms ║Runtime (40558 bytes) successfully initialized in 28ms (v0.3.110.20191009) (96ms)
+98ms ║╔Execution stage started
+111ms ║║Condition #2 evaluated false (9ms)
+112ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+113ms ║╚Execution stage complete. (16ms)
+114ms ╚Event processed successfully (114ms)
8/18/2020, 7:45:38 PM +752ms
+1ms ╔Received event [Driveway Front Motion].contact = open with a delay of 59ms
+103ms ║RunTime Analysis CS > 17ms > PS > 29ms > PE > 57ms > CE
+105ms ║Runtime (40560 bytes) successfully initialized in 29ms (v0.3.110.20191009) (104ms)
+106ms ║╔Execution stage started
+113ms ║║Comparison (enum) open changes_to (string) closed = false (1ms)
+115ms ║║Cancelling condition #2's schedules...
+116ms ║║Condition #2 evaluated false (5ms)
+117ms ║║Condition group #1 evaluated false (state did not change) (6ms)
+118ms ║╚Execution stage complete. (12ms)
+120ms ╚Event processed successfully (119ms)
8/18/2020, 7:45:37 PM +772ms
+2ms ╔Received event [Driveway Front Motion].contact = closed with a delay of 94ms
+112ms ║RunTime Analysis CS > 23ms > PS > 37ms > PE > 52ms > CE
+115ms ║Runtime (40559 bytes) successfully initialized in 37ms (v0.3.110.20191009) (113ms)
+116ms ║╔Execution stage started
+123ms ║║Comparison (enum) closed changes_to (string) closed = true (1ms)
+125ms ║║Cancelling condition #2's schedules...
+126ms ║║Condition #2 evaluated true (5ms)
+134ms ║║Condition #21 evaluated false (8ms)
+135ms ║║Condition group #1 evaluated false (state did not change) (15ms)
+137ms ║╚Execution stage complete. (21ms)
+138ms ╚Event processed successfully (138ms)
8/18/2020, 7:44:20 PM +417ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 61ms
+108ms ║RunTime Analysis CS > 19ms > PS > 37ms > PE > 51ms > CE
+110ms ║Runtime (40559 bytes) successfully initialized in 37ms (v0.3.110.20191009) (109ms)
+111ms ║╔Execution stage started
+122ms ║║Condition #2 evaluated false (7ms)
+123ms ║║Condition group #1 evaluated false (state did not change) (8ms)
+125ms ║╚Execution stage complete. (13ms)
+126ms ╚Event processed successfully (125ms)
8/18/2020, 7:44:06 PM +585ms
+2ms ╔Received event [Driveway Front Motion].contact = open with a delay of 109ms
+127ms ║RunTime Analysis CS > 25ms > PS > 45ms > PE > 57ms > CE
+129ms ║Runtime (40559 bytes) successfully initialized in 45ms (v0.3.110.20191009) (126ms)
+130ms ║╔Execution stage started
+137ms ║║Comparison (enum) open changes_to (string) closed = false (1ms)
+138ms ║║Cancelling condition #2's schedules...
+139ms ║║Condition #2 evaluated false (5ms)
+140ms ║║Condition group #1 evaluated false (state did not change) (6ms)
+142ms ║╚Execution stage complete. (11ms)
+143ms ╚Event processed successfully (142ms)
8/18/2020, 7:44:05 PM +521ms
+1ms ╔Received event [Driveway Front Motion].contact = closed with a delay of 107ms
+116ms ║RunTime Analysis CS > 25ms > PS > 43ms > PE > 49ms > CE
+118ms ║Runtime (40562 bytes) successfully initialized in 43ms (v0.3.110.20191009) (116ms)
+119ms ║╔Execution stage started
+125ms ║║Comparison (enum) closed changes_to (string) closed = true (0ms)
+127ms ║║Cancelling condition #2's schedules...
+128ms ║║Condition #2 evaluated true (4ms)
+137ms ║║Condition #21 evaluated false (9ms)
+138ms ║║Condition group #1 evaluated false (state did not change) (16ms)
+139ms ║╚Execution stage complete. (20ms)
+140ms ╚Event processed successfully (140ms)
8/18/2020, 7:43:57 PM +511ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 93ms
+116ms ║RunTime Analysis CS > 23ms > PS > 40ms > PE > 53ms > CE
+119ms ║Runtime (40559 bytes) successfully initialized in 40ms (v0.3.110.20191009) (116ms)
+119ms ║╔Execution stage started
+133ms ║║Condition #2 evaluated false (9ms)
+134ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+136ms ║╚Execution stage complete. (17ms)
+137ms ╚Event processed successfully (137ms)
8/18/2020, 7:37:59 PM +973ms
+0ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 56ms
+93ms ║RunTime Analysis CS > 18ms > PS > 30ms > PE > 46ms > CE
+96ms ║Runtime (40560 bytes) successfully initialized in 30ms (v0.3.110.20191009) (94ms)
+96ms ║╔Execution stage started
+108ms ║║Condition #2 evaluated false (8ms)
+109ms ║║Condition group #1 evaluated false (state did not change) (8ms)
+110ms ║╚Execution stage complete. (14ms)
+111ms ╚Event processed successfully (111ms)
8/18/2020, 7:37:43 PM +803ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 81ms
+97ms ║RunTime Analysis CS > 18ms > PS > 30ms > PE > 49ms > CE
+99ms ║Runtime (40558 bytes) successfully initialized in 30ms (v0.3.110.20191009) (97ms)
+100ms ║╔Execution stage started
+112ms ║║Condition #2 evaluated false (8ms)
+113ms ║║Condition group #1 evaluated false (state did not change) (9ms)
+115ms ║╚Execution stage complete. (15ms)
+116ms ╚Event processed successfully (116ms)
8/18/2020, 7:37:42 PM +315ms
+1ms ╔Received event [Driveway Front Motion].contact = open with a delay of 113ms
+123ms ║RunTime Analysis CS > 28ms > PS > 43ms > PE > 53ms > CE
+126ms ║Runtime (40561 bytes) successfully initialized in 43ms (v0.3.110.20191009) (124ms)
+127ms ║╔Execution stage started
+135ms ║║Comparison (enum) open changes_to (string) closed = false (1ms)
+136ms ║║Cancelling condition #2's schedules...
+137ms ║║Condition #2 evaluated false (5ms)
+138ms ║║Condition group #1 evaluated false (state did not change) (7ms)
+140ms ║╚Execution stage complete. (13ms)
+142ms ╚Event processed successfully (141ms)
8/18/2020, 7:37:41 PM +243ms
+1ms ╔Received event [Driveway Front Motion].contact = closed with a delay of 96ms
+124ms ║RunTime Analysis CS > 26ms > PS > 41ms > PE > 58ms > CE
+127ms ║Runtime (40561 bytes) successfully initialized in 41ms (v0.3.110.20191009) (125ms)
+128ms ║╔Execution stage started
+135ms ║║Comparison (enum) closed changes_to (string) closed = true (1ms)
+136ms ║║Cancelling condition #2's schedules...
+137ms ║║Condition #2 evaluated true (5ms)
+147ms ║║Condition #21 evaluated false (9ms)
+148ms ║║Condition group #1 evaluated false (state did not change) (16ms)
+150ms ║╚Execution stage complete. (22ms)
+151ms ╚Event processed successfully (152ms)
8/18/2020, 5:43:03 PM +687ms
+2ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 114ms
+121ms ║RunTime Analysis CS > 24ms > PS > 43ms > PE > 53ms > CE
+123ms ║Runtime (40562 bytes) successfully initialized in 43ms (v0.3.110.20191009) (121ms)
+124ms ║╔Execution stage started
+144ms ║║Condition #2 evaluated false (16ms)
+145ms ║║Condition group #1 evaluated false (state did not change) (18ms)
+146ms ║╚Execution stage complete. (22ms)
+147ms ╚Event processed successfully (147ms)
8/18/2020, 5:42:43 PM +550ms
+0ms ╔Received event [Driveway Front Motion].contact = open with a delay of 59ms
+104ms ║RunTime Analysis CS > 20ms > PS > 30ms > PE > 55ms > CE
+107ms ║Runtime (40561 bytes) successfully initialized in 30ms (v0.3.110.20191009) (105ms)
+107ms ║╔Execution stage started
+114ms ║║Comparison (enum) open changes_to (string) closed = false (0ms)
+116ms ║║Condition #2 evaluated false (5ms)
+117ms ║║Condition group #1 evaluated false (state did not change) (5ms)
+118ms ║╚Execution stage complete. (11ms)
+120ms ╚Event processed successfully (120ms)
8/18/2020, 5:42:39 PM +999ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 59ms
+101ms ║RunTime Analysis CS > 19ms > PS > 29ms > PE > 52ms > CE
+103ms ║Runtime (40561 bytes) successfully initialized in 29ms (v0.3.110.20191009) (102ms)
+104ms ║╔Execution stage started
+115ms ║║Condition #2 evaluated false (7ms)
+116ms ║║Condition group #1 evaluated false (state did not change) (9ms)
+118ms ║╚Execution stage complete. (14ms)
+118ms ╚Event processed successfully (118ms)
8/18/2020, 4:17:44 PM +301ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 110ms
+120ms ║RunTime Analysis CS > 26ms > PS > 44ms > PE > 51ms > CE
+197ms ║Runtime (40564 bytes) successfully initialized in 44ms (v0.3.110.20191009) (194ms)
+198ms ║╔Execution stage started
+211ms ║║Condition #2 evaluated false (10ms)
+212ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+213ms ║╚Execution stage complete. (16ms)
+214ms ╚Event processed successfully (215ms)
8/18/2020, 4:17:28 PM +360ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 94ms
+119ms ║RunTime Analysis CS > 23ms > PS > 41ms > PE > 54ms > CE
+121ms ║Runtime (40561 bytes) successfully initialized in 41ms (v0.3.110.20191009) (119ms)
+122ms ║╔Execution stage started
+135ms ║║Condition #2 evaluated false (9ms)
+137ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+138ms ║╚Execution stage complete. (16ms)
+139ms ╚Event processed successfully (139ms)
8/18/2020, 4:14:19 PM +182ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 111ms
+119ms ║RunTime Analysis CS > 20ms > PS > 45ms > PE > 54ms > CE
+122ms ║Runtime (40564 bytes) successfully initialized in 45ms (v0.3.110.20191009) (119ms)
+122ms ║╔Execution stage started
+227ms ║║Condition #2 evaluated false (101ms)
+228ms ║║Condition group #1 evaluated false (state did not change) (102ms)
+230ms ║╚Execution stage complete. (107ms)
+231ms ╚Event processed successfully (230ms)
8/18/2020, 4:14:00 PM +424ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 62ms
+101ms ║RunTime Analysis CS > 16ms > PS > 31ms > PE > 54ms > CE
+103ms ║Runtime (40560 bytes) successfully initialized in 31ms (v0.3.110.20191009) (101ms)
+104ms ║╔Execution stage started
+116ms ║║Cancelling condition #2's schedules...
+116ms ║║Condition #2 evaluated false (8ms)
+117ms ║║Condition group #1 evaluated false (state did not change) (9ms)
+119ms ║╚Execution stage complete. (15ms)
+120ms ╚Event processed successfully (120ms)
8/18/2020, 4:05:17 PM +91ms
+1ms ╔Received event [Driveway Front Motion].contact = closed with a delay of 65ms
+99ms ║RunTime Analysis CS > 20ms > PS > 30ms > PE > 49ms > CE
+101ms ║Runtime (40560 bytes) successfully initialized in 30ms (v0.3.110.20191009) (99ms)
+102ms ║╔Execution stage started
+108ms ║║Comparison (enum) closed changes_to (string) closed = true (0ms)
+110ms ║║Cancelling condition #2's schedules...
+111ms ║║Condition #2 evaluated true (4ms)
+118ms ║║Condition #21 evaluated false (7ms)
+119ms ║║Condition group #1 evaluated false (state did not change) (13ms)
+121ms ║╚Execution stage complete. (19ms)
+122ms ╚Event processed successfully (122ms)
8/18/2020, 3:58:34 PM +961ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 109ms
+126ms ║RunTime Analysis CS > 24ms > PS > 47ms > PE > 54ms > CE
+128ms ║Runtime (40562 bytes) successfully initialized in 47ms (v0.3.110.20191009) (126ms)
+129ms ║╔Execution stage started
+143ms ║║Condition #2 evaluated false (9ms)
+144ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+145ms ║╚Execution stage complete. (17ms)
+146ms ╚Event processed successfully (146ms)
8/18/2020, 3:58:18 PM +920ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 64ms
+94ms ║RunTime Analysis CS > 19ms > PS > 30ms > PE > 45ms > CE
+96ms ║Runtime (40558 bytes) successfully initialized in 30ms (v0.3.110.20191009) (95ms)
+97ms ║╔Execution stage started
+114ms ║║Condition #2 evaluated false (13ms)
+115ms ║║Condition group #1 evaluated false (state did not change) (14ms)
+116ms ║╚Execution stage complete. (19ms)
+117ms ╚Event processed successfully (117ms)
8/18/2020, 3:57:25 PM +293ms
+2ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 96ms
+122ms ║RunTime Analysis CS > 26ms > PS > 43ms > PE > 52ms > CE
+124ms ║Runtime (40561 bytes) successfully initialized in 43ms (v0.3.110.20191009) (120ms)
+126ms ║╔Execution stage started
+140ms ║║Condition #2 evaluated false (10ms)
+141ms ║║Condition group #1 evaluated false (state did not change) (12ms)
+143ms ║╚Execution stage complete. (18ms)
+144ms ╚Event processed successfully (144ms)
8/18/2020, 3:57:09 PM +363ms
+1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 103ms
+121ms ║RunTime Analysis CS > 24ms > PS > 41ms > PE > 55ms > CE
+123ms ║Runtime (40560 bytes) successfully initialized in 41ms (v0.3.110.20191009) (121ms)
+124ms ║╔Execution stage started
+137ms ║║Condition #2 evaluated false (9ms)
+138ms ║║Condition group #1 evaluated false (state did not change) (10ms)
+140ms ║╚Execution stage complete. (16ms)
+141ms ╚Event processed successfully (141ms)
8/18/2020, 3:52:58 PM +131ms
+1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 93ms
+128ms ║RunTime Analysis CS > 26ms > PS > 40ms > PE > 63ms > CE
+131ms ║Runtime (40561 bytes) successfully initialized in 40ms (v0.3.110.20191009) (129ms)

#2

I don’t think it will work. Both motion sensors are triggers so would need to be triggered at exactly the same time for the if condition to be true.

As motion sensors tend to stay active, for a set time after being triggered, the following may work.

If (motion1 changes to active and motion2 is active) or (motion1 is active and motion2 changes to active)

Changes events will trigger the piston, whereas “is” is a condition and is checked when the piston runs.

Someone else may have a better solution.


#3

Oh I see. I just went into the piston for a second to check - I don’t know what to select, after I select a contact and a motion sensor. Status? Remember the first one isn’t a motion sensor, it’s a door contact wired triggered to a non-connected motion sensor. If I select Status, then Changes To, and then Value…?

LOL I think I lost myself. Possible for you to put it in piston form so I can see?


#4

I still need help with this one - it is not working.


#5

@WCmore Think I should do this as a new post?


#6

WAIT WAIT WAIT! I think I got it but the test fails… Someone check me? @Paul1964?


#7

I don’t think you are off topic…

… but even if you were, you are the original poster, so nobody else will complain, LOL


#8

Thats how I would have tried it.

Hitting the test button will produce those results as the sensors are not active, test forces the piston to run, but any events not satisfied on the if block will block that section of code from running.

I’d set logging to full and test by walking round your drive.


#9

No good. I had it run overnight and got lots of notifications, and the lights (at some point) went on and stayed on. Heh, I’m rural enough that no trucks came by in the night.

Log:
    8/20/2020, 7:07:20 AM +599ms
    +1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 86ms
    +89ms ║RunTime Analysis CS > 22ms > PS > 39ms > PE > 27ms > CE
    +91ms ║Runtime (41196 bytes) successfully initialized in 39ms (v0.3.110.20191009) (89ms)
    +92ms ║╔Execution stage started
    +106ms ║║Comparison (enum) open is (string) open = true (1ms)
    +107ms ║║Condition #3 evaluated true (11ms)
    +111ms ║║Comparison (enum) inactive changes_to (string) active = false (0ms)
    +112ms ║║Cancelling condition #4's schedules...
    +113ms ║║Condition #4 evaluated false (5ms)
    +114ms ║║Cancelling condition #2's schedules...
    +115ms ║║Condition group #2 evaluated false (state changed) (18ms)
    +124ms ║║Condition #6 evaluated false (8ms)
    +125ms ║║Condition group #5 evaluated false (state did not change) (9ms)
    +126ms ║║Cancelling condition #1's schedules...
    +127ms ║║Condition group #1 evaluated false (state changed) (31ms)
    +128ms ║╚Execution stage complete. (37ms)
    +129ms ╚Event processed successfully (129ms)
    8/20/2020, 7:07:05 AM +481ms
    +2ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 101ms
    +97ms ║RunTime Analysis CS > 25ms > PS > 42ms > PE > 29ms > CE
    +99ms ║Runtime (41203 bytes) successfully initialized in 42ms (v0.3.110.20191009) (96ms)
    +100ms ║╔Execution stage started
    +115ms ║║Comparison (enum) open is (string) open = true (2ms)
    +116ms ║║Condition #3 evaluated true (12ms)
    +120ms ║║Comparison (enum) active changes_to (string) active = true (1ms)
    +121ms ║║Cancelling condition #4's schedules...
    +122ms ║║Condition #4 evaluated true (5ms)
    +123ms ║║Cancelling condition #2's schedules...
    +124ms ║║Condition group #2 evaluated true (state changed) (20ms)
    +125ms ║║Cancelling condition #1's schedules...
    +125ms ║║Condition group #1 evaluated true (state changed) (22ms)
    +127ms ║║Cancelling statement #8's schedules...
    +278ms ║║Executed physical command [Small Speaker].playTrack([5]) (145ms)
    +279ms ║║Executed [Small Speaker].playTrack (147ms)
    +282ms ║║Cancelling statement #10's schedules...
    +302ms ║║Executed virtual command [Eryc Courmac's Pixel 4 XL, JAYSEN COURMAC's Pixel 3].sendPushNotification (14ms)
    +345ms ║║Comparison (time) 25625785 is_not_between (time) 1597917600000 .. (time) 1597966920000 = false (8ms)
    +346ms ║║Condition #13 evaluated false (42ms)
    +347ms ║║Condition group #12 evaluated false (state did not change) (43ms)
    +358ms ║║Comparison (time) 25625831 is_between (time) 28800000 .. (time) 79200000 = false (7ms)
    +360ms ║║Condition #19 evaluated false (10ms)
    +360ms ║║Condition group #18 evaluated false (state did not change) (11ms)
    +363ms ║╚Execution stage complete. (262ms)
    +364ms ╚Event processed successfully (363ms)
    8/20/2020, 7:02:24 AM +911ms
    +1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 88ms
    +86ms ║RunTime Analysis CS > 22ms > PS > 37ms > PE > 26ms > CE
    +88ms ║Runtime (41196 bytes) successfully initialized in 37ms (v0.3.110.20191009) (86ms)
    +89ms ║╔Execution stage started
    +103ms ║║Comparison (enum) open is (string) open = true (1ms)
    +104ms ║║Condition #3 evaluated true (11ms)
    +108ms ║║Comparison (enum) inactive changes_to (string) active = false (1ms)
    +109ms ║║Cancelling condition #4's schedules...
    +110ms ║║Condition #4 evaluated false (5ms)
    +111ms ║║Cancelling condition #2's schedules...
    +112ms ║║Condition group #2 evaluated false (state changed) (19ms)
    +121ms ║║Condition #6 evaluated false (8ms)
    +122ms ║║Condition group #5 evaluated false (state did not change) (9ms)
    +123ms ║║Cancelling condition #1's schedules...
    +124ms ║║Condition group #1 evaluated false (state changed) (31ms)
    +126ms ║╚Execution stage complete. (36ms)
    +127ms ╚Event processed successfully (126ms)
    8/20/2020, 7:02:09 AM +796ms
    +2ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 161ms
    +92ms ║RunTime Analysis CS > 24ms > PS > 43ms > PE > 25ms > CE
    +94ms ║Runtime (41199 bytes) successfully initialized in 43ms (v0.3.110.20191009) (91ms)
    +95ms ║╔Execution stage started
    +110ms ║║Comparison (enum) open is (string) open = true (1ms)
    +111ms ║║Condition #3 evaluated true (12ms)
    +114ms ║║Comparison (enum) active changes_to (string) active = true (0ms)
    +116ms ║║Cancelling condition #4's schedules...
    +116ms ║║Condition #4 evaluated true (4ms)
    +117ms ║║Cancelling condition #2's schedules...
    +118ms ║║Condition group #2 evaluated true (state changed) (19ms)
    +119ms ║║Cancelling condition #1's schedules...
    +120ms ║║Condition group #1 evaluated true (state changed) (22ms)
    +122ms ║║Cancelling statement #8's schedules...
    +253ms ║║Executed physical command [Small Speaker].playTrack([5]) (125ms)
    +253ms ║║Executed [Small Speaker].playTrack (127ms)
    +256ms ║║Cancelling statement #10's schedules...
    +283ms ║║Executed virtual command [Eryc Courmac's Pixel 4 XL, JAYSEN COURMAC's Pixel 3].sendPushNotification (22ms)
    +327ms ║║Comparison (time) 25330081 is_not_between (time) 1597917600000 .. (time) 1597966920000 = false (11ms)
    +328ms ║║Cancelling condition #13's schedules...
    +329ms ║║Condition #13 evaluated false (44ms)
    +330ms ║║Cancelling condition #12's schedules...
    +331ms ║║Condition group #12 evaluated false (state changed) (46ms)
    +341ms ║║Comparison (time) 25330129 is_between (time) 28800000 .. (time) 79200000 = false (6ms)
    +343ms ║║Cancelling condition #19's schedules...
    +344ms ║║Condition #19 evaluated false (11ms)
    +345ms ║║Cancelling condition #18's schedules...
    +345ms ║║Condition group #18 evaluated false (state changed) (12ms)
    +348ms ║╚Execution stage complete. (252ms)
    +349ms ╚Event processed successfully (348ms)
    8/20/2020, 5:46:27 AM +394ms
    +0ms ╔Received event [Home].time = 1597916788855 with a delay of -1462ms
    +105ms ║RunTime Analysis CS > 29ms > PS > 50ms > PE > 27ms > CE
    +108ms ║Runtime (41191 bytes) successfully initialized in 50ms (v0.3.110.20191009) (106ms)
    +108ms ║╔Execution stage started
    +109ms ║╚Execution stage complete. (1ms)
    +110ms ╚Event processed successfully (110ms)
    8/20/2020, 5:41:43 AM +709ms
    +1ms ╔Received event [Driveway Rear Motion].motion = inactive with a delay of 150ms
    +107ms ║RunTime Analysis CS > 33ms > PS > 50ms > PE > 24ms > CE
    +109ms ║Runtime (41194 bytes) successfully initialized in 50ms (v0.3.110.20191009) (107ms)
    +110ms ║╔Execution stage started
    +123ms ║║Comparison (enum) open is (string) open = true (1ms)
    +125ms ║║Condition #3 evaluated true (10ms)
    +128ms ║║Comparison (enum) inactive changes_to (string) active = false (1ms)
    +129ms ║║Cancelling condition #4's schedules...
    +130ms ║║Condition #4 evaluated false (5ms)
    +131ms ║║Cancelling condition #2's schedules...
    +132ms ║║Condition group #2 evaluated false (state changed) (19ms)
    +140ms ║║Condition #6 evaluated false (7ms)
    +141ms ║║Condition group #5 evaluated false (state did not change) (8ms)
    +142ms ║║Cancelling condition #1's schedules...
    +143ms ║║Condition group #1 evaluated false (state changed) (29ms)
    +145ms ║╚Execution stage complete. (35ms)
    +146ms ╚Event processed successfully (145ms)
    8/20/2020, 5:41:28 AM +473ms
    +1ms ╔Received event [Driveway Rear Motion].motion = active with a delay of 51ms
    +68ms ║RunTime Analysis CS > 19ms > PS > 30ms > PE > 18ms > CE
    +70ms ║Runtime (41198 bytes) successfully initialized in 30ms (v0.3.110.20191009) (67ms)
    +70ms ║╔Execution stage started
    +83ms ║║Comparison (enum) open is (string) open = true (1ms)
    +84ms ║║Condition #3 evaluated true (9ms)
    +88ms ║║Comparison (enum) active changes_to (string) active = true (1ms)
    +89ms ║║Cancelling condition #4's schedules...
    +90ms ║║Condition #4 evaluated true (5ms)
    +91ms ║║Cancelling condition #2's schedules...
    +92ms ║║Condition group #2 evaluated true (state changed) (18ms)
    +93ms ║║Cancelling condition #1's schedules...
    +94ms ║║Condition group #1 evaluated true (state changed) (19ms)
    +96ms ║║Cancelling statement #8's schedules...
    +253ms ║║Executed physical command [Small Speaker].playTrack([5]) (153ms)
    +254ms ║║Executed [Small Speaker].playTrack (155ms)
    +256ms ║║Cancelling statement #10's schedules...
    +274ms ║║Executed virtual command [Eryc Courmac's Pixel 4 XL, JAYSEN COURMAC's Pixel 3].sendPushNotification (14ms)
    +307ms ║║Comparison (time) 20488750 is_not_between (time) 1597917600000 .. (time) 1597966920000 = true (8ms)
    +308ms ║║Time restriction check passed
    +309ms ║║Condition #13 evaluated true (32ms)
    +310ms ║║Condition group #12 evaluated true (state did not change) (34ms)
    +312ms ║║Cancelling statement #14's schedules...
    +324ms ║║Executed physical command [Basement Door Light].on() (8ms)
    +325ms ║║Executed [Basement Door Light].on (10ms)
    +337ms ║║Executed physical command [Front Floodlight].on() (8ms)
    +337ms ║║Executed [Front Floodlight].on (10ms)
    +365ms ║║Executed physical command [Garage Floodlight].on() (25ms)
    +366ms ║║Executed [Garage Floodlight].on (27ms)
    +377ms ║║Executed physical command [Shed FloodLight].on() (7ms)
    +377ms ║║Executed [Shed FloodLight].on (9ms)
    +380ms ║║Executed virtual command [Basement Door Light, Front Floodlight, Garage Floodlight, Shed FloodLight].wait (0ms)
    +382ms ║║Requesting a wake up for Thu, Aug 20 2020 @ 5:46:28 AM EDT (in 300.0s)
    +386ms ║╚Execution stage complete. (316ms)
    +387ms ║Setting up scheduled job for Thu, Aug 20 2020 @ 5:46:28 AM EDT (in 299.995s)
    +393ms ╚Event processed successfully (393ms)
    8/19/2020, 8:46:08 PM +8ms
    +0ms ╔Received event [Home].test = 1597884368007 with a delay of 0ms
    +111ms ║RunTime Analysis CS > 22ms > PS > 40ms > PE > 49ms > CE
    +113ms ║Runtime (41187 bytes) successfully initialized in 40ms (v0.3.110.20191009) (112ms)
    +116ms ║╔Execution stage started
    +133ms ║║Comparison (enum) open is (string) open = true (1ms)
    +134ms ║║Condition #3 evaluated true (12ms)
    +144ms ║║Condition #4 evaluated false (8ms)
    +147ms ║║Condition group #2 evaluated false (state did not change) (24ms)
    +158ms ║║Condition #6 evaluated false (8ms)
    +159ms ║║Condition group #5 evaluated false (state did not change) (10ms)
    +160ms ║║Condition group #1 evaluated false (state did not change) (39ms)
    +162ms ║╚Execution stage complete. (47ms)
    +164ms ╚Event processed successfully (165ms)
    8/19/2020, 8:46:02 PM +664ms
    +1ms ╔Starting piston... (v0.3.110.20191009)
    +1016ms ║╔Subscribing to devices...
    +1039ms ║║Subscribing to Driveway Front Motion.contact...
    +1052ms ║║Subscribing to Driveway Rear Motion.motion...
    +1122ms ║║Subscribing to Small Speaker...
    +1123ms ║║Subscribing to Eryc Courmac's Pixel 4 XL...
    +1125ms ║║Subscribing to JAYSEN COURMAC's Pixel 3...
    +1126ms ║║Subscribing to Basement Door Light...
    +1127ms ║║Subscribing to Front Floodlight...
    +1128ms ║║Subscribing to Garage Floodlight...
    +1130ms ║║Subscribing to Shed FloodLight...
    +1131ms ║║Subscribing to Google Cast...
    +1132ms ║╚Finished subscribing (126ms)
    +1162ms ║Comparison (enum) open is (string) open = true (1ms)
    +1215ms ║Comparison (enum) inactive is (string) active = false (1ms)
    +1270ms ║Comparison (time) 74763888 is_not_between (time) 1597831140000 .. (time) 1597880640000 = true (17ms)
    +1272ms ║Time restriction check passed
    +1300ms ║Comparison (time) 74763948 is_between (time) 28800000 .. (time) 79200000 = true (13ms)
    +1302ms ║Time restriction check passed
    +1314ms ╚Piston successfully started (1313ms)

#10

Is the only problem that the light is not turning off after 5 mins?

Try setting the task cancellation policy to never on line 44.

If there is another activation while the piston is waiting, the waiting instance of the piston will be cancelled and the light will stay on.


#11

I need everyone to laugh at me. That’s right - laugh and point, like the Simpson’s “HAHA” kid.

Mistake #1: The door contact is wired to the motion receiver (an RE-4k Plus, if anyone cares) , which plugs into the wall. The sending unit at the driveway (a DCMT-4000) uses a 9-volt battery. The battery was dead, and looking at my door contact records, just died a couple days ago, which is when I started working on this. Sigh.

Mistake #2: The door contact ( DWZWAVE2.5-ECO) is wired to the “Normally opened” terminals on the motion receiver. I did the Piston as if it were normally closed. Two places. Sigh.

Ok, NOW, we’ll see if it works or not… Sigh.


#12

“The greatest teacher, failure is.”