Timer 4 times every day


#1

Hello-

I’m trying to set up a greenhouse feed schedule that will trigger every day at preset times, run for 40 minutes, then turn off. I’ve tried several ways found on the forum, but I’m having no success. I want this to turn ON at 1AM, 7AM, 1PM, and 7PM, shutting off 40 minutes after each one. The one I’m posting seems simple enough, but I’m not getting what I need. (I went with every 12 minutes because anything higher didn’t work). As you will see by the logs, it is switching on at times not requested, and not turning off when requested. This seems like it should be one of the easiest Pistons I would create,… but…

LOGS

4/17/2022, 8:28:25 AM +142ms
+0ms +Received event [Home].time = 1650198506234 with a delay of -1092ms
+51ms ¦RunTime Analysis CS > 18ms > PS > 8ms > PE > 25ms > CE
+53ms ¦Runtime (36106 bytes) successfully initialized in 8ms (v0.3.114.20220203) (52ms)
+54ms ¦+Execution stage started
+117ms ¦¦Executed physical command [Greenhouse 2 Pump].off() (52ms)
+118ms ¦¦Executed [Greenhouse 2 Pump].off (54ms)
+120ms ¦+Execution stage complete. (66ms)
+122ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 1:00:26 PM EDT (in 16321s)
+128ms +Event processed successfully (128ms)
4/17/2022, 7:48:26 AM +133ms
+1ms +Received event [Home].time = 1650196106445 with a delay of -312ms
+51ms ¦RunTime Analysis CS > 19ms > PS > 7ms > PE > 24ms > CE
+53ms ¦Runtime (36105 bytes) successfully initialized in 7ms (v0.3.114.20220203) (51ms)
+53ms ¦+Execution stage started
+87ms ¦¦Cancelling statement #2’s schedules…
+95ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (4ms)
+96ms ¦¦Executed [Greenhouse 2 Pump].on (6ms)
+100ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (0ms)
+101ms ¦¦Requesting a wake up for Sun, Apr 17 2022 @ 8:28:26 AM EDT (in 2400.0s)
+106ms ¦+Execution stage complete. (53ms)
+108ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 8:28:26 AM EDT (in 2399s), with 1 more job pending
+116ms +Event processed successfully (116ms)
4/17/2022, 7:36:26 AM +150ms
+0ms +Received event [Home].time = 1650195386445 with a delay of -295ms
+54ms ¦RunTime Analysis CS > 27ms > PS > 8ms > PE > 18ms > CE
+56ms ¦Runtime (36105 bytes) successfully initialized in 8ms (v0.3.114.20220203) (54ms)
+56ms ¦+Execution stage started
+65ms ¦¦Cancelling statement #2’s schedules…
+72ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (4ms)
+73ms ¦¦Executed [Greenhouse 2 Pump].on (5ms)
+75ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (0ms)
+77ms ¦¦Requesting a wake up for Sun, Apr 17 2022 @ 8:16:26 AM EDT (in 2400.0s)
+81ms ¦+Execution stage complete. (24ms)
+82ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 7:48:26 AM EDT (in 720s), with 1 more job pending
+88ms +Event processed successfully (88ms)
4/17/2022, 7:24:26 AM +163ms
+0ms +Received event [Home].time = 1650194666445 with a delay of -283ms
+49ms ¦RunTime Analysis CS > 19ms > PS > 7ms > PE > 24ms > CE
+51ms ¦Runtime (36105 bytes) successfully initialized in 7ms (v0.3.114.20220203) (50ms)
+52ms ¦+Execution stage started
+61ms ¦¦Cancelling statement #2’s schedules…
+70ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (6ms)
+70ms ¦¦Executed [Greenhouse 2 Pump].on (7ms)
+73ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (0ms)
+74ms ¦¦Requesting a wake up for Sun, Apr 17 2022 @ 8:04:26 AM EDT (in 2400.0s)
+78ms ¦+Execution stage complete. (26ms)
+80ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 7:36:26 AM EDT (in 720s), with 1 more job pending
+89ms +Event processed successfully (89ms)
4/17/2022, 7:12:26 AM +147ms
+0ms +Received event [Home].time = 1650193946445 with a delay of -298ms
+51ms ¦RunTime Analysis CS > 19ms > PS > 6ms > PE > 26ms > CE
+54ms ¦Runtime (36105 bytes) successfully initialized in 6ms (v0.3.114.20220203) (53ms)
+55ms ¦+Execution stage started
+63ms ¦¦Cancelling statement #2’s schedules…
+72ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (5ms)
+73ms ¦¦Executed [Greenhouse 2 Pump].on (6ms)
+76ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (0ms)
+77ms ¦¦Requesting a wake up for Sun, Apr 17 2022 @ 7:52:26 AM EDT (in 2400.0s)
+81ms ¦+Execution stage complete. (27ms)
+83ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 7:24:26 AM EDT (in 720s), with 1 more job pending
+92ms +Event processed successfully (92ms)
4/17/2022, 7:00:26 AM +137ms
+0ms +Received event [Home].time = 1650193226445 with a delay of -309ms
+55ms ¦RunTime Analysis CS > 26ms > PS > 10ms > PE > 20ms > CE
+58ms ¦Runtime (36107 bytes) successfully initialized in 10ms (v0.3.114.20220203) (57ms)
+59ms ¦+Execution stage started
+68ms ¦¦Cancelling statement #2’s schedules…
+85ms ¦¦Executed physical command [Greenhouse 2 Pump].on() (14ms)
+86ms ¦¦Executed [Greenhouse 2 Pump].on (16ms)
+89ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (1ms)
+90ms ¦¦Requesting a wake up for Sun, Apr 17 2022 @ 7:40:26 AM EDT (in 2400.0s)
+95ms ¦+Execution stage complete. (36ms)
+96ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 7:12:26 AM EDT (in 720s), with 1 more job pending
+109ms +Event processed successfully (109ms)
4/17/2022, 2:28:25 AM +114ms
+0ms +Received event [Home].time = 1650176906239 with a delay of -1125ms
+60ms ¦RunTime Analysis CS > 31ms > PS > 6ms > PE > 23ms > CE
+62ms ¦Runtime (36106 bytes) successfully initialized in 6ms (v0.3.114.20220203) (61ms)
+63ms ¦+Execution stage started
+97ms ¦¦Executed physical command [Greenhouse 2 Pump].off() (11ms)
+97ms ¦¦Executed [Greenhouse 2 Pump].off (13ms)
+109ms ¦+Execution stage complete. (46ms)
+110ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 7:00:26 AM EDT (in 16321s)
+119ms +Event processed successfully (119ms)
4/17/2022, 1:48:26 AM +137ms
+1ms +Received event [Home].time = 1650174506445 with a delay of -308ms
+48ms ¦RunTime Analysis CS > 18ms > PS > 6ms > PE > 24ms > CE
+50ms ¦Runtime (36105 bytes) successfully initialized in 6ms (v0.3.114.20220203) (49ms)
+51ms ¦+Execution stage started
+86ms ¦¦Cancelling statement #2’s schedules…
+96ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (6ms)
+97ms ¦¦Executed [Greenhouse 2 Pump].on (8ms)
+100ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (1ms)
+101ms ¦¦Requesting a wake up for Sun, Apr 17 2022 @ 2:28:26 AM EDT (in 2400.0s)
+105ms ¦+Execution stage complete. (54ms)
+107ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 2:28:26 AM EDT (in 2399s), with 1 more job pending
+114ms +Event processed successfully (114ms)
4/17/2022, 1:36:26 AM +120ms
+1ms +Received event [Home].time = 1650173786445 with a delay of -325ms
+51ms ¦RunTime Analysis CS > 20ms > PS > 7ms > PE > 24ms > CE
+54ms ¦Runtime (36105 bytes) successfully initialized in 7ms (v0.3.114.20220203) (51ms)
+55ms ¦+Execution stage started
+64ms ¦¦Cancelling statement #2’s schedules…
+73ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (5ms)
+74ms ¦¦Executed [Greenhouse 2 Pump].on (7ms)
+77ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (1ms)
+78ms ¦¦Requesting a wake up for Sun, Apr 17 2022 @ 2:16:26 AM EDT (in 2400.0s)
+83ms ¦+Execution stage complete. (29ms)
+84ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 1:48:26 AM EDT (in 720s), with 1 more job pending
+92ms +Event processed successfully (92ms)
4/17/2022, 1:24:26 AM +119ms
+1ms +Received event [Home].time = 1650173066445 with a delay of -326ms
+47ms ¦RunTime Analysis CS > 19ms > PS > 8ms > PE > 19ms > CE
+49ms ¦Runtime (36105 bytes) successfully initialized in 8ms (v0.3.114.20220203) (48ms)
+50ms ¦+Execution stage started
+58ms ¦¦Cancelling statement #2’s schedules…
+66ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (4ms)
+67ms ¦¦Executed [Greenhouse 2 Pump].on (6ms)
+70ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (0ms)
+71ms ¦¦Requesting a wake up for Sun, Apr 17 2022 @ 2:04:26 AM EDT (in 2400.0s)
+75ms ¦+Execution stage complete. (26ms)
+77ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 1:36:26 AM EDT (in 720s), with 1 more job pending
+85ms +Event processed successfully (85ms)
4/17/2022, 1:12:26 AM +196ms
+1ms +Received event [Home].time = 1650172346445 with a delay of -249ms
+60ms ¦RunTime Analysis CS > 36ms > PS > 8ms > PE > 16ms > CE
+62ms ¦Runtime (36105 bytes) successfully initialized in 8ms (v0.3.114.20220203) (61ms)
+63ms ¦+Execution stage started
+71ms ¦¦Cancelling statement #2’s schedules…
+79ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (4ms)
+79ms ¦¦Executed [Greenhouse 2 Pump].on (5ms)
+82ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (0ms)
+83ms ¦¦Requesting a wake up for Sun, Apr 17 2022 @ 1:52:26 AM EDT (in 2400.0s)
+87ms ¦+Execution stage complete. (24ms)
+89ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 1:24:26 AM EDT (in 720s), with 1 more job pending
+96ms +Event processed successfully (95ms)
4/17/2022, 1:00:26 AM +184ms
+1ms +Received event [Home].time = 1650171626445 with a delay of -261ms
+89ms ¦RunTime Analysis CS > 62ms > PS > 7ms > PE > 20ms > CE
+92ms ¦Runtime (36105 bytes) successfully initialized in 7ms (v0.3.114.20220203) (90ms)
+93ms ¦+Execution stage started
+103ms ¦¦Cancelling statement #2’s schedules…
+118ms ¦¦Executed physical command [Greenhouse 2 Pump].on() (11ms)
+119ms ¦¦Executed [Greenhouse 2 Pump].on (14ms)
+122ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (0ms)
+124ms ¦¦Requesting a wake up for Sun, Apr 17 2022 @ 1:40:26 AM EDT (in 2400.0s)
+129ms ¦+Execution stage complete. (36ms)
+131ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 1:12:26 AM EDT (in 720s), with 1 more job pending
+141ms +Event processed successfully (141ms)
4/16/2022, 8:28:25 PM +151ms
+1ms +Received event [Home].time = 1650155306527 with a delay of -1376ms
+49ms ¦RunTime Analysis CS > 20ms > PS > 7ms > PE > 22ms > CE
+52ms ¦Runtime (36106 bytes) successfully initialized in 7ms (v0.3.114.20220203) (50ms)
+53ms ¦+Execution stage started
+84ms ¦¦Executed physical command [Greenhouse 2 Pump].off() (11ms)
+85ms ¦¦Executed [Greenhouse 2 Pump].off (13ms)
+95ms ¦+Execution stage complete. (42ms)
+96ms ¦Setting up scheduled job for Sun, Apr 17 2022 @ 1:00:26 AM EDT (in 16321s)
+104ms +Event processed successfully (104ms)
4/16/2022, 7:48:26 PM +133ms
+1ms +Received event [Home].time = 1650152906445 with a delay of -312ms
+345ms ¦RunTime Analysis CS > 26ms > PS > 6ms > PE > 313ms > CE
+348ms ¦Runtime (36107 bytes) successfully initialized in 6ms (v0.3.114.20220203) (346ms)
+349ms ¦+Execution stage started
+380ms ¦¦Cancelling statement #2’s schedules…
+388ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (4ms)
+389ms ¦¦Executed [Greenhouse 2 Pump].on (6ms)
+392ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (0ms)
+393ms ¦¦Requesting a wake up for Sat, Apr 16 2022 @ 8:28:26 PM EDT (in 2400.0s)
+397ms ¦+Execution stage complete. (49ms)
+399ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 8:28:26 PM EDT (in 2399s), with 1 more job pending
+407ms +Event processed successfully (407ms)
4/16/2022, 7:36:26 PM +170ms
+0ms +Received event [Home].time = 1650152186445 with a delay of -275ms
+56ms ¦RunTime Analysis CS > 29ms > PS > 9ms > PE > 17ms > CE
+58ms ¦Runtime (36105 bytes) successfully initialized in 9ms (v0.3.114.20220203) (57ms)
+60ms ¦+Execution stage started
+72ms ¦¦Cancelling statement #2’s schedules…
+80ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (4ms)
+81ms ¦¦Executed [Greenhouse 2 Pump].on (6ms)
+84ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (0ms)
+85ms ¦¦Requesting a wake up for Sat, Apr 16 2022 @ 8:16:26 PM EDT (in 2400.0s)
+90ms ¦+Execution stage complete. (31ms)
+91ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 7:48:26 PM EDT (in 720s), with 1 more job pending
+98ms +Event processed successfully (98ms)
4/16/2022, 7:24:26 PM +124ms
+1ms +Received event [Home].time = 1650151466445 with a delay of -321ms
+48ms ¦RunTime Analysis CS > 24ms > PS > 7ms > PE > 17ms > CE
+50ms ¦Runtime (36105 bytes) successfully initialized in 7ms (v0.3.114.20220203) (49ms)
+51ms ¦+Execution stage started
+60ms ¦¦Cancelling statement #2’s schedules…
+68ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (5ms)
+69ms ¦¦Executed [Greenhouse 2 Pump].on (7ms)
+72ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (1ms)
+73ms ¦¦Requesting a wake up for Sat, Apr 16 2022 @ 8:04:26 PM EDT (in 2400.0s)
+77ms ¦+Execution stage complete. (26ms)
+78ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 7:36:26 PM EDT (in 720s), with 1 more job pending
+85ms +Event processed successfully (85ms)
4/16/2022, 7:12:26 PM +163ms
+0ms +Received event [Home].time = 1650150746445 with a delay of -283ms
+41ms ¦RunTime Analysis CS > 20ms > PS > 8ms > PE > 13ms > CE
+43ms ¦Runtime (36105 bytes) successfully initialized in 8ms (v0.3.114.20220203) (41ms)
+43ms ¦+Execution stage started
+52ms ¦¦Cancelling statement #2’s schedules…
+58ms ¦¦Skipped execution of physical command [Greenhouse 2 Pump].on([]) because it would make no change to the device. (4ms)
+59ms ¦¦Executed [Greenhouse 2 Pump].on (5ms)
+62ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (0ms)
+63ms ¦¦Requesting a wake up for Sat, Apr 16 2022 @ 7:52:26 PM EDT (in 2400.0s)
+67ms ¦+Execution stage complete. (24ms)
+69ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 7:24:26 PM EDT (in 720s), with 1 more job pending
+77ms +Event processed successfully (76ms)
4/16/2022, 7:00:25 PM +152ms
+0ms +Received event [Home].time = 1650150026445 with a delay of -1294ms
+202ms ¦RunTime Analysis CS > 179ms > PS > 8ms > PE > 15ms > CE
+204ms ¦Runtime (36108 bytes) successfully initialized in 8ms (v0.3.114.20220203) (203ms)
+205ms ¦+Execution stage started
+213ms ¦¦Cancelling statement #2’s schedules…
+234ms ¦¦Executed physical command [Greenhouse 2 Pump].on() (18ms)
+235ms ¦¦Executed [Greenhouse 2 Pump].on (20ms)
+238ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (1ms)
+239ms ¦¦Requesting a wake up for Sat, Apr 16 2022 @ 7:40:25 PM EDT (in 2400.0s)
+243ms ¦+Execution stage complete. (39ms)
+245ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 7:12:26 PM EDT (in 721s), with 1 more job pending
+252ms +Event processed successfully (252ms)
4/16/2022, 4:48:24 PM +901ms
+0ms #NAME?
+1276ms ¦+Subscribing to devices…
+1514ms ¦¦Subscribing to Greenhouse 2 Pump…
+1515ms ¦+Finished subscribing (249ms)
+1596ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 7:00:26 PM EDT (in 7919s)
+1612ms +Piston successfully started (1611ms)
4/16/2022, 4:47:20 PM +572ms
+1ms #NAME?
+1578ms ¦+Subscribing to devices…
+1805ms ¦¦Subscribing to Greenhouse 2 Pump…
+1806ms ¦+Finished subscribing (243ms)
+1877ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 7:47:22 PM EDT (in 10799s)
+1889ms +Piston successfully started (1888ms)
4/16/2022, 4:46:37 PM +972ms
+1ms #NAME?
+1475ms ¦+Subscribing to devices…
+1712ms ¦¦Subscribing to Greenhouse 2 Pump…
+1713ms ¦+Finished subscribing (250ms)
+1833ms ¦Setting up scheduled job for Wed, Apr 20 2022 @ 7:56:39 PM EDT (in 356999s)
+1850ms +Piston successfully started (1848ms)
4/16/2022, 4:39:58 PM +110ms
+1ms +Received event [Home].time = 1650141599265 with a delay of -1155ms
+50ms ¦RunTime Analysis CS > 26ms > PS > 7ms > PE > 16ms > CE
+52ms ¦Runtime (36160 bytes) successfully initialized in 7ms (v0.3.114.20220203) (51ms)
+53ms ¦+Execution stage started
+81ms ¦¦Executed physical command [Greenhouse 2 Pump].off() (13ms)
+82ms ¦¦Executed [Greenhouse 2 Pump].off (15ms)
+91ms ¦+Execution stage complete. (38ms)
+92ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 10:00:00 PM EDT (in 19201s)
+98ms +Event processed successfully (98ms)
4/16/2022, 3:59:59 PM +140ms
+1ms +Received event [Home].time = 1650139200000 with a delay of -860ms
+79ms ¦RunTime Analysis CS > 35ms > PS > 11ms > PE > 32ms > CE
+82ms ¦Runtime (36161 bytes) successfully initialized in 11ms (v0.3.114.20220203) (80ms)
+84ms ¦+Execution stage started
+98ms ¦¦Cancelling statement #2’s schedules…
+118ms ¦¦Executed physical command [Greenhouse 2 Pump].on() (16ms)
+119ms ¦¦Executed [Greenhouse 2 Pump].on (18ms)
+123ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (1ms)
+124ms ¦¦Requesting a wake up for Sat, Apr 16 2022 @ 4:39:59 PM EDT (in 2400.0s)
+130ms ¦+Execution stage complete. (47ms)
+132ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 4:39:59 PM EDT (in 2399s), with 1 more job pending
+140ms +Event processed successfully (139ms)
4/16/2022, 10:11:22 AM +593ms
+1ms #NAME?
+1238ms ¦+Subscribing to devices…
+1430ms ¦¦Subscribing to Greenhouse 2 Pump…
+1431ms ¦+Finished subscribing (208ms)
+1483ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 4:00:00 PM EDT (in 20915s)
+1497ms +Piston successfully started (1497ms)
4/16/2022, 10:09:58 AM +123ms
+0ms +Received event [Home].time = 1650118199204 with a delay of -1082ms
+46ms ¦RunTime Analysis CS > 28ms > PS > 8ms > PE > 10ms > CE
+48ms ¦Runtime (36160 bytes) successfully initialized in 8ms (v0.3.114.20220203) (47ms)
+49ms ¦+Execution stage started
+74ms ¦¦Executed physical command [Greenhouse 2 Pump].off() (9ms)
+75ms ¦¦Executed [Greenhouse 2 Pump].off (11ms)
+83ms ¦+Execution stage complete. (35ms)
+84ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 11:00:00 AM EDT (in 3001s)
+92ms +Event processed successfully (93ms)
4/16/2022, 9:59:59 AM +119ms
+1ms +Received event [Home].time = 1650117600000 with a delay of -881ms
+51ms ¦RunTime Analysis CS > 25ms > PS > 7ms > PE > 18ms > CE
+53ms ¦Runtime (36159 bytes) successfully initialized in 7ms (v0.3.114.20220203) (52ms)
+54ms ¦+Execution stage started
+63ms ¦¦Cancelling statement #2’s schedules…
+79ms ¦¦Executed physical command [Greenhouse 2 Pump].on() (13ms)
+80ms ¦¦Executed [Greenhouse 2 Pump].on (15ms)
+83ms ¦¦Executed virtual command [Greenhouse 2 Pump].wait (0ms)
+84ms ¦¦Requesting a wake up for Sat, Apr 16 2022 @ 10:09:59 AM EDT (in 600.0s)
+88ms ¦+Execution stage complete. (34ms)
+90ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 10:09:59 AM EDT (in 599s), with 1 more job pending
+98ms +Event processed successfully (98ms)
4/16/2022, 9:45:15 AM +606ms
+1ms #NAME?
+1552ms ¦+Subscribing to devices…
+1849ms ¦¦Subscribing to Greenhouse 2 Pump…
+1850ms ¦+Finished subscribing (312ms)
+1911ms ¦Setting up scheduled job for Sat, Apr 16 2022 @ 10:00:00 AM EDT (in 882s)
+1926ms +Piston successfully started (1925ms)


#2

You are likely to do better with multiple if statements vs. every.

lets take for example the 1:00 AM hour:

  • you are asking the piston to run every 12 minutes, so depending on the first run it is likely to fire 4 times during that hour.

  • on the first run it will turn the pump on, and set a timer for 40 mins

  • it will run again in 12 minutes - what do you want it to do then?

    • as written it is going to reset the timer for another 40 mins
    • eventually the last run of the 1:00 AM hour will reset the timer, so you are likely to have ± 1:40 mins of run time.

task execution policy and task cancellation policy likely can help here, but it may be easier to use separate if statements specifying time as both hour and minutes to avoid all the unneeded executions that every is going to do.

you can use trigger aggregation if you like. see:


#3

Do you think this is better?


#4

Looks nice and simple to me. Only thing I’d probably add is a device variable for the switch device so you only have to change it once if you ever have to swap out the switch.


#5

Thanks!

Do you think this one should have TCP set to never?


#6

I don’t think there’s a need to since the only trigger is time and they do not overlap.


#7

Thanks!

It’s running now. I’ll check the history tomorrow. Hopefully 4 on and 4 off…


#8

4 times on, 4 times off… works well.