1) Give a description of the problem
I’m not entirely sure what I’m currently missing on my “Change Mode to Away” script but at one point I had every presence sensor manually selected for each comparison that I was making. I decided to change that to a variable for the obvious reason of only having to change things in one place. For some reason now the last detected presence is evaluating false instead of true like it should.
2) What is the expected behavior?
Each presence sensor when changed to “Not Present” should set a timer for 30 seconds before beginning its evaluation process. I’m assuming that this timer should reset for each new presence sensor that changes to away (in this example 3). Then when the last presence sensor leaves the timer will start again at 30 seconds and then continue through the script when the timer expires. Well in this example the last 3 people left the house and the first 2 presence sensor evaluated true when triggered but the 3rd presence sensor evaluated false which then stopped the execution of the rest of the script so the mode never changed to away.
3) What is happening/not happening?
(PUT YOUR INFO HERE)
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
(
12/11/2018, 7:56:24 AM +337ms
+1ms ╔Received event [Presence Sensor 1].presence = not present with a delay of 67ms
+10180ms ║RunTime Analysis CS > 13ms > PS > 10108ms > PE > 58ms > CE
+10181ms ║Piston waited at a semaphore for 10073ms
+10185ms ║Runtime (47539 bytes) successfully initialized in 10108ms (v0.3.108.20180906) (10182ms)
+10186ms ║╔Execution stage started
+10241ms ║║Comparison (enum) not present changes_to (string) not present = false (1ms)
+10245ms ║║Cancelling condition #8’s schedules…
+10246ms ║║Condition #8 evaluated false (37ms)
+10248ms ║║Cancelling condition #7’s schedules…
+10249ms ║║Condition group #7 evaluated false (state changed) (40ms)
+10281ms ║║Comparison (enum) not present changes_to (string) present = false (0ms)
+10285ms ║║Condition #12 evaluated false (32ms)
+10286ms ║║Condition group #11 evaluated false (state did not change) (34ms)
+10290ms ║╚Execution stage complete. (104ms)
+10293ms ║Setting up scheduled job for Tue, Dec 11 2018 @ 9:30:00 PM CST (in 48805.371s), with 3 more jobs pending
+10306ms ╚Event processed successfully (10305ms)
12/11/2018, 7:56:24 AM +324ms
+1ms ╔Received event [Presence Sensor 2].presence = not present with a delay of 72ms
+106ms ║RunTime Analysis CS > 17ms > PS > 34ms > PE > 55ms > CE
+109ms ║Runtime (47448 bytes) successfully initialized in 34ms (v0.3.108.20180906) (107ms)
+110ms ║╔Execution stage started
+166ms ║║Comparison (enum) not present changes_to (string) not present = true (1ms)
+169ms ║║Condition #8 evaluated true (40ms)
+170ms ║║Condition group #7 evaluated true (state did not change) (42ms)
+174ms ║║Cancelling statement #9’s schedules…
+178ms ║║Executed virtual command wait (1ms)
+180ms ║║Requesting a wake up for Tue, Dec 11 2018 @ 7:56:54 AM CST (in 30.0s)
+189ms ║╚Execution stage complete. (79ms)
+193ms ║Setting up scheduled job for Tue, Dec 11 2018 @ 7:56:54 AM CST (in 29.989s), with 4 more jobs pending
+204ms ╚Event processed successfully (204ms)
12/11/2018, 7:56:19 AM +287ms
+2ms ╔Received event [Presence Sensor 3].presence = not present with a delay of 98ms
+136ms ║RunTime Analysis CS > 23ms > PS > 55ms > PE > 58ms > CE
+139ms ║Runtime (47450 bytes) successfully initialized in 55ms (v0.3.108.20180906) (136ms)
+140ms ║╔Execution stage started
+196ms ║║Comparison (enum) not present changes_to (string) not present = true (1ms)
+200ms ║║Condition #8 evaluated true (43ms)
+201ms ║║Condition group #7 evaluated true (state did not change) (44ms)
+204ms ║║Cancelling statement #9’s schedules…
+209ms ║║Executed virtual command wait (1ms)
+211ms ║║Requesting a wake up for Tue, Dec 11 2018 @ 7:56:49 AM CST (in 30.0s)
+219ms ║╚Execution stage complete. (79ms)
+223ms ║Setting up scheduled job for Tue, Dec 11 2018 @ 7:56:49 AM CST (in 29.99s), with 4 more jobs pending
+233ms ╚Event processed successfully (233ms)
)
REMOVE BELOW AFTER READING