Hello, I’m trying to get a SmartApp to execute between two times, as I fear that using timeToday does not reset at midnight, and found timeOfDayIsBetween
The syntax is: timeOfDayIsBetween(Date start, Date stop, Date value, TimeZone timeZone)
@Jim I’m still having a hard time with this, is there anyway you could write a quick hello world when the current time is between two user selected times? For some reason all of my Dates are null…
Ok so my application seems to work if the trigger period is within the time of installation, but it never seems to execute if the time is after installation. This might be due to my newness to SmartApp writing or just a typo, I’m not sure. I’d appreciate some help even if the answer is there is a better way to accomplish my apps purpose.
The problem:
I have a device that is awesome but noisy at night so I want to turn it off after a specified time
Also this device executes cycles throughout the day that if interrupted will yield no place for my cats to go to the bathroom.
The solution:
Turn this device of between two times while it’s not drawing power.
The code so far:
Any assistance would be greatly appreciated.
PS I selected SmartThings because I was sure it could accomplish this, so I hope I was right.