vaux_response_string = indigo.variables[1925362107].value #VauxResponse variable
junk, command, details = vaux_response_string.split(',', 2)
indigo.variable.updateValue(1975852637, command)
if indigo.variables[1975852637].value == "3": ### for instance
indigo.variable.updateValue(1975852637, "True")
TrueFalse = indigo.variables[1975852637].getValue(bool)
if TrueFalse == True:
pass
hamw wrote:thanks very much! And I have been looking over the online documentation... takes time...
Since the parts of the script work individually, maybe the simplest thing is to just use as conditional to evaluate the script and allow different triggers to pass. I tried the following:
- Code: Select all
vaux_response_string = indigo.variables[1925362107].value #VauxResponse variable
junk, command, details = vaux_response_string.split(',', 2)
indigo.variable.updateValue(1975852637, command)
if indigo.variables[1975852637].value == "3": ### for instance
indigo.variable.updateValue(1975852637, "True")
TrueFalse = indigo.variables[1975852637].getValue(bool)
if TrueFalse == True:
pass
but it does not resolve to a boolean...
I looked in the indigo documentation and can't find specific information on using conditionals in triggers. If I can get that to execute the trigger all will be well.
Users browsing this forum: No registered users and 3 guests