- Code: Select all
hseOcc = indigo.variables[612296111].getValue(bool)
if not hseOcc:
indigo.variable.updateValue(612296111,"false") # hseOccupied
# indigo.iodevice.setBinaryOutput(1375390279, 0, False)
else:
indigo.variable.updateValue(612296111,"true") # hseOccupied
# indigo.iodevice.setBinaryOutput(1375390279, 0, True)