onOffState is already a boolean, so the configuration you posted says "If True = Open then Conversion = True Else Conversion = False". Since True never equals "Open" it's going to be false. If you are trying to reverse the states where when onOffState is False then Converted State is True, then you just put false in the first condition and true in the second (I actually use that a lot in my stuff because a lot of plugins reports some state backwards of what is useful to me).
It can be confusing because Indigo gives multiple options for booleans for ease of reading, so even though you SEE Open/Closed, Indigo still sees that as True/False with different names. There are a few of these in Indigo like On/Off is also just another alias for True/False.
So pretend that Open = True and Closed = False and try it like that.
If not then run this code to your log and post it here so I can see what you are seeing:
- Code: Select all
dev = indigo.devices[YOURDEVICEID]