echo-dot-assist README

The project's README from github.com/Gamer92000/echo-dot-assist. As one markdown file: README.md.

echo-dot-assist

Turn an old Amazon Echo into a Home Assistant voice satellite that never talks to Amazon.

The Echo keeps what it is good at: Amazon's microphone processing and wake word engine, so it still hears you across the room and over its own music. Only Alexa goes. In its place runs hassmic, a small daemon that Home Assistant finds as an ESPHome device, with no YAML and no add-on.

Inside the Echo, Amazon's microphones, audio front end and wake word engine stay. hassmic replaces the Alexa client and talks to Home Assistant, Music Assistant and Bluetooth devices. A firewall keeps the Amazon cloud out.

[!CAUTION] Vibecoded, unaudited, your risk. Code, notes and docs were written by an AI (Claude) in conversation with the author, and tried on one Echo of each model. The install unlocks the bootloader and writes the system partition: it can brick the Echo. A mistake in the firewall or the updates could leave it online or open on your network. Read what you run. No warranty, no support.

Supported Echos

Echo Model Codename Way in
✅ Echo Dot 3rd gen (2018) D9N29T donut open the case, wires on test pads
✅ Echo Dot 2nd gen (2016) RS03QR biscuit micro-USB, no soldering
✅ Echo 2nd gen (2017) XC56PY radar open the case, solder USB to the amplifier board
✅ Echo Show 5 1st gen (2019) H23K37 checkers micro-USB, no soldering; the ring as a band on screen
✅ Echo Show 8 1st gen (2019) C7H6N3 crown micro-USB, no soldering; as checkers
✅ Echo Show 5 2nd gen (2021) C76N8S cronos micro-USB, no soldering; as checkers
✅ Echo Show 8 2nd gen (2021) A8H3N2 athena micro-USB, no soldering (a serial-port unlock); the ring as a band on screen
✅ Echo Input (2018) C1125P cupcake micro-USB, no soldering; no speaker (jack or Bluetooth), one LED
🚧 Echo Dot 5th gen (2022) C2N6L4 cannoli open the case, solder USB to test pads; firebreak unlock --device cannoli --overlay roots it with this port on it, nothing to build — not yet run on a Dot in that shape
🚧 Echo 4th gen (2020) L4S3RE laser open the case, solder USB to test pads; manual install only, no guided setup yet; Thread and Zigbee radio

Each model needs exactly the firmware its page names (donut: Fire OS 6574.1 only). A Dot 3 from 2019–2020 (C78MP8) or with a clock (36EBT3) is another model, and not supported. Every other Echo, and which are being worked on: all models; how to add one: devices/. ✅ works, tried on one Echo of that model · 🧪 untested: builds and installs on paper, never run on a device · 🚧 works, but manual install only (no guided setup)

[!IMPORTANT] Getting into the Echo is R0rt1z2's work, not this project's. Every model above unlocks with their exploits for MediaTek's chips (amonet, kamakiri, saiyaku), their bootloader payload kaeru and TWRP as they ported it to each model, and their XDA threads walk through the unlock and root. Without them none of this would run on an Echo. The unlock and boot-root you do by hand, as the model's thread says: R0rt1z2 asks that they are never run from an installer or a script, so the setup sends you to the thread, waits, and checks the Echo before it goes on.

What you get

Stock Alexa With hassmic
Voice assistant Alexa, in Amazon's cloud Home Assistant Assist
Hears you across the room, over music ✅ ✅ the same front end
Wake words Alexa, Echo, Computer, … the same, or any microWakeWord or openWakeWord model
Only the nearest Echo answers ✅ decided in the cloud ✅ decided on your network
Timers, announcements, follow-ups ✅ ✅
Drop In between Echos ✅ through Amazon ✅ on your network
Hands-free for your phone's calls – ✅ over Bluetooth
Multiroom music Amazon speaker groups Music Assistant (Sendspin)
Bluetooth speaker for your phone SBC SBC, AAC, aptX, aptX HD
Plays on a Bluetooth speaker ✅ ✅
Bluetooth proxy for Home Assistant – ✅
Do not disturb, equalizer, ring brightness Alexa app entities in Home Assistant
Buttons and light ring in automations – an event and a light in Home Assistant
Light ring animations of your own – drawn on the settings page, for each of the Echo's
Echo Show: your words, the reply and timers on screen Alexa's screens large letters over the screen, experimental
Louder speaker (Echo Dot 2, Echo 2, Echo Dot 3) – up to +12 dB on the settings page (Echo Dot 3: +2 dB)
Sound detection (smoke alarm, glass, …) Alexa Guard, checked in the cloud on the Echo, less reliable
Whisper detection answers in a whisper a sensor for your conversation agent
Motion sensor – from the Wi-Fi signal, experimental
Wi-Fi setup from a phone Alexa app Home Assistant app
Talks to Amazon always never (firewalled)
Updates from Amazon, automatic signed: from your PC, or from Home Assistant

