Help with a piston


#1

1) Give a description of the problem
What I would like to do is get a notification if a door does not open between two times.

2) What is the expected behavior?
The expected behavior would be that if a contact sensor does not change between two times, say 6-7am, I would like to get a notification

3) What is happening/not happening?
I’m not sure if it’s lack of sleep, work stress or something, but I can’t get past the first condition. Thanks


#2

share a green snapshot of the piston.


#3


I’m stuck at the then statement. I want a notification sent to my phone, but either I can’t do that, or I’m just not seeing it. Thanks


#4

Click “+ a new statement” below “then”, select “Add an Action”. For your device, leave it as “Location” and click the Add Task button. Scroll down the list to Send SMS message and you’re golden.


#5

Ok, I got this piston to work, but it’s not working like I expected it. So my intent was if my pantry door isn’t opened by 7am to get a notification to feed the dog. I received the notification about 9am instead of at 7am.

Any help would be appreciated.


#6

Maybe try If time is between 6:00 and 7:00 and contact sensor does not change.


#7

So Something like this?


The part that I get confused on is what do I set the Contact did not change in the last XX? Ideally I would like to get the notification at 7 if the door has not been opened in the last hour? Would I set the Contact did not change in the last 60 minutes? Thank you


#8

Yes, if you change it to “did not change in the last 60 minutes” you’ll have it the way you want.

Then change the time trigger to only 7am, not 6:30 to 7am. You only want it to trigger at 7, check the door status history and message you if the door hasn’t been opened in the past 60 minutes.

Hope that works for you!


#9

Yeah, so…

IF Time is 7:00 am
and
Contact Sensor did not change in the last 60 minutes
Then
Send Push Notification


#10

Awesome, thank you both. I’ll give it a shot.


#11

Let us know if it works!


#12

I do believe it is working as intended. I have one for the morning and evening and they both fired correctly today. Thanks again for the help.