X10Cmd

Heyu module was renamed to X10Cmd because it now also supports other command line X10 interfaces.

Heyu Support


If you have a CM11 interface and want to control X10 modules you can simply use Heyu.
You currently can only switch lamps and appliances on and off. As of version 0.1.189 you can enable heyu monitor, so X10 status changes will be feed back into DomotiGa.

Compile and Install

$ mkdir -p ~/install
$ cd ~/install
$ wget http://heyu.tanj.com/download/heyu-2.8.0.tgz
$ tar xzvf heyu-2.8.0.tgz
$ cd heyu-2.8.0
$ ./Configure
$ make
$ sudo make install

If this is your first install you will be asked where to store Heyu's config file, you can choose to store it globally in /etc/heyu
I did not find a Heyu configuration file.
Where would you like the sample Heyu configuration file installed?
  1. In directory /home/ron/.heyu/
  2. In subdirectory .heyu/ under a different user home directory
  3. In directory /etc/heyu  (for system-wide access)
  4. No thanks, I'll take care of it myself
Choice [1, 2, 3, 4] ? 3
The sample configuration file will be installed as /etc/heyu/x10.conf

CM11A

You need to specify the port of your device in file /etc/heyu/x10.conf
Select correct type from combo box in X10Cmd settings, and enter the path to hey in the Command field.
You can check the location of heyu using:

$ which heyu

CM12U

This is the UK version of the CM11, it will work via heyu too, just configure it the same way as CM11A, and test if you can control your devices via the command line:

$ heyu info - return info
$ heyu on A4 - turn on A4 device
$ heyu off A4 - turn it off again
$ heyu info - return info, including the A4 off showing as last command

Marmitek CM15A (CM15pro)

With the use of a cm15ademo binary DomotiGa now also can use a CM15 to control X10 devices.

This is the site http://somethinginteractive.com/blog/tag/cm15a/

Compile and Install

The cm15a requires the libusb-dev, the following command will install it (if not installed yet):

$ sudo apt-get install libusb-dev

Here how to install it:

$ mkdir -p ~/install
$ cd ~/install
$ wget http://www.eclipsehomeauto.com/cm15a_on_linux/cm15ademo.tar.gz
$ mkdir cm15a
$ cd cm15a/
$ tar xzvf ../cm15ademo.tar.gz 
cm15ademo.c
cm15ax10.c
config.h
libusbahp.c
libusbahp.h
makefile
onetext.h

On Ubuntu modify 2 lines in makefile like so:

$ vi makefile (or use the nano editor - $ nano makefile)

LFLAGS = -DDEVEL -DDEBUG -DLINUX -DX10DEMO -o $@

EXTLIBS = -lusb -lm -lpthread

Compile it:

$ make

Install it, and set correct permissions:

$ sudo cp cm15ademo /usr/local/bin/cm15a
$ sudo chown root /usr/local/bin/cm15a
$ sudo chmod +s /usr/local/bin/cm15a

After a system reboot,

Test if you see the CM15A X10 device with the command

$ lsusb

You will see a line like:
Bus 001 Device 005: ID 0bc7:0001 X10 Wireless Technology, Inc. ActiveHome (ACPI-compliant)
Bus 001 Device 004: ID ...

Then tests with CLI-commands, to dim the light.
$ /usr/local/bin/cm15a a1 dim 50  # dim light at 50% maximum
$ /usr/local/bin/cm15a a1 on      # switch light on 
$ /usr/local/bin/cm15a a1 off     # switch light off - all with X10 address 'a1' 

Activate LW12 dimmer module (beta)

LW12 dimmer modul
The next information is in beta
To activate the LW12 dimmer module you can follow the next procedure in Domotiga.

First we start to make the X10 interface active, based on CM15A.
Change the command line to:

/usr/local/bin/cm15a

The next item we have to add is the LW14 module (is not standard in Domotiga).
Start with the 'Devices' - 'Modules-groups..' and add the new hardware.

To make the new Device complete, download the small picture and place this one in de folder: sudo cp Marmitek-LW12m.jpg /home/[username]/domotiga/icons/devices/marmitek-lw12.jpg

The result will be the next picture;

next soon

Related Resources (X10 related weblinks)

Updated by: scdhome, Updated over 3 years ago
Access count: 73304 since 2011-08-25

Attached Files

cm11interface.jpg (3.34 KB) rdnzl, 08/23/2011 01:07 PM

heyu_logo.gif (3.54 KB) rdnzl, 08/23/2011 01:07 PM

lw12.jpg - LW12 Wall Lamp Module (52.8 KB) scdhome, 08/28/2011 04:32 PM

cm15ademo.tar.gz (28.2 KB) rdnzl, 09/07/2011 09:10 PM

heyu-2.8.0.tgz (540 KB) Alexie, 01/19/2014 07:31 PM

heyu-2.10.tar.gz (581 KB) Alexie, 01/19/2014 07:42 PM

CM15pro.jpg (23.3 KB) scdhome, 07/10/2014 01:07 PM

Marmitek-LW12m.jpg - LW12 dimmer modul (19 KB) scdhome, 07/10/2014 04:59 PM

cm15a.png (22.8 KB) scdhome, 07/10/2014 08:52 PM

Add_part_LW12.png (66.7 KB) scdhome, 07/10/2014 08:55 PM

Device_LW12.png (67.9 KB) scdhome, 07/10/2014 09:12 PM

Also available in: PDF HTML TXT