Skip to content

Track api.proto changes across esphome and aioesphomeapi #193

Open

Description

Summary

aioesphomeapi/api.proto is a copy of esphome/components/api/api.proto. This issue tracks every change to the API protocol, so the two files stay the same and each aioesphomeapi release describes a protocol that esphome dev speaks. It stays open: new pairs are added as they come up.

State 2026-11-25: the two files describe the same wire protocol. The keepalive interval pair is done: aioesphomeapi 46.31.0 shipped it and dev pins 46.31.0, the latest release. The only differences are two comment-only changes from esphome, listed under Drift.

Drift

Differences between esphome dev and aioesphomeapi main. Each closes with a sync PR in aioesphomeapi.

Pairs in flight, in merge order

The esphome PR merges first, then its aioesphomeapi twin, then the pin bump in esphome. Tick each PR as it merges and move the pair to Completed once the pin is bumped.

1. Wizard role set by the configuration (comment only in api.proto) (next up)

  • [template] Let a template switch set its wizard role esphome#22834 [template] Let a template switch set its wizard role: ready for review and mergeable, waiting on a review; rewords the wizard role comment to say the role is fixed at build time, by the component or the device's configuration
  • aioesphomeapi comment sync once it merges

2. Connected network type in DeviceCapabilitiesResponse

3. Typed event data

4. BLE L2CAP connections

Closed without merging

esphome/esphome#19061 ([alpha3]) carries the api.proto label from 2026-11-08 but no longer changes api.proto.

esphome/esphome#21892 (on_client_synced trigger, merged 2026-11-25) does not touch api.proto.

Process

  • A PR that changes api.proto gets the api.proto label from the bot; add it here as a pair, with its aioesphomeapi twin.
  • Merge in the order above: the esphome PR, then the aioesphomeapi twin, then bump the pin in esphome after the release.
  • A comment-only change in esphome gets an aioesphomeapi sync PR in its next release; list it under Drift until then.
  • After each aioesphomeapi release, bump the pin in esphome and diff the two api.proto files. The diff must be empty, comments included.
  • Rebase a conflicting PR before its turn comes.

History

Completed pairs

Keepalive interval in HelloResponse

Platform of each wizard entity

Stable role for wizard entities

Crash report from the previous boot

Wake word audio for verification

USB interface description

IR/RF receive timings as a span (no wire change)

store_yaml capability and GetYamlRequest stream

Optional user action arguments with defaults

Media player constant bitrate

Cover toggle support

Cover stop tilt

DeviceRelation on sub-device info

icon and device_class fields get (progmem) = true

Entity name fields get (progmem) = true (esphome/esphome#20423, with esphome/esphome#20615 moving the remaining components)

ConstVector annotations for custom modes and presets (esphome/esphome#20213 and esphome/esphome#20214)

IR/RF USE_IR_RF gate and serial proxy identity comments (esphome/esphome#19086 and esphome/esphome#19308)

Drift found when this issue was opened (esphome dev vs aioesphomeapi main)

Three differences were found when this issue was opened; each now has a PR, and the first is merged:

All three are merged. The (progmem) name, icon and device class fields and DeviceRelation followed on 2026-10-21 and 2026-10-22 (see Completed pairs), which brought the two files back in sync.

Later drift, now closed

Activity

  1. changed the title [-]Get api.proto back in sync with aioesphomeapi and merge the pending API PRs[/-] [+]Track api.proto changes across esphome and aioesphomeapi[/+] on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions