Configure Home Assistant


This guide applies only if you’ve installed Home Assistant via Hass.io. If you’ve used any other install method then see here 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.

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.

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 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.

  • Change the settings to set a password and click on save
  • Start the add-on
  • You will be able to click the “WEB UI” link to open the Web UI

Time for the first practice with the configurator. Add the following to configuration.yaml file to add a link to the Configurator in the sidebar:

panel_iframe:
  configurator:
    title: Configurator
    icon: mdi:wrench
    url: http://hassio.local:3218

Now restart Home Assistant for the changes to the configuration to take effect. You can do this by going to the config panel (Configuration in the sidebar) -> General -> Restart Home Assistant.

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.

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.

For a sensor that is showing random values, the entry would look like the sample below:

sensor:
  - platform: random

Next step: Automate Home Assistant »