Howto: Install Home Assistant on Raspbian

The Home Assistant getting started guide recommends:

  • hass.io
  • venv
  • Docker
  • VMware

I had a lot of trouble getting the SD card to boot hass.io.

This document compiles my experience with installing HA directly onto Raspbian

Components

Process

We will install directly into Raspbian:

  • Get Raspbian to boot on the raspberry pi
  • Disable some services that interfere with Home Assistant
  • Install pre-requisites
  • Install Home Assistant
  • Start up script
  • Configure your devices

Install pre-requisites

Prevent services from interfering with HA

Stop and disable the Bluetooth service.

Stop and disable hciuart with the following commands.

Finally, the serial-getty@ttyAMA0 service must also be stopped and permanently prevented from being started, even in situations where an internal start request comes from other parts of the operating system. Therefore, in this case a “mask” parameter is used instead of “disable”.

Some newly added parameters must also be added at the end of the system boot file, so that they are loaded automatically each time the system is started.

Install Home Assistant

If pip3 fails, try “python3 -m pip”

Start on boot

  • https://www.home-assistant.io/docs/autostart/init.d/
  • Manually, via this command (I recommend you run this in screen)

 

References

 

Follow me on twitter to get updates!

Page rating (click to vote!)
Share via

On this website we use first or third-party tools that store small files (cookie) on your device. Cookies are normally used to allow the site to run properly (technical cookies), to generate navigation usage reports (statistics cookies) and to suitable advertise our services/products (profiling cookies). We can directly use technical cookies, but you have the right to choose whether or not to enable statistical and profiling cookies. Enabling these cookies, you help us to offer you a better experience.