ArunGupta2014 Posted December 28, 2014 Posted December 28, 2014 I have just purchased a ISY994i/IR PRO + 2413S PLM. Needless to say, I am impressed with the capabilities of the system. As I am learning to create programs, I have a question: I want to program an outside light to turn on at 3:00 AM and turn off at 30 minutes before sunrise but only between 11/1 and 3/31 of every year. How would I do this? Thanks, Arun
oberkc Posted December 28, 2014 Posted December 28, 2014 The ISY, to my knowledge, remains without this native capability. One of the crazy-good members has written a program using variables to keep track of such things. I understand it is on the wiki.
rrathke Posted December 28, 2014 Posted December 28, 2014 Here is a link that has the code, I have been using it quite successfully http://wiki.universal-devices.com/index.php?title=ISY-99i_Generic_Calendar_Using_Programs_and_Variables It's a little bit of a pain to set up but works great.
apostolakisl Posted December 28, 2014 Posted December 28, 2014 I wrote a second set of programs that uses simpler logic. See the link below. http://forum.universal-devices.com/topic/13750-i-wrote-a-new-date-variable-program/ For you, you would have an if clause that was something like If $i.month > 10 or $i.month < 4 Then do whatever.
ArunGupta2014 Posted December 30, 2014 Author Posted December 30, 2014 Thanks,..I will surely give this a try. Does ISY support nested IF...THEN statements? If yes, then what is the level of nesting? IF something IF...THEN...ELSE THEN something ELSE whatever
paulbates Posted December 30, 2014 Posted December 30, 2014 Arun Nesting is not supported. A layer of thinner programs and variables is needed to achieve that goal Paul
apostolakisl Posted December 30, 2014 Posted December 30, 2014 (edited) Thanks,..I will surely give this a try. Does ISY support nested IF...THEN statements? If yes, then what is the level of nesting? IF something IF...THEN...ELSE THEN something ELSE whatever "Nesting" is done more or less like this If something Then Run program 2 (if) perhaps other stuff Else something Program 2 (disabled) If whatever Then whatever Else whatever Edited December 30, 2014 by apostolakisl
Recommended Posts