Home Assistant
Setup
Ubuntu KVM
- Download the image here
- Decompress
xz --decompress FILE
- Move somewhere you like
/var/lib/libvirt/images/hassos.qcow2
- 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
- Login in http://homeassistant.local:8123
HTTPS Setup
- Install Let’s Encrypt add-on and follow the documentation
- Go to Configuration > General and define External URL and Internal URL
-
Configure
configuration.yaml
http: ssl_certificate: /ssl/fullchain.pem ssl_key: /ssl/privkey.pem
- Restart the server
Migrate to another server
- Set up the new Home Assistant server
- In the old one, go to backups and do a full one
- 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
- remove app from phone
- remove integration in HA via the UI
- redownload app and do onboarding
- 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: “.*” ```
- platform: caldav username: nextcloud_username password: nextcloud_pass url: https://nextcloud.com custom_calendars:
Automations
Notifications
- Build Actionable notification
- Get an attribute value with a space: use ``
- Use Developer Tools → Services and Template to try out
Development
Documentation
- Home Assistant Developers wiki
- HACS - Home Assistant Community Store
- Ressources
- Repository of examples
- Icons: Material Design Icons - use it like
mdi:home
Dev Setup
- Follow setup guide here
- Install Docker - Guide for Ubuntu and don’t forget to give right
sudo usermod -a -G docker $USER
- Install Git
sudo apt install git -y
- Install Visual Studio Code: snap or
sudo snap install code --classic
- Install Docker - Guide for Ubuntu and don’t forget to give right
- Then don’t forget to check out a separate branch
- Start Home Assistant
hass -c config
More verbose log
Add the following to your configuration.yaml
, according to logger integration doc.
logger:
default: info