Hello all
I have this BLE beacon from Holyiot, which have a single push button on it
https://www.aliexpress.com/item/1005004501233344.html
I was bale to create a presence sensor , battery status and rssi sensor in esphome for that device, following some posts i search and github i found
but i couldn’t get the push button recognized and trigger an event. in my case i tried simple log message from esphome
hte UUID for this beacon igot by using the Android app of nRF connect which displays the BT packets data
here is the relevant config section of esphome
esp32_ble_tracker:
id: ble_tracker
scan_parameters:
window: 300ms
continuous: True
on_ble_service_data_advertise:
- mac_address: FA:65:16:C1:0D:EA
service_uuid: "5271"
then:
- lambda: 'id(ble_sensor).publish_state(x[1]);'
bluetooth_proxy:
active: true
sensor:
- platform: ble_rssi
mac_address: "FA:65:16:C1:0D:EA" # Replace with your iBeacon's MAC address
name: "iBeacon RSSI"
id: ibeacon_rssi
- platform: template
name: "Holy-IOT"
id: ble_sensor
device_class: "battery"
unit_of_measurement: "%"
entity_category: "diagnostic"
accuracy_decimals: 0
binary_sensor:
- platform: ble_presence
mac_address: "FA:65:16:C1:0D:EA" # Replace with your iBeacon's MAC address
# service_uuid: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" # Replace with your iBeacon's UUID
name: "iBeacon Presence"
id: ibeacon_presence
- platform: ble_presence
name: Holy IoT Black-1 Presence
ibeacon_uuid: "FDA50693A4E24FB1AFCFC6EB07647825"
ibeacon_major: 10011
ibeacon_minor: 19641
device_class: "presence"
icon: mdi:key-chain-variant
filters:
- delayed_off: 10s
on_press:
- script.execute:
id: bt_press_annouce
script:
- id: bt_press_annouce
then:
- logger.log: "bt_press_annouce"
any direction on how to get this push button recognized?