Have begun my journey on BLE, but not sure I am doing it correctly. Have read heaps of posts on here and the esphome docs, but not sure what I am seeing is correct.
I purchased an iBeacon, and obtained the MAC address from the software that is supplied with the iBeacon.
Here’s the BLE code I have in my ESP32 unit…
# Bluetooth Tracker
esp32_ble_tracker:
binary_sensor:
- platform: ble_presence
# iBeacon
mac_address: EF:51:6F:21:75:74
name: "BLE Presence Test"
When the ESP32 starts, here’s what I see in the logs…
[15:47:59][C][ble_presence:011]: BLE Presence 'Presence Test'
[15:47:59][C][esp32_ble_tracker:793]: BLE Tracker:
[15:47:59][C][esp32_ble_tracker:794]: Scan Duration: 300 s
[15:47:59][C][esp32_ble_tracker:795]: Scan Interval: 320.0 ms
[15:47:59][C][esp32_ble_tracker:796]: Scan Window: 30.0 ms
[15:47:59][C][esp32_ble_tracker:797]: Scan Type: ACTIVE
[15:47:59][C][esp32_ble_tracker:798]: Continuous Scanning: True
I see this in the logs… but no idea what it means?
[15:42:58][D][esp32_ble_tracker:809]: Found device F0:B3:EC:22:4E:69 RSSI=-92
[15:42:58][D][esp32_ble_tracker:830]: Address Type: PUBLIC
[15:42:58][D][esp32_ble_tracker:834]: TX Power: 2
I never see any reference to the iBeacon MAC address: EF:51:6F:21:75:74 so not sure what I’ve done wrong?
So what am I trying to achieve… put simply, I want to know when the iBeacon presence is detected, and then HA runs an automation. For example, the iBeacon could be placed inside a car, so when car is home and detected HA performs an automation.
Apology if these are random questions… appreciate any guidance.