brianp6621 Posted July 26, 2015 Posted July 26, 2015 I have a new motion sensor on the front porch connected to the light. It is set to occupancy mode and On only. What I want is if all of us are away, and the motion sensor is tripped, I want a notifcation every minute. I have everything except for the alert working like I want. How do I get it to alert me on the first trip and the wait a minute and then alert me again if there is still motion?
stusviews Posted July 26, 2015 Posted July 26, 2015 Program 1If Control 'Motion Sensor' is switched On Then Send Notification to 'me' Run Program 'Program 2' (Then Path) Else - No Actions - (To add one, press 'Action') Program 2 If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Disable Program 'Program 1' Wait 1 minute Enable Program 'Program 1' Else - No Actions - (To add one, press 'Action')
brianp6621 Posted July 26, 2015 Author Posted July 26, 2015 Duh, I tried doing exactly like that but all within the same program. I don't remember why it didn't work. What prevents this from being all one program. If a program command disables the program itself, does the program continue to run?
stusviews Posted July 27, 2015 Posted July 27, 2015 If a program is disabled, then it ceases to run until such time as another program enables if or if it's manually enabled.
brianp6621 Posted July 27, 2015 Author Posted July 27, 2015 So if a program disables itself and is still executing the then loop it can't later in the same then loop re-enable itself?
stusviews Posted July 27, 2015 Posted July 27, 2015 The program is disabled as soon as the disabling statement is executed.
larryllix Posted July 27, 2015 Posted July 27, 2015 The program is disabled as soon as the disabling statement is executed. The program is halted and disabled.
Guitartexan01 Posted July 27, 2015 Posted July 27, 2015 That explains much of my missing hair right there =:-l GT
Recommended Posts