tips-bluetooth

From Notebook
Revision as of 12:54, 6 September 2023 by Steve (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Return to Home Assistant Tips

Configure the ESP32 to work as a Bluetooth device[edit]

From the forum

How do I configure the esp32 to work as a bluetooth device? I have it setup in esphome and it sees it, but where do I go after that?

From nickrout:
Flash it with esphome with this in the config

bluetooth_proxy:
  active: true



(TOP)

Proxy[edit]

Tutorial Part 1- EASY Bluetooth Proxies in Home Assistant! Increase the range of your passive Bluetooth devices!
Tutorial Part 2- Use this CHEAP Xiaomi thermometer with an ESP32 and Home Assistant.



(TOP)

Sniffing BTLE[edit]

Reference on forum

Add a line into configuration.yaml to get access to the Logger Service:

# Get access to logger.set_level service following bdraco live demo
# https://youtu.be/m9gKFH8WlzY?t=3297
  logger:
  default: warn

Restart Home Assistant

Set Bluetooth logging to debug Developer Tools → Services

service: logger.set_level
data:
  homeassistant.components.bluetooth: debug
 

call service

Terminal:

 cd /config
 tail -f home-assistant/.log | grep "bluetooth" > bt_log.txt

Watch for devices in the log, noting addresses and data

Set the logging back to warn to not fill up the uSD

service: logger.set_level
data:
  homeassistant.components.bluetooth: warn

call service



(TOP)
Return to Home Assistant Tips