메뉴 건너뛰기

KIM0.COM

Linux 우분투 18.04 Home Assistant 설치

2018.12.09 18:29

Kim 조회 수:1253

sudo apt install
sudo apt upgrade
sudo apt install python3-pip python3-venv


python3 -m venv homeassistant
cd homeassistant
source bin/activate
python3 -m pip install wheel

python3 -m pip install homeassistant
hass --open-ui

whereis hass
sudo vi /etc/systemd/system/homeassistant.service

[Unit]
Description=Home Assistant
After=network-online.target

[Service]
Type=simple
Environment=WorkingDirectory=/home/jhk/.homeassistant/
ExecStart=/home/homeassistant/bin/hass -c '/home/jhk/.homeassistant'
Restart=always

[Install]
WantedBy=mult-user.target

sudo systemctl daemon-reload
sudo systemctl enable homeassistant.service
sudo systemctl start homeassistant.service
sudo systemctl status homeassistant.service

webui접속 http://localhost:8123