ESP32 Projects
Start a build
Markdown

Openhome for ESP32

An ESP32 display project involving Speaker.

ESP32See upstream buildUnrated
Parts and source

Before you start

Check the exact Speaker configuration against the upstream wiring or parts list.

Upstream README

openhome

OpenHome app icon

OpenHome is a self-hosted home control system with a native Kotlin Android app, a household dashboard and a native LG webOS TV launcher. Mobile clients communicate exclusively with a Rust Axum API. The supported Android app lives in mobile/.

The API authenticates the client and forwards HTTP requests to two ESP32 devices:

  • ESP32 IR remote: sends infrared commands to an LG TV and an Edifier speaker.
  • ESP32 SwitchBot controller: drives a servo that physically turns a light switch on or off.

The native app focuses on offline-first Workouts and Home controls. Home geofencing is not available in the native app.

Hardware Demo

ESP32 infrared controller ESP32 SwitchBot controller
ESP32 infrared controller beside an Edifier speaker ESP32 servo controller mounted above a wall light switch

Dashboard

The OpenHome dashboard runs on a hacked digital photo frame as a dedicated household display. It brings together a clock, weather, home controls, travel, workouts, recovery, lists and Immich photo albums, with an idle slideshow when the display is not in use.

Dashboard home with clock, weather, fitness progress and home controls

Travel Photos
Dashboard travel map Dashboard photo albums

These screenshots use anonymous synthetic data. See dashboard/docs/redesign for screenshots of all pages in desktop and phone layouts.

TV

OpenHome TV replaces LG Home on a rooted LG webOS TV using PearWebOS and a native QML interface. The launcher brings apps and home controls together on a clean black screen, with large icons for the Magic Remote.

Before: LG Home After: OpenHome TV
LG Home before replacement OpenHome TV launcher with app icons, weather and home controls
  • Large app icons, a full app drawer, pointer navigation and LG's app reordering.
  • A 24-hour clock, Danish date, today's weather and Charge, Rest and Effort rings.
  • Lights on/off and speaker Bluetooth/optical controls through the OpenHome API.
  • Cinema and warm night picture profiles, switched from the eye control or the red remote button.
  • Input Hook shortcuts for apps, lights and speaker inputs, including remapped streaming buttons.
  • Reversible Alexa blocking and privacy controls, with backups and rollback instructions.
  • A fullscreen circular agent with a speaking animation demo. Voice input, speech models and Hermes integration remain future work.

See the TV guide for setup, architecture and rollback, and the annotated Magic Remote for all shortcuts.

Native Android

Native Workout home with invented acceptance data

Repeat and resume Workouts, confirm sets, correct History and record Profile/Body Weight offline. Fitness synchronizes on Wi-Fi; Home commands run immediately without a replay queue. See [installation and support](mobile/README.md) and [acceptance limits](docs/native-android-acceptance.md).

Architecture

The native client uses Compose navigation, Room for local fitness state and a durable Wi-Fi-only outbox. The Axum API owns device integration and retry receipts; Home commands bypass the fitness outbox. Its only bottom tabs are Workout and Home.

flowchart LR
    User[User] --> Mobile[Kotlin Android]
    Mobile -->|Bearer-authenticated HTTP| API[Rust Axum API]
    API -->|HTTP| IR[ESP32 IR remote]
    API -->|HTTP| SwitchBot[ESP32 SwitchBot controller]
    IR -->|Infrared| TV[LG TV]
    IR -->|Infrared| Speaker[Edifier speaker]
    SwitchBot -->|Servo press| Light[Wall light switch]

The mobile client never contacts an ESP32 directly. The Axum API is the single integration boundary and uses IR_BASE_URL and SWITCHBOT_BASE_URL to reach the devices.

API Image

The Axum API is available as the Docker image patrickhaahr/openhome-api:latest.

API access is protected by a Bearer API key. The mobile app stores the key in the platform's secure storage. Use HTTPS outside a trusted local network.

The shared Compose stack runs the API, MCP and Bun dashboard from their latest images, using a private .env beside the Compose file. See the dashboard deployment guide for image publishing, Raspberry Pi updates and Caddy routing on the existing hostname.

Deployment

Run devenv shell -- just deploy to patch-bump only the images changed since their last release, check, build them locally for amd64 and arm64, publish, deploy them to the Pi and verify the release. See the deployment skill for agent operation and the deployment guide for setup and recovery.