- Code: Select all
hseVcnt = indigo.variables[1176596514].getValue(bool)
if not hseVcnt:
indigo.device.turnOn(1010600690) #espresso machine
indigo.device.turnOn(1995981377) #2hr espresso machine off timer
indigo.actionGroup.execute(1996294568) #k lamp, warming up (blue)
indigo.device.turnOff(1580115691) #nOff desk lamp
indigo.device.turnOn(1172875783) #25min espresso machine ready timer
with the resulting error message:
Script Error espMachineON_2hrs.py: device "espMachOFF2 hrs" class type Device is not compatible with action turnOn/turnOff/toggle/setBrightness/lock/unlock/open/close
Script Error Exception Traceback (most recent call shown last):
espMachineON_2hrs.py, line 4, at top level
TypeError: device "espMachOFF2 hrs" class type Device is not compatible with action turnOn/turnOff/toggle/setBrightness/lock/unlock/open/close
(same error message for line 7 as well)