<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Heyu</id>
	<title>Heyu - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Heyu"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Heyu&amp;action=history"/>
	<updated>2026-05-07T03:51:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Heyu&amp;diff=332&amp;oldid=prev</id>
		<title>Kenneth: Created page with &quot;== heyu ==  Connect to controller through serial - CM11A interface   heyu info   heyu on a1  heyu dim A2 10  heyu bright A2 10  heyu off a1   heyu status b2  References: * Ins...&quot;</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Heyu&amp;diff=332&amp;oldid=prev"/>
		<updated>2014-07-06T15:32:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== heyu ==  Connect to controller through serial - CM11A interface   heyu info   heyu on a1  heyu dim A2 10  heyu bright A2 10  heyu off a1   heyu status b2  References: * Ins...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== heyu ==&lt;br /&gt;
&lt;br /&gt;
Connect to controller through serial - CM11A interface&lt;br /&gt;
&lt;br /&gt;
 heyu info&lt;br /&gt;
&lt;br /&gt;
 heyu on a1&lt;br /&gt;
 heyu dim A2 10&lt;br /&gt;
 heyu bright A2 10&lt;br /&gt;
 heyu off a1&lt;br /&gt;
&lt;br /&gt;
 heyu status b2&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Installing Heyu on a Raspberry Pi | X10 Linux - http://x10linux.blogspot.com/2012/08/installing-heyu-on-raspberry-pi.html&lt;br /&gt;
* X10 home automation with Raspberry Pi: heyu | We Saw a Chicken … - http://scruss.com/blog/2012/12/08/x10-home-automation-with-raspberry-pi-heyu/&lt;br /&gt;
* Home Automation with X10, Raspberry Pi, Linux and Ruby on Rails | harmdelaat.com - http://harmdelaat.com/home-automation-with-x10-raspberry-pi-linux-and-ruby-on-rails/&lt;br /&gt;
&lt;br /&gt;
== state engine ==&lt;br /&gt;
&lt;br /&gt;
start state engine:&lt;br /&gt;
 heyu engine&lt;br /&gt;
 heyu start  # same as engine&lt;br /&gt;
 heyu restart&lt;br /&gt;
 heyu enginestate  # 1 or 0&lt;br /&gt;
&lt;br /&gt;
 heyu onstate a1  # or &amp;quot;offstate&amp;quot;&lt;br /&gt;
 heyu dimstate a1  # or &amp;quot;offstate&amp;quot;&lt;br /&gt;
 heyu dimlevel a1&lt;br /&gt;
&lt;br /&gt;
 heyu stop&lt;br /&gt;
&lt;br /&gt;
== installation ==&lt;br /&gt;
&lt;br /&gt;
 mkdir -p ~/.src ; cd ~/.src&lt;br /&gt;
 wget http://heyu.org/download/heyu-2.10.tar.gz&lt;br /&gt;
 tar xf heyu-2.10.tar.gz&lt;br /&gt;
 cd heyu-2.10&lt;br /&gt;
 sh ./Configure&lt;br /&gt;
 make&lt;br /&gt;
 # ... note this will take several minutes!&lt;br /&gt;
 &lt;br /&gt;
 sudo make install&lt;br /&gt;
 # select &amp;#039;3&amp;#039; - In directory /etc/heyu  (for system-wide access)&lt;br /&gt;
 # select &amp;#039;/dev/ttyUSB1&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 # configure - auto started by make install&lt;br /&gt;
 #./install.sh&lt;br /&gt;
&lt;br /&gt;
 # add user to dialout group (group write to /dev/ttyUSB1&lt;br /&gt;
 sudo usermod -a -G dialout kenneth&lt;br /&gt;
&lt;br /&gt;
 # verify connection (may need to logout and back in)&lt;br /&gt;
 heyu info&lt;br /&gt;
&lt;br /&gt;
If you want to PREFIX, you have to manually hack the generated Makefile near the top:&lt;br /&gt;
 BIN = /usr/local/bin&lt;br /&gt;
 MAN = /usr/local/man/man1&lt;br /&gt;
 MAN5 = /usr/local/man/man5&lt;br /&gt;
&lt;br /&gt;
Uninstall:&lt;br /&gt;
 make uninstall&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Installing Heyu on a Raspberry Pi | X10 Linux - http://x10linux.blogspot.com/2012/08/installing-heyu-on-raspberry-pi.html&lt;br /&gt;
&lt;br /&gt;
== cm11a connection ==&lt;br /&gt;
&lt;br /&gt;
dmesg:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
usb 4-5: new full speed USB device using ohci_hcd and address 4&lt;br /&gt;
usb 4-5: configuration #1 chosen from 1 choice&lt;br /&gt;
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303&lt;br /&gt;
pl2303 4-5:1.0: pl2303 converter detected&lt;br /&gt;
usb 4-5: pl2303 converter now attached to ttyUSB1&lt;br /&gt;
usbcore: registered new driver pl2303&lt;br /&gt;
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== info ==&lt;br /&gt;
&lt;br /&gt;
 heyu info&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# heyu info&lt;br /&gt;
