sideslope Posted December 20, 2013 Posted December 20, 2013 For some reason I can't get programming for my front porch to work. I have basically an if statement that says, "if time is between 5:00pm and 8:00am", and "outdoor module is off," turn it on. Else, turn it off. It shows running, light is always on (program never shuts it off). Any ideas on how to make something basic like this work? Thanks!
LeeG Posted December 20, 2013 Posted December 20, 2013 Right click on Program name, select Copy to Clipboard and post to forum. Using If Status as part of the IF may cause problems because when the device turns On the Status changes. No need for that in the If. Also the 8 AM is the (next day) which can be coded wrong.
apostolakisl Posted December 20, 2013 Posted December 20, 2013 In addition to what Lee said, it could be that the light is a noisy fluorescent or have some other noise producing transformer or whatever. The light turns on fine, but once on, the power line noise it generates may prevent the Insteon command from reaching its target and turning it off. A simple way to check this is to manually turn it on and off from the ISY main console. If that works fine, then it must be your program. For sure you don't need the line that says "if status is off". If it is already on, sending another "on" command does no harm.
Techman Posted December 20, 2013 Posted December 20, 2013 Make sure that the off time is 8:00am (next day)
MWareman Posted December 20, 2013 Posted December 20, 2013 For some reason I can't get programming for my front porch to work. I have basically an if statement that says, "if time is between 5:00pm and 8:00am", and "outdoor module is off," turn it on. Else, turn it off. It shows running, light is always on (program never shuts it off). Any ideas on how to make something basic like this work? Thanks! The other issue you have is you have "outdoor module is off," in the 'if' condition. This immediately becomes 'false' when the module is turned on by the 'Then' executing, causing the program to abort the 'if' and execute the 'else' - turning it right off again. Also, as others have said, make sure the 8pm says 'next day' as well. Michael.
sideslope Posted December 22, 2013 Author Posted December 22, 2013 The actual code is just like I mentioned: If From 5:00:00PM To 8:00:00AM (same day) Then Set 'Outdoors / Outdoor Module 1' On Else Set 'Outdoors / Outdoor Module 1' off That's the entire program. Also, the light does work from the ISY (manually turning it on and off). Thanks!
LeeG Posted December 22, 2013 Posted December 22, 2013 The To Time is incorrect. 8AM is (next day). If From 5:00:00PM To 8:00:00AM (next day)
sideslope Posted December 26, 2013 Author Posted December 26, 2013 Ah, I didn't see that there was a, "Next Day," option. I updated the program and see if it works tonight. Thanks!
Recommended Posts