Files
nixfiles/docs/sites/home/sfh/containers/hass.md
T
jackos1998andClaude Opus 5.5 f51a4db577 hass: Drop the ignored HTTP YAML configuration
Home Assistant 2026.8 imported the `http` block into `.storage/http`
and has ignored it since, raising a repair to remove it. Keeping it in
Nix suggested that `trusted_proxies` still followed `middleman`'s
assignments. Remove it and document that the HTTP settings are
managed in the UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:11:44 +00:00

3.3 KiB
Raw Blame History

hass

Home automation container: Home Assistant plus its supporting services (MQTT, camera restreaming, Frigate NVR), running on sfh.

Role

Home Assistant

services.home-assistant uses declarative configuration (configWritable = false). It enables the esphome, zha, denonavr, webostv, androidtv_remote, heos, mqtt, wled, met and google_translate components, plus custom alarmo, frigate, west_wood_club and Irish Rail integrations. A hass-cli wrapper uses a token from my.secrets to reach the local server.

  • mosquitto — MQTT broker (anonymous local listener; port 1883 allowed, alongside HTTP).
  • go2rtc — restreams the Reolink living-room camera (RTSP from reolink-living-room, on the lo network) and the office USB webcam (/dev/hass-webcam/video0 via ffmpeg).
  • Frigate (services.frigate, frigate.h.nul.ie — the frigate alt name on the hi assignment) — records both restreamed cameras with a short retention policy; detection is disabled.
  • External access is via https://hass.nul.ie through the middleman reverse proxy; internally it's hass-ctr.h.nul.ie. Home Assistant's HTTP settings (port 8123, forwarded headers and middleman's addresses as trusted proxies) live in the UI under Settings › System › Network, stored in .storage/http, not in Nix. Update the trusted proxies there if middleman's addresses change, or logins through the proxy will fail.
  • Not a deploy-rs target (my.deploy.enable = false) — it's rendered via my.asContainer and started by sfh's my.containers.instances.

Network assignments

See the consolidated network assignments table (this box: hass).

Storage

Frigate footage lives on a separate HDD LV: palace passes the hdds/frigate LVM LV to the sfh VM, sfh mounts it at /mnt/frigate, and the container bind-mounts it at /var/lib/frigate (read-write). This keeps recording churn off the NVMe-oF root.

Devices

Passed through from sfh (USB host ports on palace):

  • Nabu Casa Connect ZBT-1 Zigbee coordinator → /dev/ttyUSB0 (used by zha).
  • USB webcam → /dev/hass-webcam/video0 (go2rtc's webcam_office stream). The container starts with an empty /dev/hass-webcam directory if the webcam is absent. Restart the container after reconnecting the webcam to expose it again.
  • The matching raw USB device node allowed through from sfh.

Networking

MACVLAN interfaces created from sfh's container NICs: host0 on ctrs-hi (the hi assignment, alt name frigate, default gateway via the VIP) and lan-lo on ctrs-lo (the lo assignment, no gateway) — the lo interface reaches the IoT devices (the Reolink camera lives there).

Notable config files