saflight Posted November 12, 2011 Posted November 12, 2011 I have created 3 programs to control a light (Brass BR lamp) under 3 situations: (1) At sunset +1hr 20 min turn on if other test lights are all off. (This program works fine) (2) At anytime during a time period of sunset +1hr 20 min to +2 hr 22 min same day, turn off Brass BR Lamp if either of 2 lights are on. At this point I want the Brass BR lamp to stay off regardless of the condition of either 2 test lights. This program does not work as the Brass BR lamp always remains on. (3) Turn off Brass BR lamp at sunset +2hr 23 min. This program works. Can anyone find the error in program #2? Program #1 If Time is Sunset + 1 hour and 20 minutes And Status 'Brass Br Lamp' is Off And Status 'Fam Rm Table' is Off And Status 'Kitchen Ceiling Keypad - A' is Off And Status 'Retreat' is Off Then Set Scene 'Brass Bedroom Lamp' On Run Program '2 Brass "Rm early off' (If) Else - No Actions - (To add one, press 'Action') Program #2 If From Sunset + 1 hour and 20 minutes To Sunset + 2 hours and 22 minutes (same day) And Status 'Kitchen Ceiling Keypad - A' is On Or Status 'Fam Rm Table' is On Then Set Scene 'Brass Bedroom Lamp' Off Else - No Actions - (To add one, press 'Action') Program #3 If Time is Sunset + 2 hours and 23 minutes Then Set Scene 'Brass Bedroom Lamp' Off Else - No Actions - (To add one, press 'Action')
apostolakisl Posted November 12, 2011 Posted November 12, 2011 I don't fully understand what it is you want. But one error I see for sure is that program 2 needs a set of parenthesis. If From Sunset + 1 hour and 20 minutes To Sunset + 2 hours and 22 minutes (same day) And ( Status 'Kitchen Ceiling Keypad - A' is On Or Status 'Fam Rm Table' is On )
saflight Posted November 13, 2011 Author Posted November 13, 2011 Thanks for looking at my program. I will try to explain my intent with Program #2. Assuming that the Brass BR light has been turned on in Program #1, I want this same light to turn off (and stay off) if either the Kitchen Ceiling or Family Room Table lamp is turned on during the interval of sunset +1 hr 20 min - 2 hr 22 min. (same day). Right now the Brass BR light will not turn off under Program #2. It will turn off under Program #3 which is a schedule specific event. I did enter the () you mentioned but it did not resolve the execution issue. Any insight is appreciated.
oberkc Posted November 13, 2011 Posted November 13, 2011 I fail to see why your second program (including parentheses) does not work. Have you confirmed that the isy is seeing the correct status for the various devices? Check to see when the second program was last run...what is the current program status (true or false)? Given that your first program is triggered by many of the same variables as the second, is it possible that they are conflicting with each other?
apostolakisl Posted November 13, 2011 Posted November 13, 2011 You may be having some conflicts. Your program 1 and program 2 share many of the same triggers and could be in conflict with one another. As an experiment, try disabling program 1 at some point during that time period after sunset and then turn on that keypad or lamp listed in the program. I suspect the program will work (must have those parenthesis properly placed). Assuming it does, this points to program 1 as being in conflict.
saflight Posted November 14, 2011 Author Posted November 14, 2011 I tried your suggestion(s) of adding the () and disabling Program #1 during the time period. The Brass BR lamp will not turn off when either of the test lights in Program #2 are turned on. Program #2 was run on time and shows a status of "false". It did not change after I ran the test mentioned in the last sentence. I also tried one other thing. I changed the schedule in Program 2 to run from sunset +1 hr 21 min to sunset +2hr 22 min. I delayed this program start by 1 min in order to separate the schedule event in Program #1 from the start of Program #2. No change in results. I did the test you suggested on this altered program as well. Any other suggestions are appreciated.
apostolakisl Posted November 14, 2011 Posted November 14, 2011 Please copy and paste the actual program from ISY. In the program details screen, right click on the program in the three on the left and hit "copy to clipboard". Then paste it to the forum. The program should be true any time it is triggered between those time slots by turning on either of those two lights. The other possibility is that you are not turning those things "on" but rather have them at some percentage of on. You could try changing the language to "not off" instead of "on". If From Sunset + 1 hour and 20 minutes To Sunset + 2 hours and 22 minutes (same day) And ( Status 'Kitchen Ceiling Keypad - A' is not off Or Status 'Fam Rm Table' is not off )
saflight Posted November 14, 2011 Author Posted November 14, 2011 You found the issue. Each test light in Program #2 was set to turn on at less than 100%. Changing the program to "is not off" resolved the issue. Thanks a ton for your thoughts and solution.
Paopao021 Posted November 14, 2011 Posted November 14, 2011 thanks for the sugesstion.. its very useful to me! _____________ Torchwood dvd
oberkc Posted November 14, 2011 Posted November 14, 2011 The other possibility is that you are not turning those things "on" but rather have them at some percentage of on. You could try changing the language to "not off" instead of "on". Wow! I am not that would have ever occured to me without further details from the OP. Impressive! Are you one of those that can guess wheel-of-fortune puzzles with 90% of the letters missing?
Recommended Posts