Garage Door Open on Arrival to Home


#1

1) Give a description of the problem
Looking for feedback on this, not sure I have this right and I want to avoid the garage door opening when someone arrives somewhere other than home.

2) What is the expected behavior?
I only want the garage door to open when one of these phones running webcore arrive at home or get near home

3) What is happening/not happening?
I think it’s working but the notification is not right?

4) Post a Green Snapshot of the pistonimage

Any feedback is greatly appreciated.


#2

I would just use the “current place changes to home” condition and delete the others. With so many competing triggers occurring closely in time there’s a higher chance of something not working… And it being harder to debug.

Everything else looks good.


#3

I don’t have the WC presence sensor installed, so I can only ask questions for you to consider.

Does the “distance drops below” only refer to one place? What if “distance drops below” also triggers when you get near work? Is that a thing?

Do you have any issues with false positives? Or does your phone ever drop out in the middle of the day and think it’s away for 10 seconds and then think it has come back home again? I know mine does, so I have to write all my “just came home” pistons to account for that so they aren’t re-running every time my phone goes on hiatus.

The last two conditions seem redundant, or like you’re using both the ST an the WC presence sensors…


#4

@Mike1616 great questions. My goals are to create a reliable piston that opens each time. It’s been hit or miss for me and sometimes random so that is why I have those extra statements in there. I keep trying different things because I can’t seem to find a good enough reliable script already out there that anyone is using successfully to automatically open up their garage door when they arrive at home or get near their home.


#5

I think the problems obviously come from having to rely on presence sensors that are not very precise. Clearly that’s what you’re coding against too as you’ve got 4 possible ways for presence to be detected there.


#6

Yes, that is right. But I am also looking for validation because I am using webcore as a presence sensor and I have a few different locations setup like my kids school I want to make sure that this script won’t open the garage door when they arrive at school.


#7

Yeah, I agree with that concern. I don’t have it installed, but your first condition makes me think it might.

Maybe @Robin can weigh in on this one.


#8

Post a green snapshot please… not a manual screen snip… info is missing.


#9

Here you go. I am also not sure that this will notify me properly of who’s presence sensor opened the garage door.


#10

Your ‘not preset for 5 minutes’ and ‘changes to present’ are cancelling each other out.

Change the ‘not present for 5 minutes’ to an expression:

previousAge([Sensor Name : presence]) IS greater than 600000


#11

OK, I just deleted that statement asI don’t really need it. What about the notification? Will that be accurate and not report arrivals to other locations?


#12

Should be ok… you’ll just have to test it.

The 0.3mile distance part is fairly useless though… the webCoRE presence only updates distance every 500m travel or every 5 minutes (whichever occurs first)… so it’s unlikely to fire in time.


#13

Thanks - one more question if I may. Is there a way for me to log which of those if statements ends up making it fire and send that to a push alert?


#14

Try adding {$currentEventDevice} and {$currentEventAttribute} into the message text (including the brackets)