1) Give a description of the problem
The real problem is that even after reading the ‘Conditions & Triggers’ thread, I still don’t understand how they work. Why don’t pistons continuously look at conditions and act upon them once they become true?
2) What is the expected behavior?
The lights should have come on once I was home, even if I came home after the beginning of the condition range.
3) What is happening/not happening?
According to the log, it executed at sunset-15, saw that no one was home so it did nothing. The problem is that it scheduled the next execution for 11PM, so while I came home shortly after this executed, the lights did not come on. Why doesn’t the condition still apply? Do I have to use the condition in a While-Do loop with the presence condition nested inside? I don’t want to change the presence condition to a trigger (presence change) because if I get home just before the time range I still want them to come on.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
12/8/2017, 5:07:59 PM +73ms
+2ms
╔Received event [Home].time = 1512774480000 with a delay of -928ms
+95ms
║RunTime Analysis CS > 29ms > PS > 46ms > PE > 21ms > CE
+109ms
║Runtime (37797 bytes) successfully initialized in 46ms (v0.2.0ff.20171129) (106ms)
+110ms
║╔Execution stage started
+165ms
║║Comparison (time) 61679191 is_between (time) 1512775380000 … (time) 82800000 = true (23ms)
+166ms
║║Time restriction check passed
+168ms
║║Cancelling condition #10’s schedules…
+169ms
║║Condition #10 evaluated true (51ms)
+186ms
║║Cancelling statement #10’s schedules…
+199ms
║║Requesting time schedule wake up at Fri, Dec 8 2017 @ 11:00:00 PM CST
+215ms
║║Comparison (enum) not present is (string) present = false (3ms)
+217ms
║║Comparison (enum) not present is (string) present = false (1ms)
+219ms
║║Cancelling condition #11’s schedules…
+220ms
║║Condition #11 evaluated false (18ms)
+221ms
║║Condition group #1 evaluated false (state did not change) (104ms)
+223ms
║║Cancelling statement #2’s schedules…
+231ms
║║Skipped execution of physical command [Kitchen].off([]) because it would make no change to the device. (4ms)
+232ms
║║Executed [Kitchen].off (4ms)
+237ms
║║Skipped execution of physical command [Upstairs].off([]) because it would make no change to the device. (2ms)
+238ms
║║Executed [Upstairs].off (4ms)
+241ms
║╚Execution stage complete. (132ms)
+243ms
║Setting up scheduled job for Fri, Dec 8 2017 @ 11:00:00 PM CST (in 21120.685s)
+260ms
╚Event processed successfully (261ms)`