Created
December 1, 2019 19:40
-
-
Save swilson/d096a161059a5da0ff7ce4e020c559fd to your computer and use it in GitHub Desktop.
Home Assistant with X10 (heyu) integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is an updated Dockerfile that works in 2024:
And then your docker-compose.yml should looks like: