Link Search Menu Expand Document

Home Assistant

Setup

Ubuntu KVM

  1. Download the image here
  2. Decompress xz --decompress FILE
  3. Move somewhere you like /var/lib/libvirt/images/hassos.qcow2
  4. Create the VM sudo virt-install --name hassos --graphics vnc,listen=0.0.0.0 --memory=2048 --vcpus=2 --disk=/var/lib/libvirt/images/hassos.qcow2,format=qcow2 --boot uefi --import --os-variant=debian9 --network=bridge=br0
  5. Login in http://homeassistant.local:8123

HTTPS Setup

  1. Install Let’s Encrypt add-on and follow the documentation
  2. Go to Configuration > General and define External URL and Internal URL
  3. Configure configuration.yaml

     http:
         ssl_certificate: /ssl/fullchain.pem
         ssl_key: /ssl/privkey.pem
    
  4. Restart the server

Migrate to another server

  1. Set up the new Home Assistant server
  2. In the old one, go to backups and do a full one
  3. In the new one, import before creating a user (OS) or copy backup in /config/

Configuration

Lovelace

  • Display an entity attribute:
type: entities
entities:
  - type: attribute
    entity: media_player.abc
    attribute: sound_mode

Mobile app

  • Reinstall the mobile app on a reset phone - source
    1. remove app from phone
    2. remove integration in HA via the UI
    3. redownload app and do onboarding
    4. after onboarding restart HA and keep your app alive (so screen on)

Integrations

Calendar from Nextcloud

  • Useful to silence notification: just use a calendar to set “Silence” days
  • Relevant integration page
  • Events must have a name
  • Configuration to show full days: ```yaml calendar:
    • platform: caldav username: nextcloud_username password: nextcloud_pass url: https://nextcloud.com custom_calendars:
      • name: “Name for HA” calendar: “Nextcloud Name” search: “.*” ```

Automations

Notifications

Development

Documentation

Dev Setup

More verbose log

Add the following to your configuration.yaml, according to logger integration doc.

logger:
  default: info