junkycosmos Posted June 23, 2010 Posted June 23, 2010 Hi All, I have this program in a folder with no conditions. If Status 'JOffice.H' is On And Control 'Sensors / MasterBath-Sensor' is switched On Then Send Notification to 'All' Else - No Actions - (To add one, press 'Action') my requirements : When JOffice.H button is "on" and motion is seen by sensor in bathroom send notification to all. Reason I did not want to use "status" for motion is on occasion I have had ISY not see "off" of motion sensors (sensor stuck on) and I wanted repeat of the notifications when the sensor timed out and resent an 'on' signal. Result is that my requirements are fully met; if JOffice.H is on and motion sensor sees motion ISY sends notifications and if JOffice.H is off it does not. However here is my question. Every time my motion sensor sends and "On" signal I noticed my program above list the current time in both "last run time " and "last finish time" (both exact same second) Is one condition of a two part IF statement being true enough to trigger full evaluation program, or enough so that it is logged in the last run time and last finish time ? Do I have something mixed up in my IF statement ? thanks J
Sub-Routine Posted June 23, 2010 Posted June 23, 2010 Hi J, Your program is fine. Whenever ANY of the Conditions change the program is evaluated.You will see that it runs when you change the state of the KPL button as well as when the MotionSensor changes. If your folder had the Condition of the KPL button the program would only run when the folder was True. But it will work fine the way you have it. Rand
Recommended Posts