Home assistant



Setting Up Hassio on Raspberry Pi


  1. Check the version of Pi you are using. I made a mistake to download to wrong image. As a result Hass.io was not starting properly.
  2. Follow the steps described on Home Assistant page . (big chance that you will have error when trying to burn the image with Etcher. I tried with different SD card and SD card reader. At the end the solution was to decompress the downloaded file and burn it or use different image software e.g. Win32DiskImager)
  3. Initial boot can take some time. If you are able to see a new device in the router than be patient and wait for 20-30 minutes.
  4. Log in and enter in the add in section:

Below marked (1)-(3) add-ons were must have to install.




(1) makes you able to enter the configuration files.
below the configuration used:
{
  "username": "USERNAME",
  "password": "PASSWORD",
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "ssl": false,
  "allowed_networks": [
    "0.0.0.0/0"
  ],
  "banned_ips": [
    "8.8.8.8"
  ],
  "banlimit": 0,
  "ignore_pattern": [
    "__pycache__"
  ],
  "dirsfirst": false
}


-->comments
"0.0.0.0/0" -> makes connection possible from all ips, if changed to "192.168.0.0/24" makes accessible only from the local network

(2) Let's encrypt - needed to be able to access the Home assistant interface from the web. followed the steps at the bottom of this post. Have a note that the certificate has to be renewed lets say each 90 days. And to process has to be repeated.

(3) Samba share - very useful to edit the configuration files from your favorite text editor like Notepad++ 


Comments