14db4f6e713d8f09269569c96f9b0efcab72237d
- New ha_client.rs: background-thread WebSocket client using tungstenite with rustls TLS. Handles auth, state subscription, service calls, and recorder/statistics history fetch for climate graphs. Auto-reconnects on disconnect with 5s delay. - HaState added to State struct: tracks connection status, entity states, and temperature history per entity. - main.rs loads ha-home/config.json at startup, extracts all referenced entity IDs, and creates the HaService. ha_tick() drains responses into state each frame, matching the weather_tick pattern. - tungstenite 0.24 added to Cargo.toml with handshake + rustls features. All 84 existing tests pass. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Luma Home
Fork of Luma — a native launcher for rooted LG webOS TVs — with a Home Assistant integration tab and webOS 5/6 Home button support.
What's different from upstream
- Home Assistant tab — a fourth nav tab ("Home") with glass cards for controlling HA entities (lights, climate, scenes, vacuum, etc.) directly from the TV remote
- webOS 5/6 Home trampoline — bind-mount overlay that redirects the Home button to Luma on older webOS versions (see
trampoline/) - Settings app theme — transparent overlay for the webOS Settings app (see
settings-theme/)
Structure
| Directory | What |
|---|---|
src/ |
Rust source (SDL2 + OpenGL ES 2 renderer) |
assets/ |
Generated artwork, fonts, wallpapers |
ha-home/ |
HA tab config schema and default config |
trampoline/ |
webOS 5/6 Home button redirect (boot hook, watcher, overlay) |
settings-theme/ |
Transparent Settings app theme |
Building
See development.md for the full build guide. Quick summary:
nix develop # enter the dev shell with cross-compilation toolchain
pnpm install # install JS tooling for asset generation
pnpm assets # generate native artwork
cargo build --release --features webos --target armv7-unknown-linux-gnueabi
Target TV
- LG 65NANO813PA, webOS 6.5.3-47
- Rooted via Homebrew Channel v0.7.3
- Luma installed as
com.ecklf.luma
License
Upstream Luma is MIT licensed. See license file.