This object is in archive! 
Rule with multiple "OR" operators
Need Answer
Hi,
I'd like to create a rule with multiple "OR" operators.
E.g. at a given time, check every blind sensor status (I have 7 blinds), if one of them is "open" then send a single message.
At this moment, I achieve this result using a single IF for every single blind (see attachment), but I'd like to group all the checking cycle (E.G. IF blind 1 position > 15 OR blind 2 > 10 OR blind 3 > 12 THEN send message "one of your blinds is open")
How can achieve this?
Files:
rule.jpg
No connection
Real-time notifications may not work
With nested ORs! Or did I misunderstand your problem?
If it becomes too clumsy because the ORs stretch off the screen on the right, you can do the following:
set variable BlindsOpen = 0
if (blind1 open) or (blind2 open)
set variable BlindsOpen = 1
if (blind3 open) or (blind4 open)
set variable BlindsOpen = 1
etc
if (BlindsOpen)
SendMessage
With nested ORs! Or did I misunderstand your problem?
If it becomes too clumsy because the ORs stretch off the screen on the right, you can do the following:
set variable BlindsOpen = 0
if (blind1 open) or (blind2 open)
set variable BlindsOpen = 1
if (blind3 open) or (blind4 open)
set variable BlindsOpen = 1
etc
if (BlindsOpen)
SendMessage
Replies have been locked on this page!