Heyu

This will describe how to setup Heya to allow monitoring and control of appliances using Domus Link

Setup the server

Download the software

mkdir /mnt/apps/heyu /var/log/heyu
chmod o+rw /var/log/heyu
cd /mnt/apps/heyu
wget http://www.heyu.org/download/heyu-2.9.4.tar.gz
tar zxvf heyu-2.9.4.tar.gz

Check that it can be seen

rob@homer:~$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 10d5:5552 Uni Class Technology Co., Ltd
Bus 002 Device 002: ID 04cc:1520 ST-Ericsson
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
rob@homer:~$ ls /dev/ttyUSB0
/dev/ttyUSB0

Installation

(Taken from the README.INSTALL file)

sh ./Configure  [option]   (As a normal user)
make                       (As a normal user)
su                         (Become superuser)
make install               (As superuser)
exit                       (Revert to normal user)
heyu info                  (As a normal user, to test installation)

Check that it has been installed

rob@homer:/mnt/apps/heyu/heyu-2.9.4$ heyu info
starting heyu_relay
10/03 11:13:28  Poll received unknown value (1 bytes), leading byte = a5
Heyu version 2.9.4
Configuration at /etc/heyu/x10.conf
Powerline interface on /dev/ttyUSB0
Firmware revision Level = 8
Interface battery usage = Unknown
Raw interface clock: Mon, Day 275, 10:13:28
(--> Civil Time: Mon 03 Oct 2011   11:13:28 BST)
No schedule has been uploaded by Heyu.
Housecode = A
0 = off, 1 = on,               unit  16.......8...4..1
Last addressed device =       0x0000 (0000000000000000)
Status of monitored devices = 0x0000 (0000000000000000)
Status of dimmed devices =    0x0000 (0000000000000000)

Heyu Web Interface (domus.Link)

Domus Link

Download

cd /mnt/apps/heyu
wget http://domuslink.googlecode.com/files/domus.Link2.0.tar.gz
tar zxvf domus.Link2.0.tar.gz

Installation

Taken from the installation instructions here

Configure Apache

sudo chmod o+rw /etc/heyu /mnt/apps/heyu/domus.Link/db /mnt/apps/heyu/domus.Link/config.php

Testing

Go to the login page here, the default password is 1234

heyu monitor

Change the housecode

HOUSECODE = B
heyu reset