1) Give a description of the problem
This piston supervises the garage door. If left open for a long duration it will close it. The duration for use will be longer (25 minutes), however, for testing it is currently at 2 minutes. The closing of the garage door is accomplished by a garage door remote that I have connected to a smart outlet. This all works well.
HOWEVER, what does not work is the 24-hour lockout. On the trace I see the 24-hour wait start counting but when the garage contact is closed it breaks the wait loop and is ready to start another supervisory period if the contact is opened.
I have tried everything: making the WHILE clause never break, the WITH clause never break, the IF clause automatic subscribe or always subscribe.
Why is the 24-hour wait being interrupted? Seems like it should not.
Thanks in advance
Cheers, Ray
2) What is the expected behaviour?
(PUT YOUR INFO HERE)
3) What is happening/not happening?
(PUT YOUR INFO HERE)
4) Post a Green Snapshot of the piston
(UPLOAD YOUR IMAGE HERE)
5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)
8/14/2019, 10:40:19 AM +430ms
+2ms âReceived event [Desk Chair].contact = closed with a delay of 95ms
+95ms âRunTime Analysis CS > 21ms > PS > 48ms > PE > 25ms > CE
+97ms âRuntime (44303 bytes) successfully initialized in 48ms (v0.3.10e.20190628) (95ms)
+98ms ââExecution stage started
+108ms ââComparison (enum) closed changes_to (string) open = false (1ms)
+110ms ââCancelling condition #3âs schedulesâŚ
+110ms ââCondition #3 evaluated false (7ms)
+111ms ââCancelling condition #2âs schedulesâŚ
+112ms ââCondition group #2 evaluated false (state changed) (9ms)
+113ms ââCancelling condition #1âs schedulesâŚ
+114ms ââCondition group #1 evaluated false (state changed) (12ms)
+117ms ââExecution stage complete. (19ms)
+119ms âSetting up scheduled job for Thu, Aug 15 2019 @ 10:39:48 AM EDT (in 86369.28s)
+131ms âEvent processed successfully (131ms)
8/14/2019, 10:40:08 AM +512ms
+1ms âReceived event [Desk Chair].contact = open with a delay of 108ms
+92ms âRunTime Analysis CS > 22ms > PS > 47ms > PE > 23ms > CE
+94ms âRuntime (44310 bytes) successfully initialized in 47ms (v0.3.10e.20190628) (92ms)
+95ms ââExecution stage started
+105ms ââComparison (enum) open changes_to (string) open = true (1ms)
+107ms ââCancelling condition #3âs schedulesâŚ
+108ms ââCondition #3 evaluated true (7ms)
+113ms ââComparison (boolean) false is_not (boolean) true = true (2ms)
+115ms ââCondition #4 evaluated true (6ms)
+116ms ââCancelling condition #2âs schedulesâŚ
+116ms ââCondition group #2 evaluated true (state changed) (16ms)
+117ms ââCancelling condition #1âs schedulesâŚ
+118ms ââCondition group #1 evaluated true (state changed) (19ms)
+122ms ââCancelling statement #6âs schedulesâŚ
+127ms ââExecuted virtual command setVariable (3ms)
+135ms ââComparison (enum) open is (string) open = true (1ms)
+137ms ââCondition #9 evaluated true (7ms)
+143ms ââComparison (boolean) false is_not (boolean) true = true (2ms)
+144ms ââCondition #10 evaluated true (6ms)
+145ms ââCondition group #8 evaluated true (state did not change) (15ms)
+148ms ââCancelling statement #11âs schedulesâŚ
+153ms ââCalculating (integer) 0 + (integer) 1 >> (integer) 1
+158ms ââExecuted virtual command setVariable (3ms)
+163ms ââExecuted virtual command wait (1ms)
+164ms ââRequesting a wake up for Wed, Aug 14 2019 @ 10:41:08 AM EDT (in 60.0s)
+170ms ââExecution stage complete. (75ms)
+172ms âSetting up scheduled job for Wed, Aug 14 2019 @ 10:41:08 AM EDT (in 59.994s), with 1 more job pending
+185ms âEvent processed successfully (185ms)
8/14/2019, 10:39:56 AM +3ms
+1ms âReceived event [Desk Chair].contact = closed with a delay of 96ms
+105ms âRunTime Analysis CS > 30ms > PS > 52ms > PE > 23ms > CE
+108ms âRuntime (44304 bytes) successfully initialized in 52ms (v0.3.10e.20190628) (106ms)
+109ms ââExecution stage started
+118ms ââComparison (enum) closed changes_to (string) open = false (1ms)
+120ms ââCancelling condition #3âs schedulesâŚ
+121ms ââCondition #3 evaluated false (6ms)
+122ms ââCancelling condition #2âs schedulesâŚ
+123ms ââCondition group #2 evaluated false (state changed) (9ms)
+124ms ââCancelling condition #1âs schedulesâŚ
+124ms ââCondition group #1 evaluated false (state changed) (11ms)
+127ms ââExecution stage complete. (18ms)
+128ms âSetting up scheduled job for Thu, Aug 15 2019 @ 10:39:48 AM EDT (in 86392.697s)
+140ms âEvent processed successfully (140ms)
8/14/2019, 10:39:47 AM +121ms
+0ms âReceived event [Home].time = 1565793588244 with a delay of -1124ms
+90ms âRunTime Analysis CS > 26ms > PS > 43ms > PE > 21ms > CE
+92ms âRuntime (44306 bytes) successfully initialized in 43ms (v0.3.10e.20190628) (91ms)
+93ms ââExecution stage started
+112ms ââComparison (integer) 2 is_equal_to (integer) 2 = true (1ms)
+114ms ââCancelling condition #15âs schedulesâŚ
+115ms ââCondition #15 evaluated true (6ms)
+116ms ââCancelling condition #14âs schedulesâŚ
+117ms ââCondition group #14 evaluated true (state changed) (8ms)
+120ms ââCancelling statement #17âs schedulesâŚ
+136ms ââExecuted physical command [Bedroom Light].on() (12ms)
+137ms ââExecuted [Bedroom Light].on (14ms)
+143ms ââExecuted virtual command [Bedroom Light].wait (1ms)
+145ms ââWaiting for 1500ms
+1658ms ââExecuted physical command [Bedroom Light].off() (10ms)
+1659ms ââExecuted [Bedroom Light].off (12ms)
+1663ms ââExecuted virtual command [Bedroom Light].setVariable (1ms)
+1700ms ââExecuted virtual command [Bedroom Light].sendSMSNotification (30ms)
+1705ms ââExecuted virtual command [Bedroom Light].wait (0ms)
+1706ms ââRequesting a wake up for Thu, Aug 15 2019 @ 10:39:48 AM EDT (in 86400.0s)
+1711ms ââExecution stage complete. (1618ms)
+1713ms âSetting up scheduled job for Thu, Aug 15 2019 @ 10:39:48 AM EDT (in 86399.995s)
+1721ms âEvent processed successfully (1720ms)
8/14/2019, 10:38:48 AM +84ms
+1ms âReceived event [Home].time = 1565793529914 with a delay of -1830ms
+87ms âRunTime Analysis CS > 19ms > PS > 45ms > PE > 23ms > CE
+90ms âRuntime (44304 bytes) successfully initialized in 45ms (v0.3.10e.20190628) (88ms)
+91ms ââExecution stage started
+113ms ââComparison (integer) 1 is_equal_to (integer) 2 = false (2ms)
+115ms ââCancelling condition #15âs schedulesâŚ
+116ms ââCondition #15 evaluated false (7ms)
+117ms ââCancelling condition #14âs schedulesâŚ
+118ms ââCondition group #14 evaluated false (state changed) (10ms)
+130ms ââComparison (enum) open is (string) open = true (2ms)
+132ms ââCondition #9 evaluated true (11ms)
+138ms ââComparison (boolean) false is_not (boolean) true = true (2ms)
+139ms ââCondition #10 evaluated true (6ms)
+140ms ââCondition group #8 evaluated true (state did not change) (21ms)
+143ms ââCancelling statement #11âs schedulesâŚ
+149ms ââCalculating (integer) 1 + (integer) 1 >> (integer) 2
+154ms ââExecuted virtual command setVariable (3ms)
+158ms ââExecuted virtual command wait (1ms)
+159ms ââRequesting a wake up for Wed, Aug 14 2019 @ 10:39:48 AM EDT (in 60.0s)
+164ms ââExecution stage complete. (73ms)
+166ms âSetting up scheduled job for Wed, Aug 14 2019 @ 10:39:48 AM EDT (in 59.995s)
+173ms âEvent processed successfully (173ms)
8/14/2019, 10:37:49 AM +759ms
+1ms âReceived event [Desk Chair].contact = open with a delay of 94ms
+80ms âRunTime Analysis CS > 18ms > PS > 44ms > PE > 19ms > CE
+83ms âRuntime (44311 bytes) successfully initialized in 44ms (v0.3.10e.20190628) (81ms)
+84ms ââExecution stage started
+94ms ââComparison (enum) open changes_to (string) open = true (0ms)
+95ms ââCancelling condition #3âs schedulesâŚ
+96ms ââCondition #3 evaluated true (7ms)
+102ms ââComparison (boolean) false is_not (boolean) true = true (1ms)
+103ms ââCondition #4 evaluated true (6ms)
+104ms ââCancelling condition #2âs schedulesâŚ
+105ms ââCondition group #2 evaluated true (state changed) (16ms)
+106ms ââCancelling condition #1âs schedulesâŚ
+107ms ââCondition group #1 evaluated true (state changed) (19ms)
+110ms ââCancelling statement #6âs schedulesâŚ
+116ms ââExecuted virtual command setVariable (3ms)
+124ms ââComparison (enum) open is (string) open = true (1ms)
+126ms ââCancelling condition #9âs schedulesâŚ
+127ms ââCondition #9 evaluated true (8ms)
+132ms ââComparison (boolean) false is_not (boolean) true = true (1ms)
+134ms ââCondition #10 evaluated true (6ms)
+135ms ââCancelling condition #8âs schedulesâŚ
+136ms ââCondition group #8 evaluated true (state changed) (18ms)
+138ms ââCancelling statement #11âs schedulesâŚ
+143ms ââCalculating (integer) 0 + (integer) 1 >> (integer) 1
+148ms ââExecuted virtual command setVariable (3ms)
+153ms ââExecuted virtual command wait (0ms)
+154ms ââRequesting a wake up for Wed, Aug 14 2019 @ 10:38:49 AM EDT (in 60.0s)
+159ms ââExecution stage complete. (75ms)
+161ms âSetting up scheduled job for Wed, Aug 14 2019 @ 10:38:49 AM EDT (in 59.995s)
+174ms âEvent processed successfully (175ms)
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.emphasized text