gorbsky.com/workshop/replacing-alexa

Arlo··7 min read

Replacing Alexa with something I own

Nine Echo devices in eight rooms, all talking to someone else's cloud. I replaced them with ESPHome satellites, Home Assistant's Assist pipeline and Claude, after a first attempt that never flashed a single board.

home assistantesphomevoiceclaude code

Our house had nine Echo devices in eight rooms. They ran 14 routines that lived in Amazon's cloud, and the only way to see or change what they did was Amazon's app.

I didn't want the family's household to depend on that. So the plan was simple to state and less simple to build: every Echo gets replaced by something that runs on hardware we own, answers in our own words and can be fixed by editing a text file. Marisa, Maya, Meghan and I would notice the difference only if it was worse.

The first attempt, which I called Arlo, never got that far.

A store-bought smart speaker on a kitchen counter beside an open 3D-printed box holding a bare circuit board, with a glowing mountain picture on the hallway wall behind.

The first attempt stalled before anything was flashed

Version one was an ESP32-S3 board with a microphone and a speaker, and firmware I intended to write myself in ESP-IDF, the vendor's C framework. The project had a milestone list: M0 board census, M1 Wi-Fi and a clock, M2 HTTPS, and then the microphone, the speaker, speech-to-text, Claude, text-to-speech. Only M0 to M2 were ever written. The README says why the rest wasn't: two untested things at once means neither of us knows which one is broken.

The plan was also a 70 KB hand-written HTML file. It described the pins, the parts and the wiring, and it drifted from the code the moment either one changed. A plan I couldn't trust was worse than none.

When I restarted on 2026-10-02, I wrote down the diagnosis. Version one had stalled on custom firmware before anything was flashed. The audio problems I was about to solve by hand, I2S in and out, were already solved in ESPHome.

What I built

The rebuild has four parts, and I wrote almost none of the code in any of them.

  • Satellites. ESP32-S3 boards with a microphone, an amplifier and a speaker, one per room. They run ESPHome, which turns a YAML file into firmware that does the audio, the wake word and the connection to Home Assistant. The first one was a bench rig built from parts I had on hand. The second uses a four-microphone array with its own noise and echo processing.
  • Home Assistant on a Raspberry Pi 5, running its Assist voice pipeline.
  • Claude as the pipeline's conversation agent, through Home Assistant's own Anthropic integration (model claude-haiku-4-5). No custom integration and no server of mine in the path.
  • Phones. Everyone in the family has an Android phone, so the Home Assistant Companion app becomes the default assistant, with the same wake word and remote access.

The wake word is "Hey Jarvis". I first planned a custom "Hey Arlo", then dropped it the same day: the official model is trained on real recordings, needs no training from me, and the phone app offers it too, so every device answers to the same words. The assistant is still called Arlo.

How it works

A spoken request wakes a satellite on the device, so nothing is streamed until the wake word fires. Audio goes to Home Assistant, which turns it into text and asks a question first: is this something I can handle myself? Lights, timers, lists and a growing set of custom sentences are answered locally. Everything else goes to Claude, which can call tools that Home Assistant exposes.

Diagram: phones and ESPHome satellites send speech to Home Assistant's Assist pipeline, which answers local intents directly or hands the rest to Claude, which calls Home Assistant tools that reach devices and return a spoken reply.

The difference matters. On the last ten real runs I measured, a locally answered question took about 0.05 seconds. Claude took between 2.3 and 3.2 seconds, 2.6 on average. So the common questions got custom sentences, which are plain pattern lists in YAML:

language: en
intents:
  ArloTemperatureInside:
    data:
      - sentences:
          - "what['s| is] the temperature (inside|in [the] house|in here)"
          - "how (warm|cold|hot) is it (inside|in [the] house|in here)"
  ArloTemperatureOutside:
    data:
      - sentences:
          - "what['s| is] the temperature outside"
          - "how (warm|cold|hot) is it outside"

The pipeline itself is configuration too. A small file names the conversation engine, the speech engines and one setting that does most of the work, prefer_local_intents: true. A script in tools/ reads that file and applies it to Home Assistant, after a backup.

