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
Correct blockly configuration question
Moderator: leecollings
- KroontjesPen
- Posts: 43
- Joined: Thursday 03 November 2016 15:46
- Target OS: Windows
- Domoticz version: 4.10717
- Location: Spijkenisse NL
- Contact:
Re: Correct blockly configuration question
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
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
Bear with me, English is not my native language.
-
- Posts: 15
- Joined: Wednesday 09 October 2019 14:34
- Target OS: Linux
- Domoticz version: 2021.1
- Location: Stockholm, Sweden
- Contact:
Re: Correct blockly configuration question
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?
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?
Who is online
Users browsing this forum: No registered users and 1 guest