starting heyu_relay&lt;br /&gt;
04/11 08:52:08  Poll received unknown value (1 bytes), leading byte = a5&lt;br /&gt;
Heyu version 2.10&lt;br /&gt;
Configuration at /etc/heyu/x10.conf&lt;br /&gt;
Powerline interface on /dev/ttyUSB0&lt;br /&gt;
Firmware revision Level = 1&lt;br /&gt;
Interface battery usage = Unknown&lt;br /&gt;
Raw interface clock: Fri, Day 100, 07:52:07&lt;br /&gt;
(--&amp;gt; Civil Time: Fri 11 Apr 2014   08:52:07 MDT)&lt;br /&gt;
No schedule has been uploaded by Heyu.&lt;br /&gt;
Housecode = A&lt;br /&gt;
0 = off, 1 = on,               unit  16.......8...4..1&lt;br /&gt;
Last addressed device =       0x0000 (0000000000000000)&lt;br /&gt;
Status of monitored devices = 0x0000 (0000000000000000)&lt;br /&gt;
Status of dimmed devices =    0x0000 (0000000000000000)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== init.d ==&lt;br /&gt;
&lt;br /&gt;
init.d, based off of Jira startup script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
BIN=/usr/local/bin/heyu&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
        $BIN engine&lt;br /&gt;
        ;;&lt;br /&gt;
    stop)&lt;br /&gt;
        $BIN stop&lt;br /&gt;
        ;;&lt;br /&gt;
    restart)&lt;br /&gt;
        $BIN restart&lt;br /&gt;
        ;;&lt;br /&gt;
    status)&lt;br /&gt;
        $BIN enginestate&lt;br /&gt;
        ;;&lt;br /&gt;
    *)&lt;br /&gt;
        echo &amp;quot;Usage: $0 {start|stop|restart|status}&amp;quot;&lt;br /&gt;
        exit 1&lt;br /&gt;
        ;;&lt;br /&gt;
esac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
debian init.d:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
### BEGIN INIT INFO&lt;br /&gt;
# Provides: heyu&lt;br /&gt;
# Required-Start: $local_fs $syslog $remote_fs&lt;br /&gt;
# Required-Stop: $remote_fs&lt;br /&gt;
# Default-Start:  2 3 4 5&lt;br /&gt;
# Default-Stop: 0 1 6&lt;br /&gt;
# Short-Description: Start heyu service&lt;br /&gt;
# Description: Monitor X10 commands&lt;br /&gt;
### END INIT INFO&lt;br /&gt;
&lt;br /&gt;
BIN=/usr/local/bin/heyu&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
        $BIN engine&lt;br /&gt;
        ;;&lt;br /&gt;
    stop)&lt;br /&gt;
        $BIN stop&lt;br /&gt;
        ;;&lt;br /&gt;
    restart)&lt;br /&gt;
        $BIN restart&lt;br /&gt;
        ;;&lt;br /&gt;
    status)&lt;br /&gt;
        $BIN enginestate&lt;br /&gt;
        ;;&lt;br /&gt;
    *)&lt;br /&gt;
        echo &amp;quot;Usage: $0 {start|stop|restart|status}&amp;quot;&lt;br /&gt;
        exit 1&lt;br /&gt;
        ;;&lt;br /&gt;
esac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== monitor ==&lt;br /&gt;
&lt;br /&gt;
Monitor&lt;br /&gt;
&lt;br /&gt;
 heyu engine&lt;br /&gt;
&lt;br /&gt;
 heyu monitor&lt;br /&gt;
&lt;br /&gt;
 04/11 20:51:43  sndc addr unit       1 : hu A1  (_no_alias_)&lt;br /&gt;
 04/11 20:51:43  sndc func           On : hc A&lt;br /&gt;
&lt;br /&gt;
 04/11 20:51:48  sndc addr unit       1 : hu A1  (_no_alias_)&lt;br /&gt;
 04/11 20:51:49  sndc func          Off : hc A&lt;br /&gt;
&lt;br /&gt;
 04/11 14:25:52  sndc addr unit       1 : hu A1  (_no_alias_)&lt;br /&gt;
 04/11 14:25:53  sndc func       Bright : hc A bright %100 [210+]&lt;br /&gt;
&lt;br /&gt;
 04/11 14:27:02  sndc addr unit       1 : hu A1  (_no_alias_)&lt;br /&gt;
 04/11 14:27:03  sndc func       Bright : hc A bright %100 [210+]&lt;br /&gt;
 04/11 14:27:07  sndc func          Dim : hc A dim %01 [~2]&lt;br /&gt;
&lt;br /&gt;
== change cm11a housecode ==&lt;br /&gt;
&lt;br /&gt;
Change CM11A Housecode&lt;br /&gt;
&lt;br /&gt;
 heyu reset [housecode]&lt;br /&gt;
 heyu reset C&lt;br /&gt;
&lt;br /&gt;
 heyu info&lt;br /&gt;
&lt;br /&gt;
== issues ==&lt;br /&gt;
&lt;br /&gt;
=== Unable to send address bytes ===&lt;br /&gt;
&lt;br /&gt;
If you got the error, like this:&lt;br /&gt;
 tarting heyu_relay&lt;br /&gt;
 Unable to send address bytes&lt;br /&gt;
maybe the X10 computer interface is not connected properly. If you are using USB-RS232 converter, try to plug-unplug the converter to solve this &amp;quot;freezing&amp;quot; problem. &lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Think, Forrest! Think!: Control your home appliance thru Internet via freetalk, Jabber/Google talk and X10 - http://forrestbao.blogspot.com/2008/09/control-your-home-appliance-thru.html&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
[[Category:X10]]&lt;br /&gt;
[[Category:Home Automation]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>