Controlling X10 Appliances with the iPhone

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 the video if for some reason you want to.

So far, my favorite thing to do 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.

When commenting, remember: Is it true? Is it necessary? Is it kind?

Go dark.