Greetings guys, I set up a piston to turn on lights based on a global variable, but when it starts to evaluate the time it returns false even time is correct. Did anyone has similar problems? Thanks in advance for help.
1) Give a description of the problem
Time happens daily is not firing in the weekend condition, especially, according to the stack trace/log, the time comparison is evaluated to false rather than true.
Infact I have 2 very similar IF conditions, one is for weekday timed activity and one is for weekend, they are subscribing to the same time variable, @wakeUpTime. But when the same condition is evaluated at the weekend condition, it’s evaluated to false (+264ms) while weekday time is evaluated to true (+233ms). Logs attached below.
2) What is the expected behavior?
Time happen daily should evaluated to true.
3) What is happening/not happening?
Time evaluation is not evaluated correctly.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
3/25/2018, 7:04:59 AM +684ms
+0ms ╔Received event [Home].time = 1521975900000 with a delay of -316ms
+151ms ║RunTime Analysis CS > 18ms > PS > 43ms > PE > 90ms > CE
+154ms ║Runtime (50299 bytes) successfully initialized in 43ms (v0.3.104.20180323) (153ms)
+155ms ║╔Execution stage started
+213ms ║║Comparison (time) 25499846 happens_daily_at (datetime) 1522021020000 = false (5ms)
+214ms ║║Condition #12 evaluated false (52ms)
+221ms ║║Cancelling statement #12's schedules...
+225ms ║║Requesting time schedule wake up at Sun, Mar 25 2018 @ 7:17:00 PM EDT
+228ms ║║Condition group #1 evaluated false (state did not change) (65ms)
+233ms ║║Comparison (time) 25499913 happens_daily_at (time) 25500000 = true (0ms)
+240ms ║║Time restriction check failed
+241ms ║║Condition #10 evaluated false (12ms)
+242ms ║║Cancelling statement #10's schedules...
+247ms ║║Requesting time schedule wake up at Mon, Mar 26 2018 @ 7:05:00 AM EDT
+249ms ║║Condition group #7 evaluated false (state did not change) (20ms)
+252ms ║║Comparison (time) 25499935 happens_daily_at (time) 82800000 = false (0ms)
+254ms ║║Condition #28 evaluated false (4ms)
+255ms ║║Cancelling statement #28's schedules...
+257ms ║║Requesting time schedule wake up at Sun, Mar 25 2018 @ 11:00:00 PM EDT
+260ms ║║Condition group #25 evaluated false (state did not change) (10ms)
+264ms ║║Comparison (time) 25499945 happens_daily_at (time) 25500000 = false (0ms)
+266ms ║║Condition #41 evaluated false (4ms)
+267ms ║║Cancelling statement #41's schedules...
+271ms ║║Requesting time schedule wake up at Mon, Mar 26 2018 @ 7:05:00 AM EDT
+274ms ║║Condition group #40 evaluated false (state did not change) (14ms)
+278ms ║╚Execution stage complete. (123ms)
+280ms ║Setting up scheduled job for Sun, Mar 25 2018 @ 7:17:00 PM EDT (in 43920.036s), with 3 more jobs pending
+288ms ╚Event processed successfully (288ms)
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.