mirror of
https://github.com/esphome/esphome.git
synced 2026-01-09 11:40:50 -07:00
claude/bthome-packet-parser-013Zc5fvXF4EUg5mHfDhMegw
Refactored the component to use a list-based configuration structure that
reduces duplication and makes it clearer that multiple sensors come from
the same device.
New configuration format:
sensor:
- platform: bthome_ble
mac_address: "A4:C1:38:12:34:56"
bindkey: "..." # optional
sensors:
- type: temperature
name: "Temperature"
- type: humidity
name: "Humidity"
binary_sensor:
- platform: bthome_ble
mac_address: "A4:C1:38:9A:BC:DE"
binary_sensors:
- type: motion
name: "Motion"
- type: door
name: "Door"
Benefits:
- MAC address and bind key are specified once per device
- More efficient (one BLE listener per device instead of per sensor)
- Clearer relationship between sensors from the same device
- Matches user expectations for multi-sensor devices
Updated test configurations to demonstrate the new format.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
360 MiB
Languages
C++
64.6%
Python
35.1%
C
0.2%
