Garage Door Open after "x" time script - help needed

Posted on
Thu Feb 02, 2017 7:33 am
guitarfreak offline
Posts: 19
Joined: Jan 17, 2017

Garage Door Open after "x" time script - help needed

I'm VERY new to scripting and just trying to figure it out as I go. I followed the topic on creating a script to send me an e-mail and text if the garage door is open after "x" amount of time. However, the script is sending the notification regardless of if the door is open or not, so I'm sure I messed something up, but I'm not sure what?

I am using the newer version of the i/o linc and from the screenshot of the device, you can see it does show binary input 1 as "closed" when the door is closed.

Screenshots attached.

Thanks in advance for the help, I'm sure this will be a quick fix for someone else.
Attachments
Screenshot 2017-02-02 07.32.03.png
Screenshot 2017-02-02 07.32.03.png (180.32 KiB) Viewed 1571 times
Screenshot 2017-02-02 07.28.17.png
Screenshot 2017-02-02 07.28.17.png (66.53 KiB) Viewed 1571 times
Screenshot 2017-02-02 07.21.41.png
Screenshot 2017-02-02 07.21.41.png (116.32 KiB) Viewed 1571 times

Posted on
Thu Feb 02, 2017 4:33 pm
rycardo offline
Posts: 53
Joined: Jul 10, 2015

Re: Garage Door Open after "x" time script - help needed

Can you do it without scripting? Add delayed actions that sends your alerts, but then when the door closes, create a trigger that cancels the delayed actions. It's in action menu somewhere, I'm away from home so can't say for what.


Sent from my iPad using Tapatalk

Posted on
Fri Feb 03, 2017 6:51 am
guitarfreak offline
Posts: 19
Joined: Jan 17, 2017

Re: Garage Door Open after "x" time script - help needed

That's a good idea and simpler than what I'm doing! I'll try it

Posted on
Fri Feb 03, 2017 1:02 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Garage Door Open after "x" time script - help needed

Or you could start a timer when it goes up, then check if it's down in the timer action.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Jun 02, 2017 7:03 pm
mikeL offline
Posts: 46
Joined: Apr 30, 2010
Location: Gatineau, QC

Re: Garage Door Open after "x" time script - help needed

There's an error in your python script. The line containing the function indigo.server.sendEmailTo() needs to be indented (tabbed) to make it part of the proceeding if statement. Otherwise, as you noted, email will always be sent.


Sent from my iPad using Tapatalk

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests