[ANSWERED]How to get a Timer Start Value
Posted: Mon Jan 09, 2017 1:36 pm
My search has not resulted in an answer as to how to get a timer's start value.
Here is the code snippet I have tried.
Any suggestion are much appreciated.
Here is the code snippet I have tried.
- Code: Select all
id_timer = 207309385 # Your timer ID
timerPlugin = indigo.server.getPlugin(u"com.perceptiveautomation.indigoplugin.timersandpesters")
if timerPlugin.isEnabled():
tmr = indigo.devices[id_timer]
TimerDelay = int(tmr.states['TimerStartValue'])
indigo.server.log("timer start value is " + ": " + str(TimerDelay))
Any suggestion are much appreciated.