Skip to content
Projects

About

Home Assistant server as an Android app – no root. Turns an old phone or tablet into a smart home hub. Zigbee via a low-cost ESP32-C6, flashed straight from the app and linked over encrypted Bluetooth.

Systems & Infrastructure

How these counts are measured

30 stars1 Forks +2 in 24h

Measured star growth

in 24h
+2
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

HA-Pocket – Home Assistant, Zigbee, ESP32-C6, Android

Deutsch · English

HA-Pocket

Turn your old phone or tablet into a smart home hub. HA-Pocket runs the real Home Assistant server as a normal Android app – no root, no extra computer, no command line. Add an ESP32-C6 for a few euros and you get Zigbee as well.

Unofficial community project. HA-Pocket is not affiliated with, endorsed by or sponsored by Home Assistant, Nabu Casa or the Open Home Foundation.

Status: beta. It runs around the clock for us, but it is still young. Please set up backups.

🙋 Testers wanted! Try it and tell us how it runs on your device – see below.


The two big things

1. Home Assistant directly on Android

  • Install the app, hold “Start”, done. The app downloads the official Home Assistant image (the same one used for Docker) and sets everything up by itself – about 4–6 minutes.
  • No root, no Termux, no Raspberry Pi.
  • Stays on: runs as a foreground service with the screen off, and comes back by itself after a reboot or a crash.
  • Updates as usual: an update entry appears in Home Assistant – tap it, done. Your settings are kept.

2. Zigbee with an ESP32-C6 – flashed straight from the app ⚡

1: plug the ESP32-C6 into USB-C. 2: flash it in the app. 3: unplug – Zigbee runs over Bluetooth.

This is the part we are proud of: an ESP32-C6 costs a few euros – and HA-Pocket turns it into a Zigbee radio in about 12 seconds. No PC, no flashing tool, no buttons to hold on the board.

  1. Plug in: connect the ESP32-C6 to your phone or tablet with USB-C.
  2. Flash: tap “ESP” in the app, then “Flashen”. The firmware is already inside the app.
  3. Unplug: power the ESP from any USB charger – anywhere in your home where Zigbee reception is good. It connects to your device over Bluetooth by itself.

What happens behind the scenes:

  • Encrypted and paired to your device only: while flashing, the app writes a secret key to the ESP. The Bluetooth link is authenticated (HMAC-SHA256) and encrypted (AES-256-GCM). Another phone cannot connect.
  • No cable in operation: the ESP does not need to stay on the phone. In our test it ran 5 m away behind a brick wall without a single dropout.
  • Everything included: Zigbee2MQTT and the Mosquitto MQTT broker are set up automatically.
  • Fast: switching typically takes 0.1–0.2 seconds.
  • Nothing is locked: the ESP can be reflashed with other firmware at any time.

Architecture: phone with Home Assistant, Zigbee2MQTT and Mosquitto – Bluetooth to the ESP32-C6 – Zigbee to your devices.


What else is inside

  • Wall panel mode: full screen without bars – the tablet on the wall shows just your dashboard. Screen on/off and brightness can be controlled from Home Assistant.
  • Its own Home Assistant integration: discovered automatically (“Discovered: HA-Pocket”), showing battery, battery temperature, charging, Zigbee link, free storage and updates.
  • Backups: through Home Assistant itself, for example to OneDrive (just sign in).
  • Community extensions: through the Marketplace built into Home Assistant.
  • No data collection: HA-Pocket sends nothing to us.

What you need

Device Android 8 or newer, 64-bit (arm64), 3 GB RAM or more
Storage about 3 GB free
For Zigbee an ESP32-C6 board with USB-C and a USB charger for it
Ideally keep the device on its charger

Tested on: Motorola moto g05 (Android 15), Redmi Pad 2 (Android 16), ZTE Blade A7 (Android 8.1).

Testers wanted – tell us how it runs for you

HA-Pocket is an open beta. It runs reliably for us, but so far on three devices only – every report from another phone or tablet helps a lot.

Especially interesting: Samsung, Google Pixel, Xiaomi, Motorola, Huawei/Honor, Oppo/OnePlus – running Android 11 to 16. If you have an ESP32-C6 lying around: please test Zigbee too!

How to give feedback: open an issue – even if everything just worked. Please include:

  • Device and Android version
  • What worked and what did not? (setup, running overnight, Zigbee, updates)
  • For problems: the last lines of the app's log

Get started

  1. Download HA-Pocket.apk and install it.
  2. Open the app and hold “Start” for 3 seconds.
  3. The welcome screen walks you through the rest.

The full guide with every step and the usual pitfalls: docs/GUIDE.en.md

The app's buttons are currently in German; the welcome screen and the Home Assistant integration are available in English.

Known limits

  • No add-ons, no Supervisor. HA-Pocket is equivalent to “Home Assistant Container”. What you would otherwise run as add-ons (Zigbee2MQTT, Mosquitto) is built into the app.
  • Not on the Play Store. The technique behind it (a Linux inside the app folder) is not allowed there. Android therefore warns about an “unknown app” during installation.
  • USB Zigbee sticks are not supported – that is what the ESP32-C6 is for.
  • Bluetooth devices in Home Assistant (the Bluetooth integration) do not work yet.
  • A phone is not a server: battery, heat and vendor power saving need a little attention – the guide shows what matters.

Contributing & help

License

  • Our code: Apache License 2.0 (LICENSE, NOTICE)
  • Firmware in firmware/: MIT (based on esp-coordinator)
  • Third-party components such as proot (GPL-2.0) and talloc (LGPL-3.0), including where to get their source: THIRD-PARTY-NOTICES.md – also in the app under Help → “About HA-Pocket & licenses”.

“Home Assistant” is a trademark of its respective owner.

Thanks to

Home Assistant · Zigbee2MQTT · Mosquitto · proot / Termux · esp-coordinator · and the projects that showed the way: proot-distro, HomeAssistant-Termux, Home-Assistant-For-Android

Explore related projects

Loading…