1) Give a description of the problem
Location Mode in Else If evaluating to false but if it is in its own if block it returns true. This is quite confusing, what did i do wrong?
2) What is the expected behavior?
Else if should evaluate true - even in the logs it looks like it should be true (at 135ms in log below:
|+135ms|║║Comparison (string) :5dd4122925624ac923a872714e8c881a: changes_to (string) :5dd4122925624ac923a872714e8c881a: = false (1ms)|
|---|---|
|+136ms|║║Condition #29 evaluated false (3ms)|
3) What is happening/not happening?
I’m sure i’m not understanding something correctly with how this works. Note that condition 29 is included to illustrate that it is returning false, i originally had actions in that block but created block 23 because they were not executing.
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, 6:40:48 PM +222ms
+1ms ╔Received event [Home].mode = Home with a delay of 74ms
+120ms ║RunTime Analysis CS > 40ms > PS > 50ms > PE > 30ms > CE
+123ms ║Runtime (43967 bytes) successfully initialized in 50ms (v0.2.100.20171211) (121ms)
+123ms ║╔Execution stage started
+129ms ║║Comparison (string) :5dd4122925624ac923a872714e8c881a: changes_to (string) :73dfbd386a584442e820c2e0e468e6cd: = false (0ms)
+130ms ║║Cancelling condition #11's schedules...
+131ms ║║Condition #11 evaluated false (4ms)
+132ms ║║Cancelling condition #1's schedules...
+132ms ║║Condition group #1 evaluated false (state changed) (5ms)
+135ms ║║Comparison (string) :5dd4122925624ac923a872714e8c881a: changes_to (string) :5dd4122925624ac923a872714e8c881a: = false (1ms)
+136ms ║║Condition #29 evaluated false (3ms)
+137ms ║║Condition group #28 evaluated false (state did not change) (4ms)
+141ms ║║Comparison (string) :5dd4122925624ac923a872714e8c881a: changes_to (string) :5dd4122925624ac923a872714e8c881a: = true (0ms)
+142ms ║║Cancelling condition #24's schedules...
+143ms ║║Condition #24 evaluated true (3ms)
+176ms ║║Calculating (decimal) 0.0 - (decimal) 30.0 >> (decimal) -30.0
+179ms ║║Comparison (datetime) 1513824048365 is_between (datetime) 1513813740000 .. (datetime) 1513785240000 = true (2ms)
+180ms ║║Time restriction check passed
+181ms ║║Condition #27 evaluated true (38ms)
+182ms ║║Cancelling condition #23's schedules...
+183ms ║║Condition group #23 evaluated true (state changed) (43ms)
+184ms ║║Cancelling statement #25's schedules...
+215ms ║║Executed physical command [Toy chests].on() (27ms)
+216ms ║║Executed [Toy chests].on (28ms)
+224ms ║║Calculating (decimal) 0.0 - (decimal) 15.0 >> (decimal) -15.0
+226ms ║║Comparison (datetime) 1513824048442 happens_daily_at (datetime) 1513814640000 = false (0ms)
+227ms ║║Condition #19 evaluated false (8ms)
+228ms ║║Cancelling statement #19's schedules...
+233ms ║║Calculating (decimal) 0.0 - (decimal) 15.0 >> (decimal) -15.0
+235ms ║║Condition group #16 evaluated false (state did not change) (16ms)
+237ms ║╚Execution stage complete. (114ms)
+238ms ╚Event processed successfully (238ms)```