Repository navigation
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.
- Comment
// Not 2 or 4: aioesphomeapi sends API audio as 1 << 2aboveVOICE_ASSISTANT_SUBSCRIBE_WAKE_WORD_AUDIO, from [voice_assistant] Stream buffered wake word audio for verification esphome#21885. Comment only. - Wizard entity comments above
DeviceWizardRequest:"platform": "sensor"in the example entity and the paragraph on matching an entity by platform, device_id and key, from [api] Send the platform of each wizard entity esphome#22580. Comment only.
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 wizardrolecomment 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
- [api] Expose the connected network type in DeviceCapabilitiesResponse esphome#18019: ready for review and mergeable, waiting on a maintainer review; new
NetworkTypeenum andDeviceCapabilitiesResponse.network_type = 9 - aioesphomeapi PR, not opened yet; open it once the esphome side is approved
3. Typed event data
- [api] Send the event data to clients esphome#21528: ready for review and mergeable, waiting on a review; needs [event] Let an event carry typed data esphome#21527 (open, mergeable, waiting on a review); new fields in
ListEntitiesEventResponse(11) andEventResponse(4) behindUSE_EVENT_DATA, no new message ids, no API version bump - Add typed event data aioesphomeapi#1967: draft, conflicts with main
4. BLE L2CAP connections
- esphome PR, none found
- feat: support ble l2cap connections aioesphomeapi#1808: draft, conflicts with main
Closed without merging
- Allow Update Timezone esphome#7362 (update timezone): closed 2026-11-24, no aioesphomeapi PR was opened.
- [api][core] Add sub-device availability esphome#18220 (sub-device availability): closed 2026-11-24. Its twin Add sub-device availability state subscriptions aioesphomeapi#1856 is still open and conflicts with main; it should be closed too unless the esphome side comes back.
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.protogets theapi.protolabel 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.protofiles. The diff must be empty, comments included. - Rebase a conflicting PR before its turn comes.
History
Completed pairs
Keepalive interval in HelloResponse
- Use server-advertised keepalive interval from HelloResponse aioesphomeapi#2017 (merged 2026-11-25, released in 46.31.0, ahead of the esphome side)
- pin bumped to 46.31.0 by Bump aioesphomeapi from 46.30.1 to 46.31.0 esphome#23308 (merged 2026-11-25)
- [api] Add configurable keepalive interval for sleepy devices esphome#22705 (merged 2026-11-25):
api: keepalive:option and optionalHelloResponse.keepalive_interval = 5behindUSE_API_KEEPALIVE_INTERVAL
Platform of each wizard entity
- [api] Send the platform of each wizard entity esphome#22580 (merged 2026-11-12)
- Add platform to wizard entities aioesphomeapi#2012 (merged 2026-11-12, released in 46.30.0; model only,
api.protocomments not synced) - pin bumped to 46.30.0 by Bump aioesphomeapi from 46.29.1 to 46.30.0 esphome#22582 (merged 2026-11-12)
Stable role for wizard entities
- [api] Let components give wizard entities a stable role esphome#22295 (merged 2026-11-05)
- Add role to wizard entities aioesphomeapi#2000 (merged 2026-11-05, released in 46.29.0)
- pin bumped to 46.29.1 by Bump aioesphomeapi from 46.28.0 to 46.29.1 esphome#22540 (merged 2026-11-11)
Crash report from the previous boot
- [api] Let clients fetch the crash recorded on the previous boot esphome#21596 (merged 2026-11-05):
CrashReportRequest/CrashReportResponseas ids 163/164,DeviceCapabilitiesResponse.crash_reportas field 8, API version 1.20 - Add the crash report request aioesphomeapi#1968 (merged 2026-11-05, released in 46.28.0)
- pin bumped to 46.28.0 by Bump aioesphomeapi from 46.27.0 to 46.28.0 esphome#22290 (merged 2026-11-05)
Wake word audio for verification
- [voice_assistant] Stream buffered wake word audio for verification esphome#21885 (merged 2026-11-04)
- Add voice assistant wake word audio aioesphomeapi#1980 (merged 2026-11-04, released in 46.27.0)
- pin bumped to 46.27.0 by Bump aioesphomeapi from 46.26.0 to 46.27.0 esphome#22279 (merged 2026-11-05)
USB interface description
- Add
interface_descriptionstring toUsbDeviceDescriptoraioesphomeapi#1977 (merged 2026-11-04, released in 46.26.0, ahead of the esphome side) - [usb_host] Read
iInterfacefor connected interfaces esphome#21781 (merged 2026-11-04) - pin bumped to 46.26.0 by Bump aioesphomeapi from 46.25.1 to 46.26.0 esphome#22274 (merged 2026-11-04)
IR/RF receive timings as a span (no wire change)
- [remote_base] Dispatch received frames from a span esphome#22269 (merged 2026-11-04)
- Sync the InfraredRFReceiveEvent timings span option from esphome aioesphomeapi#1999 (merged 2026-11-04, released in 46.26.0)
store_yaml capability and GetYamlRequest stream
- [core] Add the YAML loader helpers store_yaml builds on esphome#21432 (merged 2026-10-26)
- Sync the store_yaml api.proto changes from esphome aioesphomeapi#1958 (merged 2026-10-22, released in 46.22.0, ahead of the esphome side)
- pin bumped to 46.22.0 by Bump aioesphomeapi from 46.21.0 to 46.22.0 esphome#21434 (merged 2026-10-23)
- [store_yaml] Embed user YAML in firmware for recovery esphome#16445 (merged 2026-11-04)
Optional user action arguments with defaults
- [api] Add optional user-defined action variables with defaults esphome#18882 (merged 2026-10-22)
- Add optional and default_value to user service args aioesphomeapi#1891 (merged 2026-10-22, released in 46.21.0, ahead of the esphome side)
- pin bumped to 46.21.0 by Bump aioesphomeapi from 46.20.0 to 46.21.0 esphome#21371 (merged 2026-10-22)
Media player constant bitrate
- [api] Let a media_player ask for a constant bitrate esphome#19962 (merged 2026-10-22)
- Add bitrate to MediaPlayerSupportedFormat aioesphomeapi#1917 (merged 2026-10-22, released in 46.20.0, ahead of the esphome side)
- Sync the media player bitrate comment with esphome aioesphomeapi#1961 (field comment sync, merged 2026-10-22, released in 46.21.0)
Cover toggle support
- [api][cover] Expose toggle support in native API esphome#16506 (merged 2026-10-22)
- Add support for cover
toggle_actionaioesphomeapi#1025 (merged 2026-10-22, released in 46.19.0, ahead of the esphome side for two hours)
Cover stop tilt
- [cover] Add stop tilt support esphome#20248 (merged 2026-10-22)
- Add stop tilt support to covers aioesphomeapi#1925 (merged 2026-10-22, released in 46.18.0)
- [mqtt] Support stop tilt on covers esphome#20251 (MQTT side, no proto change, merged 2026-10-22)
DeviceRelation on sub-device info
- [core] Add relation option to sub-devices esphome#21232 (merged 2026-10-22)
- Add DeviceRelation to sub-device info aioesphomeapi#1955 (merged 2026-10-21, released in 46.17.0)
icon and device_class fields get (progmem) = true
- [core] Read entity icons and device classes straight from flash esphome#21111 (merged 2026-10-22)
- Sync entity icon and device class progmem options with esphome aioesphomeapi#1950 (merged 2026-10-21, released in 46.16.0)
Entity name fields get (progmem) = true (esphome/esphome#20423, with esphome/esphome#20615 moving the remaining components)
- [core] Keep entity names in flash on ESP8266 esphome#20423 (merged 2026-10-21)
- Sync entity name progmem options with esphome aioesphomeapi#1932 (merged 2026-10-21, released in 46.15.0)
- [core] Move the remaining components to flash-safe entity names and deprecate get_name() esphome#20615 (merged 2026-10-21)
ConstVector annotations for custom modes and presets (esphome/esphome#20213 and esphome/esphome#20214)
- Sync climate and fan custom mode container annotations in api.proto aioesphomeapi#1923 (merged 2026-10-21)
IR/RF USE_IR_RF gate and serial proxy identity comments (esphome/esphome#19086 and esphome/esphome#19308)
- Sync the IR/RF gate and serial proxy identity comments with esphome aioesphomeapi#1959 (merged 2026-10-21)
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:
-
supported_preset_modes,supported_custom_fan_modesandsupported_custom_presetsasConstVector<const char *, true>([climate] Keep custom fan modes and presets in a ConstVector; remove the deprecated traits setters esphome#20213, [fan] Keep preset modes in a ConstVector; remove the deprecated traits setters esphome#20214): Sync climate and fan custom mode container annotations in api.proto aioesphomeapi#1923, merged 2026-10-21. - IR/RF messages gated on
USE_IR_RFalone and the shorter completion comment ([api] Reply when an infrared/RF raw timings transmit has completed esphome#19086): Sync the IR/RF gate and serial proxy identity comments with esphome aioesphomeapi#1959. -
SerialProxyIdentitySourceandSerialProxyIdentityFlagcomments markingCONFIGUREDas reserved and not sent yet ([serial_proxy] Add USB_SERIAL port type and device identity esphome#19308): Sync the IR/RF gate and serial proxy identity comments with esphome aioesphomeapi#1959.
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
-
uint32 keepalive_interval = 5inHelloResponse: shipped in aioesphomeapi 46.31.0 first, closed by [api] Add configurable keepalive interval for sleepy devices esphome#22705 on 2026-11-25. -
string interface_description = 7inUsbDeviceDescriptor: shipped in aioesphomeapi 46.26.0 first (Addinterface_descriptionstring toUsbDeviceDescriptoraioesphomeapi#1977), closed by [usb_host] ReadiInterfacefor connected interfaces esphome#21781 on 2026-11-04. - The
store_yamlmessages andStoreYamlCapabilities: shipped in aioesphomeapi 46.22.0 first, closed by [store_yaml] Embed user YAML in firmware for recovery esphome#16445 on 2026-11-04. -
optional = 5anddefault_value = 6inListEntitiesServicesArgument: shipped in aioesphomeapi 46.21.0 first, closed by [api] Add optional user-defined action variables with defaults esphome#18882 on 2026-10-22. -
uint32 bitrate = 6inMediaPlayerSupportedFormat: shipped in aioesphomeapi 46.20.0 first, closed by [api] Let a media_player ask for a constant bitrate esphome#19962 on 2026-10-22. -
supports_toggle = 15inListEntitiesCoverResponseandtoggle = 11inCoverCommandRequest: shipped in aioesphomeapi 46.19.0 first, closed by [api][cover] Expose toggle support in native API esphome#16506 on 2026-10-22.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsOngoing
Activity
[-]Get api.proto back in sync with aioesphomeapi and merge the pending API PRs[/-][+]Track api.proto changes across esphome and aioesphomeapi[/+]