Yay! Got what I needed working. I was actually after the check mark for a Schedule, not a Trigger, but I just needed to use "indigo.schedules" in place of "indigo.triggers":
- Code: Select all
(str(indigo.schedules[ID_OF_TRIGGER].enabled) == "True")
I struggle with the IOM Doc, so I appreciate the help.
I sometimes find it more reliable to translate booleans into booleans, so to speak, by converting them to strings and then testing for "true" or "false". Not sure why. Anywho, in this case, it needed to be "True" not lower case "true".
I think the case is why using booleans directly sometimes trips me up. Maybe something to do with how Indigo stores booleans in variables. In variables, they seem to need to be lower case. In the IOM they tend to be title case? Something like that.