Home Assistant - Hasatio/esphome GitHub Wiki

Home Assistant can be installed in two different ways:

  • VM Home Assistant OS

    • First we need Oracle VM (next, next setup) program

    • Open the program and click New

    image

    • In the name and operating system:

      • Choose any name and folder path.
      • Choose type Linux and choose version you want

      image

    • In hardware:

      • Select the minimum standard setting 1 core 2gb ram or optional more
      • Enable efi (optional)

      image

    • In hard disk:

      • Select the use an existing virtual hard disk file section and click on the "file a virtual hard disk" section to the right

      image

      • Click New and select the downloaded haos file (Download the file with vdi.zip extension and extract it)

      image

    • Click "Finish"

    • Select the created virtual machine from the left side and open Settings

    image

    • Click Network and select the attached to section bridge adapter from any adapter section
    • Select your own internet from the name section

    image

    • When all is done, Click Start and open it

    image

    • Wait for it to open

    image

    • After opening, open the ipv4 address and ":8123" added to the end in the browser and homeassistant is ready to use

    image

    • Finish.
  • Debian Home Assistant Supervised

    Setup Debian GNU/Linux

    • First we need Oracle VM (next, next setup) program
    • Open the program and click New

    image

    • In the virtual machine name and operating system:

      • Choose any name and folder path.
      • Select the downloaded debian file from the ISO section

      image

    • In unattended guest OS install setup:

      • "Username and password" sections can be edited as desired
      • The "Additional options" section can be edited as desired

      image

    • In hardware:

      • Select the minimum standard setting 1 core 2gb ram or optional more
      • Enable efi (optional)

      image

    • In hard disk:

      • Click on "Create a virtual hard disk now" and you can leave the hard disk location and size at the standard setting or change them as desired.

      image

    • Click "Finish"

    image

    • Select the created virtual machine from the left side and open Settings

    If the virtual machine started automatically or if the installation started click on the cross and click a "turn off the machine's power". Adjust the virtual machine settings while the virtual machine is turned off

    image

    • Click Network and select the attached to section bridge adapter from any adapter section

    • Select your own internet from the name section

    image

    • When all is done, Click "Start" and open it

    image

    • Wait for the installation to complete

    image

    • If an option like the one below appears, click enter for "Finish the installation"
      • If it gives an error after clicking enter, click the cross sign and click "turn off the machine", then start the machine.

    image

    • Virtual linux debian machine ready

    image

    Commands:

    • Log in to the machine and run the terminal in "Activities"

    image

    image

    • Enter the commands below one by one
    sudo -i

    or

    su -
    Error solution: "User is not in the sudoers file"
    • Run command and in the editor that opens
    sudo nano /etc/sudoers
    • Run command and in the editor that opens
    • Find the "root ALL=(ALL: ALL) ALL" line, write the same string as your username in the bottom line, save and exit with the CTRL+O - ENTER - CTRL+X keys. Example:
    Root ALL=(ALL: ALL) ALL
    Username ALL=(ALL: ALL) ALL
    sudo apt-get update && sudo apt-get upgrade -y
    sudo apt-get install apparmor jq wget curl avahi-daemon udisks2 libglib2.0-bin network-manager dbus systemd-journal-remote resolvconf -y
    sudo apt --fix-broken install
    sudo reboot
    curl -fsSL get.docker.com | sh
    curl -fsSL get.docker.com -o get-docker.sh
    sudo usermod -aG docker <username> 
    • Copy the link to the latest version of the os-agent file

    example: wget https://github.com/home-assistant/os-agent/releases/download/1.4.1/os-agent_1.4.1_linux_x86_64.deb

    wget file-link
    • Copy the name of the downloaded os-agent file

    example: sudo dpkg -i os-agent_1.4.1_linux_x86_64.deb

    sudo dpkg -i file-name
    • Copy the link to the latest version of the homeassistant-supervised file

    example: wget https://github.com/home-assistant/supervised-installer/releases/download/1.4.1/homeassistant-supervised.deb

    wget link -O homeassistant-supervised.deb
    • Copy the name of the downloaded homeassistant-supervised file

    example: sudo dpkg -i homeassistant-supervised.deb

    sudo dpkg -i file-name
    Error solution: "lsb_release: command not found"
    apt-get update && apt-get install -y lsb-release && apt-get clean all

    and try again

    sudo dpkg -i file-name
⚠️ **GitHub.com Fallback** ⚠️