Home Assistant Configuration
The Home Assistant configuration is located at
/home/homeassistant/.homeassistant/. You’d need to modify some files in here to get Home Assistant running. I’d skip the boring details on how Linux security works and just touch on how to modify the files. TLR sudo.
- Connect to your Pi via SSH if you havn’t done so already (refer to page 7)
Change your current working directory to the Home Assistant configuration folder by running the following command:
- If everything works, you should see the prompt changed from ~ to something much longer:
This folder contains some yaml files. To list the files in this folder, run the command
Here’s a listing of the configuration files.
You’d need to modify some of these files (esp configuration.yaml).
Modifying a file
nano is a good editor for the first user. This section will describe how to use nano to modify a file.
To edit the a file, type nano followed by the file you want to modify, e.g. if I want to modify configuration.yaml:
sudo nano configuration.yml
- You should see this screen:
- You are now in the nano editor. The behaviour is like any word processor, but cruder. You can use the arrow keys, PgUp and Pg down to move the cursor to the position you want. And then just make the changes.
- To save the file, press CTRL and X together (CTRL+X). Press ‘Y’ to save and quit, ‘N’ to ignore changes and quit (useful if you have made too many mistakes and have no idea how to undo).
If you’re confused with nano, google for some tutorials.
Well done if you have come this far!
Now that you have Home Assistant setup and all ready to go, it’s time to add devices. Please read the XiaoMi Vacuum article first to setup basic security, NAT on your router, and IFTTT callbacks.
You can also check out the rest of the Home Automation articles to find out how to integrate other smart gadgets into your day to day routines.
Any questions/comments/suggestions please feel free to leave a comment below.
A Word From Our Sponsors
Comment from: Dmitry Novikov Visitor
It is very interesting that I cam use Pi to install Snakeoil. any special image required?
Comment from: Member
ARMv7 edition of Snakeoil is not ready yet. Hopefully I can find some time to implement that in the coming months.
Comment from: jucas_pt Visitor
Great article, I just add one thing…you should tell to look for the permissions of the folders where the private keys are. I’ve got some issues when i tried to connect to HTTPs and was resolve by changing the permissions of home assistant user for that folders.
Maybe because of the version of hass.io - 0.82.1
Comment from: clplarry Visitor
Is the IMG file of Snakeoil ready for Raspberry Pi 3B installation? Is it as easy as volumio or Runeaudio for installation of the Snakeoil just by flashing it onto a micro SD card and inserting it to the Raspberry Pi so simple? Where is the location of all the OS installation files stored on the web? Can I have the relevant link here to search them out and have a trial?
Comment from: Member
Yes, the IMG file works with all versions of Raspberry Pis - mainly because it’s 32 bits.
All the Intel ISOs and IMGs are in one location, follow the “Version” link in this article to get the latest image to use.