captain118 Posted March 9, 2012 Posted March 9, 2012 I have looked through the code for notifications and I dont see an option for sending a notification when the status changes. Is there one?
LeeG Posted March 9, 2012 Posted March 9, 2012 An ISY Program is necessary to accomplish that. If Status xxxx is On Or Status xxxx is Off will trigger an ISY Program when the Status changes. The Program issues the Notify.
captain118 Posted March 9, 2012 Author Posted March 9, 2012 Thanks that makes since. I should have tested that. I imaged it would send me notifications of the status every time a query was made.
LeeG Posted March 9, 2012 Posted March 9, 2012 The "If Status" requires a change in the status value to trigger the Program. The Then or Else clause will run depending on whether the If evaluates to True or False.
captain118 Posted March 9, 2012 Author Posted March 9, 2012 How does the on schedule duration work? Does it check the status every few seconds?
LeeG Posted March 9, 2012 Posted March 9, 2012 Not sure of the function you are referring to. The ISY is event driven. It does not check status of anything every few seconds.
captain118 Posted March 9, 2012 Author Posted March 9, 2012 In your program you can have a schedule. Your schedule can have a duration. I was trying to set my living room lamp for if its during the day: Schedule From 8am For 10 hours And Motion Sensor is off (no movement I think) then Set Light Of Else Set Light On I was curious as to how the schedule worked. Is it a schedule for when the program is enabled?
LeeG Posted March 9, 2012 Posted March 9, 2012 Thanks for the additional information. The Program is triggered once at 8 AM, once 10 hours later at 6 PM, and between 8 AM and 6 PM once for each change in motion sensor status (using If Status) or once for each Insteon command received that matches the command code using If Control. Always event driven either from a time event or a device event in this example. There are other events such as a change in value of a State variable for example that can trigger Programs. When the Program is triggered either the Then clause or the Else clause will run depending on how the If evaluates at the time the Program is triggered. When the If is True the Then clause runs, when the If is False the Else clause runs.
captain118 Posted March 9, 2012 Author Posted March 9, 2012 Ok that makes since thanks for the info now back to coding fun!!!
Recommended Posts