Skip to content

v1.10.0

Choose a tag to compare

@KristianP26 KristianP26 released this 22 Apr 05:38
· 268 commits to main since this release
8c58475

Two BLE transport improvements that cut setup friction for people using remote proxies.

Embedded MQTT broker for the ESP32 proxy (closes #54)

The ESP32 BLE proxy path no longer requires a separate MQTT broker. When ble.mqtt_proxy.broker_url is omitted, BLE Scale Sync starts an embedded aedes broker on 0.0.0.0:1883 by default, the internal client connects over loopback, and the ESP32 firmware just points at the host's LAN IP. No Mosquitto or Home Assistant MQTT add-on needed.

Configurable via embedded_broker_port and embedded_broker_bind. Optional username / password are enforced when set. Existing broker_url deployments are untouched: the bootstrap is a no-op when an external URL is configured.

Security: binds to a non-loopback interface (default 0.0.0.0) now require username + password and are rejected at schema validation time. The wizard defaults to requiring auth and falls back to 127.0.0.1 when the user declines, so a LAN-reachable broker can never be exposed without credentials by accident.

ESPHome Bluetooth proxy transport, phase 1 (refs #116)

New third handler ble.handler: esphome-proxy. If you already run an ESPHome Bluetooth proxy mesh for Home Assistant, BLE Scale Sync can reuse it over the Native API (port 6053, optional Noise encryption or legacy password) instead of deploying a dedicated ESP32 with custom firmware.

Phase 1 is broadcast-only. GATT-only scales log a clear warning and are skipped until phase 2 lands. The custom ESP32 MQTT proxy remains the recommended path for GATT scales. New guide at docs/guide/esphome-proxy.md covers setup, Noise key handling, and the current phase 1 limitations.

Issue #116 stays open to track phase 2 (mapping ScaleAdapter GATT primitives onto bluetooth_gatt_* API calls).

Setup wizard

  • New "Use built-in embedded broker" option for the mqtt-proxy handler, so new installs skip the external broker prompt by default
  • Handler selection gains "Via ESPHome Bluetooth proxy" with prompts for host, port, and authentication mode (None / Noise key / legacy password)

Install

Home Assistant: update the BLE Scale Sync add-on from the add-on store. The add-on image tracks this release.

Docker: ghcr.io/kristianp26/ble-scale-sync:1.10.0 or :latest.

Standalone: git pull && npm install.

Full changelog: CHANGELOG.md