I created the following test script, and the second iodevice line (bold) produces the following error message:
Trigger run a script #1
Script Error test.py: output binary index out-of-range
Script Error Exception Traceback (most recent call shown last):
test.py, line 10, at top level
InvalidParameter: output binary index out-of-range
With 12 possible iodevice options, this suggests that format of the iodevice line is wrong.
- Code: Select all
hseStatus = indigo.variables[1568794432].value
import time
if hseStatus == "Vacant":
time.sleep(1)
indigo.iodevice.setBinaryOutput(33341465, 0, True)
else:
time.sleep(1)
indigo.iodevice.setBinaryOutput(33341465, 0, False)
indigo.iodevice.setBinaryOutput(33341465, 1, True) # this line fails
indigo.iodevice.setBinaryOutput(33341465, 2, 0)
indigo.iodevice.setBinaryOutput(33341465, 3, 1)
indigo.iodevice.setBinaryOutput(33341465, 4, false)
indigo.iodevice.setBinaryOutput(33341465, 5, true)
indigo.iodevice.setBinaryOutput(33341465, 6, True)
indigo.iodevice.setBinaryOutput(33341465, 7, False)
[MODERATOR NOTE]: you can't use formatting inside code tags, so I removed them and added a comment