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
Just wondering why you choose 1). as the default as the place for Heyu config rather than 3), for system wide access..or is it irrelevant with only one user? I used selection 3 installed in /etc/heyu/
LikeLike