Skip to content

Instantly share code, notes, and snippets.

@swilson
Created December 1, 2019 19:40
Show Gist options
  • Save swilson/d096a161059a5da0ff7ce4e020c559fd to your computer and use it in GitHub Desktop.
Save swilson/d096a161059a5da0ff7ce4e020c559fd to your computer and use it in GitHub Desktop.
Home Assistant with X10 (heyu) integration
FROM homeassistant/home-assistant:stable
# Install dev tools
RUN apk add --update alpine-sdk
# Grab heyu
RUN wget -O heyu.zip https://codeload.github.com/HeyuX10Automation/heyu/zip/v2.10.1
RUN unzip heyu.zip
# Build it (the 'darwin' configuration seems to work on Alpine)
RUN cd heyu-2.10.1 && sh ./Configure darwin && make
# Create spool directory
RUN mkdir /var/tmp/heyu
# Create config file so 'make install' doesn't try to interact
RUN mkdir /etc/heyu
# Change this to specify your CM11A or CM17A TTY
RUN echo "TTY /dev/ttyUSB1" > /etc/heyu/x10.conf
# Install heyu
RUN cd heyu-2.10.1 && sudo make install
@cbellgit
Copy link

Are you using this with hass.io or just as a dockerized home assistant install? If using with hass.io what did you have to do to tell it to use this docker file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment