Installation von Homeassistant auf Raspberry Pi 4
- DL – HASS-Image
- Image auf mSD schreiben
- HASS starten
- Anmelden auf IP:8123 und Benutzer anlegen
- Land, Sprache, Zeitzone und Währung festlegen
Anpassung für Zugriff von extern
In der configuration.yaml folgenden Code hinzufügen:
http: use_x_forwarded_for: true trusted_proxies: - xxx.xxx.xxx.xxx # add the IP address of the proxy server
Integration von RaspberryMatic:
Unter dem eigenen Profil den erweiterten Modus aktivieren
Das Add-On SSH & Web Terminal (Community Add-On) 13.0.2 installieren
Install HACS:
wget -O - https://get.hacs.xyz | bash -
Reboot Home Assistant
Integration HACS aktivieren
HACS-Integrations-Repo hinzufügen:
https://github.com/danielperna84/custom_homematic
Homematic(IP) Local als Integration hinzufügen
Reboot Home Assistant
Nachdem Reboot sollte euer RaspberryMatic als Integration entedeckt worden sein.
Config: user / pass / tls
Kommunikation von Homeassistant mit der FritzBox:
Schritt 1:
Ein SIP-Telefon-Gerät in der FritzBox anlegen
Beispiel:
Gerätename: SIP-HASS, SIP-Benutzername: xxxxx, SIP-Passwort: yyyyy, 123.456.789.000 = IP-Adresse der FritzBox
Schritt 2:
DSS VoIP Notifier als Add-On hinzufügen
https://github.com/sdesalve/hassio-addons
Die Konfiguration für DSS VoIP Notifier
caller_id_uri: sip:xxxxx@123.456.789.000:5060 realm: "*" username: xxxxx password: yyyyy
Schritt 3:
Ein Beispiel einer Automation:
alias: Neue Automatisierung description: "" trigger: - device_id: 34b1c8fbd9e782bcdaaddee6f28452d9 domain: zha platform: device type: remote_button_short_press subtype: button_1 condition: [] action: - service: hassio.addon_stdin data: addon: 89275b70_dss_voip input: call_sip_uri: sip:+49123456789@fritz.box:5060 message_tts: Fire in basement. Please take care. mode: single
Die Zielnummer +49123456789 entsprechend anpassen, dann wird der Anruf konfiguriert und die Message im Text angesagt.
Homeassistant & Telegram
Voraussetzungen:
Ihr benötigt einen Telegram-Bot und eine Chat-ID.
Konfiguration:
Folgender Code muss in die configuration.yaml
# Example configuration.yaml entry for the Telegram Bot telegram_bot: - platform: polling api_key: YOUR_API_KEY allowed_chat_ids: - CHAT_ID_1 # example: 123456789 for the chat_id of a user - CHAT_ID_2 # example: -987654321 for the chat_id of a group - CHAT_ID_3 # Example configuration.yaml entry for the notifier notify: - platform: telegram name: NOTIFIER_NAME chat_id: CHAT_ID_1 # It is possible to add multiple notifiers by using another chat_id # the example belows shows an additional notifier which sends messages to the bot which is added to a group - platform: telegram name: NOTIFIER_NAME_OF_GROUP chat_id: CHAT_ID_2
Homeassistant & Alexa
Voraussetzungen:
Ihr müsst einen Alexa Smarthome Skill erstellen (HASS muss über Domain extern erreichbar sein).
Den Media-Player über HACS installieren (Integration)