Creating an email alert for garage door open more than xx

Posted on
Mon Jun 19, 2017 3:01 pm
qcvictor offline
Posts: 80
Joined: Apr 23, 2015
Location: Quebec, Canada

Creating an email alert for garage door open more than xx

Hi Guys
I'm looking for get one script like in the wiki http://wiki.indigodomo.com/doku.php?id=iolinc_garage_door_alert working with DSC alarm plugin for get an alert by mail or prowl if garage door stay open for more than xx minutes?
In the wiki the script look like that :
Code: Select all
dev = indigo.devices[IOLINCID] # "IO Linc"
if not dev.states["binaryInput1"]:
    indigo.server.sendEmailTo("ADDRESSHERE", subject="The garage door is OPEN!!")

No need to explain you I'm a noob in phyton script :)

Posted on
Fri Jun 23, 2017 6:38 pm
Monstergerm offline
Posts: 274
Joined: Sep 01, 2009

Re: Creating an email alert for garage door open more than x

Not quite sure I understand what you want to accomplish. If your garage door is a DSC zone, you need no special script to be notified if it has been open too long.

Create a trigger event for "Device state changed". Select the garage door. Select "Last Changed Timer (mins.) Changed. Select "Becomes Greater Than x minutes.

As Action you specify whatever you want, e.g. Notification Action to Send email.

Posted on
Sun Jun 25, 2017 12:10 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Creating an email alert for garage door open more than x

Well you learn something new every day - I never knew that option was there!

I was helping victor on this in the Insteon thread but didn't know that state timer existed or I'd have mentioned it; it will help some of my scripts as well!


Sent from my iPhone using Tapatalk Pro

Posted on
Sun Jun 25, 2017 12:22 pm
jay (support) offline
Site Admin
User avatar
Posts: 18185
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Creating an email alert for garage door open more than x

I think that's a DSC-specific state.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Jun 29, 2017 3:25 pm
qcvictor offline
Posts: 80
Joined: Apr 23, 2015
Location: Quebec, Canada

Re: Creating an email alert for garage door open more than x

Awesome, Exactly what a I'm looking for ! however he sent notification even if sensor is come back at initial state !
Something is missing ?
Code: Select all
29 juin 2017 17:17:43
   DSC Alarm                       Alarm Zone 'Door Garage-House' Opened.
   
29 juin 2017 17:19:05
   DSC Alarm                       Alarm Zone 'Door Garage-House' Closed.
29 juin 2017 17:23:03
   Trigger                         Door garage Trigger Test

Posted on
Thu Jun 29, 2017 3:47 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Creating an email alert for garage door open more than x

Add a condition to the trigger.

Something like Zone status = Open.

Then it will trigger when the timer status is > 5 minutes but only if it's currently open.


Sent from my iPhone using Tapatalk Pro

Posted on
Thu Jun 29, 2017 3:57 pm
Monstergerm offline
Posts: 274
Joined: Sep 01, 2009

Re: Creating an email alert for garage door open more than x

Yes, as howartp is explaining. This will fix it.
Condition: if device 'Garage Door' 'State is Open' 'is true'

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests