Last week I ordered some X10 gear off Amazon to play with. Included was a CM17A Firecracker X10 controller. It plugs into a serial port and transmits X10 signals to a receiver hooked up to your power lines. I found a neat little open source program called Heyu that lets you control the CM17A. Of course, controlling your X10 stuff from a command line isn’t cool enough for me, so I started on a Ruby on Rails app that lets me control everything from my iPhone. After adding some iUI styling it works pretty well. The Firecracker can only transmit, not receive data, so I had to store appliance state in the database. Besides that minor annoyance, everything worked out pretty well. I added iUI styling and I’m pretty happy with what I’ve got so far.
Anyone who wants to can check out the source here. It’s nowhere near done. There is no way to add houses or units short of making a migration or modifying the database directly. Also it requires that you have Heyu installed and in your path. Turning stuff on and off works though, as demonstrated by me in this video:
You can download it here if for some reason you want to.
My favorite thing to do so far is to turn off my air conditioner in the morning and then turn it on an hour before I come home in the evening. Since my schedule is so unscheduled, a cron job just doesn’t cut it.
Controlling Appliances with X10 and the iPhone | iPhone News, Reviews, Accessories and more | 15-Aug-07 at 9:39 am | Permalink
[...] After getting some X10 gear, someone wrote a quick Ruby on Rails app to control everything from their iPhone. You can find out more at http://mipsisrisc.com/rambling/?p=28 [...]
Derron | 28-Sep-07 at 11:42 am | Permalink
Great start. I’ve been using bluelava.cgi for a few years now, but have never been happy with the look. Please keep up the work and post your updates.