This is the error I get when it tries to set the device...
File "plugin.py", line 50, in runConcurrentThread
File "plugin.py", line 143, in dispatchMsg
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Elk Plugin.indigoPlugin/Contents/Server Plugin/elkextra.py", line 56, in setDeviceLight
<type 'exceptions.ValueError'>: ElementNotFoundError -- could not find device "C12"
Line 56 is the turnOn(zone)...
With the following code
- Code: Select all
def setDeviceLight(zone, lightmsg):
for device in indigo.devices:
if device.address == zone:
indigo.device.turnOn(zone)
indigo.server.log("Turned on")