Hey guys,
I have to slightly disagree. Rules are there to define how your system is supposed to react in the case of an event. NOT to do something depending on certain conditions is just as much an important part of the rule as any other. I also found, that only a few rules need to be disabled for the manual switch (I also have one).
@rlkoshak your lambda solution is odly complicated. Why not a simple if?
Here’s how I’m going at it:
rule "Some rule"
when
// some trigger
then
if (masterSwitch.state == ON) return false
// body of your rule
end
Here is the thread regarding return: