Piston scheduled for 3 hours executing every 2 hrs


#1

1) Give a description of the problem
Designeda piston to run every 3 hrs but it fires every 2.

2) What is the expected behavior?
Piston to turn on outlet every 3 hrs between 8am and 8pm

3) What is happening/not happening?
Firing every 2 hrs

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
12/20/2017, 6:00:58 PM +123ms +0ms ╔Received event [Home].time = 1513810859877 with a delay of -1755ms +177ms ║RunTime Analysis CS > 21ms > PS > 77ms > PE > 80ms > CE +180ms ║Runtime (37520 bytes) successfully initialized in 77ms (v0.2.100.20171211) (179ms) +181ms ║╔Execution stage started +222ms ║║Executed physical command [Hallway.Outlet].off() (24ms) +223ms ║║Executed [Hallway.Outlet].off (26ms) +227ms ║╚Execution stage complete. (46ms) +229ms ║Setting up scheduled job for Wed, Dec 20 2017 @ 8:00:00 PM EST (in 7141.649s) +238ms ╚Event processed successfully (237ms) 12/20/2017, 5:59:59 PM +478ms +1ms ╔Received event [Home].time = 1513810800000 with a delay of -523ms +311ms ║RunTime Analysis CS > 27ms > PS > 141ms > PE > 143ms > CE +314ms ║Runtime (37522 bytes) successfully initialized in 141ms (v0.2.100.20171211) (311ms) +316ms ║╔Execution stage started +341ms ║║Comparison (integer) 17 is_inside_of_range (integer) 8 .. (integer) 20 = true (3ms) +344ms ║║Condition #7 evaluated true (10ms) +345ms ║║Condition group #2 evaluated true (state did not change) (13ms) +348ms ║║Cancelling statement #3's schedules... +389ms ║║Executed physical command [Hallway.Outlet].on() (35ms) +391ms ║║Executed [Hallway.Outlet].on (37ms) +396ms ║║Executed virtual command [Hallway.Outlet].wait (0ms) +397ms ║║Requesting a wake up for Wed, Dec 20 2017 @ 6:00:59 PM EST (in 60.0s) +420ms ║╚Execution stage complete. (104ms) +423ms ║Setting up scheduled job for Wed, Dec 20 2017 @ 6:00:59 PM EST (in 59.977s), with 1 more job pending +436ms ╚Event processed successfully (436ms) 12/20/2017, 4:00:58 PM +106ms +0ms ╔Received event [Home].time = 1513803659663 with a delay of -1558ms +167ms ║RunTime Analysis CS > 18ms > PS > 80ms > PE > 70ms > CE +170ms ║Runtime (37520 bytes) successfully initialized in 80ms (v0.2.100.20171211) (169ms) +171ms ║╔Execution stage started +208ms ║║Executed physical command [Hallway.Outlet].off() (22ms) +209ms ║║Executed [Hallway.Outlet].off (23ms) +216ms ║╚Execution stage complete. (45ms) +218ms ║Setting up scheduled job for Wed, Dec 20 2017 @ 6:00:00 PM EST (in 7141.677s) +227ms ╚Event processed successfully (227ms) 12/20/2017, 3:59:59 PM +121ms +1ms ╔Received event [Home].time = 1513803600000 with a delay of -879ms +443ms ║RunTime Analysis CS > 34ms > PS > 106ms > PE > 302ms > CE +447ms ║Runtime (37522 bytes) successfully initialized in 106ms (v0.2.100.20171211) (443ms) +449ms ║╔Execution stage started +495ms ║║Comparison (integer) 15 is_inside_of_range (integer) 8 .. (integer) 20 = true (3ms) +498ms ║║Condition #7 evaluated true (11ms) +500ms ║║Condition group #2 evaluated true (state did not change) (14ms) +506ms ║║Cancelling statement #3's schedules... +530ms ║║Executed physical command [Hallway.Outlet].on() (20ms) +533ms ║║Executed [Hallway.Outlet].on (23ms) +539ms ║║Executed virtual command [Hallway.Outlet].wait (0ms) +541ms ║║Requesting a wake up for Wed, Dec 20 2017 @ 4:00:59 PM EST (in 60.0s) +551ms ║╚Execution stage complete. (102ms) +554ms ║Setting up scheduled job for Wed, Dec 20 2017 @ 4:00:59 PM EST (in 59.989s), with 1 more job pending +564ms ╚Event processed successfully (563ms) 12/20/2017, 2:01:00 PM +187ms +0ms ╔Received event [Home].time = 1513796461402 with a delay of -1216ms +362ms ║RunTime Analysis CS > 48ms > PS > 109ms > PE > 205ms > CE +365ms ║Runtime (37435 bytes) successfully initialized in 109ms (v0.2.100.20171211) (363ms) +366ms ║╔Execution stage started +414ms ║║Executed physical command [Hallway.Outlet].off() (25ms) +416ms ║║Executed [Hallway.Outlet].off (28ms) +422ms ║╚Execution stage complete. (57ms) +425ms ║Setting up scheduled job for Wed, Dec 20 2017 @ 4:00:00 PM EST (in 7139.389s) +434ms ╚Event processed successfully (435ms) 12/20/2017, 2:00:00 PM +369ms +1ms ╔Received event [Home].time = 1513796400000 with a delay of 368ms +787ms ║RunTime Analysis CS > 63ms > PS > 427ms > PE > 297ms > CE +810ms ║Runtime (37433 bytes) successfully initialized in 427ms (v0.2.100.20171211) (808ms) +812ms ║╔Execution stage started +940ms ║║Comparison (integer) 14 is_inside_of_range (integer) 8 .. (integer) 20 = true (5ms) +944ms ║║Condition #7 evaluated true (16ms) +947ms ║║Condition group #2 evaluated true (state did not change) (19ms) +953ms ║║Cancelling statement #3's schedules... +1001ms ║║Executed physical command [Hallway.Outlet].on() (41ms) +1024ms ║║Executed [Hallway.Outlet].on (67ms) +1030ms ║║Executed virtual command [Hallway.Outlet].wait (0ms) +1031ms ║║Requesting a wake up for Wed, Dec 20 2017 @ 2:01:01 PM EST (in 60.0s) +1043ms ║╚Execution stage complete. (232ms) +1047ms ║Setting up scheduled job for Wed, Dec 20 2017 @ 2:01:01 PM EST (in 59.987s), with 1 more job pending +1057ms ╚Event processed successfully (1057ms)


#2

Try “Every 3 hours at 59 minutes past the hour” ?


#3

Thanks, Actually i figured out a better way to do this leveraging virtual device “Time” that I did not know existed.