1) Give a description of the problem
Piston is delaying more than I want it to - I want it to turn off light/fan if two motion sensors have no movement for 20 minutes (if either register movement, it will reset), but instead, it waits the 20 minutes, and then schedules another task for 20 minutes later to evaluate the state again, and then sets an additional task for 20 minutes beyond that to turn off the devices. Also, it will not fire the TurnOffJacksFan maker event when I have it configured to only do that in between the certain times.
2) What is the expected behavior?
Turn off light if no movement on both sensors for 20 minutes and LUX >30 (indicating the light is on), turn off the fan if no movement on both sensors regardless of LUX.
3) What is happening/not happening?
See above, but it is basically taking 3x longer to run than I want it to. Also, it never executes the TurnOffJacksFan Async If statement (will do it if I take out the time constraints though)
**4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
NOTE: I changed the time from 20 mins to 2 mins so I didn’t have to wait an hour, but the results are the same…
11/30/2018, 6:52:27 PM +151ms +0ms ╔Received event [Home].time = 1543629148254 with a delay of -1104ms +86ms ║RunTime Analysis CS > 15ms > PS > 44ms > PE > 27ms > CE +88ms ║Runtime (39322 bytes) successfully initialized in 44ms (v0.3.108.20180906) (87ms) +91ms ║╔Execution stage started +103ms ║║Cancelling condition #11's schedules... +105ms ║║Condition #11 evaluated true (2ms) +107ms ║║Cancelling condition #1's schedules... +109ms ║║Condition group #1 evaluated true (state changed) (9ms) +125ms ║║Comparison (integer) 33 is_greater_than (integer) 30 = true (3ms) +128ms ║║Condition #4 evaluated true (15ms) +130ms ║║Condition group #3 evaluated true (state did not change) (18ms) +135ms ║║Cancelling statement #5's schedules... +254ms ║║Executed virtual command iftttMaker (113ms) +261ms ║╚Execution stage complete. (170ms) +263ms ╚Event processed successfully (263ms) 11/30/2018, 6:50:28 PM +123ms +1ms ╔Received event [Home].time = 1543629029034 with a delay of -911ms +86ms ║RunTime Analysis CS > 15ms > PS > 44ms > PE > 26ms > CE +90ms ║Runtime (39321 bytes) successfully initialized in 44ms (v0.3.108.20180906) (88ms) +92ms ║╔Execution stage started +105ms ║║Cancelling condition #2's schedules... +107ms ║║Condition #2 evaluated true (3ms) +123ms ║║Comparison (enum) inactive stays (string) inactive = true (4ms) +130ms ║║Adding a timed trigger schedule for condition 11 +135ms ║║Cancelling condition #11's schedules... +136ms ║║Condition #11 evaluated false (28ms) +138ms ║║Condition group #1 evaluated false (state did not change) (35ms) +143ms ║╚Execution stage complete. (52ms) +146ms ║Setting up scheduled job for Fri, Nov 30 2018 @ 6:52:28 PM MST (in 119.986s) +158ms ╚Event processed successfully (157ms) 11/30/2018, 6:48:28 PM +816ms +1ms ╔Received event [Aeotec MultiSensor 6].motion = inactive with a delay of 149ms +199ms ║RunTime Analysis CS > 19ms > PS > 159ms > PE > 20ms > CE +201ms ║Runtime (39334 bytes) successfully initialized in 159ms (v0.3.108.20180906) (199ms) +202ms ║╔Execution stage started +215ms ║║Comparison (enum) inactive stays (string) inactive = true (2ms) +218ms ║║Adding a timed trigger schedule for condition 2 +220ms ║║Condition #2 evaluated false (12ms) +222ms ║║Condition group #1 evaluated false (state did not change) (13ms) +224ms ║╚Execution stage complete. (22ms) +226ms ║Setting up scheduled job for Fri, Nov 30 2018 @ 6:50:29 PM MST (in 119.993s) +244ms ╚Event processed successfully (244ms) 11/30/2018, 6:48:19 PM +876ms +2ms ╔Received event [Gameroom Motion Sensor].motion = inactive with a delay of 691ms +98ms ║RunTime Analysis CS > 20ms > PS > 55ms > PE > 22ms > CE +100ms ║Runtime (39333 bytes) successfully initialized in 55ms (v0.3.108.20180906) (97ms) +102ms ║╔Execution stage started +122ms ║║Comparison (enum) active stays (string) inactive = false (3ms) +127ms ║║Cancelling any timed trigger schedules for condition 2 +128ms ║║Cancelling statement #2's schedules... +130ms ║║Condition #2 evaluated false (21ms) +132ms ║║Condition group #1 evaluated false (state did not change) (24ms) +136ms ║╚Execution stage complete. (34ms) +138ms ╚Event processed successfully (137ms)