I am using the Edit Condition builder to create a condition comparing the state (On or Off) of a physical device (light switch). In the command builder, in the “compare to” section, if I select “Value”, it shows me a predefined list of “On” or “Off”.
I would like to utilize a “Variable” (rather than a Value) to make this comparison more generic (ie, the variable would indicate whether the device state is being compared to On or Off).
But, I have tried using boolean, integer and string variable values, and nothing seems to satisfy the compare. Is there a way to accomplish this? I could write separate On and Off sections of code, but would prefer to make this more generic. Appreciate any suggestions.