4.9 KiB
layout | title | description | date | sidebar | comments | sharing | footer |
---|---|---|---|---|---|---|---|
page | Configure Home Assistant | Instructions to get Home Assistant configured. | 2016-09-26 21:00 | true | false | true | true |
This guide applies only if you've installed Home Assistant via Hass.io. If you've used any other install method then [see here](/docs/configuration/) instead.
If you made it here, awesome! That means that you got Home Assistant up and running. It might have already found some of your networked devices. This is going to be fun!
Home Assistant stores its configuration in a file called configuration.yaml
. A default one is created when Home Assistant is started for the first time. Some of the things in the configuration file can be edited via the user interface, other parts require you to edit the configuration file directly.
There are two common approaches to edit your configuration: via Samba/Windows Networking and via the HASS Configurator. Both of these are official add-ons for Hass.io.
{% linkable_title Installing Hass.io add-ons %}
Hass.io add-ons are installed from the add-on store embedded in the Hass.io panel:
- Open Home Assistant by navigating to http://hassio.local:8123.
- Click on the menu icon in the top left and select Hass.io in the sidebar.
- The Hass.io panel opens, now open the add-on store by clicking the shopping bag.
From the Hass.io main panel open the add-on store.
{% linkable_title Editing config via HASS Configurator %}
The first add-on we should install is the HASS Configurator. With the HASS Configurator, you'll be able to edit your Home Assistant configuration from the web interface.
Go to the add-on store (see the previous step), click on Configurator and click on "INSTALL". When installation is complete, the UI will go to the add-on details page for the configurator. Here you will be able to change settings, start and stop the add-on. Follow the steps below to setup the add-on.
- "START" the add-on
- You will be able to click the "OPEN WEB UI" link to open the Web UI on a new window
- Type your username and password that you recently saved
Time for the first practice with the configurator. We're going to add the Configurator to the main Home Assistant sidebar:
- Click the folder icon in the top left of the configurator window to open the file browser sidebar.
- Click the
configuration.yaml
file (in the/config/
folder) to load it into the main Configurator edit window. - Copy and paste the following to the end of the
configuration.yaml
file:
panel_custom:
- name: hassio-main
sidebar_title: Configurator
sidebar_icon: hass:settings
js_url: /api/hassio/app/entrypoint.js
url_path: configurator
embed_iframe: true
require_admin: true
config:
ingress: core_configurator
- Click the save icon in the top right to commit changes.
- Verify the configuration by going to the config panel (Configuration in the sidebar) -> General -> Click the "Check Config" button and you should get "Configuration valid!"
- Now Restart Home Assistant using the "restart" in the Server management section.
{% linkable_title Editing config via Samba/Windows Networking %}
Maybe you are not a big fan of our web editor and want to use a text editor on your computer instead. This is possible by sharing the configuration over the network using the Samba add-on, which can be installed from the Hass.io add-on store.
After you have installed it, click on START. Hass.io should now be available in the networking tab on your computer. Use a text editor like the free Visual Studio Code to edit configuration.yaml
.
{% linkable_title Configuring integrations %}
Now that you are able to edit the configuration, it's time to set up some of your devices and services. Each service and device will have its own instructions on how to be integrated. Find your devices and services on the components overview page.
YAML can be a little daunting at first. A lot is possible! [Here is some more info.](/docs/configuration/devices/)
For your first integration, you'll create a virtual sensor that generates a random integer value between 0 and 20 every 30 seconds.
To create this random value sensor random values, enter the following to the bottom of your configuration.yaml
file, and restart Home Assistant (remember it may take up to a minute for the service to restart):
sensor:
- platform: random
You'll know it worked when you see the new random sensor in your overview page. On the next page, we'll create an automation that uses this sensor to take an action.