I'm pretty new to EventGhost and I admit it's been a bit of a struggle trying to learn it from the forum posts. I'm an old programmer and I understand how tedious it is to write documentation! However, I've finished a little automation project with EG and thought that I'd submit it for all the other newbies to hopefully learn from. I suspect that my approach could certainly be made better by one of the EG pros, but hey, at least it's a start! I'm starting off with an X10 CM11A unit on the computer to hear and talk to my X10 devices. Before you start this, you should have some understanding of how to add macros, plugins, actions, etc. to the EventGhost system by reading the startup docs.
Basically, I have an X10 driveway sensor that rings a bell in the house when someone crosses the IR beam. What I wanted to do was to ALSO have my outside lights come on for a while so I could walk from the garage to the house with lights on. I started by creating a Folder called "Driveway Lights" and put two macros in it: one that would hear my driveway sensor (CM11A.D1.On) and simply turn the light on (CM11A:A2.On) and start a timer for 5 minutes, then another macro would watch the timer and turn the lights off (CM11A.A2.Off):
The Timer plugin is configured to generate the event "driveway-off" in 5 minutes. I was then able to drag that event to the second macro to trigger the A2:Off for the lights.
Then I decided that this should only happen when the sun was down. I chose to add the "SunTracker" plugin to the Autostart section of EG. I then configured it with my latitude and longitude and a checkbox that would automatically generate events at sunset/sunrise. I then added 2 more macros that would watch for these sunset/sunrise events, and then added Actions that would accordingly enable/disable my "LightsON" macro:
Notice the red "X" on the "Drive Lights ON" macro. Since it is now daytime, the "Disable..." line just above it is what caused this by disabling the macro.
This worked great, except that if I wanted to leave the lights on all night I would manually turn ON the lights with an "A2:on" command from my X10 controller. But if I left the house, I would leave the driveway and trigger the macros and the lights went OFF in 5 minutes! This was solved by adding another macro that would see the manual (A2:On) happen and then would disable the "Drive Lights OFF" macro. This would allow the lights to stay on all night if I wished. Then if I would manually turned the lights off, another macro that would see the (A2:Off) or (AllUnitsOff) happen and re-enabled the "Drive Lights OFF" macro to make the system work again. Here's the completed folder with its macros, post if you have questions (or better solutions)!