Front Door Sensor Alarm via Email

Tips, Tricks and Scripts to enhance your home automation and workaround known device bugs, limitations and incompatibilities
Post Reply
icebrian
Posts: 18
Joined: 27 Feb 2013 02:54

Front Door Sensor Alarm via Email

Post by icebrian »

Hello everyone,

I am currently in need of a point in the right direction. I have a Fibaro FGK-10 Door Sensor, which I have successfully included in Z-Way, now I want to create the following scenario:

IF "Door Sensor" = Armed && "Door" is "opened" THEN "send email"

I can manage the scenario if it's simply limited to the door opening, but I want to limit this to when the sensor is armed but I can't seem to figure out how to accomplish this.

Would very much appreciate a point in the right direction.

Thank you,
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Front Door Sensor Alarm via Email

Post by pz1 »

Try the LogicalRule app
icebrian
Posts: 18
Joined: 27 Feb 2013 02:54

Re: Front Door Sensor Alarm via Email

Post by icebrian »

Thank you!
icebrian
Posts: 18
Joined: 27 Feb 2013 02:54

Re: Front Door Sensor Alarm via Email

Post by icebrian »

So i've been playing arround with LogicalRule app, indeed very interesting and powerfull.

I created a Dummy Switch to represent "Armed" state of my house, I in turn create a "Email ME" app that send out an e-mail alert, finally I used the LogicalRule app to create the following rule:

IF "Alarm" = ON && "Door Sensor" = "ON" THEN "send email via scene"

Now, everything works just fine. If alarm is off then no e-mail is sent, however, when alarm is on, I do receive the e-mail notification but I receive it up to 5 times (the same e-mail with miliseconds separtion).

I can't seem to understand why this might be happening.

Any ideas?
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Front Door Sensor Alarm via Email

Post by pz1 »

Wild guess: Maybe some "flutter" in the door sensor? You could install the Counter App and count how many triggers are sent by the door sensor
klaasjoerg
Posts: 126
Joined: 30 Sep 2016 23:49

Re: Front Door Sensor Alarm via Email

Post by klaasjoerg »

I have this issue of doubled sometimes triple'd alerts/events too.
(not always but very often thoug).
The log also shows then, on-off-on-off happens (for this no counter is really needed).

I am wondering if there is some kind of debouncing possible?
e.g. trigger only 1 event within 1 second or so...?
maros
Posts: 103
Joined: 05 Apr 2014 11:21

Re: Front Door Sensor Alarm via Email

Post by maros »

Why don't you us the Security Mode or Security Zone+Event Watcher modules? They were made specifically for these kinds of setups and usually filter out multiple consecutive alerts.
Z-Way 2.2.4 on Raspi B | My Zway GitHub repos | Amazon Wishlist to support module development
Post Reply