I’m a new Rule Engine user and am having trouble with simple rules and the logic behind them. I’m trying to transition from WebCore and I just can’t seem to grasp the basic construction of a rule.
I have three physical switches and a virtual switch. I would like to create a rule which turns the virtual switch on when any of the three switches turn on, and then turn it off only when all three switches are off.
I’ve looked at many rule examples and just can’t seem to get this pulled together. Love SharpTools and could use some help! Thanks so much!
In theory you could combine things into a single rule. Sometimes it’s just easier to split things out to multiple rules so its easier to edit the individual rules without a bunch of nested logic and conditions.
I started to do that very thing, but since there seemed to be a bit of confusion on how the exact logic of a rule worked I decided to adhere to the K.I.S.S. principal.