flemingmike Posted March 20, 2012 Share Posted March 20, 2012 does this make sense? If ( Control 'Other / Krista's Keypad - G' is switched On Or Control 'Other / Mike's Keypad - G' is switched On ) And From Sunset + 1 minute To 10:30:00PM (same day) Then Run Program 'G - All Off Night' (Then Path) Else Run Program 'G - All Off Day' (Then Path) Link to comment
flemingmike Posted March 20, 2012 Author Share Posted March 20, 2012 i feel like this will run the "all off day" alot. Link to comment
LeeG Posted March 20, 2012 Share Posted March 20, 2012 The Else will run at 10 PM and when either of the two KPL buttons are pressed On and not within the time range. If that is not the desired result put the Else Action statement in another Program that triggers specifically at 10 PM. Link to comment
flemingmike Posted March 20, 2012 Author Share Posted March 20, 2012 what i want to accomplish is if mike or kristas keypad g is pressed between sunset and 10:30pm i want the all off night program to run. if mike or kristas keypad g is pressed any other time i want the all off day program to run. Link to comment
LeeG Posted March 20, 2012 Share Posted March 20, 2012 "what i want to accomplish is if mike or kristas keypad g is pressed between sunset and 10:30pm i want the all off night program to run. if mike or kristas keypad g is pressed any other time i want the all off day program to run." That is what I would expect to happen. Is that not what is happening? Link to comment
flemingmike Posted March 20, 2012 Author Share Posted March 20, 2012 it seems to run the else at sunset and 10:30. let me verify tonight that nothing else could be triggering it and i will update tomorrow. Link to comment
LeeG Posted March 20, 2012 Share Posted March 20, 2012 That is correct. A Schedule From/To causes the Program to trigger at the From time and the To time. The clause that runs is determined by the True/False of the If conditions. If that is not what is needed put the Else logic in another Program in the Then clause with positive (True) is conditioning. Link to comment
apostolakisl Posted March 20, 2012 Share Posted March 20, 2012 Try these two programs If ( Control 'Other / Krista's Keypad - G' is switched On Or Control 'Other / Mike's Keypad - G' is switched On ) And From Sunset + 1 minute To 10:30:00PM (same day) Then Run Program 'G - All Off Night' (Then Path) Else - -blank If ( Control 'Other / Krista's Keypad - G' is switched On Or Control 'Other / Mike's Keypad - G' is switched On ) And From 10:30:01PM To Sunset + 59 seconds (next day) Then Run Program 'G - All Off Day(Then Path) Else - -blank Link to comment
oberkc Posted March 21, 2012 Share Posted March 21, 2012 I think I, too, would break this into two programs: If Control 'Other / Krista's Keypad - G' is switched On Or Control 'Other / Mike's Keypad - G' is switched On Then Run Program 'time' (if Path) Else time program If Time is from Sunset To 10:30:00PM (same day) Then Run Program 'G - All Off Night' (Then Path) Else Run Program 'G - All Off Day' (Then Path) The time program must be disabled. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.