From 0289fd5a4c71b1c03fe341af85e458596c255593 Mon Sep 17 00:00:00 2001 From: imonlinux <39863321+imonlinux@users.noreply.github.com> Date: Sun, 14 Sep 2025 12:17:53 -0700 Subject: [PATCH] Update linux-voice-assistant-2mic-install.md Updated the tutorial to include optional avahi config for HA discovery of the LVA. --- docs/linux-voice-assistant-2mic-install.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/linux-voice-assistant-2mic-install.md b/docs/linux-voice-assistant-2mic-install.md index fc41556..8eebedd 100644 --- a/docs/linux-voice-assistant-2mic-install.md +++ b/docs/linux-voice-assistant-2mic-install.md @@ -25,7 +25,8 @@ This guide reproduces a working setup of the **linux-voice-assistant** project w ```bash sudo apt update sudo apt upgrade -sudo apt install libportaudio2 build-essential git libmpv-dev mpv python3.11-dev +sudo apt install libportaudio2 build-essential git \ + libmpv-dev mpv python3.11-dev avahi-daemon avahi-utils sudo reboot ``` @@ -82,6 +83,19 @@ aplay -l ## 7. Systemd services +### (Optional) enable Avahi service file to advertise LVA to HA: + +```bash +chmod +x ~/linux-voice-assistant/script/gen-esphome-avahi.sh +sudo ~/linux-voice-assistant/script/gen-esphome-avahi.sh +sudo mkdir -p /etc/systemd/system/linux-voice-assistant.service.d +sudo cp ~/linux-voice-assistant/service/10-avahi.conf sudo mkdir -p /etc/systemd/system/linux-voice-assistant.service.d/10-avahi.conf +``` + +```bash +sudo systemctl restart avahi-daemon.service +``` + ### (Optional) for Pulse Audio with OWW copy this service file into /etc/systemd/system/: ```bash @@ -145,6 +159,8 @@ sudo systemctl status linux-voice-assistant wyoming-openwakeword --no-pager -l ## 8. Connect to Home Assistant +### If HA does not discover the new LVA: + 1. In Home Assistant, go to "Settings" -> "Device & services" 2. Click the "Add integration" button 3. Choose "ESPHome" and then "Set up another instance of ESPHome"