Piston to use Garage Door and contact sensor to set virtual switch


#1

1) Give a description of the problem
I’m trying to figure out a better way to set the away/home mode. My wife’s presence sensor of her phone doesn’t seem to work for more than about a day, and while mine is more reliable, it’s not the best.

2) What is the expected behavior?
What I want to happen is for if the Garage door changes to active, then the contact sensor changes to open (or away from closed) I want the virtual switch to turn on.

3) What is happening/not happening?
The switch is not being triggered. I think the issue is I want the garage door acceleration to change first, then the contact sensor change to open. Not sure how to make that happen in the right sequence.

**4) Post a Green Snapshot of the piston


#2

You’re on the right track. Both triggers in your piston aren’t going to be true at the same time.

Click on the ‘and’ in your If statement and change it to ‘followed by’. You can adjust the timing to suit your preferences.


#3

This is exactly what I was looking for, just didn’t know how to do it. This will help me do the arriving home one I’m planning to do next. Question is when I try to click on followed within 1 minute by line all it gives me the ability to change is logical operator, not the time frame. Is there something special you have to do, or do I just have fat fingers and can’t manage to do this right. Thank you for your help, I’m slowing learning my way around Webcore.


#4

Click on the second condition (for the Garage Door Contact). It’s not exactly intuitive, but you can adjust the time there.


#5

Thank you so much! Now I just need to figure out how to use to to determine if it’s just the wife and kid that leave, or if we all leave. Presence sensors have been less than reliable. Will probably need to set a variable if something happens M-F to Wifeisgone, then if this happens and wifeisgone set house to away. Hmm, I have a lot to think about, but many thanks again.


#6

That’s unfortunate. Presence sensors are a vital ingredient in many of my pistons. The ST and webCoRE sensors mostly worked well enough for me, but I eventually switched to Tasker to gain a little more accuracy and control. Some people swear by Life360, but I haven’t tried it.