Skip to content

bluetooth tracking does not work #86

Description

@dolohow

I am trying to set up bluetooth tracking for my device, but I can't make it work. Binary sensor is exposed to HA, however it has "off" state all the time.

This is my configuration from https://wiki.apolloautomation.com/products/general/setup/bluetooth-tracking/

esp32_ble_tracker:

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  power_save_mode: LIGHT

binary_sensor:
  - platform: ble_presence
    ibeacon_uuid: 'cut'
    ibeacon_major: 100
    ibeacon_minor: 1
    name: "Phone"

I also tried from https://github.com/ApolloAutomation/AIR-1/blob/main/Integrations/ESPHome/AIR-1_BLE.yaml#L42

bluetooth_proxy:
  active: true
esp32_ble_tracker:
  scan_parameters:
    active: false

https://esphome.io/components/esp32_ble_tracker/#use-on-single-core-chips

esp32_ble_tracker:
  scan_parameters:
    continuous: false

api:
  encryption:
    key: !secret encryption_key
  on_client_connected:
    - esp32_ble_tracker.start_scan:
       continuous: true
  on_client_disconnected:
    - esp32_ble_tracker.stop_scan:

Every time it shows this in logs:

[11:15:08.992][C][esp32_ble:650]: BLE:
[11:15:08.992][C][esp32_ble:650]:   MAC address: cut
[11:15:08.992][C][esp32_ble:650]:   IO Capability: none
[11:15:09.053][C][esp32_ble_server:244]: ESP32 BLE Server:
[11:15:09.054][C][esp32_improv.component:307]: ESP32 Improv:
[11:15:09.054][C][esp32_ble_tracker:676]: BLE Tracker:
[11:15:09.055][C][esp32_ble_tracker:677]:   Scan Duration: 300 s
[11:15:09.055][C][esp32_ble_tracker:677]:   Scan Interval: 320.0 ms
[11:15:09.055][C][esp32_ble_tracker:677]:   Scan Window: 30.0 ms
[11:15:09.055][C][esp32_ble_tracker:677]:   Scan Type: PASSIVE
[11:15:09.055][C][esp32_ble_tracker:677]:   Continuous Scanning: YES
[11:15:09.058][C][esp32_ble_tracker:685]:   Scanner State: RUNNING
[11:15:09.058][C][esp32_ble_tracker:685]:   Connecting: 0, discovered: 0, disconnecting: 0
[11:15:09.059][C][bluetooth_proxy.connection:091]: BLE Connection:
[11:15:09.060][C][esp32_ble_client:071]:   Address: 
[11:15:09.060][C][esp32_ble_client:071]:   Auto-Connect: FALSE
[11:15:09.060][C][esp32_ble_client:071]:   State: IDLE
[11:15:09.063][C][bluetooth_proxy.connection:091]: BLE Connection:
[11:15:09.064][C][esp32_ble_client:071]:   Address: 
[11:15:09.064][C][esp32_ble_client:071]:   Auto-Connect: FALSE
[11:15:09.064][C][esp32_ble_client:071]:   State: IDLE
[11:15:09.064][C][bluetooth_proxy.connection:091]: BLE Connection:
[11:15:09.068][C][esp32_ble_client:071]:   Address: 
[11:15:09.068][C][esp32_ble_client:071]:   Auto-Connect: FALSE
[11:15:09.068][C][esp32_ble_client:071]:   State: IDLE
[11:15:12.129][D][esp32_ble:493]: Disabling

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions