1) Give a description of the problem
I’m trying to motion control my hall lights. I started out using an if with the motion detect, with a timer and the off state all in the same execution section, on the basis that repeated motion would re-trigger and break out of the wait, as it felt like an efficient way of doing it.
That didn’t work properly, so I copied the favoured method of triggering on active motion, and then separately watching for a period of inactivity & switching off.
I’ve still clearly not got to grips with the execution & cancellation behaviour of WebCore, as it behaves erratically - the lights always come on, but don’t always go off.
2) What is the expected behaviour?
lights go off after 10 mins
3) What is happening/not happening?
works mostly, but not always, it seems to be “white bulb 9” that fails to switch off.
**4) Post a Green Snapshot of the piston![image|45x37]
5) Attach logs after turning logging level to Full
+1ms ╔Received event [Dining Room Sensor].motion = active with a delay of 59ms
+105ms ║RunTime Analysis CS > 16ms > PS > 29ms > PE > 60ms > CE
+107ms ║Runtime (39837 bytes) successfully initialized in 29ms (v0.3.110.20191009) (105ms)
+108ms ║╔Execution stage started
+123ms ║║Comparison (enum) active is (string) active = true (1ms)
+125ms ║║Condition #2 evaluated true (12ms)
+134ms ║║Comparison (integer) 1 is_less_than_or_equal_to (integer) 5 = true (1ms)
+135ms ║║Condition #3 evaluated true (9ms)
+136ms ║║Condition group #1 evaluated true (state did not change) (24ms)
+144ms ║║Comparison (integer) 23 is_inside_of_range (integer) 16 .. (integer) 22 = false (1ms)
+145ms ║║Condition #5 evaluated false (6ms)
+147ms ║║Condition group #4 evaluated false (state did not change) (8ms)
+149ms ║║Cancelling statement #6's schedules...
+156ms ║║Skipped execution of physical command [Hall 9].on([]) because it would make no change to the device. (4ms)
+157ms ║║Executed [Hall 9].on (6ms)
+173ms ║║Comparison (enum) active stays (string) inactive = false (1ms)
+176ms ║║Comparison (enum) active stays (string) inactive = false (2ms)
+178ms ║║Comparison (enum) inactive stays (string) inactive = true (1ms)
+180ms ║║Cancelling any timed trigger schedules for condition 15
+181ms ║║Cancelling statement #15's schedules...
+182ms ║║Condition #15 evaluated false (21ms)
+183ms ║║Condition group #14 evaluated false (state did not change) (23ms)
+185ms ║╚Execution stage complete. (77ms)
+186ms ╚Event processed successfully (186ms)
30/11/2020, 23:10:48 +874ms
+1ms ╔Received event [LGF Sensor].motion = inactive with a delay of 55ms
+93ms ║RunTime Analysis CS > 16ms > PS > 27ms > PE > 49ms > CE
+95ms ║Runtime (39828 bytes) successfully initialized in 27ms (v0.3.110.20191009) (93ms)
+96ms ║╔Execution stage started
+113ms ║║Comparison (enum) active is (string) active = true (2ms)
+115ms ║║Condition #2 evaluated true (14ms)
+122ms ║║Comparison (integer) 1 is_less_than_or_equal_to (integer) 5 = true (1ms)
+124ms ║║Condition #3 evaluated true (8ms)
+125ms ║║Condition group #1 evaluated true (state did not change) (25ms)
+132ms ║║Comparison (integer) 23 is_inside_of_range (integer) 16 .. (integer) 22 = false (2ms)
+134ms ║║Condition #5 evaluated false (7ms)
+135ms ║║Condition group #4 evaluated false (state did not change) (8ms)
+138ms ║║Cancelling statement #6's schedules...
+145ms ║║Skipped execution of physical command [Hall 9].on([]) because it would make no change to the device. (4ms)
+146ms ║║Executed [Hall 9].on (6ms)
+160ms ║║Comparison (enum) active stays (string) inactive = false (2ms)
+163ms ║║Comparison (enum) inactive stays (string) inactive = true (1ms)
+165ms ║║Comparison (enum) inactive stays (string) inactive = true (1ms)
+167ms ║║Cancelling any timed trigger schedules for condition 15
+168ms ║║Cancelling statement #15's schedules...
+169ms ║║Condition #15 evaluated false (20ms)
+171ms ║║Condition group #14 evaluated false (state did not change) (21ms)
+172ms ║╚Execution stage complete. (76ms)
+174ms ╚Event processed successfully (173ms)
30/11/2020, 23:10:28 +737ms
+1ms ╔Received event [LGF Sensor].motion = active with a delay of 60ms
+90ms ║RunTime Analysis CS > 15ms > PS > 27ms > PE > 48ms > CE
+93ms ║Runtime (39828 bytes) successfully initialized in 27ms (v0.3.110.20191009) (90ms)
+93ms ║╔Execution stage started
+109ms ║║Comparison (enum) active is (string) active = true (1ms)
+111ms ║║Condition #2 evaluated true (13ms)
+118ms ║║Comparison (integer) 1 is_less_than_or_equal_to (integer) 5 = true (1ms)
+119ms ║║Condition #3 evaluated true (7ms)
+120ms ║║Condition group #1 evaluated true (state did not change) (23ms)
+127ms ║║Comparison (integer) 23 is_inside_of_range (integer) 16 .. (integer) 22 = false (2ms)
+129ms ║║Condition #5 evaluated false (7ms)
+130ms ║║Condition group #4 evaluated false (state did not change) (8ms)
+132ms ║║Cancelling statement #6's schedules...
+139ms ║║Skipped execution of physical command [Hall 9].on([]) because it would make no change to the device. (4ms)
+140ms ║║Executed [Hall 9].on (6ms)
+154ms ║║Comparison (enum) active stays (string) inactive = false (2ms)
+156ms ║║Comparison (enum) inactive stays (string) inactive = true (1ms)
+158ms ║║Comparison (enum) active stays (string) inactive = false (1ms)
+161ms ║║Cancelling any timed trigger schedules for condition 15
+162ms ║║Cancelling statement #15's schedules...
+162ms ║║Condition #15 evaluated false (19ms)
+163ms ║║Condition group #14 evaluated false (state did not change) (20ms)
+165ms ║╚Execution stage complete. (72ms)
+166ms ╚Event processed successfully (166ms)
30/11/2020, 23:09:26 +930ms
+1ms ╔Received event [LGF Sensor].motion = inactive with a delay of 74ms
+112ms ║RunTime Analysis CS > 20ms > PS > 39ms > PE > 54ms > CE
+115ms ║Runtime (39829 bytes) successfully initialized in 39ms (v0.3.110.20191009) (113ms)
+116ms ║╔Execution stage started
+133ms ║║Comparison (enum) active is (string) active = true (1ms)
+135ms ║║Condition #2 evaluated true (14ms)
+142ms ║║Comparison (integer) 1 is_less_than_or_equal_to (integer) 5 = true (1ms)
+144ms ║║Condition #3 evaluated true (7ms)
+145ms ║║Condition group #1 evaluated true (state did not change) (24ms)
+152ms ║║Comparison (integer) 23 is_inside_of_range (integer) 16 .. (integer) 22 = false (1ms)
+153ms ║║Condition #5 evaluated false (6ms)
+154ms ║║Condition group #4 evaluated false (state did not change) (7ms)
+157ms ║║Cancelling statement #6's schedules...
+166ms ║║Skipped execution of physical command [Hall 9].on([]) because it would make no change to the device. (5ms)
+167ms ║║Executed [Hall 9].on (7ms)
+182ms ║║Comparison (enum) active stays (string) inactive = false (1ms)
+185ms ║║Comparison (enum) inactive stays (string) inactive = true (1ms)
+187ms ║║Comparison (enum) inactive stays (string) inactive = true (2ms)
+190ms ║║Cancelling any timed trigger schedules for condition 15
+191ms ║║Cancelling statement #15's schedules...
+192ms ║║Condition #15 evaluated false (22ms)
+193ms ║║Condition group #14 evaluated false (state did not change) (23ms)
+195ms ║╚Execution stage complete. (79ms)
+197ms ╚Event processed successfully (196ms)