HomeAssistant Ubuntu安裝

Ubuntu上安裝

提前安裝軟體 docker

sudo -i
apt-get update
apt-get install -y software-properties-common apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat
systemctl disable ModemManager
curl -fsSL get.docker.com | sh
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s

接著可以用docker ps列出 所有程式

root@ubuntu:~# docker ps CONTAINER ID        IMAGE                                            COMMAND                  CREATED             STATUS              PORTS                                                                NAMES b749a1885585        homeassistant/amd64-addon-mosquitto:5.1          "/run.sh"                6 minutes ago       Up 6 minutes        0.0.0.0:1883-1884->1883-1884/tcp, 0.0.0.0:8883-8884->8883-8884/tcp   addon_core_mosquitto 6c81d1968661        homeassistant/amd64-hassio-dns:1                 "coredns -conf /conf…"   6 minutes ago       Up 6 minutes                                                                             hassio_dns e99ef882939a        homeassistant/qemux86-64-homeassistant:0.106.1   "/bin/entry.sh pytho…"   7 hours ago         Up 6 minutes                                                                             homeassistant cce823df561f        homeassistant/amd64-hassio-supervisor            "/bin/entry.sh pytho…"   7 hours ago         Up 6 minutes                                                                             hassio_supervisor root@ubuntu:~# docker attach e99ef882939a  

或是用docker attach 連進主控台
而HomeAssistant的主要設定在 /usr/share/hassio/homeassistant/ 底下

Leave a Reply

Your email address will not be published. Required fields are marked *