Updating variable value - boolean

Posted on
Mon Nov 25, 2019 3:34 pm
SMUSEBY offline
Posts: 511
Joined: Sep 16, 2009
Location: California

Updating variable value - boolean

What am I missing? (the variable is not being updated)

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)

Posted on
Mon Nov 25, 2019 4:06 pm
SMUSEBY offline
Posts: 511
Joined: Sep 16, 2009
Location: California

Re: Updating variable value - boolean

figured it out. nothing to do with python.
sorry for the bother.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 10 guests