The table is for the ESPHome mode (the default). The Echo can be a Wyoming satellite instead: voice, wake word, buttons and Music Assistant work, most of the rest does not (details).

On the Echo

The buttons: action (talk, pause, stop an alarm, cancel; approve a login; hold 10 s for a factory reset), volume up and down (10 % steps; both held 2 s pairs Echos), microphone off (hardware mute), and your voice.

The light ring speaks stock Alexa's language, unless you draw your own:

Light ring: blue with cyan when listening, blue and cyan spinning when thinking, cyan when speaking, red when muted, orange spinning when not set up, purple for do not disturb, a blue chaser while phones can pair, a rainbow to identify the Echo.

With several Echos, all of them hear you, but only one answers. They settle it among themselves, without Home Assistant and without a cloud; nothing to set up (how).

Three Echos in kitchen, living room and hall. Someone in the living room says Alexa; that Echo heard it clearest and answers, the other two stay quiet. They compare over the network in a split second.

Everything else is set on the Echo's own settings page, http://<echo-ip>:28931/ ("Visit" on its device page in Home Assistant): every setting with what it does, the features to switch on and the entities each adds, your Echos side by side to copy settings and wake words between them, the log. A press of the action button lets your browser in. More.

Requirements

Install

scripts/setup.sh
The setup's steps: on your PC (tools, downloads, USB access), into the Echo (USB cable, unlock, stock firmware, root; this wipes it and is skipped on a rooted Echo), build (or GitHub's build), onto your network (lock down and join Wi-Fi, install). Then add it in Home Assistant.

One guided run for every supported model. It does everything itself but the unlock, which you do by hand as the model's XDA thread says (it shows you the thread and checks the Echo afterwards), and stops only when you have to act: download a file (it picks it up from ~/Downloads), plug a cable or solder, unlock, type the Wi-Fi password. It wipes the Echo, so it asks for a typed yes first.

The steps by hand, and what to solder: each model's page in Supported Echos.

Once the Echo is on your network, Home Assistant discovers it: add it, pick an Assist pipeline, say "Alexa". The Echo names itself after its model and MAC address ("Echo Dot 3 5695c4"); give it your name in Home Assistant.

Updating

An update comes from your PC (signed with your key) or from Home Assistant (a GitHub release, signed with the release key). Root checks the signature: a bad one is refused. The new version starts and tests itself within 30 seconds; if it passes it is kept for good, if it fails the Echo falls back to the last copy that worked.

Either way a broken update cannot strand the Echo: until a new version has passed its self test, the Echo falls back to the last one that worked. What changed: CHANGELOG.md. What online updates trust: security.

When something is wrong

The settings page's Log (System page) shows what the Echo did; over adb it is adb shell tail -30 /data/local/hassmic/boot.log. Lines start with UTC once the Echo has the time from Home Assistant (the page shows your time zone), boot+<seconds> before that: behind the firewall only Home Assistant sets the clock, on connecting and every 6 hours.

The wake word and the button do nothing

Most likely no connection to Home Assistant; the Echo does not show that yet. In the log, wake: ALEXA type=2 means it heard you, client connected / voice assistant: subscribed means Home Assistant is there. Nothing after the last client disconnected: check the Echo's address (adb shell ifconfig wlan0), that Home Assistant reaches it (TCP 26053) and the Echo reaches Home Assistant (8123). Keep exactly one Wi-Fi profile on the Echo.

No sound from replies or music

The Echo fetches every reply, announcement and play_media from the URL Home Assistant or Music Assistant gives it. Home Assistant builds it from its internal URL (Settings › System › Network), or its LAN IP. The Echo must resolve that name (DNS from DHCP; .local works) and reach the address: on a network without internet, a URL inside it. The log says what failed (net: cannot ...). No button sounds either? Check the volume.

An update installs, but the old version comes back

The log says == update ... installed, then hassmic <old version> and the self test that passed was another build's: a test build from the setup or scripts/deploy.sh is left in /data/local/hassmic/hassmic and runs in place of the installed one. Since 2026-11-28 the Echo removes it by itself at the next update. Before that: adb shell rm /data/local/hassmic/hassmic, then adb shell reboot.

"Invalid encryption key" in Home Assistant

After a reset of the Echo, or when something else set a key first:

scripts/adb-wifi.sh <echo-ip>, then adb shell rm /data/local/hassmic/state/api_key, reboot the Echo, delete the device in Home Assistant and add it again.

Open issues and measurements: PLAN.md.

Undo it

Security

No cloud: the firewall lets Amazon's programs reach only your local network, and firmware updates never get out. The link to Home Assistant is encrypted with a key Home Assistant sets; until you add the Echo, anyone on the network can connect. The settings page lets in only browsers you approved with the action button. adb is closed over Wi-Fi. Updates install only with a valid signature. The whole model, including what it does not protect against: docs/SECURITY.md.

More

Licence

