Timer Set For Every 3 Hours Running Every 2 Hours. Possible Bug?

fixed

#1

I have the following piston that runs every 3 hours. The problem is it is running every 2 hours.
If I set the timer to 180 minutes then it does run every 3 hours.
Here is the piston and the logs.
PISTON.
image
LOGS WITH IT SET TO 3 HOURS.
image
LOGS WITH IT SET TO 180 MINUTES.
image


#2

Excellent observation, the code is explicitly subtracting one hour when scheduling this. I’m not sure why that - 1 is in there but will roll up a pull request for @ady624 to review. Pull request submitted here


#3

I ran into this same exact issue.


#4

Almost certain it is a DST “issue”…

J


#5

The fix was reviewed and released in v0.2.101; please update your smart apps at developer.smartthings.com. If you already updated to that version prior to Dec 29 you will need to update again since the same version number was used.


#6

I can confirm that the latest update has resolved this issue.
Thanks @ipaterson