Home Assistant
{{{Title}}} | |
---|---|
Website | https://www.home-assistant.io/ |
Community | https://community.home-assistant.io/ |
Documentatie | https://www.home-assistant.io/docs/ |
Versie | 0.107.7 |
Install
Ingredienten:
- 1 Raspberry Pi 3 of 4
- 1 32GB SD kaart of groter
- SD Card reader
- Image Software om de software op de SD kaart te zetten Bijv: balenaEtcher
- Home Assistant Image
Volg de stappen op https://www.home-assistant.io/hassio/installation/
Hierna kan je de Home Assistant interface vinden op: http://<IP>:8123
Ga naar Supervisor > Add-on store en installeer
- Samba Share (Official add-ons)
- File editor (Official add-ons)
- SSH & Web Terminal (Home Assistant Community Add-ons)
En start de add-ons
Update
Backup
Het backuppen van het systeem is een belkangrijke taak. Er zijn een aantal opties mopgelijk binnen het Home Assistant eco systeem.
Image de SD kaart
Het maken van een kopie van de SD kaart staat hier beschreven.
Snapshots
Configuratie
SSL (HTTPS)
Ingredienten
- fullchain.pem je Certificaat + de hele chain samengevoegd in het PEM formaat
- key.pem Je Private key in PEM formaat
Plaats fullchain.pem
en key.pem
in je SSL folder via samba (/ssl)
Open configuration.yaml
en voeg de volgende code toe:
http: ssl_certificate: /ssl/fullchain.pem ssl_key: /ssl/privkey.pem
Controleer de configuration.yaml
(configuration > Server Controls > Check Configuration) wanneer de configuratie geldig is herstart hass.io
https://www.home-assistant.io/docs/ecosystem/certificates/tls_self_signed_certificate/
VLAN
VLAN in HA: Log into as root to the HASSOS base system via a console At the hassio > prompt, type login From here you will use the nmcli configuration tool. #nmcli connection show will list the “HassOS default” connection in use. Create the VLAN interface with a static adress on eth0 (parent interface), defining ip, gateway and dns (adjust to your needs) #nmcli con add type vlan con-name eth0@vlan10 dev eth0 id 10 ip4 10.0.0.2/8 ipv4.dns 10.0.0.1 gw4 10.0.0.1 OR for DHCP Create the VLAN interface with a static adress on eth0 (parent interface), defining ip, gateway and dns (adjust to your needs) #nmcli con add type vlan con-name eth0@vlan10 dev eth0 id 10 Show connections again and it should list your new VLAN (fake uuids) #nmcli connection show
https://community.home-assistant.io/t/setup-vlan-and-ha-tutorial/87705/6
Telefoon Client
IOS
https://apps.apple.com/nl/app/home-assistant/id1099568401
Instellen
Plugins
https://www.home-assistant.io/addons/
SSH & Web Terminal
https://community.home-assistant.io/t/home-assistant-community-add-on-ssh-web-terminal/33820 Username: hassio
Password: ingesteld in de plugin config
ESP Home
Om ESP Home te installeren moet je beginnen met de ESP Home Repo te installeren.
https://github.com/esphome/hassio
Meer informatie: https://esphome.io/
Met de samba share kan je via het netwerk bij je configuratie bestanden en bij je snapshots
File Editor
Met de file editor kan je gemakkelijk de configuratie bestanden bewerken vanuit de interface.
Node-Red
https://community.home-assistant.io/t/home-assistant-community-add-on-node-red/55023
Check Home Assistant configuration
Check current Home Assistant configuration against a new version.
https://github.com/home-assistant/hassio-addons/tree/master/check_config
Werking
Uitschakelen
Supervisor > System > Host System > Shutdown
TODO
Z-Wave
https://www.home-assistant.io/hassio/zwave/
P1 Reader
Info
- https://www.home-assistant.io/integrations/dsmr/
- https://gathering.tweakers.net/forum/list_messages/1919838
- https://www.freva.com/nl/2019/06/20/geef-vaste-usb-poortnamen-aan-je-raspberry-pi/
Code
# Dutch Smart Meter Reader USB sensor: - platform: dsmr port: /dev/ttyUSB0 dsmr_version: 5
Informatie kanalen
- https://www.home-assistant.io/docs/
- https://community.home-assistant.io/
- https://gathering.tweakers.net/forum/list_messages/1652294
Automation
Config is te vinden in /config/automations.yaml
Automatische Snapshots
- id: '1585392142999' alias: Backups description: Dagelijkse backups om 2:00 trigger: - at: '2:40:00' platform: time condition: [] action: - data_template: name: Backup {{ now().strftime('%Y-%m-%d %H:%M') }} service: hassio.snapshot_full
Junk
https://community.home-assistant.io/t/custom-component-hacs/121727