tips-bluetooth
Jump to navigation
Jump to search
Return to Home Assistant Tips
Configure the ESP32 to work as a Bluetooth device[edit]
- 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
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.
Sniffing BTLE[edit]
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