how to ignore second ON or OFF signal form sensors

Posted on
Fri Aug 09, 2013 9:34 pm
kw123 offline
User avatar
Posts: 8382
Joined: May 12, 2013
Location: Dallas, TX

how to ignore second ON or OFF signal form sensors

many devices send 2 "on" or "off" signals quickly after each other ~1-2 secs (motion sensors ...).
How do I best ignore the second signal?

I currently do the following:

create variable delayVariableX for each sensor X

1. in condition check if "delayVariableX" = false
2. in action set delayVariableX = true
3. do desired action
4. after xx seconds set delayVariableX = false

that ignores the second signal.

is there a better way to do this - without creating 20 variables for 20 sensors?


thx

Karl

Posted on
Sat Aug 10, 2013 12:53 am
berkinet offline
User avatar
Posts: 3297
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: how to ignore second ON or OFF signal form sensors

I have found that adding the following first action to a trigger works quite well:

Type: Disable Trigger (Enable/DisableActions)
Disable: <select the trigger action appears in>
then check Auto-enable after. I find 5 seconds works well.

Here is a screen shot...
ss.png
ss.png (84.42 KiB) Viewed 1251 times

You might want to adjust the time to suit your needs.

Posted on
Sat Aug 10, 2013 6:56 am
jay (support) offline
Site Admin
User avatar
Posts: 18255
Joined: Mar 19, 2008
Location: Austin, Texas

Re: how to ignore second ON or OFF signal form sensors

The most common approach is to use the Device State Changed trigger rather than the command received trigger - it generally accomplishes the same task but duplicates won't cause it to fire multiple times.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sat Aug 10, 2013 11:46 am
kw123 offline
User avatar
Posts: 8382
Joined: May 12, 2013
Location: Dallas, TX

Re: how to ignore second ON or OFF signal form sensors

thanks, that should settle my problem..

As for the alleyway door I need a 20 seconds window, otherwise the door will open again if another trigger comes if i want to close it. I guess I will be using the disable trigger for that one.

thanks for the help


Karl

Posted on
Sat Aug 10, 2013 1:00 pm
jay (support) offline
Site Admin
User avatar
Posts: 18255
Joined: Mar 19, 2008
Location: Austin, Texas

Re: how to ignore second ON or OFF signal form sensors

Not quite sure I'm following you, but the motion sensors allow you to set a delay after motion stops being detected before the device state turns off - not sure that will help your issue but I thought I'd mention it.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests