overclokk / home-assistant-config

๐Ÿ  Home Assistant configuration & Documentation for my Smart House.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

home-assistant-config

๐Ÿ  Home Assistant configuration & Documentation for my Smart House.

Linux post installation

Install Docker https://docs.docker.com/engine/install/ubuntu/ Note: do the post install to be able to run docker without sudo.

Install Docker Compose https://docs.docker.com/compose/install/

Install git

sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git

Verify git is installed:

git --version

Configuration folder

First of all we need a folder to wrap Home Assistant files, in my personal case I started to create a folder in my home account called homeassistant and a subfolder called config, now you don't need a subfolder you can have a root folder if you want and I'll moe all my files ASAP to this config:

# home/my_user/
> mkdir homeassistant

If you create also a config folder and want to share also the file compose.yml you can have all in the same folder and use a symlink if you want for running the container from outside.

# home/my_user/homeassistant
> ls -s config/compose.yaml compose.yaml

Secret.yaml

Move secrets.yaml to a different folder, in my case up to one level

# ~/homeassistant/config$
mv secrets.yaml ../secrets.yaml

Than add a symlink to this file

# ~/homeassistant/config$
ln -s ../secrets.yaml secrets.yaml

Why this position for the secret.yaml file? Now, this is optional, you do not need this if you already have the file secrets.yaml excluded in .gitignore but to have a more level of security I moved this file to another folder and create a symlink https://www.home-assistant.io/docs/configuration/secrets/

About

๐Ÿ  Home Assistant configuration & Documentation for my Smart House.

License:MIT License