MIT, for everything written here. src/third_party/ keeps its own licences, stated in each file: monocypher (BSD-2-Clause OR CC0-1.0), dr_flac.h (public domain or MIT-0), minimp3.h (CC0-1.0), rnnoise/ (BSD-3-Clause, COPYING beside it), freeaptx.c/.h (LGPL-2.1-or-later, COPYING.LGPL-2.1; linked statically, and everything needed to rebuild and relink it is in this repository), mbedtls/ (Apache-2.0 OR GPL-2.0-or-later, LICENSE beside it), qrcodegen/ (MIT). wakealign/ is CC BY 4.0 (its README); geo/ is made from Natural Earth's public domain borders.

The Echo 4's radio programs are not all ours (NOTICE has each one's notices): src/gprcp/ is ot-qorvo's GP712 platform for OpenThread (BSD-3-Clause, The OpenThread Authors, each file's header kept; ours are timed.c, glibc_shim.c and the edits to radio.c, system.c, openthread-core-gp712-config.h and CMakeLists.txt). The gprcp it builds links OpenThread and mbedTLS, and statically Qorvo's libQorvoGP712_ftd.a, which is fetched at build time, never in this repository, under Qorvo's EULA (use only with Qorvo's chips, which the Echo 4's GP712 is): Copyright (c) 2017-2021, Qorvo Inc., a line gprcp also carries in itself (gprcp --notice); Zig links musl and its compiler_rt into it (MIT). otbr-agent and ot-ctl are ot-br-posix with the options and patches of scripts/otbr-build.sh: OpenThread (BSD-3-Clause) with its tcplp (BSD, much of it FreeBSD's), mbedTLS (Apache-2.0 OR GPL-2.0-or-later), cJSON and cpp-httplib (MIT), and the NDK's libc++ (Apache-2.0 with LLVM Exceptions, older parts MIT).

NOTICE is what every model's programs contain of others' work, with the notices their licences ask to go with the binaries; each update bundle and install carries it as NOTICE beside them, cut to its model's parts (scripts/notice.py).

Nothing of Amazon's is in this repository or covered by this licence: firmware, libraries and wake word models come from your own device and stay Amazon's. Not affiliated with or endorsed by Amazon, Home Assistant or Music Assistant; "Alexa" and "Echo" are Amazon's trademarks.

echo-dot-assist (Gamer92000/echo-dot-assist)

home-automation
Searching Database…

What is this?echo-dot-assist turns an old Amazon Echo (Dot 2, Dot 3, Echo 2, and several Echo Show models) into a local Home Assistant voice satellite. It keeps the Echo's microphone array and wake-word engine but replaces Alexa with a small daemon (hassmic) that talks to Home Assistant over ESPHome or Wyoming, with no connection to Amazon's cloud.
Is this a firmware mod or a Home Assistant add-on?It is a custom firmware replacement that you flash onto the Echo's hardware; Home Assistant then sees the Echo as a regular ESPHome device with no YAML or add-on needed on the Home Assistant side.
How do I install this on my Echo?Run the guided installer (scripts/setup.sh, or in Git Bash on Windows) for your supported Echo model; it walks you through downloading files, plugging a cable or soldering wires, unlocking the bootloader, and entering your Wi-Fi password.
What do I need besides the Echo itself?A Linux PC (not macOS or a VM/WSL) with adb, fastboot, python3, make, unzip and debugfs, plus a USB cable or soldering for the unlock, and a working Home Assistant Assist pipeline; some models can instead be set up from Windows with Git Bash and adb.
Can this brick my Echo?Yes — the install unlocks the bootloader and rewrites the system partition, and the project warns it is vibecoded and unaudited, tried on only one unit of each supported model, so a mistake can brick the device or leave it exposed on your network.
Does the unlock also work from Windows?The main setup needs a native Linux machine for the USB unlock, but an Echo Dot 2 (or any already-unlocked Echo) can be flashed from Windows using Git Bash with adb, fastboot and python3.
Does the Echo still phone home to Amazon?No — the project's firewall lets Amazon's own programs on the Echo reach only your local network, and firmware updates for hassmic go out only to your PC or Home Assistant, never to Amazon.
Can several converted Echos play music together?Yes, multiroom audio is handled through Music Assistant via the Sendspin protocol, replacing Amazon's speaker groups.
Can I use this as a Wyoming satellite instead of ESPHome?Yes, the Echo can run in Wyoming mode: voice, wake word, buttons and Music Assistant still work, but most of the extra features (like the light-ring animations and detailed entities) are only available in ESPHome mode.
What happens if an update breaks the Echo?Updates are signed and self-tested; if a new version fails its self test the Echo automatically falls back to the last version that worked, so a bad update cannot permanently strand the device.
Can I undo the mod and go back to stock Alexa?Yes — you can remove the hassmic config for a temporary stock, unregistered Echo, fully uninstall with scripts/install-system.sh --uninstall, or reflash the original stock firmware from TWRP.
Creator
Gamer92000
Size
9 MB
Stars
1.3K
Age
2mo
Commits · 90 Days