Page 1 of 1
Check several contact sensors before notification
Posted: Wednesday 21 June 2017 15:48
by mikkelnl
Hi all,
Is there any way with blocky to achieve this result:
I have a room with 1 door and 3 windows.
All have contact sensors.
I want to send a notification when the door OPENS *and* 1 or more of the windows are opened. So, I don't need a notification when alle windows are closed and the door opens.
Thanks!
Re: Check several contact sensors before notification
Posted: Wednesday 21 June 2017 15:57
by StanHD
Like this ?:-
Re: Check several contact sensors before notification
Posted: Wednesday 21 June 2017 16:16
by mikkelnl
OMG, why didn't I think of that
Thanks, gonna try this
Re: Check several contact sensors before notification
Posted: Wednesday 21 June 2017 16:17
by mikkelnl
Oh one more thing... would it be possible to add a counter to this, to avoid the notification when the door closes immediately?
So for instance: I want such a notification when the door stays open for 3 minutes? And not have a notification when the door closes before/during these 3 minutes?
Re: Check several contact sensors before notification
Posted: Wednesday 21 June 2017 18:32
by StanHD
mikkelnl wrote:Oh one more thing... would it be possible to add a counter to this, to avoid the notification when the door closes immediately?
So for instance: I want such a notification when the door stays open for 3 minutes? And not have a notification when the door closes before/during these 3 minutes?
I believe there is a way to do this with a variable or a dummy switch. But I'm not sure, sorry
Re: Check several contact sensors before notification
Posted: Saturday 24 June 2017 16:56
by sion
I think Lua would be be best way do achieve this, but you could try this: ( I'm not sure if it will work though )
Create a dummy switch. For examples sake call it x.
Replace the door contact in your current blocky with x.
Now make a new blocky.
If door = open
Set x on after 180 seconds.
Else if door = closed.
Set x off.
----
I think setting x off will stop the countdown to setting it on. But I could be wrong