EricK Posted May 18, 2015 Posted May 18, 2015 I had a program to turn the ceiling fans off in my children's rooms at about 830am daily. However, my son is turning his fan on during the day so I want a timer to turn it off after one hour. Should I have separate programs for this or one program: If Time is 7:29:39AM And ( From 8:29:50AM To 6:30:00PM (same day) And Status 'Children's Rooms / Asher's Room / Asher's Fan' is On ) Then Wait 1 hour Set Scene 'Children's Rooms / Asher's Room / Asher's Fan' Off Else - No Actions - (To add one, press 'Action') Thanks, Eric Quote
LeeG Posted May 18, 2015 Posted May 18, 2015 That Program cannot work as the If will never be True. The initial Time is outside the From/To range. Quote
stusviews Posted May 18, 2015 Posted May 18, 2015 The program won't run at all because at 7:29:35AM it won't ever be be between 8:29:50AM and 6:30:00PM. Quote
LeeG Posted May 19, 2015 Posted May 19, 2015 (edited) I think you want something like this ... FanOff - [iD 008F][Parent 0001] If ( Time is 7:29:39AM Or From 8:29:50AM To 6:30:00PM (same day) ) And Status 'Children's Rooms / Asher's Room / Asher's Fan' is On Then Wait 1 hour Set Scene 'Children's Rooms / Asher's Room / Asher's Fan' Off Else - No Actions - (To add one, press 'Action') This ORs the times along with ANDing the Fan On Edited May 19, 2015 by LeeG Quote
larryllix Posted May 19, 2015 Posted May 19, 2015 I had a program to turn the ceiling fans off in my children's rooms at about 830am daily. However, my son is turning his fan on during the day so I want a timer to turn it off after one hour. Should I have separate programs for this or one program: If Time is 7:29:39AM And ( From 8:29:50AM To 6:30:00PM (same day) And Status 'Children's Rooms / Asher's Room / Asher's Fan' is On ) Then Wait 1 hour Set Scene 'Children's Rooms / Asher's Room / Asher's Fan' Off Else - No Actions - (To add one, press 'Action') Thanks, Eric How is your son turning the fan on manually? Quote
EricK Posted May 19, 2015 Author Posted May 19, 2015 Larry, the fan is controlled by a switch linc. Lee and Stu, I did mess up the program when I rewrote it. What i should have posted is this: If Time is 7:29:39AM Or ( From 8:29:50AM To 6:30:10PM (same day) And Status 'Children's Rooms / Asher's Room / Asher's Fan' is On ) Then Wait 1 hour Set Scene 'Children's Rooms / Asher's Room / Asher's Fan' Off Else - No Actions - (To add one, press 'Action') This way the fan will be turned off at about 830am, or one hour after it is turned on manually in the time range. I think Lees program does the same thing but is better in that if for some reason the fan is not on at 730am, the program is false and the scene off command is not sent out. Thanks, Eric Quote
larryllix Posted May 19, 2015 Posted May 19, 2015 I like to do this with two programs. The first is automatic and cycles your fan based on times etc, The second program is triggered manually by the SwitchLinc On and Off with a backup timeout if SwitchLinc is switched on AND SwitchLinc is not turned off then disable auto_fan program turn fan on wait x hours run (else) this program else set fan off enable auto_fan program Quote
EricK Posted May 19, 2015 Author Posted May 19, 2015 Larry, my issue with your method is that I do not turn the fan on by a schedule or program, only off. In the evening if and when the fan is turned on it is by local control. Remarkable how everything in the house somehow can get turned on manually, just not off. Quote
G W Posted May 19, 2015 Posted May 19, 2015 Larry, my issue with your method is that I do not turn the fan on by a schedule or program, only off. In the evening if and when the fan is turned on it is by local control. Remarkable how everything in the house somehow can get turned on manually, just not off.I have a similar problem. My kids can open but cannot close. Doors, windows, blinds, curtains etc. Quote
larryllix Posted May 19, 2015 Posted May 19, 2015 (edited) Larry, my issue with your method is that I do not turn the fan on by a schedule or program, only off. In the evening if and when the fan is turned on it is by local control. Remarkable how everything in the house somehow can get turned on manually, just not off. hmmmm...missed that... You could make an auto-fan dummy program (for future usage) or just eliminate the disable/enable lines. My problem is guests that turn off lamps at the lamp then the automations won't work. Years back I heard my teenagers tell their guests, "if you didn't turn it n then leave it alone" Edited May 19, 2015 by larryllix Quote
stusviews Posted May 19, 2015 Posted May 19, 2015 hmmmm...missed that... You could make an auto-fan dummy program (for future usage) or just eliminate the disable/enable lines. My problem is guests that turn off lamps at the lamp then the automations won't work. Years back I heard my teenagers tell their guests, "if you didn't turn it n then leave it alone" I removed or bypassed any and every lamp switch. Every seating location has a TableTop enclosure within reach. Every button is labelled. So are the buttons on all of our remotes (AV, HA) and phones and keyboards. Well, we do have a few unlabeled macros on our One-For-All remotes Quote
stusviews Posted May 19, 2015 Posted May 19, 2015 I have a similar problem. My kids can open but cannot close. Doors, windows, blinds, curtains etc. There is no known solution for kids. When kid age, the problem persists or doesn't. A partial solution is to attack the result, not the cause, for example, using sensors. It's not a full solution unless you have motorized doors, windows and window coverings, but you'll be aware. Quote
LeeG Posted May 19, 2015 Posted May 19, 2015 I copied the Then/Else sections of your Program to maintain your device names but in the process lost the Else section of my suggestion. The Else clause requires an Off to catch the case where the Fan is turned On say 30 minutes before the To time. This drives the Else clause at the To time, missing the Off command in the Then clause. Then Wait 1 hour Set Scene 'Children's Rooms / Asher's Room / Asher's Fan' Off Else Set Scene 'Children's Rooms / Asher's Room / Asher's Fan' Off Quote
EricK Posted May 20, 2015 Author Posted May 20, 2015 Lee, I may have to adjust my times a little, but if the fan is turned on in the evening then it likely needs to stay on until the morning. So I am not sure I need the else. Quote
disker Posted December 6, 2016 Posted December 6, 2016 I know this is an old thread but I think I have a solution to your dilemma. I control my shower vent fan with an Insteon switch and have programs that will act as a timer. Each press on adds 5 minutes to the on time and a fast-on turns it on without a timer. With some slight modification you can probably get them to work for your fan. PRG: Vent Fan If Control 'Fan' is switched On And Control 'Fan' is not switched Fast On Then $_Fan +=1 Run Program 'Vent Fan Intercept' (If) PRG: Vent Fan Clear If Control 'Fan' is switched Off Or Control 'Fan' is switched Fast Off Then $_Fan = 0 $_Fan Timer = 0 PRG: Vent Fan Countdown If $_Fan < 1 Then $_Fan_Timer = 0 Set 'Fan' Off $_Fan = 0 Else wait 5 minutes $_Fan -= 1 Run Program 'Vent Fan Countdown' (If) PRG: Vent Fan Intercept If $_Fan_Timer < 1 Then $_Fan_Timer = 1 Run Program 'Vent Fan Countdown' (If) I believe to use this for your intentions you can add your check for the current time into PRG: Vent Fan to have this only work during the times you specified, change the 5 minutes in the Else section of PRG: Vent Fan Countdown to 1 hour and if you didn't want to be able to add an hour then change the variable assignment in the Then section of PRG: Vent Fan to $_Fan = 1. If you do decide to remove the incremental part of the timer you can probably streamline it further, but this will get you started. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.