smokegrub Posted October 1, 2014 Posted October 1, 2014 I want to press a kpl button (g), wait 5 minutes and if a door sensor is on send a notification. It appears I need a second "if statement" and I can find no way to do that. If g is on Then wait 5 minutes ????? I have the notification process set up and can activate it w/o the wait step so I know that part of the process works. Thanks for your help.
stusviews Posted October 1, 2014 Posted October 1, 2014 If control g is on Then wait 5 minutes run program 2 diasabled program 2 (runs only if called from another program) If sense door sensor is on
EricK Posted October 1, 2014 Posted October 1, 2014 Why not If Control g is on And door sensor is on Then Wait 5 minutes Send notification Now if you want the program to trigger if the door sensor is turned on after G then my program will not work. you would need to use status is on for G.
oberkc Posted October 1, 2014 Posted October 1, 2014 Why notIf Control g is on And door sensor is on Then Wait 5 minutes Send notification Because this, in my mind, does not do what you are asking. You said you wanted a program that, for a period of five minutes after G is on, watch for a door sensor and, if triggered, send a notification (without mentioning the need for a delayed notification). Your program will trigger a notification (but the notification will not be sent until 5 minutes after the fact) anytime the door is triggered while G is ON (regardless of whether G has been on for less than five minutes. This may be what you want in your mind, but I believe Stusviews more accurately reflects what you asked for in your original post.
EricK Posted October 1, 2014 Posted October 1, 2014 Because this, in my mind, does not do what you are asking. You said you wanted a program that, for a period of five minutes after G is on, watch for a door sensor and, if triggered, send a notification (without mentioning the need for a delayed notification). Your program will trigger a notification (but the notification will not be sent until 5 minutes after the fact) anytime the door is triggered while G is ON (regardless of whether G has been on for less than five minutes. This may be what you want in your mind, but I believe Stusviews more accurately reflects what you asked for in your original post. Oberkc, I'm not the OP, just was throwing in my two cents. What he wrote was: "I want to press a kpl button (g), wait 5 minutes and if a door sensor is on send a notification" That is what the program I wrote does. He did not write "watch for a door sensor, and, if triggered." Another instance of the need for the OP to specify exactly what he wants. Eric
stusviews Posted October 1, 2014 Posted October 1, 2014 (edited) EricK, "I want to press a kpl button (g), wait 5 minutes and if a door sensor is on send a notification" Thus, if 5 minutes have elapsed after pressing the button and the sensor is on, then send the notification. That's not the same as "if both devices are on send a notification after 5 minutes has elapsed." “ I know you think you understand what you thought I said but I'm not sure you realize that what you heard is not what I meant” Edited October 1, 2014 by stusviews
oberkc Posted October 2, 2014 Posted October 2, 2014 Oberkc, I'm not the OP, just was throwing in my two cents. Sorry. I was in too much of a hurry. Perhaps when smokegrub returns, he can clarify which of us is confused.
smokegrub Posted October 2, 2014 Author Posted October 2, 2014 Stusviews: Your suggestion worked perfectly. Also, I learned a couple of things that will prove valiable in the future. !) Using a program within a program and 2) A program that is disabled will run when used in another program. My thanks to those of you who provide such tremendous help.
Recommended Posts