An ESP32 BLE bridge that pairs with an Apple Siri Remote (gen 3) and surfaces its buttons and voice to Home Assistant. Two install paths: an ESPHome external component for end users, and a standalone ESP-IDF build for hacking on the C components.
The bridge reports input the way an infrared remote does: a press, the same event repeating while you hold, and silence when you let go. It makes no judgment about what counts as a click, a double-click, or a hold — Home Assistant is the hub and decides. The firmware's job is to report facts.
Status: voice capture with on-device Opus decode feeding ESPHome's
voice_assistant is verified end-to-end. The ESPHome wrap is the recommended
install path; the standalone build remains available for development.
Touch/clickpad gestures are not supported — the clickpad's five clicks behave like any other button, but swipes are not reported. If you are coming from 0.0.x, read Upgrading from 0.0.x first: this is a breaking change.
- MCU: XIAO ESP32-S3 (Seeed Studio 3-pack — 8 MB flash, 8 MB octal PSRAM, native USB-C, BLE 5.0).
- Remote: Apple Siri Remote, 3rd generation (2022, USB-C).
The bridge ships as an ESPHome external component. Drop it into a YAML config,
fill in your secrets, run esphome run. No ESP-IDF or make knowledge needed.
- Clone (or pin via the GitHub form below).
git clone https://github.com/Jakkumn/SiriRemoteESP cd SiriRemoteESP - Create your secrets file from the template:
cp secrets.yaml.example secrets.yaml $EDITOR secrets.yamlsecrets.yaml.exampledocuments how to generate the API encryption key. - Flash:
uv run esphome run example.yaml
After the bridge boots, follow Pairing your remote below.
To consume the component without cloning, point ESPHome at the GitHub repo:
external_components:
- source:
type: git
url: https://github.com/Jakkumn/SiriRemoteESP
ref: v0.1.2
path: esphome/components
components: [siri_remote]Use the explicit type: git form: the github://owner/repo@ref shorthand
cannot take a path:, and this component lives under esphome/components/
rather than at the repository root, so ESPHome rejects it.
Pinning to a tag (rather than @main) is recommended so a downstream change
won't break your install on the next esphome run.
The wrap registers four entities under one device:
binary_sensor.siri_remote_voice_active—onwhile Mic is held.sensor.siri_remote_battery— battery level (%).text_sensor.siri_remote_charging—charging/discharging/plugged_in(unknownif the remote reports no state).button.siri_remote_re_pair— wipes the BLE bond and re-enters discovery.
That is deliberately a short list. These four are genuine state — things the
remote reports about itself. Button input is not state, so it does not become
an entity: it fires as a Home Assistant event, esphome.siri_remote_button,
carrying {device, button, repeat, held_ms}.
The bridge reports input the way an infrared remote does — a press, then the same event repeating while you hold, and silence when you let go. It makes no judgment about what counts as a click or a hold; Home Assistant decides. See Home Assistant automation patterns, and Upgrading from 0.0.x if you used an earlier release.
Swipes and the clickpad surface are not supported. The clickpad's five clicks (centre plus four directions) work like any other button; finger gestures across the pad are not reported at all.
Holding the Mic button on the remote pushes decoded audio into Home
Assistant's Assist pipeline as push-to-talk — wake-word disabled. The
microphone: and voice_assistant: blocks in example.yaml enable
this. Comment them out (and remove voice_assistant_id: from the
siri_remote: block) if you don't want voice — the rest of the bridge
keeps working.
Mic press fires voice_assistant.start directly from the firmware
(see voice_assistant_id: in example.yaml). voice_assistant's
built-in VAD finalizes STT when it detects end-of-speech silence. Mic
release is intentionally not wired to voice_assistant.stop —
that action is a hard abort that drops the in-flight utterance if the
user releases before VAD completes. Trade-off: pressing Mic and
staying silent lets voice_assistant sit in STREAMING_MICROPHONE for
a second or two until VAD's no-voice timeout fires. Acceptable for
push-to-talk.
After Mic-release the firmware also injects 20 ms-paced silence
frames into the audio stream (since Apple stops sending audio packets
at release) so HA's VAD has a continuous signal to analyze and can
detect end-of-speech naturally. Without this the satellite would sit
in HA's "Listening" state until its stt-stream-failed timeout (~9 s)
fired and discarded the captured utterance. The silence stops as soon
as voice_assistant finishes the cycle.
The XIAO S3 has no audio-out hardware, so the bridge by itself can't
play voice responses. There are three usable patterns; pick whichever
fits your install. Don't try to remove TTS from the Assist pipeline
itself — ESPHome's voice_assistant always advertises that it can
receive audio responses (FEATURE_API_AUDIO is hardcoded), and HA's
pipeline validator rejects pipelines without TTS for satellites that
advertise it (validation-error - the pipeline does not support text-to-speech).
A — local speaker on the bridge. If you have I²S audio hardware
wired up, add an ESPHome speaker: block and reference it from
voice_assistant.speaker:. voice_assistant handles playback +
end-of-response signalling itself — set
siri_remote: auto_finish_response: false in this case so we don't
send a duplicate VoiceAssistantAnnounceFinished message.
B — route TTS to an existing HA media_player. If you have a Sonos, Echo, Voice PE, etc. already in HA and want voice responses to play there, add a top-level automation hook on the voice_assistant block:
voice_assistant:
id: siri_voice_assistant
microphone:
microphone: siri_remote_mic
use_wake_word: false
on_tts_end:
- homeassistant.service:
service: media_player.play_media
data:
entity_id: media_player.kitchen
media_content_id: !lambda 'return x;'
media_content_type: musicLeave auto_finish_response: true (the default) so HA's
assist_satellite UI returns to Idle promptly — voice_assistant's
built-in playback timeout doesn't run when no local speaker /
media_player is attached, so the firmware fan-out fills the gap.
C — no speaker anywhere (the default). Voice commands process and
intents run, but no audio response is generated locally. HA still
generates the TTS audio (a few hundred ms of compute on the HA side);
the bridge silently discards it. The
siri_remote: voice_assistant_id: siri_voice_assistant opt-in in
example.yaml enables this with auto_finish_response: true (the
default), so the firmware mirrors what voice_assistant's playback
timeout would have done if a media_player were attached: it sends
VoiceAssistantAnnounceFinished when HA reports TTS_END, and the
assist_satellite.<bridge> entity in HA cleanly transitions
responding → idle instead of getting stuck on Responding.
Press → audio in HA Assist takes ~150–250 ms today (firmware + HA round-trip). What feels slower is user reaction time after press (500–1500 ms) and HA's VAD silence-detection lag (600 ms+). The wins below stack:
- HA Aggressive VAD. Settings → Voice Assistants → your pipeline → Finished speaking detection → Aggressive. Saves ~200–400 ms on end-of-utterance. Slow speakers may get the last syllable clipped — fall back to Default if it bites.
- HA cue automation. Bind to
assist_satellite.<bridge>state transitions. Onceauto_finish_response: trueis on (Scenario C above), the satellite cleanly cyclesidle→listening→processing→idleper command, so HA-side automations on those transitions actually work. Example — flash a hue lamp while listening:The auto-derived satellite name isautomation: - alias: "Siri bridge listening cue" trigger: platform: state entity_id: assist_satellite.siri_bridge to: "listening" action: service: light.turn_on target: { entity_id: light.living_room_lamp } data: { rgb_color: [0, 100, 255], brightness: 80 }
assist_satellite.<esphome_name>. - Firmware-side direct trigger (already wired in
example.yaml). Settingvoice_assistant_id:on thesiri_remote:block firesvoice_assistant.startdirectly from the BLE callback, skipping the binary_sensor → on_press automation hop. ~5–15 ms saving; sub-perceptual but stacks with the rest.
What's deliberately out of scope: continuous-stream pre-warm (privacy + 24/7 HA STT compute on silence), cross-task direct calls into voice_assistant (ESPHome thread model forbids), and the HA-side network round-trip itself (~100–200 ms — controlled by HA's STT engine choice, not the bridge).
- Don't add
esp32_ble_tracker:to the same YAML. NimBLE is single-host and the bridge owns it. Mixing the two crashes at bring-up. - Don't combine with another voice satellite component on the same chip. The siri_audio decoder owns one CPU's free cycles when Mic is held.
Use this path if you want to hack on the C components, run make test, or
build firmware without ESPHome's YAML layer.
- macOS or Linux
cmake,ninja,dfu-util(on macOS:brew install cmake ninja dfu-util)- ESP-IDF v5.5 cloned to
~/esp/esp-idf— see Espressif's setup guide export IDF_PATH=~/esp/esp-idfin your shell (or source~/esp/esp-idf/export.shthe traditional way)- A running Home Assistant instance with the MQTT integration enabled (Mosquitto add-on or any external broker)
make test # host-side unit tests, no hardware required
make menuconfig # set Wi-Fi SSID/password + MQTT broker URI/credentials
make build # compile firmware
make fm # flash + monitor the connected deviceRun make with no arguments to see all targets.
| Menu | Key | Default | Purpose |
|---|---|---|---|
| Siri Bridge Configuration | WIFI_SSID / WIFI_PASSWORD |
empty | Wi-Fi credentials |
| Siri Bridge Configuration | MQTT_BROKER_URI |
mqtt://homeassistant.local:1883 |
MQTT broker |
| Siri Bridge Configuration | MQTT_USERNAME / MQTT_PASSWORD |
empty | MQTT auth |
| Siri Bridge Configuration | PULSE_REPEAT_INTERVAL_MS |
100 | How often a held button re-emits (a rate, not a hold threshold) |
| Siri Bridge Configuration | BLE_SLAVE_LATENCY_DEFAULT |
400 | See "Always-connected mode" below |
| Siri Bridge Configuration | BATTERY_LOW_THRESHOLD_PCT |
20 | Sets "low": true in the battery payload |
| Siri Bridge Configuration | IDLE_DISCONNECT_MS |
0 (always-connected) | See "Always-connected mode" below |
PULSE_REPEAT_INTERVAL_MS = 0 disables repeats entirely, leaving only the
initial press. The ESPHome path exposes the same two knobs as the YAML keys
repeat_interval_ms: and ble_slave_latency: on the siri_remote: block.
Neither path exposes them as runtime entities any more — see
Upgrading from 0.0.x.
The standalone build publishes these topics directly. The ESPHome path does not — events flow over the ESPHome API instead. Bind to these only if you're running the standalone firmware.
| Topic | Retained | Purpose |
|---|---|---|
siri_remote/event |
no | Button pulses — {event_type, device, button, repeat, held_ms} |
siri_remote/connection |
yes (LWT) | online / offline |
siri_remote/remote_status |
yes | connected / disconnected (BLE link to the remote) |
siri_remote/battery |
yes | {"level": 87, "low": false} |
siri_remote/charging |
yes | charging / discharging / plugged_in / unknown |
Both build paths use the same pairing flow. The bridge has no hardcoded MAC.
On first boot (empty NVS) it enters a 5-minute discovery window: a passive
BLE scan filtered on the HID service UUID (0x1812), with a proximity gate
(RSSI ≥ −55 dBm) and a post-connect fingerprint check (HID + ≥3 notify-capable
Report chars + Apple custom service + a derivable GATT handle map).
The remote treats every distinct BLE peer identity as a separate "host" and
will not admit a connect request from an unknown peer at the LL layer until
it's been put into pairing mode. This is verified empirically: with a fresh
ESP32-S3 (different factory MAC than the previously-bonded ESP32), button
presses alone produce undirected advs but connect attempts fail with HCI
reason 0x3E ("connection failed to be established") in a tight retry loop.
The fix is to put the remote into pairing mode:
- Power the bridge on within ~1 metre of the remote.
- Hold Back + Volume Up on the remote for ~5 seconds. The remote enters Apple's native pairing-mode advertising and admits unknown peers.
- The bridge connects, runs the fingerprint check, bonds, and starts forwarding events. The whole dance takes <10 seconds. The bond is persisted in NVS — subsequent reboots reconnect directly without scanning.
If the bridge logs candidate failed pre-fingerprint — blacklisting 5 s, hold Back+VolUp …, that's the signal: the remote is advertising but
rejecting your bridge's identity. Press the combo and the next retry will
succeed.
If the wrong device is in range (an iPhone, Apple Watch, Magic Keyboard…) the bridge will either reject it via the HID-UUID filter (most Apple devices don't advertise HID) or via the post-connect fingerprint (Magic Keyboard passes the UUID gate but fails the Apple-custom-service check). Fingerprint failures are blacklisted for 60 s; LL connect failures for 5 s (so a correctly-pressed pairing combo recovers quickly).
The remote remembers bonded peers on its side too. If the bond is still present on the remote and you press the HA repair button on the bridge:
- In Home Assistant, press
button.siri_remote_re_pair(iconmdi:bluetooth-refresh). The bridge wipes the bond, terminates the active connection, and re-enters the 5-minute discovery window. - Press any button on the remote (no combo needed — the remote still has the bridge in its bond list and will admit the connection for re-keying).
If the discovery window expires without finding a remote, the bridge logs a warning and goes idle until the next repair-button press.
The bridge keeps a permanent BLE link with the remote and pushes the connection to high-latency low-power params (15 ms intervals, slave latency 400, 15 s supervision timeout) so the remote can deep-sleep up to ~6 s between mandatory radio events while the link stays alive. Button presses break out of the slave-latency window and arrive within ~15 ms. The remote's PPCP advertises latency 80 as its preference, but Apple's peripheral accepts at least 400 — verified empirically and pushed into firmware after the latency-sweep experiment in experiments/wake_minimal/.
The reason we stay connected: Apple's BLE accessory firmware has an undocumented server-side timer that drops the wake-press (the press that wakes the remote from sleep) if the bridge has been disconnected for more than ~30 s. We tested every reasonable workaround at the GATT layer — different chain orders, claim writes to the Apple custom service, conn-param tuning, peer_disc_all priming — and none of them recovered the press once Apple discarded it. Implementing the full MagicPairing accessory-authentication protocol (which doesn't even gate HID delivery, per the WiSec '20 paper) is not feasible without a hardware BLE sniffer and access to Apple's per-device LTK material. So we accept the trade-off: keep the link alive, button identity is always preserved.
Battery cost: ~5–10 µA average draw on the remote in connected-low-power mode at latency 400, vs. ~1 µA disconnected. CR2032 (≈ 225 mAh) lifetime drops from ~18–24 months to ~14–18 months. Roughly 1.2× drain for 100 % wake-press reliability. Slave latency is tunable via ble_slave_latency: (ESPHome) or CONFIG_BLE_SLAVE_LATENCY_DEFAULT (standalone), but it is compile-time — it was briefly a live number.* slider, and the pulse refactor removed the Number platform, so changing it now needs a reflash.
Opting out:
- ESPHome path: set
idle_disconnect_ms:on thesiri_remote:block in YAML to a non-zero value (e.g.60000). - Standalone path: set
CONFIG_IDLE_DISCONNECT_MSviaidf.py menuconfig.
The bridge will proactively terminate the link after that many milliseconds of inactivity, the remote enters its deepest sleep, and battery improves — but any button press after >30 s of disconnect arrives without the button identity. Choose this if battery matters more than knowing which specific button was pressed to wake.
The bridge behaves like an infrared remote. Pressing a button fires an
event with repeat: 0; while you keep holding it, the same event repeats
every repeat_interval_ms (100 ms by default), with repeat counting up and
held_ms measuring how long the button has been down.
There is no release event. The pulses simply stop — exactly like an IR receiver seeing repeat frames end. That is deliberate, and it shapes how you write automations:
- A hold is not a state with a start and an end. It is a stream of increments. "Hold to dim" is not "start dimming, stop dimming"; it is "dim one step per pulse", and it ends because the pulses do.
- "Turn something on at press and off at release" is not expressible. Model it as increments instead.
- The firmware makes no judgment about what a click or a hold is. It reports
repeatandheld_ms; you decide. A 400 ms threshold for one automation and 1 s for another is fine — they are just different conditions on the same stream.
| Function | Rule |
|---|---|
| Volume | every pulse → one step |
| Channel | repeat % 3 == 0 → one step (slower ramp) |
| Power, digits, toggles | repeat == 0 only |
| Menu arrows | repeat == 0 or held_ms >= 400, step 1 if held_ms < 1000 else 5 |
Two are shipped under blueprints/automation/siri_remote/. Drop either into
your HA config under the same path, then create an automation from it via
Settings → Automations & Scenes → Blueprints.
button.yaml— one button, one action. Choose once per press or repeat while held, with a typematic delay and an optional rate divisor. Start here.controller.yaml— all 13 buttons in one automation, each with a press and a while held slot.
Both ask you to pick the bridge device, so two bridges in one house don't trigger each other's automations.
The rest of this section documents the underlying event, for when the blueprints don't fit.
Button input fires a Home Assistant event esphome.siri_remote_button with
this event_data:
| Field | Type | Meaning |
|---|---|---|
device |
string | The bridge's device name, for telling two bridges apart |
button |
string | select, up, right, down, left, play_pause, volume_up, volume_down, mute, back, tv, power, mic |
repeat |
integer | 0 is the press itself; increments once per repeat_interval_ms while held |
held_ms |
integer | 0 on the press; measured milliseconds held on each repeat |
Everything arrives as a string. The ESPHome API carries event data as
map<string,string>, and HA matchesevent_datawith==without coercing. Sorepeat: 0written unquoted in a trigger silently never fires — no error, no log line. Quote it (repeat: "0") inevent_data, or use| intin a template. The blueprints handle this for you; this is the single most common way to get stuck writing automations by hand.
Toggle a light on press (ignores however long you hold it):
trigger:
platform: event
event_type: esphome.siri_remote_button
event_data:
button: volume_up
repeat: "0" # quoted — values arrive as strings
action:
service: light.toggle
target:
entity_id: light.living_roomRamp volume while held, after a 400 ms typematic delay. No timers, no helper entities — each pulse is one step, and it stops when the pulses do:
- alias: "Volume Up ramps the media player"
trigger:
platform: event
event_type: esphome.siri_remote_button
event_data:
button: volume_up
condition:
- "{{ trigger.event.data.repeat | int == 0
or trigger.event.data.held_ms | int >= 400 }}"
action:
service: media_player.volume_up
target:
entity_id: media_player.living_room
mode: single
max_exceeded: silentAccelerating ramp — the longer you hold, the bigger each step, the way tvOS scrolls:
action:
repeat:
count: "{{ 1 if trigger.event.data.held_ms | int < 1000 else 5 }}"
sequence:
- service: light.turn_on
target: { entity_id: light.living_room }
data: { brightness_step_pct: -5 }Tap vs. hold on the same button. Because repeat: 0 fires at press,
an automation bound to the press also runs at the start of a hold. If you
need them mutually exclusive, listen to every pulse and let mode: restart
do the timing: each new pulse cancels the previous run, so a run that
survives its short delay means the pulses stopped — the button was released
before it became a hold.
- alias: "Select: tap plays, hold opens scene"
trigger:
platform: event
event_type: esphome.siri_remote_button
event_data:
button: select
variables:
hold_ms: 400 # how long counts as a hold
interval_ms: 100 # must match the bridge's repeat_interval_ms
held: "{{ trigger.event.data.held_ms | int }}"
action:
- choose:
- conditions: "{{ held >= hold_ms }}"
sequence:
# Only the first pulse past the threshold, not every one after it.
- condition: "{{ held < hold_ms + interval_ms }}"
- service: scene.turn_on
target: { entity_id: scene.movie_night }
default:
# Still short. If another pulse arrives, this run is cancelled; if
# none does, the button was let go — a tap.
- delay:
milliseconds: "{{ interval_ms * 2 + 50 }}"
- service: media_player.media_play_pause
target: { entity_id: media_player.living_room }
mode: restartThe tap action is necessarily delayed — by about two repeat intervals after
release — because a tap is only known once the pulses stop. The hold action
fires while the button is still down, the moment it crosses hold_ms.
Don't wait for "any" further select event to decide: the first repeat
arrives after repeat_interval_ms (100 ms by default), so a normal click
held a little longer than that would be misread as a hold.
The same payload lands on siri_remote/event as real JSON (no string
coercion), with an extra event_type field carrying the button name so HA
creates one device trigger per button:
{"event_type":"volume_up","device":"Siri Remote Bridge","button":"volume_up","repeat":0,"held_ms":0}An Event entity is auto-discovered, so you can bind to it directly rather than to the raw topic:
trigger:
platform: state
entity_id: event.siri_remote
condition: >
{{ trigger.to_state.attributes.event_type == 'volume_up'
and trigger.to_state.attributes.repeat | int == 0 }}Pause media while voice is active:
trigger:
platform: state
entity_id: binary_sensor.siri_remote_voice_active
to: "on"
action:
service: media_player.media_pause
target:
entity_id: media_player.living_roomFor "bridge came back online" automations (Wi-Fi outage recovery, bridge
reboot, etc.), bind to the bridge LWT availability topic
siri_remote/connection and watch for an offline → online transition. The
ESPHome path uses the ESPHome API's native availability signal instead and
does not need a separate topic subscription.
The pulse refactor is a breaking change. Nothing from an earlier release carries over untouched.
1. Delete number: and switch: blocks from your YAML. Both platforms
are gone. Leaving them in place fails validation outright on the next
esphome run ("Platform not found"). If you started from example.yaml or
builder.yaml, copy the current versions.
2. Every existing automation stops firing. esphome.siri_remote_event no
longer exists, nor do click, double_click, hold_start, hold_end, or
swipe_*. Rewrite against esphome.siri_remote_button — the shipped
blueprints are the fastest route.
3. Swipes have no replacement. Gesture support was removed, not renamed. Clickpad clicks are unaffected.
4. Two knobs became compile-time. repeat_interval_ms: and
ble_slave_latency: are now YAML keys on the siri_remote: block
(CONFIG_* on the standalone path). Changing them needs a reflash. The other
four sliders — swipe sensitivity, double-click window, hold threshold,
battery-low % — are gone entirely; the first three were thresholds that now
live in your automations, and HA can template the fourth.
5. Clearing stale MQTT entities (standalone only). HA discovery is retained, so the broker keeps serving configs for entities that no longer exist, leaving them permanently unavailable in HA. Clear them by hand:
for t in swipe_y_priority swipe_min_distance double_window_ms \
hold_threshold_ms battery_low_pct ble_slave_latency; do
mosquitto_pub -h <broker> -r -n -t "homeassistant/number/siri_remote_$t/config"
mosquitto_pub -h <broker> -r -n -t "siri_remote/state/siri_remote_$t"
done
mosquitto_pub -h <broker> -r -n -t "homeassistant/switch/siri_remote_raw_stream/config"
mosquitto_pub -h <broker> -r -n -t "siri_remote/state/siri_remote_raw_stream"
mosquitto_pub -h <broker> -r -n -t "siri_remote/touch_raw"The bridge republishes its own discovery on every MQTT connect, so the surviving entities reappear on the next boot.
NVS keys from the old Number entities stay in flash and are simply never
read again. They cost a few hundred bytes; make erase clears them, at the
price of also wiping the BLE bond and forcing a re-pair.
components/ # standalone-only IDF C
siri_ble/ # BLE central — scan, pair, discover, magic unlock, notify dispatch
siri_audio/ # Opus decode pipeline (gen-3 audio packet parser + decoder task)
report_decoder/ # Pure-C parsers (button bitmap, touch frame, charging-state, name lookup)
button_pulse/ # Pure-C IR-style pulse emitter — repeat index + held_ms, no interpretation
mqtt_entity/ # MQTT helper for Button HA-discovery (standalone-only)
main/
main.c # standalone build — Wi-Fi, MQTT, NVS, HA auto-discovery, glue
Kconfig.projbuild # standalone Wi-Fi + MQTT credential config
esphome/components/siri_remote/ # ESPHome external component
__init__.py # parent component schema, sdkconfig pinning
binary_sensor.py / sensor.py / text_sensor.py / button.py / microphone.py
siri_remote_hub.{h,cpp} # Component subclass — orchestrates BLE + audio + entity bridging
siri_remote_{button,microphone}.{h,cpp} # entity subclasses
*.c, *.h # symlinks to ../../components/*/ — both build paths share C
example.yaml # working ESPHome config (the recommended user starting point)
secrets.yaml.example # template for the secrets ESPHome reads
blueprints/automation/siri_remote/
button.yaml # one button, one action — the common case
controller.yaml # all 13 buttons in one automation
tests/host/ # Host unit tests (no hardware required) — ASan + UBSan enabled
fixtures/ # Captured per-button + per-swipe byte sequences from real hardware
This project ports existing Siri Remote protocol work to an ESP32. The chain of prior art:
- Jack-R1 — original reverse-engineering of the Apple TV 4th-gen Siri Remote protocol (Opus voice decoder, macOS voice control, Windows filter driver).
- Yanndroid/SiriRemote-Linux —
Python/bluepy port for Linux that documents the GATT handle map, the
vendor-specific "magic write," button bitmask, and touch/clickpad report
format. Gen 2/3 coverage lives on the
gen-3branch.
This project translates that protocol knowledge into ESP-IDF + NimBLE C running on an ESP32, with an ESPHome external-component layer on top.
MIT — see LICENSE.