Global variable issue


#1

1) Give a description of the problem
Variable isn’t turning true at 7:05am on January 1st.

2) What is the expected behavior?
Variable to change to true for both conditions.

3) What is happening/not happening?
The variable changed as expected for the week in December, but didn’t work for January 1st.

**4) Post a Green Snapshot of the piston

5) Attach any logs (From ST IDE and by turning logging level to Full)

1/1/2018, 7:04:59 AM +150ms
+0ms	╔Received event [4 Keglovits Lane].time = 1514808300000 with a delay of -851ms
+138ms	║RunTime Analysis CS > 42ms > PS > 60ms > PE > 36ms > CE
+140ms	║Runtime (41273 bytes) successfully initialized in 60ms (v0.2.101.20171227) (139ms)
+141ms	║╔Execution stage started
+222ms	║║Comparison (time) 25499299 is_between (time) 25500000 .. (time) 73800000 = true (50ms)
+240ms	║║Time restriction check passed
+242ms	║║Cancelling condition #16's schedules...
+243ms	║║Condition #16 evaluated true (93ms)
+253ms	║║Cancelling statement #16's schedules...
+264ms	║║Requesting time schedule wake up at Mon, Jan 1 2018 @ 8:30:00 PM EST
+267ms	║║Cancelling condition #11's schedules...
+267ms	║║Condition group #11 evaluated true (state changed) (119ms)
+270ms	║║Cancelling statement #14's schedules...
+275ms	║║Executed virtual command setVariable (2ms)
+279ms	║║Fast executing schedules, waiting for 571ms to sync up
+933ms	║║Comparison (time) 25500012 is_between (time) 25500000 .. (time) 73800000 = true (48ms)
+947ms	║║Time restriction check passed
+949ms	║║Condition #16 evaluated true (87ms)
+950ms	║║Cancelling statement #16's schedules...
+957ms	║║Requesting time schedule wake up at Mon, Jan 1 2018 @ 8:30:00 PM EST
+960ms	║║Condition group #11 evaluated true (state did not change) (99ms)
+963ms	║║Cancelling statement #14's schedules...
+968ms	║║Executed virtual command setVariable (1ms)
+973ms	║╚Execution stage complete. (831ms)
+975ms	║Setting up scheduled job for Mon, Jan 1 2018 @ 8:30:00 PM EST (in 48299.876s), with 1 more job pending
+992ms	╚Event processed successfully (992ms)`

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

It may be too late to help you on this specific one, but your log states that condition group 11 evaluated true and it executed the setVariable command. But there are references to other statements (14) not shown in the screenshot. This piston was been modified after it executed at 7:04:59, so what else was originally there?

For debugging purposes, I would add a PUSH or SMS notification and include the line number whenever you execute a command so that you can really see where you are executing. Once you’ve got the piston nailed down you can take those out.