1) Give a description of the problem
Having trouble figuring out how to turn off plug after 1 minute after having it turn on. I assume I would use a while loop but I’m not sure where I should place the while loop and how to get the compare the condition of 1 minute of time passing. I’m not a very good programmer so this is a bit above my head.
2) What is the expected behavior?
Trying to create a piston that will turn on a switch every 10 minutes for 1 minute then shut it off.
3) What is happening/not happening?
Can’t automate the turning off.
**4) Post a Green Snapshot of the piston
+2ms | ╔Received event [Home].time = 1553607271740 with a delay of -383ms |
---|---|
+170ms | ║RunTime Analysis CS > 56ms > PS > 101ms > PE > 13ms > CE |
+172ms | ║Runtime (36213 bytes) successfully initialized in 101ms (v0.3.10a.20190223) (169ms) |
+174ms | ║╔Execution stage started |
+189ms | ║║Cancelling statement #2’s schedules… |
+717ms | ║║Executed physical command [Hot Water Recirculator].on() (522ms) |
+718ms | ║║Executed [Hot Water Recirculator].on (525ms) |
+724ms | ║╚Execution stage complete. (551ms) |
+726ms | ║Setting up scheduled job for Tue, Mar 26 2019 @ 9:44:31 AM EDT (in 599.657s) |
+735ms | ╚Event processed successfully (735ms) |
3/26/2019, 9:24:30 AM +106ms | |
+0ms | ╔Received event [Home].time = 1553606671740 with a delay of -1635ms |
+89ms | ║RunTime Analysis CS > 19ms > PS > 58ms > PE > 13ms > CE |
+92ms | ║Runtime (36211 bytes) successfully initialized in 58ms (v0.3.10a.20190223) (90ms) |
+93ms | ║╔Execution stage started |
+107ms | ║║Cancelling statement #2’s schedules… |
+590ms | ║║Executed physical command [Hot Water Recirculator].on() (477ms) |
+591ms | ║║Executed [Hot Water Recirculator].on (481ms) |
+595ms | ║╚Execution stage complete. (503ms) |
+597ms | ║Setting up scheduled job for Tue, Mar 26 2019 @ 9:34:31 AM EDT (in 601.038s) |
+608ms | ╚Event processed successfully (608ms) |
Any help would be much appreciated.