How to check for a door sensor that is open every 15 minutre

Posted on
Sat Apr 09, 2016 10:55 pm
dz1rfj offline
Posts: 136
Joined: Mar 13, 2016

How to check for a door sensor that is open every 15 minutre

HI,

As I learn more about how flexible Indigo is, I am looking for an example / help with a python script that will tell me every 15 minutes if a door sensor is open. It is a standard schlage zwave door sensor

dev = indigo.devices[1452712856] # "AtticDoor"


Thanks all!

Thanks
-Brian

Posted on
Sun Apr 10, 2016 1:46 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: How to check for a door sensor that is open every 15 min

Do you mean every 15 minutes (00:00, 00:15, 00:30, 00:45 etc), or 15 minutes since it was opened?

The former, you can do with a schedule. Every 15 minutes, condition=door is open, do something.

The latter 3 triggers and a timer:

Trigger on door-open, start timer.
Trigger on door-close, stop trigger.
Trigger on timer expired, do something.


Sent from my iPhone using Tapatalk

Posted on
Sun Apr 10, 2016 4:40 am
DaveL17 offline
User avatar
Posts: 6756
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: How to check for a door sensor that is open every 15 min

Yes, a bit more detail on what you're trying to do would be helpful. It might just require having Indigo run a short script on a regular schedule. What do you want to do with the information after you've tested the state of the door?

Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests