71 lines
2.4 KiB
Markdown
71 lines
2.4 KiB
Markdown
---
|
|
title: "Home Assistant"
|
|
category: systems
|
|
tags: [homeassistant, smart-home, mqtt, automation]
|
|
created: "2026-09-27"
|
|
modified: "2026-09-27"
|
|
---
|
|
|
|
# Home Assistant
|
|
|
|
> Smart Home Zentrale auf Proxmox. Steuerung, Automatisierung und Benachrichtigungen.
|
|
|
|
## Infrastruktur
|
|
- **Host:** `10.0.30.10` (HAOS VM)
|
|
- **SSH:** `hassio@10.0.30.10` (PW: 1P Vault "Hermes")
|
|
- **URL:** `https://homeassistant.familie-schoen.com`
|
|
- **Container:** `homeassistant` (Docker)
|
|
|
|
## MQTT
|
|
- **Broker:** Mosquitto Add-on v7.1.1 auf localhost:1883
|
|
- **HA MQTT User:** ehemals `opendtu` (BROKEN — ACL blockiert), gefixt
|
|
- **ACL:** `/etc/mosquitto/acl` definiert `user homeassistant` + `user addons`
|
|
- **Auth Plugin:** `go-auth.so` (files,http backends)
|
|
|
|
## Automations
|
|
- **File:** `/config/automations.yaml` (35 Automations)
|
|
- **Schreibmethode:** SSH → `docker exec homeassistant chmod 666`, danach restore 644
|
|
- **Reload:** REST API mit JWT (HS256, signed from `/config/.storage/auth`)
|
|
|
|
### Frigate Einfahrt Notification (ID 1714065780832)
|
|
- MQTT trigger `frigate/events` → filter `type=='new'` + cameras [Einfahrt,Terrasse] + labels [person,car,...]
|
|
- Mode: `single`, cooldown 600s
|
|
- Dedup: `input_text.frigate_last_event_id`
|
|
- Flow: delay 10s → snapshot → notify iPhone → optional LLM Vision
|
|
- Siehe [[systems/frigate]]
|
|
|
|
## Notify Services
|
|
| Service | Status |
|
|
|---------|--------|
|
|
| `notify.mobile_app_iphone_dominik` | ✅ aktiv |
|
|
| `notify.mobile_app_sarahs_iphone_app` | verfügbar |
|
|
| `notify.mobile_app_ipad_2` | verfügbar |
|
|
| `notify.mobile_app_sm_x205` | verfügbar |
|
|
|
|
## Entitäten
|
|
- Kameras: `camera.einfahrt_2`, `camera.terrasse_2` (Suffix `_2` wegen verwaister Integration)
|
|
- Motion: `binary_sensor.einfahrt_motion_2`, `binary_sensor.terrasse_motion_2`
|
|
- Input Text: `input_text.frigate_last_event_id` (dedup storage, max 255 chars)
|
|
|
|
## Snapshots
|
|
- Gespeichert: `/config/www/snapshots/{camera}_latest.jpg`
|
|
- URL: `/local/snapshots/` (HTTP 200, keine Auth)
|
|
|
|
## JWT Auth
|
|
1. `jwt_key` aus `/config/.storage/auth` lesen
|
|
2. Client `Hermes_202606` (token id `1444b2c6757b4d66a6f8f8e5899b4e6a`)
|
|
3. HS256 signieren, Bearer Header
|
|
4. `?return_response=true` für Service-Call Responses
|
|
|
|
## Integrations
|
|
- Frigate (MQTT)
|
|
- LLM Vision (noris AI `gemma-4-31b-it`)
|
|
- Tibber (Strom)
|
|
- Marstek Speicher (VENUS-E, IP 10.0.50.113)
|
|
- Various sensors (Xiaomi BLE, etc.)
|
|
|
|
## Related
|
|
- [[systems/frigate]] — NVR Integration
|
|
- [[systems/noris-ai]] — LLM Vision Provider
|
|
- [[reference/ip-map]] — IP Assignments
|