Page 1 of 1

Correct blockly configuration question

Posted: Monday 16 September 2019 14:26
by Dave21w
I'd like to monitor the state of all my window sensors when the front door is opened so that if any are still open as i leave I get a notification. Obviously it will be
IF "Front Door" = Open and ?
Where the question mark is I need to list about 12 sensors, do I just need to cascade the OR option or is there an easier way

TIA

Dave

Re: Correct blockly configuration question

Posted: Tuesday 24 September 2019 7:53
by KroontjesPen
A situation in the past about burglary in daytime here, lets me think to using variables.
Every window sensor add or subtract 1 from that variable.
Using front and back side separated you use two variables.

IF "Front Door" = Open
      AND Var1 > 0
        OR Var2 > 0
        OR VarX > 0
THEN alarm

Re: Correct blockly configuration question

Posted: Thursday 10 October 2019 10:19
by Peterus
If you don't care about what window is open you can use a variable similar to what KroontjesPen suggested.
I get a notification about what door or window is open so I have an "Else if" cascade for that.
If you have many windows perhaps you can limit it down to rooms?