A $50 Introduction to X10 Home Automation

Written by

in

So who wouldn’t love to pull up to your house, get out of your car, walk in your house and all the lights and devices you love are already on? Or maybe your just want to save on your electric bill, either way with about 50 bucks you’ll be on your way to home automation paradise. This guide is not exactly intended from someone not at least kinda familiar with linux, and you should have at least used a screwdriver once or twice.

This requires:

  1. Linux computer (I’m using Ubuntu 7.10, also works with CentOS5)
  2. WS467 Modules – Their either 7 bucks a piece off eBay or 3 for 15 – Replacement wall switches
  3. CM11a – About 10 bucks, runs the computer interface for the x10 control, stores macros. Uses a serial port, make sure you got one still!
  4. Optional – Remotes –
    1. KR19A – This keychain remote control two devices, On/Off/Dim – Simple & small
    2. UR73A – This remote will do it all, don’t get up from your lazy boy just to turn off lights!
  5. Very little experience with wiring.
  6. 1 Flat-head & 1 Phillips screwdriver
  7. A volt-meter is a GREAT investment, not necessary, but can eliminate questions and problems very quickly.

Let’s start with the CM11A. This little module will be the heartbeat to the whole system. You’ll want to plug in directly to the wall, try to avoid power strips and such. Plug it in to your linux box. Now we need the software to run it, I use heyu, very effective command line tool. You can download from http://heyu.tanj.com/download/heyu-2.1.2.tgz
You can use the below to setup the program.

cd ~
wget http://heyu.tanj.com/download/heyu-2.1.2.tgz
tar -zxvf heyu-2.1.2.tgz
./Configure
make
make install (make sure your root or using sudo)

It should ask you where you would like to store the config file, I tend to use /etc/heyu.
The default housecode is set to A, so assuming you use A, the only thing you may need to change is the serial port which is set to /dev/ttyS0 by default, but normally it’s good to go. Let’s install a module and see what happens.

So, your got your WS467 out of the box and you can’t wait to see this in action, let’s just make this clear early, if you shock yourself, that’s your problem. That being said, let’s find the circuit in your breaker that your going to be working on. Clearly if your breaker is labeled this should be easy, if not, leave the light on, and turn off the circuit, if the light goes out, your ready to go, otherwise keep going until you got the right one. Once you’ve found it, unscrew the two screws holding in the plate, pull the plate off and you should see two more screws, remove those as well, and pull the switch out enough to see how the wires are attached, generally it’s just wrapped around a screw and tightened. You may also have a copper wire run with other two, that would be a ground wire, the X10 module has a connection for it on the side. You’ll want to take the two wires off the original switch and twist one wire of the X10 module to each one, and I can’t stress enough it’s important to have a GOOD connection, make sure the wire nut is twisted on very tight. Make sure to set the housecode (A,B,C…) and the unit number (1-16) and write this down somewhere. Now before you push it all back in the wall you may want to turn on the circuit, test the light and test the automation. Back to the computer! Pull up a terminal and type:

heyu on A# (change # to your module number)
—-Watch light—-
heyu off A#
—-Watch light—-

Hopefully you just saw the lights go on and off. If it did not, some common problems:

  1. Check the serial port
  2. Check to make sure you have the right unit number
  3. The signal will degrade over distance, large houses may require boosters or repeaters to get from end to end.

So ahead and replace those other two switches to wanted to automate, carry the keychain with your keys, turn on your lights when you walk up. In time I’ll go into scheduling lights on and off at certain times, tying some of your modules to your bluetooth proximity, very cheap motion sensors, and more than just a couple light switches. Maybe even setup a special IVR on your Asterisk server to control your home while your away from home!

Share

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *