File configuration.yaml

Geoposition

Set position on earth if sun component is used.

homeassistant:
  # ...
  # Location required to calculate the time the sun rises and sets
  latitude: 
  longitude: 
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: 

Custom Panel

To add item to the left menu.

panel_iframe:
  configurator:
    title: Configurator
    icon: mdi:wrench
    url: http://localhost:3218

Use secrets

https://www.home-assistant.io/docs/configuration/secrets/

configuration.yaml

api_password: !secret my_api_password

secrets.yaml

my_api_password: abcd6547

Activate Lovelace yaml mode

lovelace:
  mode: yaml

Define purge delay on recorder

recorder:
  purge_keep_days: 90

Switch theme on sun events

Configure themes : https://www.home-assistant.io/components/frontend/

Then automation can be done using service frontend.set_theme via NodeRED

Packages

Splits configuration file with packages.

homeassistant:
  # Loads all packages/*.yaml
  packages: !include_dir_named packages

Files must have yaml extension.