So, this is using the while loop. Here I’ve turned on 3 lights: Bedroom Closet 1, Mini-Closet Light, and Hallway Closet #1 in rapid sequence while the doors are shut. It successfully turned off Mini-Closet Light, and gave up on the rest:
9/26/2017, 4:46:10 PM +434ms
+1ms ╔Received event [We’re Home].time = 1506458770841 with a delay of -409ms
+656ms ╚Event processed successfully (657ms)
9/26/2017, 4:46:04 PM +924ms
+1ms ╔Received event [Mini-Closet Light].switch = off with a delay of 136ms
+862ms ║Piston waited at a semaphore for 521ms
+881ms ║Mini-Closet Light
+889ms ║switch
+897ms ║off
+1090ms ║Setting up scheduled job for Tue, Sep 26 2017 @ 4:46:10 PM EDT (in 4.828s), with 1 more job pending
+1148ms ╚Event processed successfully (1148ms)
9/26/2017, 4:46:03 PM +274ms
+1ms ╔Received event [We’re Home].time = 1506458763988 with a delay of -714ms
+464ms ║Mini-Closet Light stayed on after the door was closed. Attempting to turn off now.
+1893ms ║Setting up scheduled job for Tue, Sep 26 2017 @ 4:46:13 PM EDT (in 8.582s)
+1962ms ╚Event processed successfully (1962ms)
9/26/2017, 4:45:53 PM +516ms
+1ms ╔Received event [We’re Home].time = 1506458754704 with a delay of -1188ms
+464ms ║Mini-Closet Light stayed on after the door was closed. Attempting to turn off now.
+1352ms ║Mini-Closet Light stayed on after the door was closed. Attempting to turn off now.
+1511ms ║Mini-Closet Light stayed on after the door was closed. Attempting to turn off now.
+1531ms ║Setting up scheduled job for Tue, Sep 26 2017 @ 4:46:03 PM EDT (in 8.942s), with 2 more jobs pending
+1599ms ╚Event processed successfully (1599ms)
9/26/2017, 4:45:49 PM +295ms
+2ms ╔Received event [Mini-Closet Light].switch = on with a delay of 223ms
+369ms ║Mini-Closet Light
+378ms ║switch
+386ms ║on
+606ms ║Setting up scheduled job for Tue, Sep 26 2017 @ 4:45:54 PM EDT (in 4.804s), with 2 more jobs pending
+676ms ╚Event processed successfully (675ms)
9/26/2017, 4:45:44 PM +561ms
+1ms ╔Received event [We’re Home].time = 1506458745346 with a delay of -785ms
+520ms ║Bedroom Closet 1 stayed on after the door was closed. Attempting to turn off now.
+1019ms ║Bedroom Closet 1 stayed on after the door was closed. Attempting to turn off now.
+1038ms ║Setting up scheduled job for Tue, Sep 26 2017 @ 4:45:55 PM EDT (in 9.491s), with 1 more job pending
+1100ms ╚Event processed successfully (1100ms)
9/26/2017, 4:45:40 PM +74ms
+2ms ╔Received event [Hall Closet #1 Light].switch = on with a delay of 208ms
+1333ms ║Piston waited at a semaphore for 808ms
+1352ms ║Hall Closet #1 Light
+1360ms ║switch
+1368ms ║on
+1583ms ║Setting up scheduled job for Tue, Sep 26 2017 @ 4:45:45 PM EDT (in 3.691s), with 1 more job pending
+1642ms ╚Event processed successfully (1642ms)
9/26/2017, 4:45:39 PM +874ms
+1ms ╔Received event [Bedroom Closet 1].switch = on with a delay of 547ms
+429ms ║Bedroom Closet 1
+440ms ║switch
+451ms ║on
+702ms ║Setting up scheduled job for Tue, Sep 26 2017 @ 4:45:45 PM EDT (in 4.771s), with 1 more job pending
+768ms ╚Event processed successfully (768ms)