Control your X10 lights from a Raspberry Pi

Ever wanted to control your lights from a Raspberry Pi?
Have a spare X10 CM11 device laying around?
Lets put them together and make the lights shine again!

Step 1 – Prepare your Raspberry Pi

In a previous post I wireless installed a clean version of Raspbian on a Raspbian Pi 3.

Step 2 – Connect your CM11 device to the USB port of the Raspberry Pi

We can check if all is hunky dory by issuing the command

dmesg

In the output we see something like:

pl2303 converter now attached to ttyUSB0

Step 2 – Install HEYU

Connect to the device and run following command:

wget http://heyu.org/download/heyu-2.10.tar.gz
tar xf heyu-2.10.tar.gz
cd heyu-2.10
sh ./Configure
...
make
...
sudo make install

When asked “Where would you like the sample Heyu configuration file installed?” choose:
1

The next question asks the serial port device name from above. In most cases, the answer here will be:
/dev/ttyUSB0

We are almost done, now lets set up the deamon by:

heyu info

After this is done, we can issue commands to the CM11:

heyu on a1
heyu off a1
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s