Skip to content

Beuterei/home-assistant

Repository files navigation

Contributors Forks Stargazers Issues


Home Assistant

My home assistant setup.

· Report Bug · Request Feature ·

About The Project

This is my personal home assistant setup so it probably won't have much use for others. However, it may help someone.

Setup from scratch

  1. Follow Customization

  2. Configure home assistant

  3. Login to cloud

  4. Enable advanced mode under profile settings

  5. Configure MQTT with:

    Variable Value
    Broker eclipse-mosquitto
    Port 1883
    Username mqtt
    Password Use value of MQTT_PASSWORD from Customization
  6. Open Zigbee2mqtt dashboard on port 8124 and rejoin all devices listed in configuration.yaml (Host differs from the Home assistant instance)

  • For EnOcean switches press the button corisponding to the zigbee channel (default should be upper right) for 10 seconds.
  1. Add all ESP Home intregrations listed here. The hostname is the project name

  2. Add all desired autodiscovered integrations:

  • Google Cast

  • Mobile App

    1. Go to Mobile App setting

    2. Add Homenetwork SSID

    3. Setup URLs

  • OctoPrint

  • Sonos

  • CO2 Signal

    Variable Value
    Access Token See
    ... Defaults
  • UniFi Networks

    Variable Value
    Track network clients true
    Include wired network clients false
    Track network devices (Ubiquiti devices) false
    ... Defaults
  1. Add all devices to areas

  2. Restart that homeassistant configurations take effect

  3. Configure persons to your liking:

  • Profile picture

  • Device tracking

    • device_tracker.oneplus_a5000

    • device_tracker.oneplus5

  1. delete unused areas

  2. Setup Google Assistant

  3. Setup BLE devices

Customization

  1. Create a .env file
touch .env
  1. Overwrite variables as you like (format: {variable name}={variable value})
Variable Description Default value Required
POSTGRES_USER Postgres user homeAssistantCore false
POSTGRES_PASSWORD Postgres password none true
POSTGRES_DB Postgres DB name homeAssistantCore false
HOME_ASSISTANT_IP Ip of the home assistant instance matching to SUBNET none true
MDNS_REFLECTOR_IP Ip of the mDNS reflector matching to SUBNET none true
LAN_NETWORK_DEVICE Network device to use for macvlan driver none true
SUBNET Subnet for host network none true
ZIGBEE_KEY See Change Zigbee network encryption key none true
ZIGBEE2MQTT_AUTH_TOKEN Auth token for the Zigbee2MQTT frontend. See advanced-configuration none true
ZIGBEE_USB_DEVICE USB Zigbee dongle /dev/ttyACM0 false
LATITUDE See none true
LONGITUDE See none true
MQTT_PASSWORD MQTT broker password none true