1) Give a description of the problem
I have provided the event log with my mark ups in yellow and text in red. The event log was cleared before a garage door contact event occurred. It seems to execute property until it reached the While block.
2) What is the expected behavior?
The code is intended to detect the garage door open, and, if so, display that event with a light attached to an outlet.
If the outlet was found to be off before the garage door was opened, it will be turned on.
If the outlet was on then it will do a 1 second flash off every 30 sec while the garage door is opened.
When the garage door closes the outlet will be returned to its original state.
At least that’s the plan .
3) What is happening/not happening?
It seems like the While block does not execute correctly
**4) Post a Green Snapshot of the piston![image|45x37]
5) Attach any logs (From ST IDE and by turning logging level to Full)
9/23/2017, 3:08:22 PM +434ms
+1ms ╔Received event [Home].time = 1506193702640 with a delay of -207ms
+185ms ║RunTime Analysis CS > 42ms > PS > 43ms > PE > 100ms > CE
+197ms ║Runtime (42097 bytes) successfully initialized in 43ms (v0.2.0e7.20170906) (194ms)
+198ms ║╔Execution stage started
+280ms ║║Skipped execution of physical command [Link To Garage Door].on([]) because it would make no change to the device. (4ms)
+281ms ║║Executed [Link To Garage Door].on (6ms)
+293ms ║║Executed virtual command [Link To Garage Door].wait (7ms)
+295ms ║║Requesting a wake up for Sat, Sep 23 2017 @ 3:08:52 PM EDT (in 30.0s)
+309ms ║╚Execution stage complete. (112ms)
+312ms ║Setting up scheduled job for Sat, Sep 23 2017 @ 3:08:52 PM EDT (in 29.988s)
+328ms ╚Event processed successfully (328ms)
9/23/2017, 3:08:10 PM +520ms
+2ms ╔Received event [Link To Garage Door].switch = on with a delay of 716ms
+10906ms ║RunTime Analysis CS > 24ms > PS > 10748ms > PE > 134ms > CE
+10917ms ║Piston waited at a semaphore for 10691ms
+10920ms ║Runtime (42182 bytes) successfully initialized in 10748ms (v0.2.0e7.20170906) (10917ms)
+10922ms ║╔Execution stage started
+10948ms ║║Comparison (enum) open is (string) open = true (3ms)
+10951ms ║║Condition #14 evaluated true (16ms) (Contact opened)
+10964ms ║║Comparison (boolean) false is (boolean) false = true (3ms)
+10966ms ║║Condition #15 evaluated true (14ms) Event Not in progress)
+10967ms ║║Condition group #5 evaluated true (state did not change) (34ms)
+10982ms ║║Comparison (enum) on is (string) on = true (4ms) Start a garage door even
+10984ms ║║Condition #13 evaluated true (12ms) The outlet was found to be ON
+10986ms ║║Condition group #6 evaluated true (state did not change) (15ms)
+10990ms ║║Cancelling statement #10’s schedules…
+11000ms ║║Executed virtual command setVariable (4ms)
+11008ms ║║Executed virtual command setVariable (1ms)
+11028ms ║║Comparison (enum) open is (string) closed = false (3ms)
+11031ms ║║Condition #19 evaluated false (15ms)
+11032ms ║║Condition group #16 evaluated false (state did not change) (17ms)
+11046ms ║║Comparison (boolean) true is (boolean) true = true (3ms)
+11048ms ║║Condition #33 evaluated true (10ms)
+11050ms ║║Condition group #32 evaluated true (state did not change) (12ms)
+11062ms ║║Comparison (boolean) true is (boolean) true = true (2ms)
+11064ms ║║Condition #31 evaluated true (10ms)
+11066ms ║║Condition group #21 evaluated true (state did not change) (12ms)
+11078ms ║║Comparison (boolean) true is (boolean) true = true (3ms)
+11080ms ║║Condition #30 evaluated true (10ms)
+11082ms ║║Condition group #22 evaluated true (state did not change) (13ms)
+11086ms ║║Cancelling statement #25’s schedules… ??? What happened here?
+11109ms ║║Executed physical command [Link To Garage Door].off() (18ms)
+11111ms ║║Executed [Link To Garage Door].off (20ms)
+11117ms ║║Executed virtual command [Link To Garage Door].wait (1ms)
+11119ms ║║Requesting a wake up for Sat, Sep 23 2017 @ 3:08:22 PM EDT (in 1.0s)
+11131ms ║╚Execution stage complete. (209ms)
+11133ms ║Setting up scheduled job for Sat, Sep 23 2017 @ 3:08:22 PM EDT (in 1s)
+11154ms ╚Event processed successfully (11153ms)
9/23/2017, 3:08:10 PM +488ms
+2ms ╔Received event [Link To Garage Door].switch = on with a delay of 725ms
+10349ms ║RunTime Analysis CS > 28ms > PS > 10224ms > PE > 97ms > CE
+10361ms ║Piston waited at a semaphore for 10169ms
+10364ms ║Runtime (42182 bytes) successfully initialized in 10224ms (v0.2.0e7.20170906) (10361ms)
+10366ms ║╔Execution stage started
+10392ms ║║Comparison (enum) open is (string) open = true (3ms)
+10394ms ║║Condition #14 evaluated true (16ms)
+10407ms ║║Comparison (boolean) false is (boolean) false = true (3ms)
+10410ms ║║Condition #15 evaluated true (14ms)
+10411ms ║║Condition group #5 evaluated true (state did not change) (34ms)
+10426ms ║║Comparison (enum) on is (string) on = true (4ms)
+10429ms ║║Condition #13 evaluated true (12ms)
+10430ms ║║Condition group #6 evaluated true (state did not change) (15ms)
+10435ms ║║Cancelling statement #10’s schedules…
+10445ms ║║Executed virtual command setVariable (5ms)
+10452ms ║║Executed virtual command setVariable (2ms)
+10471ms ║║Comparison (enum) open is (string) closed = false (3ms)
+10473ms ║║Condition #19 evaluated false (13ms)
+10475ms ║║Condition group #16 evaluated false (state did not change) (16ms)
+10488ms ║║Comparison (boolean) true is (boolean) true = true (3ms)
+10491ms ║║Condition #33 evaluated true (10ms)
+10492ms ║║Condition group #32 evaluated true (state did not change) (12ms)
+10505ms ║║Comparison (boolean) true is (boolean) true = true (3ms)
+10507ms ║║Condition #31 evaluated true (10ms)
+10509ms ║║Condition group #21 evaluated true (state did not change) (12ms)
+10521ms ║║Comparison (boolean) true is (boolean) true = true (3ms)
+10523ms ║║Condition #30 evaluated true (10ms)
+10525ms ║║Condition group #22 evaluated true (state did not change) (12ms)
+10529ms ║║Cancelling statement #25’s schedules…
+10552ms ║║Executed physical command [Link To Garage Door].off() (18ms)
+10553ms ║║Executed [Link To Garage Door].off (20ms)
+10559ms ║║Executed virtual command [Link To Garage Door].wait (1ms)
+10561ms ║║Requesting a wake up for Sat, Sep 23 2017 @ 3:08:22 PM EDT (in 1.0s)
+10572ms ║╚Execution stage complete. (207ms)
+10575ms ║Setting up scheduled job for Sat, Sep 23 2017 @ 3:08:22 PM EDT (in 1s)
+10638ms ╚Event processed successfully (10637ms)
9/23/2017, 3:07:59 PM +920ms
+1ms ╔Received event [Link To Garage Door].switch = on with a delay of 887ms
+9979ms ║RunTime Analysis CS > 27ms > PS > 9879ms > PE > 74ms > CE
+9992ms ║Piston waited at a semaphore for 9825ms
+9995ms ║Runtime (42176 bytes) successfully initialized in 9879ms (v0.2.0e7.20170906) (9992ms)
+9996ms ║╔Execution stage started
+10021ms ║║Comparison (enum) open is (string) open = true (3ms)
+10023ms ║║Condition #14 evaluated true (15ms)
+10036ms ║║Comparison (boolean) false is (boolean) false = true (2ms)
+10038ms ║║Condition #15 evaluated true (14ms)
+10040ms ║║Condition group #5 evaluated true (state did not change) (32ms)
+10054ms ║║Comparison (enum) on is (string) on = true (3ms)
+10057ms ║║Condition #13 evaluated true (12ms)
+10058ms ║║Condition group #6 evaluated true (state did not change) (15ms)
+10062ms ║║Cancelling statement #10’s schedules…
+10072ms ║║Executed virtual command setVariable (4ms)
+10079ms ║║Executed virtual command setVariable (2ms)
+10098ms ║║Comparison (enum) open is (string) closed = false (3ms)
+10100ms ║║Condition #19 evaluated false (13ms)
+10102ms ║║Condition group #16 evaluated false (state did not change) (15ms)
+10114ms ║║Comparison (boolean) true is (boolean) true = true (3ms)
+10117ms ║║Condition #33 evaluated true (9ms)
+10118ms ║║Condition group #32 evaluated true (state did not change) (12ms)
+10130ms ║║Comparison (boolean) true is (boolean) true = true (3ms)
+10133ms ║║Condition #31 evaluated true (10ms)
+10134ms ║║Condition group #21 evaluated true (state did not change) (12ms)
+10146ms ║║Comparison (boolean) true is (boolean) true = true (3ms)
+10148ms ║║Condition #30 evaluated true (10ms)
+10149ms ║║Condition group #22 evaluated true (state did not change) (12ms)
+10154ms ║║Cancelling statement #25’s schedules…
+10216ms ║║Executed physical command [Link To Garage Door].off() (56ms)
+10217ms ║║Executed [Link To Garage Door].off (58ms)
+10223ms ║║Executed virtual command [Link To Garage Door].wait (0ms)
+10224ms ║║Requesting a wake up for Sat, Sep 23 2017 @ 3:08:11 PM EDT (in 1.0s)
+10235ms ║╚Execution stage complete. (240ms)
+10238ms ║Setting up scheduled job for Sat, Sep 23 2017 @ 3:08:11 PM EDT (in 1s)
+10397ms ╚Event processed successfully (10398ms)
9/23/2017, 3:07:49 PM +834ms
+2ms ╔Received event [Link To Garage Door].switch = on with a delay of 764ms
+9341ms ║RunTime Analysis CS > 41ms > PS > 9238ms > PE > 62ms > CE
+9360ms ║Piston waited at a semaphore for 9196ms
+9363ms ║Runtime (42182 bytes) successfully initialized in 9238ms (v0.2.0e7.20170906) (9361ms)
+9365ms ║╔Execution stage started
+9390ms ║║Comparison (enum) open is (string) open = true (3ms)
+9392ms ║║Cancelling condition #14’s schedules…
+9393ms ║║Condition #14 evaluated true (17ms)
+9406ms ║║Comparison (boolean) false is (boolean) false = true (3ms)
+9409ms ║║Condition #15 evaluated true (14ms)
+9410ms ║║Cancelling condition #5’s schedules…
+9411ms ║║Condition group #5 evaluated true (state changed) (36ms)
+9425ms ║║Comparison (enum) on is (string) on = true (3ms)
+9428ms ║║Condition #13 evaluated true (11ms)
+9429ms ║║Condition group #6 evaluated true (state did not change) (14ms)
+9434ms ║║Cancelling statement #10’s schedules…
+9443ms ║║Executed virtual command setVariable (4ms)
+9451ms ║║Executed virtual command setVariable (1ms)
+9470ms ║║Comparison (enum) open is (string) closed = false (3ms)
+9472ms ║║Cancelling condition #19’s schedules…
+9474ms ║║Condition #19 evaluated false (15ms)
+9475ms ║║Condition group #16 evaluated false (state did not change) (18ms)
+9489ms ║║Comparison (boolean) true is (boolean) true = true (3ms)
+9491ms ║║Cancelling condition #33’s schedules…
+9492ms ║║Condition #33 evaluated true (11ms)
+9494ms ║║Cancelling condition #32’s schedules…
+9495ms ║║Condition group #32 evaluated true (state changed) (15ms)
+9507ms ║║Comparison (boolean) true is (boolean) true = true (3ms)
+9510ms ║║Condition #31 evaluated true (9ms)
+9511ms ║║Condition group #21 evaluated true (state did not change) (12ms)
+9524ms ║║Comparison (boolean) true is (boolean) true = true (3ms)
+9526ms ║║Condition #30 evaluated true (10ms)
+9528ms ║║Condition group #22 evaluated true (state did not change) (13ms)
+9532ms ║║Cancelling statement #25’s schedules…
+9558ms ║║Executed physical command [Link To Garage Door].off() (20ms)
+9559ms ║║Executed [Link To Garage Door].off (22ms)
+9565ms ║║Executed virtual command [Link To Garage Door].wait (1ms)
+9567ms ║║Requesting a wake up for Sat, Sep 23 2017 @ 3:08:00 PM EDT (in 1.0s)
+9578ms ║╚Execution stage complete. (214ms)
+9581ms ║Setting up scheduled job for Sat, Sep 23 2017 @ 3:08:00 PM EDT (in 1s)
+9601ms ╚Event processed successfully (9601ms)
Clear
Full
I have this log in a marked up PDF but could not see a place to attach it.
Your assistance would be welcomed.