That is the rule I ended up calling config over code. In Home Assistant I write ESPHome YAML, scripts, automations and sentences, and code only to apply or audit configuration. Anything bigger is a separate agent that needs a written decision before I build it. It sounds like a constraint. It is mostly why the system is still understandable.

The documentation follows the same rule. Pin numbers live once, in a substitutions file next to the firmware, and a build script generates the pinout tables and wiring diagrams from it. The 70 KB drift problem can't recur if nobody types a GPIO number into a document.

Replace nothing, except the morning

On 2026-10-02 I made a decision that shaped everything after: replicate nothing from Alexa. The 14 routines aren't worth re-implementing, and I didn't want to audit and rebuild habits made for another product. The one carry-over is the morning routine: weather, a summary of the day from the family's calendars, and the news. The news is the latest NPR Up First episode.

The Alexa integration in Home Assistant did a few real jobs, though. Door and window alerts spoke through the Echos, and two wall-dashboard buttons fired routines. I audited those on 2026-10-02 and moved them on 2026-10-04: announcements now go through one script, the two buttons are gone, and the integration is disabled with zero references left.

What went wrong

A dead supply looked exactly like a firmware fault. On the bench rig the status light was green, the log was clean and there was no sound. I looked at wiring and settings first. The cause was the board: on this clone, the 5 V pin stays disconnected from USB until a jumper is bridged, and the port marked USB doesn't power it at all. Bridging the jumper fixed it. Now the first check when a board is silent is measuring the supply.

"Tomorrow's weather" read out Erie, Pennsylvania. Home Assistant's built-in tools showed only current conditions, so Claude searched the web, asked for a city, heard a partial name and answered for the wrong state. Calendar answers had also misread "tomorrow" because the model was filtering a week of events itself. All three failures had one cause, and the fix was a rule: facts come from Home Assistant tools, not from the model or the web. The tool does the lookup and the arithmetic and returns a short finished answer. Web search is for the outside world only.

The Alexa deletion did not happen. The plan was to delete the integration on or after 2026-10-11. On 2026-10-10 I took it off the plan: it was too aggressive. The Echos keep working as Amazon devices and Arlo takes over room by room. Today it is one satellite on a desk, so the honest status is that software is well ahead of adoption. Adopting it is the slow part, and deleting the fallback would only rush it.

The wake word never got its twenty-attempt count. I waived the hit-rate test on the first satellite because it was "working well enough" in daily use and the wake word was about to change. The test moved to the pilot, where it still has a gate of its own.

What the house can do now

Set timers and add to the shopping list by voice. Ask the date, the inside and outside temperature, what is on the list. Ask about the calendars; the household shares one calendar, and Arlo never asks who is asking. Ask it to lock the front door, but not to unlock it: that was a decision on 2026-10-05. Reminders are a to-do list plus one delivery automation. Alerts from automations reach my phone as well as a speaker.

What grew around it

Once voice was the front door, other things wanted to sit behind it. A family board now hangs in the hallway, with scenes by time of day and a backdrop picked from the forecast. A small mini PC runs a handful of agents that read the mail and file the bills. Each got its own decision, and each will get its own post.

Lessons

  • Don't write what your platform already ships. The audio code I was about to hand-write is something ESPHome already does from a YAML file.
  • Keep one source for numbers that appear in more than one place, and generate the rest.
  • Change one thing at a time on hardware, and measure the power before you suspect the firmware.
  • When a model has to filter, compute or guess, move that step into a tool and let the model only phrase the answer.
  • A gradual replacement is a feature. Keeping the fallback running costs nothing and removes pressure.

Built with

  • Home Assistant OS on a Raspberry Pi 5, ESPHome for the satellites, and Home Assistant's Anthropic integration for the conversation.
  • Claude Code wrote the ESPHome YAML, the automations and the small Node tools that apply them, and kept the decision log and the generated docs current.
  • I made the architecture calls: what to drop from Alexa, the wake word, and the rule on locking.
  • I flashed the boards and reported what happened. Claude can't see the hardware, so it asked for serial logs and photos.