GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - straub/espresense-proxy-bridge: Feed Home Assistant Bluetooth proxies into ESPresense companion as extra nodes

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
custom_components/espresense_bridge
custom_components/espresense_bridge
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
hacs.json
hacs.json
 
 

Repository files navigation

ESPresense proxy bridge

Home Assistant integration that feeds ESPHome Bluetooth proxies into ESPresense companion as extra nodes. Companion locates phones with the proxies alongside, or instead of, dedicated ESPresense nodes.

Supported only as long as I use it. This is a personal project. I maintain it for my own setup, may not answer issues or PRs, and may archive it without notice. Fork it if you depend on it.

How it works

HA keeps only the best proxy's copy of each advertisement, so per-proxy RSSI never leaves HA. Each scanner still has its own table of recent adverts. The bridge polls those once a second (like Bermuda) and publishes espresense/devices/<id>/<node> messages in companion's format.

It reports devices companion already has a settings entry for (espresense/settings/<id>/config):

  • irk: devices: private addresses resolved with the IRK, reported under the alias (phone:...).
  • iBeacon: devices, e.g. ESPresense nodes' own beacons (node:...), every 5 s. They give companion's optimizer node-to-node distances.

RSSI is smoothed per device and node. Each bridged node publishes status and telemetry, and applies absorption and rx_adj_rssi sent to espresense/rooms/<node>/<setting>/set.

Setup

Needs HA 2025.10+, the Bluetooth and MQTT integrations, and the same MQTT broker as companion.

  1. Install it as a custom repository in the Marketplace (HACS before HA 2026.11):

    Open in the Marketplace

    Or add https://github.com/straub/espresense-proxy-bridge as a custom repository of type Integration and install it from there. It isn't in the default catalog, so searching won't find it until you do.

    To install by hand instead, copy custom_components/espresense_bridge into HA's custom_components/ and restart.

  2. Add ESPresense proxy bridge under Devices & services. Give each scanner to bridge a node id (e.g. bp_kitchen) and leave the rest blank.

  3. Add each node id to companion's config.yaml with its position. Companion can't place a node it has no point for.

The Publishing switch turns it off; bridged nodes then show offline in companion. Change the mapping under Configure; no restart needed.

Proxy scan window

ESPHome proxies listen 30 ms of every 320 ms by default. ESPresense nodes listen nearly all the time. Widen the window:

esp32_ble_tracker:
  scan_parameters:
    active: false
    interval: 320ms
    window: 320ms   # 160ms if Wi-Fi suffers

Test results

Tested with Wi-Fi proxies mounted next to dedicated ESPresense nodes:

  • Signal quality is comparable. Proxies' RSSI scatters about as much as the nodes' against known distances, except for one mounted low on a wall.
  • Distances agree with the node beside each proxy, once companion's optimizer has calibrated the proxy.
  • Close phones are heard about as often as by nodes, even at default scan settings.
  • A wider scan window helps at range, with no Wi-Fi or BLE problems seen. ESPHome recommends continuous scanning only for Ethernet proxies.

Caveats

  • Relies on the scanners' discovered_device_timestamps and discovered_devices_and_advertisement_data, which Bermuda also uses. A change in HA's Bluetooth stack could break it.
  • Bridged nodes change where companion puts things.
  • Only IRK and iBeacon devices are bridged. ESPresense nodes also identify devices from their advertisement contents (apple:, tile:, md: and so on); the bridge doesn't, so devices tracked that way are only seen by real nodes.

License

MIT

About

Feed Home Assistant Bluetooth proxies into ESPresense companion as extra nodes

Topics

bluetoothesphomeespresensehacshome-assistanthome-assistant-integration

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.