1) Give a description of the problem
Lights should only turn on if motion in the living room is followed by motion on the stairs, but it appears a string-to-enum comparison is failing even though the values match.
2) What is the expected behavior?
Enum “active” = String “active”
3) What is happening/not happening?
+207ms ║║Comparison (enum) active changes_to (string) active = false (0ms)
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
12/20/2017, 10:27:47 PM +686ms
+1ms ╔Received event [Living Room Motion Sensor].motion = inactive with a delay of 193ms
+180ms ║RunTime Analysis CS > 17ms > PS > 53ms > PE > 111ms > CE
+183ms ║Runtime (43187 bytes) successfully initialized in 53ms (v0.2.100.20171211) (180ms)
+183ms ║╔Execution stage started
+195ms ║║Comparison (enum) off is (string) off = true (1ms)
+196ms ║║Condition #17 evaluated true (9ms)
+199ms ║║Comparison (enum) inactive changes_to (string) active = false (0ms)
+201ms ║║Condition #6 evaluated false (3ms)
+201ms ║║Condition group #3 evaluated false (state did not change) (14ms)
+205ms ║║Cancelling statement #14’s schedules…
+208ms ║║Executed virtual command setState (0ms)
+209ms ║╚Execution stage complete. (26ms)
+210ms ╚Event processed successfully (210ms)
12/20/2017, 10:27:40 PM +982ms
+0ms ╔Received event [Upstairs Motion Sensor].motion = inactive with a delay of 101ms
+144ms ║RunTime Analysis CS > 12ms > PS > 27ms > PE > 105ms > CE
+146ms ║Runtime (43184 bytes) successfully initialized in 27ms (v0.2.100.20171211) (145ms)
+147ms ║╔Execution stage started
+158ms ║║Comparison (enum) off is (string) off = true (1ms)
+159ms ║║Condition #17 evaluated true (8ms)
+166ms ║║Condition #6 evaluated false (6ms)
+167ms ║║Condition group #3 evaluated false (state did not change) (15ms)
+170ms ║║Cancelling statement #14’s schedules…
+173ms ║║Executed virtual command setState (1ms)
+175ms ║╚Execution stage complete. (28ms)
+176ms ╚Event processed successfully (176ms)
12/20/2017, 10:27:25 PM +956ms
+1ms ╔Received event [Upstairs Motion Sensor].motion = active with a delay of 98ms
+145ms ║RunTime Analysis CS > 14ms > PS > 26ms > PE > 105ms > CE
+148ms ║Runtime (43181 bytes) successfully initialized in 26ms (v0.2.100.20171211) (147ms)
+149ms ║╔Execution stage started
+159ms ║║Comparison (enum) off is (string) off = true (1ms)
+161ms ║║Condition #17 evaluated true (7ms)
+167ms ║║Condition #6 evaluated false (5ms)
+168ms ║║Condition group #3 evaluated false (state did not change) (16ms)
+172ms ║║Cancelling statement #14’s schedules…
+174ms ║║Executed virtual command setState (0ms)
+176ms ║╚Execution stage complete. (28ms)
+177ms ╚Event processed successfully (176ms)
12/20/2017, 10:27:17 PM +595ms
+1ms ╔Received event [Living Room Motion Sensor].motion = active with a delay of 104ms
+178ms ║RunTime Analysis CS > 14ms > PS > 55ms > PE > 109ms > CE
+180ms ║Runtime (43182 bytes) successfully initialized in 55ms (v0.2.100.20171211) (179ms)
+181ms ║╔Execution stage started
+193ms ║║Comparison (enum) off is (string) off = true (1ms)
+194ms ║║Cancelling condition #17’s schedules…
+195ms ║║Condition #17 evaluated true (10ms)
+207ms ║║Comparison (enum) active changes_to (string) active = false (0ms)
+208ms ║║Cancelling condition #6’s schedules…
+209ms ║║Condition #6 evaluated false (5ms)
+210ms ║║Condition group #3 evaluated false (state did not change) (25ms)
+213ms ║║Cancelling statement #14’s schedules…
+216ms ║║Executed virtual command setState (0ms)
+217ms ║╚Execution stage complete. (36ms)
+218ms ╚Event processed successfully (219ms)