Skip to content

AlexMekkering/Home-Assistant-Configuration

Repository files navigation

Build Status

Home-Assistant-Configuration

My main Home Assistant configuration

Installation instructions

Installation of required Arch Linux packages

sudo pacman -Syu --needed git python gcc sed grep autoconf automake make

Creation of an unprivileged user

sudo useradd -m -r -G uucp homeassistant

Setting up Python virtualenv

sudo -iu homeassistant

python -m venv venv
. venv/bin/activate
CFLAGS=-I/usr/lib/libffi-3.2.1/include pip install -U homeassistant
exit

Start Home Assistant and enable at system startup

Create a systemd service

sudo tee -a /etc/systemd/system/homeassistant.service > /dev/null <<EOF
[Unit]
Description=Home Assistant

[Service]
Type=simple
User=homeassistant
ExecStart=/home/homeassistant/venv/bin/hass -c "/home/homeassistant/.homeassistant"
Restart=on-failure

[Install]
WantedBy=multi-user.target
EOF

Start and enable the service

sudo systemctl enable --now homeassistant

About

My main Home Assistant configuration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published