ESP32 Bluetooth Low Energy Tracker Hub

The esp32_ble_tracker component creates a global hub so that you can track bluetooth low energy devices using your ESP32 node.

See Setting up devices for information on how you can find out the MAC address of a device and track it using ESPHome.

# Example configuration entry

  - platform: ble_presence
    mac_address: AC:37:43:77:5F:4C
    name: "ESP32 BLE Presence Google Home Mini"

  - platform: ble_rssi
    mac_address: AC:37:43:77:5F:4C
    name: "BLE Google Home Mini RSSI value"
  - platform: xiaomi_hhccjcy01
    mac_address: 94:2B:FF:5C:91:61
      name: "Xiaomi MiFlora Temperature"
      name: "Xiaomi MiFlora Moisture"
      name: "Xiaomi MiFlora Illuminance"
      name: "Xiaomi MiFlora Soil Conductivity"
      name: "Xiaomi MiFlora Battery Level"
  - platform: xiaomi_lywsdcgq
    mac_address: 7A:80:8E:19:36:BA
      name: "Xiaomi MiJia Temperature"
      name: "Xiaomi MiJia Humidity"
      name: "Xiaomi MiJia Battery Level"


The first time this component is enabled for an ESP32, the code partition needs to be resized. Please flash the ESP32 via USB when adding this to your configuration. After that, you can use OTA updates again.

Configuration variables:

  • scan_parameters (Optional): Advanced parameters for configuring the scan behavior of the ESP32. See also this guide by Texas Instruments for reference.
    • interval (Optional, Time): The interval between each consecutive scan window. This is the time the ESP spends on each of the 3 BLE advertising channels. Defaults to 320ms.
    • window (Optional, Time): The time the ESP is actively listening for packets on a channel during each scan interval. If this is close to the interval value, the ESP will spend more time listening to packets (but also consume more power).
    • duration (Optional, Time): The duration of each complete scan. This has no real impact on the device but can be used to debug the BLE stack. Defaults to 5min.
    • active (Optional, boolean): Whether to actively send scan requests to request more data after having received an advertising packet. With some devices this is necessary to receive all data, but also drains those devices’ power a (tiny) bit more. Defaults to true.
  • id (Optional, ID): Manually specify the ID for this ESP32 BLE Hub.