Check several contact sensors before notification

Moderator: leecollings

Post Reply
mikkelnl
Posts: 15
Joined: Wednesday 21 June 2017 15:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Check several contact sensors before notification

Post 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!
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Check several contact sensors before notification

Post by StanHD »

Like this ?:-
Image
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
mikkelnl
Posts: 15
Joined: Wednesday 21 June 2017 15:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Check several contact sensors before notification

Post by mikkelnl »

OMG, why didn't I think of that :) Thanks, gonna try this :)
mikkelnl
Posts: 15
Joined: Wednesday 21 June 2017 15:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Check several contact sensors before notification

Post 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?
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Check several contact sensors before notification

Post 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 :oops:
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
sion
Posts: 113
Joined: Friday 08 January 2016 12:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Check several contact sensors before notification

Post 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 ;)
running domoticz 3.4834 on rpi2, with
Hue bridge / bulbs.
lightwave rf sockets, mood controlers, sensors & contacts.
Home bridge / Siri.
Ha bridge / echo Alexa.
Hard wired alarm system - setting home / away status.

Next: harmony hub.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests