Originally posted by DavPeanut
How do you get it to [run the lights]?
Good question. One word answer:
XTension.
XTension is an application that lets the Mac communicate with/control X10 devices. It is highly configurable as well as AppleScriptable, so you can pretty much do anything you can dream up. There is quite a vibrant community of users of this product, and a very active mailing list where we support each other and swap ideas. The author of the app is the 'list mom,' and a very frequent contributor.
Here's more of what my setup does:
When I get into bed at night, I hit one button to put the house in "Sleep" mode. It turns off all the lights and is ready to alert me if any motion is detected near the entrances to my house.
I'm working on a web interface for the house, using
x2web, which lets you embed AppleScript into HTML pages. I bought two 3Com Audrey units when they were being blown out for $90 each, to use as touchscreen control panels for the system's web interface.
I've been working on giving the computer control of as much as possible. I spent a few weeks creating, with HTML, AppleScript and JavaScript, an alarm clock. I can punch in my desired wake-up time on a numeric keypad on the Audrey's screen. When wake-up time arrives, the stereo comes on, low volume at first and getting progressively louder every few seconds until I wake up and hit the "Okay, okay, I'm awake!" button.
I also use a modem that supports Caller ID, and run
MacCallerID, which is AppleScriptable and lets me create a web page on-the-fly that will show me the list of people who have called my house during the day. When the phone rings, the computer also verbally announces who is calling via wireless speakers I have scattered around the house. It also mutes the TV/stereo if it is on, sending IR commands via
the Zephir.
Using X10 motion detectors, I also built some security functions into the setup. When the house is in "Away" mode and a motion detector is tripped, an email message is sent to my cell phone.
Finally, I also have a few different means to get in my house on the rare occasion when I accidentally lock myself out. If I have my iBook with me, I can connect to the server via AirPort from outside my house and trigger a means to get back in. I can also send an email from my phone that will cause the same thing to happen. If I'm stuck without my iBook or my phone, I can walk to the payphone nearest my house and call a one of a few trusted people who can access a special page of the web interface to trigger my means of entry.
Finally, in the spring I'll be putting a new HVAC system in my house, and I will have an X10-friendly thermostat installed so I'll be able to control and monitor the heating and cooling from anywhere.
I've done some other cool stuff, but I'm tired of typing at this point.
~Philly