2 sunrises triggered


#1

1) Give a description of the problem
piston triggers sunrise twice

2) What is the expected behavior?
one sun, one sunrise per day :slight_smile:

3) What is happening/not happening?
causes arlo ifttt to record twice

**4) Post a Green Snapshot of the piston

5) Attach any logs (From ST IDE and by turning logging level to Full)
9/12/2018, 7:21:59 AM +164ms
+0ms â•”Received event [SawMill].time = 1536751320000 with a delay of -837ms
+305ms â•‘Setting up scheduled job for Wed, Sep 12 2018 @ 12:00:00 PM EDT (in 16680.532s), with 4 more jobs pending
+313ms ╚Event processed successfully (312ms)
9/12/2018, 7:20:59 AM +106ms
+1ms â•”Received event [SawMill].time = 1536751260000 with a delay of -894ms
+306ms â•‘Setting up scheduled job for Wed, Sep 12 2018 @ 7:22:00 AM EDT (in 60.589s), with 4 more jobs pending
+315ms ╚Event processed successfully (315ms)
9/11/2018, 11:59:59 PM +113ms
+1ms â•”Received event [SawMill].time = 1536724800000 with a delay of -888ms
+529ms â•‘Setting up scheduled job for Wed, Sep 12 2018 @ 7:21:00 AM EDT (in 26460.359s), with 4 more jobs pending
+541ms ╚Event processed successfully (540ms)


#2

I’ve seen this happen when the sun rises later the next day. A simple workaround is to add an integer variable called LastDay.

IF time happens daily at sunrise
AND
LastDay is different than $day
THEN
IFTTT event
Set variable LastDay to $day
End IF


#3

Thanks, that will work.