Python-iodevice - not responding to command
Posted: Thu Apr 08, 2021 6:45 pm
In the following script, the IODevice is not responding to either iodevice command. There is no error code. I've confirmed the device ID. I am able to change the value manually. I think I've eliminated all possibilities with the exception of the python code.
Suggestions?
Suggestions?
- Code: Select all
hseStatus = indigo.variables[1568794432].value
import time
if hseStatus == "Vacant":
time.sleep(1)
indigo.iodevice.setBinaryOutput(33341465, 0, True)
indigo.variable.updateValue(1568794432, value = str("Occupied")) # setHse Occupied
else:
time.sleep(1)
indigo.iodevice.setBinaryOutput(33341465, 0, False)
indigo.variable.updateValue(1568794432, value = str("Vacant")) # setHse Vacant