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 |
Here is an updated Dockerfile that works in 2024:
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.3
RUN unzip heyu.zip
# Build it (the 'darwin' configuration seems to work on Alpine)
RUN cd heyu-2.10.3 && 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.3 && make install
And then your docker-compose.yml should looks like:
---
services:
homeassistant:
#image: homeassistant/home-assistant:latest
# Custom build to add X10 from Dockerfile
image: docker.io/library/home_assistant_with_x10_integration
container_name: homeassistant
devices:
- /dev/ttyUSB1:/dev/ttyUSB1
environment:
- PUID=1000
- PGID=1000
volumes:
- CHANGE_TO_COMPOSE_DATA_PATH/homeassistant/config:/config
ports:
- 8123:8123
restart: unless-stopped
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?