Timer object has no attribute amount in Indigo 7
Posted: Sat Sep 09, 2017 4:09 am
Hi,
This code was working fine in Indigo 6 but now fails in Indigo 7.0.3:
Error is:
It looks like the Timer object doesn't have an amount attribute anymore. I had a look at the Timers and Pesters wiki page but it hasn't been changed since July 2015.
Any ideas?
Thanks,
Christian
This code was working fine in Indigo 6 but now fails in Indigo 7.0.3:
- Code: Select all
tId = "com.perceptiveautomation.indigoplugin.timersandpesters"
timerPlugin = indigo.server.getPlugin(tId)
if timerPlugin.isEnabled():
timer = indigo.devices[1709868748] # "Timer Lights Override"
timerID = timer.id
timerAmount = timer.amount
Error is:
- Code: Select all
embedded script, line 6, at top level
AttributeError: 'Device' object has no attribute 'amount'
It looks like the Timer object doesn't have an amount attribute anymore. I had a look at the Timers and Pesters wiki page but it hasn't been changed since July 2015.
Any ideas?
Thanks,
Christian