| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | Newbie help A.J. Griglak Mon, 10 Jan 2000 21:23:02 -0500 |
OK, I've been a casual lurker for like a year, and just finally moved into my new house and fired up ECS for the first time. I've read through all the help files and the web site, and I still struggled to get my items and events working properly. For my first event, I would like to hit a X-10 button (A-7) after I climb into bed and have the bedroom light (controlled from a wall switch 2031) dim 10% less every 2 minutes, till it hits like 12%. Then, at 80 minutes, have the light dim to 0%, so that if I'm still awake and watching TV, I could hit any X-10 button to reduce the sleep timer by 30 minutes. When 90 minutes is reached, the light is switched off, the TV is switched off, and all lights in the house are switched off. The event that I've programmed isn't quite working like that, and I would like a little help in refining it. I've included a Asleep flag for future use - I would like to have a motion detector on the way to the kitchen to light the fridge raids at midnight (only if the asleep flag is true) Here is what I've got - after like a week of tweaking ;-) I can't seem to get the lamp dimming every 2 minutes like I wanted, so I just set one dim to 24%. It also isn't too accurate - I set the dim to 24%, and it goes to 0% - not sure why. I included the "Bedroom Lights Set On" because I've noticed that ECS isn't aware when the 2031 is manually turned on. Also, the All Lights Off isn't working correctly - not sure why. I used the BeginIf/EndIf because without them, I would get Transmission overload errors. If I could get a push in the right direction, I think I would be able to handle the other stuff I wish to accomplish. Thanks in advance!! -=A.J. |Event: Sleep Called ?:No | BEGINIF A-Button Is Now 7/Off | Then Sleep Timer Set Start | Do Bedroom Lights Set On | Do Asleep Set True | ENDIF | | BEGINIF Sleep Timer Is Now 2 | Do Bedroom Lights Set 24% | ENDIF | | BEGINIF Sleep Timer Is Now 80 | Do Bedroom Lights Set 0% | ENDIF | | BEGINIF Sleep Timer Is GT Now 90 | Do Bedroom TV Set Off | Do Bedroom Lights Set Off | Do Sleep Timer Set Stop | Do Sleep Timer Set 0 | Do PLC-Command A Set All Lights Off | Do PLC-Command B Set All Lights Off | ENDIF | | BEGINIF Sleep Timer Is GT 60 | And Sign of Life Is Now True | Do Sleep Timer Subtract 30 | Do Bedroom Lights Set 24% | ENDIF | |