I want to turn our carport light on if my wife or I arrive home after the light’s scheduled off time of midnight. I created a piston to do this using our phones as presence sensors, but they often don’t report presence in a timely fashion.
I recently added a Zooz 4-in-1 sensor in the carport with a thought that we could use it to detect our arrivals. Before I have it control the light, though, I wanted to see how much motion it sees at night normally from birds, bats, bugs, etc. I created the piston below and see there is occasionally activity.
I also see “Piston waited at semaphore messages”, which I understand comes from the motion sensor being triggered repeatedly. I can trace these to times one of us was coming or going- basically, what I’d really like to use as the trigger for the light!
I am new to creating pistons. How could I alter this piston to say, “if motion sensor reports motion for N seconds”…
1/27/2019, 6:29:12 AM +671ms
+162ms ║Motion detected
1/26/2019, 7:48:47 PM +506ms
+10199ms ║Piston waited at a semaphore for 10087ms
1/26/2019, 7:21:47 PM +487ms
+10125ms ║Piston waited at a semaphore for 10031ms
1/26/2019, 6:56:56 PM +751ms
+10122ms ║Piston waited at a semaphore for 10021ms
1/26/2019, 1:57:44 PM +162ms
+10113ms ║Piston waited at a semaphore for 10019ms
1/26/2019, 8:03:29 AM +489ms
+10130ms ║Piston waited at a semaphore for 10020ms
1/24/2019, 7:14:18 AM +2ms
+160ms ║Motion detected
1/22/2019, 6:49:41 AM +425ms
+157ms ║Motion detected
1/21/2019, 1:04:42 AM +904ms
+162ms ║Motion detected
1/21/2019, 1:02:49 AM +400ms
+157ms ║Motion detected
1/21/2019, 12:40:07 AM +356ms
+146ms ║Motion detected
1/21/2019, 12:39:02 AM +385ms
+134ms ║Motion detected
1/21/2019, 12:29:02 AM +527ms
+248ms ║Motion detected
1/21/2019, 12:18:17 AM +746ms
+150ms ║Motion detected
1/21/2019, 12:06:14 AM +773ms
+148ms ║Motion detected
1/20/2019, 4:24:08 PM +701ms
+10166ms ║Piston waited at a semaphore for 10046ms
1/19/2019, 7:06:11 AM +270ms
+132ms ║Motion detected
1/19/2019, 5:29:37 AM +128ms
+177ms ║Motion detected
1/16/2019, 3:56:49 AM +68ms
+133ms ║Motion detected