How do I load a timer, and start the timer all in the same trigger?
Are there examples of timers and pesters usage anywhere??
thanks
Bob
jay (support) wrote:Check my edit - wasn't sure in retrospect I'd answered your question...
timer = indigo.devices[365380652] # "1 hour timer"
if timer.states["timerStatus"] == "active":
# do whatever you need to do when it's active
elif timer.states["timerStatus"] == "paused":
# do whatever you need to do if it's paused
else:
# do whatever you need to do if it's inactive
Users browsing this forum: No registered users and 16 guests