Home Assistant voice and multiroom — implementation plan
Status: merged to master (PR #4704, 2026-12-03) with follow-up fixes: the
UI uses the Envoy Gateway HTTPRoute + Kanidm OIDC pattern (the cluster has no
nginx IngressClass), and the PR's 45 s HA grace override was dropped in favour
of master's existing 60 s defaultPodOptions. Physical onboarding and
network/TV acceptance require access to the devices. This is not a claim of an
already working household deployment.
Baseline (audited 2026-11-01)
Source: apps/home-assistant/values.yaml,
apps/esphome/values.yaml, apps/navidrome/values.yaml and the
docs/network/configuration.md VLAN inventory.
| Layer | Existing | Work in this PR |
|---|---|---|
| Home Assistant | 2026.10.4, PostgreSQL 17, persistent /config | None: master already has the 60 s shutdown grace |
| STT | Wyoming Whisper large-v3-turbo, Spanish, CUDA | Reuse; latency benchmark later |
| TTS | Wyoming Piper es_ES-sharvard-medium | Reuse |
| Wake word | Wyoming OpenWakeWord (alexa) | Retain for other clients; ReSpeaker uses local micro_wake_word |
| ESPHome | 2026.10.0; GitOps packages and Vault | Kitchen XVF3800 config pinned to 2026.10.4 |
| Media library | Navidrome + Lidarr | Connect via Open Subsonic, no duplicate storage |
| Music controller | Not present in Git | New Music Assistant 2.10.9 |
| Player targets | LG C3 and office TV | Discover/pair interactively; no speculative entities |
| Network | LAN/DMZ/IoT VLANs, pfSense | Preflight multicast, routes, and client-reachable addresses |
Architecture
Kitchen XVF3800 (ESPHome micro_wake_word + XMOS DSP)
| encrypted ESPHome API
v
Home Assistant Assist <-----> Wyoming Whisper (Spanish, CUDA)
| \--> Wyoming Piper (Spanish TTS)
| intents/search-and-play, room routing
v
Music Assistant (hostNetwork on prusik, TCP 8095/8097 + LAN protocols)
| | |
| Open Subsonic | AirPlay | TV protocol TBD
v v v
Navidrome LG C3 salon TV oficina
\--> ReSpeaker Sendspin (experimental; separate validation)
Separation of responsibilities: Assist owns commands and home entities; Music Assistant owns the catalog and playback queues; ESPHome owns the satellite's microphone, local wake word and speaker. TV remote microphones are not assumed accessible even on rooted webOS devices.
Phases and gates
Phase A — GitOps foundation (implemented)
- Music Assistant StatefulSet, pinned stable image, host networking on
prusik, ClusterIP Service, internal OIDC-protected UI HTTPRoute (Envoy Gateway + Kanidm,navidrome-usersgroup). - PVC and snapshots using existing ZFS/Argo patterns; no second library mount.
- ReSpeaker XVF3800 kitchen firmware file with five upstream remote packages
and matching
respeaker_reftag; Vault-backed Wi-Fi/API/OTA credentials. - Preserve existing /api/prometheus external ingress restriction on master.
- Home Assistant shutdown grace: keep master's 60 s
defaultPodOptions(the PR's 45 s controller override was removed at merge); do not change AppDaemon/Whisper/Piper defaults. - Static CI for rendered Helm resources and ESPHome config invariants.
Merge gate: Helm lint/template green, static checks green, review host
ports / direct 8095 access policy and ZFS volume placement. ArgoCD currently
auto-syncs apps/*; merging creates the service without extra approval.
Phase B — audio discovery and onboarding (partially done 2026-12-03)
Done: Navidrome provider, HA integration, Echo Dot as a Sendspin player with verified playback and voice control (see the commissioning record below). Pending: the TVs, which need mDNS/SSDP crossing VLANs first.
- On
prusik: checkss -lntupfor 8095/8097 collisions; verify mDNS advertisements for LG C3 and office TV, with VLAN mapping and pfSense routing/firewall. - Set up Navidrome provider with a dedicated Open Subsonic account in the MA UI. Verify tracks are indexed.
- Pair LG C3 using AirPlay; pair the second TV only after reading its model and capabilities. Confirm direct player-to-server TCP access.
- Add Music Assistant integration using cluster service URL in HA and
assign verified
media_player.*entities to HA areas. - Test that screen-off audio on C3 works before automating it. Do not equate TV standby with screen-off.
Gate: per-device play, pause, resume, volume, reconnection and Navidrome source quality tested. Record whether playback uses AirPlay, Chromecast, DLNA or another protocol.
Phase C — kitchen voice (firmware implemented, hardware pending)
- Connect the XVF3800/XIAO ESP32-S3 by USB for first flash. The remote package updates XMOS DSP firmware if needed; do not interrupt power.
- Verify
esphome configandesphome compilewith the deployed ESPHome version and secrets on the intended build host. Flash once over USB; later changes use OTA. No remote flash can be completed without hardware. - Add the device in HA's ESPHome integration; assign Kitchen area. Expose the speaker/MA players to Assist and select the Spanish pipeline (Whisper + Piper). Wake word runs on the device, so the central OpenWakeWord server is not required for this satellite.
- Validate hardware mute, wake-up at different distances, timer, lights and voice-initiated kitchen music. Test with extractor and TV noise, and verify audio playback does not retrigger wake word.
- Connect an appropriate active speaker to the ReSpeaker for actual music; the 5W speaker output is intended for modest near-field audio.
Gate: reliable wake, command understanding and TTS in Spanish with measured end-to-end latency, and working hardware mute.
Phase D — synced multiroom (not enabled by default)
The pinned upstream XVF3800 packages already include a Sendspin source and player. Do not add a second Sendspin component to the firmware. Validate compatibility with the actual Music Assistant server version and ReSpeaker integration; a newer/beta MA may be needed for some features. Do not migrate the stable MA database to a beta image in place.
- Independent room playback is required; synchronized groups are optional.
- Verify whether LG C3 (AirPlay) can group with Sendspin at acceptable drift.
- Add custom sentences only for unsupported actions (group, shuffle, move).
- Test announcements during music, ducking, stop words and recovery.
- If incompatibility persists, preserve independent playback rather than adding brittle transcoding or forwarding hacks.
Phase E — operations and SLOs
- Continue using ZFS snapshots and existing HA/ESPHome monitoring.
- Add instrumentation only after confirming available upstream metrics: connected players, audio availability, STT/TTS latency, wake errors, disconnect/reconnect counts. Avoid publishing metrics through external endpoints.
- Optional LLM agent is outside the critical path. Native Assist intents should handle routine commands even during an Ollama outage.
Network and security decisions
| Concern | Decision |
|---|---|
| MA in Kubernetes | Best-effort, hostNetwork on prusik; not upstream-supported |
| UI access | Internal TLS + Envoy Gateway OIDC (Kanidm); same existing Navidrome user group |
| Audio transports | Direct LAN IP/ports; never the HTTPRoute or Kubernetes ClusterIP |
| Discovery | mDNS/SSDP works only inside its L2 domain by default |
| Cross-VLAN | Reflect selectively on pfSense if needed, allow stateful return traffic |
| Direct host UI | Restrict via pfSense/host firewall: bypasses the route auth |
| Secrets | Dedicated Navidrome account, configured in MA UI; ESPHome secrets in Vault |
| Storage | Dedicated RWO PVC, host pinned; no duplicating Navidrome music |
| TV microphones | Not supported by assumption; separately researched experiment |
Verification checklist
- ArgoCD sync succeeded and PVC is bound to
prusik(2026-12-03) -
GET /from the Service and the protected UI route is healthy (302 → Kanidm) - No unrelated process occupied TCP 8095/8097; correct advertised host IP (
base_url: auto→ 192.168.192.3) - Navidrome Open Subsonic search works; credentials stored outside Git
- LG C3 plays from Music Assistant and handles screen-off test (blocked: mDNS across VLANs, see below)
- Office TV model/protocol discovered and playback validated (same blocker)
- HA Music Assistant integration installed and players assigned to areas (Echo Dot; TVs pending)
- ESPHome config/compile passed for kitchen and firmware flashed via USB
- Hardware mute, Spanish Assist commands, timer, music and TTS pass
- No unintended LAN/WAN exposure; 8095/8097 firewall reviewed (no pfSense change was needed for the Dot)
- Volume persistence and media playback recover after pod restart
- Optional multiroom grouping meets measured drift requirements
Commissioning record (2026-12-03)
What was actually configured (all through the apps' own APIs, i.e. the same state the UIs write; nothing here is in git except this record):
| Where | What | Credential location |
|---|---|---|
| MA | Admin user agil, onboarding completed |
pass web/music-assistant.internal.grigri.cloud |
| MA | Long-lived token "Home Assistant" (used by the HA integration) | stored in HA's config entry .storage |
| MA | Open Subsonic provider opensubsonic--7DnhAuYm → Navidrome |
dedicated Navidrome user below |
| MA | hass provider → http://home-assistant-hass.home-assistant.svc.cluster.local:8123 |
HA long-lived token "Music Assistant", stored in MA's DB |
| MA | Sendspin provider: manual_discovery_ip_addresses: ["192.168.86.210:28928"] |
— |
| Navidrome | Non-admin user music-assistant (no library/file changes) |
pass personal/services/navidrome-ma |
| HA | music_assistant config entry → http://music-assistant.music-assistant.svc.cluster.local:8095 |
MA long-lived token above |
| HA | MA device "Echo Dot 5 6cea3d" → area living_room; media_player.echo_dot_5_6cea3d exposed to Assist |
— |
Verified end-to-end: a track searched from Navidrome played on the Echo Dot over Sendspin
(play → pause/stop → resume via the Spanish voice intent "pon música" with the Dot's device
context). Audio streams Navidrome → MA → player on demand; MA's whole /data was 4.6 MB
after the catalog sync — no music is copied or stored.
Gotchas hit (details in the pitfall index)
- Open Subsonic setup flow:
baseURLmust be scheme+host without the port; put the port in the separateportfield, or the provider appends its default (:443) to the URL. - Track sync aborts on untagged files: Navidrome groups them under a virtual
"[Unknown Album]" whose id
getAlbumcannot resolve (error 70); MA's opensubsonic provider (2.10.9 through 2.10.15 and dev) lets thatMediaNotFoundErrorabort the whole track sync. Artists/albums/playlists/radio sync fine; search and playback are unaffected (they query the provider live). Our library has one such file: "F.Liszt Mazeppa.mp3" (song id5PMGkYEJDicUx5lyIxfeRX). Fix = tag artist/album on that file (owner's data, not touched), or an upstream MA fix usingreport_skipped_sync_item. - Sendspin across VLANs: the Dot (192.168.86.x) cannot see MA's mDNS on prusik
(192.168.192.x). The Sendspin provider's Manual IP addresses for discovery takes
<echo-ip>:28928— with the port: a bare address means Sendspin's default 8928, which is not the Echo's. Auto-pairing then works with HA 2026.11 + MA ≥ 2.10.9: thehassprovider receives the pairing token from HA and pairs the client without user interaction. - HA config flow, headless: the
music_assistantflow's externalauthstep accepts the MA long-lived token directly:POST /api/config/config_entries/flow/<flow_id>with{"code": "<token>"}(that is what the browser redirect carries). HA long-lived tokens are created with websocketauth/long_lived_access_token(no/createsuffix). - Service names follow controller names:
home-assistant-hass(nothome-assistant) andmusic-assistant(notmusic-assistant-main); the pod ismusic-assistant-0.
Open follow-ups
-
TVs as MA players — why the Dot works across VLANs but the TVs do not. The difference is the discovery mechanism, not routing:
-
Echo Dot (works): it speaks Sendspin, whose MA provider has a Manual IP addresses for discovery setting. We gave MA the Dot's exact address (
192.168.86.210:28928), so MA connects over ordinary routed unicast TCP — pfSense already routes between the VLANs. No multicast needed; the Dot then connects back to MA's Sendspin server (:8927) and auto-pairs via HA. - TVs (blocked): the C3's only MA-compatible protocol is AirPlay (no Chromecast;
webOS DLNA is a controller, not a renderer). MA's AirPlay and DLNA providers have no
manual-IP setting — they find players only by multicast (mDNS / SSDP), which is
link-local and does not cross VLANs. prusik (
192.168.192.x) and the TVs (192.168.76.11/.12) are different VLANs, so MA never sees their advertisements.
Two things must change before the TVs can play (both owner decisions, not done):
1. Discovery: selective mDNS/SSDP reflection (Avahi) on pfSense between VLAN 76 and
prusik's VLAN — a network change.
2. AirPlay reachability: from prusik, TV :6053 (ESPHome) is open (routing works)
but TV :7000 (AirPlay) is closed/filtered and ICMP is blocked. So either AirPlay is
disabled on the TV (the C3 needs it enabled in settings) or pfSense blocks 7000 — check
and enable before reflecting.
Until then the TVs keep their existing ESPHome satellite media players. (Chromecast has a
manual-IP option but the C3 does not speak it.)
2. Complete the track catalog sync. One untagged file aborts it (see the gotcha above):
clasica/4º Ens. Prof/F.Liszt Mazeppa.mp3 (15-min Liszt recording, no artist/album tags →
Navidrome's virtual "[Unknown Album]"). Fix = tag artist/album on that file in the owner's
music tooling (Picard/Lidarr), then a Navidrome rescan; MA's track sync then completes.
The file is the owner's data on prusik's music-navidrome ZFS dataset — not touched here.
The recurring podcast-sync 501 (Navidrome has no podcast API) was disabled via the provider's
enable_podcasts: false.
3. Kitchen ReSpeaker (Phase C) still needs first-time USB flashing — physical hardware
access, cannot be done remotely; its Sendspin client would reuse the manual-discovery pattern.
4. Pod-restart persistence check not yet exercised: the PVC is Retain and a daily 01:00
ZFS snapshot schedule exists (first snapshot due tonight). To verify accounts/library/queues
survive a restart, the owner runs kubectl --context=grigri -n music-assistant delete pod
music-assistant-0 (the StatefulSet recreates it) and re-checks the UI/library.